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:
Shinuwa 2026-12-01 11:51:47 +01:00
parent 88c7bf8317
commit 166790245f
152 changed files with 1389 additions and 967 deletions

View file

@ -445,8 +445,10 @@ function ToolboxView({ siteContent, toolbox, toolboxGame, embedded, actions, sto
);
}
// Tiroir de toolbox. Sur une page de jeu, il montre la toolbox liée au jeu (`toolboxId`). Dans Sokko TCG (`chooser`), aucune liaison :
// il liste toutes les toolboxes, ouvre celle choisie et « Changer de toolbox » ramène à la liste.
/**
* Tiroir de toolbox. Sur une page de jeu, il montre la toolbox liée au jeu (`toolboxId`). Dans Sokko TCG (`chooser`), aucune liaison :
* il liste toutes les toolboxes, ouvre celle choisie et « Changer de toolbox » ramène à la liste.
*/
export function ToolboxDrawer({ gameId, game, toolboxId = "", chooser = null, siteContent, toolboxes, links, actions, storageUsage, storageReady = true, getModuleData, updateToolbox, updateModuleData, addImageFiles, visible = true, compact = false }) {
const checklist = useGuideChecklist();
const guideChecklist = !chooser && checklist.available && checklist.guideId.split("/")[0] === gameId ? checklist : undefined;
@ -519,8 +521,10 @@ export function ToolboxDrawer({ gameId, game, toolboxId = "", chooser = null, si
);
}
// Liste du tiroir de Sokko TCG : une bande par toolbox (grande illustration, nom, jeu lié), dans l'ordre de la page Toolboxes.
// Une nouvelle toolbox s'ouvre aussitôt dans le tiroir, sans être liée à rien.
/**
* Liste du tiroir de Sokko TCG : une bande par toolbox (grande illustration, nom, jeu lié), dans l'ordre de la page Toolboxes.
* Une nouvelle toolbox s'ouvre aussitôt dans le tiroir, sans être liée à rien.
*/
function ToolboxDrawerChooser({ toolboxes, getToolboxGame, onChoose, actions, content }) {
const create = () => actions.setCreateModal({ onCreated: (toolbox) => onChoose(toolbox.id) });
if (!toolboxes.length) return <section className="empty nds-empty-state drawer-toolbox-chooser-empty">