Turn the comments that describe functions into JSDoc so the editor shows them on hover
The 669 // comments sitting right above a function, method or hook become /** */ blocks, unchanged in wording; eslint directives stay right above the line they target. website/AGENTS.md now asks for JSDoc on function comments and // inside function bodies. ExpeditionPlanner.jsx grew past 300 lines and gets its full header, as the header test requires. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
88c7bf8317
commit
166790245f
152 changed files with 1389 additions and 967 deletions
|
|
@ -345,7 +345,7 @@ export function useToolboxActions({ store, notify, creationTemplate, importConte
|
|||
return normalizedImport;
|
||||
}
|
||||
|
||||
// Instantané cohérent d'une toolbox au format d'export v2, commun à l'export en fichier et à l'envoi.
|
||||
/** Instantané cohérent d'une toolbox au format d'export v2, commun à l'export en fichier et à l'envoi. */
|
||||
async function buildToolboxExportPayload(id) {
|
||||
const snapshot = await store.getExportSnapshot(id);
|
||||
if (!snapshot) return null;
|
||||
|
|
@ -490,7 +490,7 @@ export function useToolboxActions({ store, notify, creationTemplate, importConte
|
|||
sharesMaxBytes: sharesConfig?.maxBytes || 0,
|
||||
openShareToolbox: (id) => setShareToolboxId?.(id),
|
||||
buildToolboxExportPayload: (id) => (store.ready ? buildToolboxExportPayload(id) : Promise.resolve(null)),
|
||||
// Une toolbox reçue suit le même contrat que l'import de fichier : validée, copiée avec de nouveaux identifiants, sans association de jeu.
|
||||
/** Une toolbox reçue suit le même contrat que l'import de fichier : validée, copiée avec de nouveaux identifiants, sans association de jeu. */
|
||||
importReceivedToolbox: async (payload) => {
|
||||
if (!store.ready) throw new Error("Le stockage local n'est pas prêt.");
|
||||
const toolbox = await importToolboxPayload(validateToolboxImportPayload(payload, "single"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue