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

@ -6,7 +6,7 @@
export const CARDS_TOOLBOX_TARGET_ID = "sokko-tcg";
// Le même tiroir reste ouvert d'une section de Sokko TCG à l'autre (Guilde, Expéditions, Collection…), administration comprise.
/** Le même tiroir reste ouvert d'une section de Sokko TCG à l'autre (Guilde, Expéditions, Collection…), administration comprise. */
export function getRouteToolboxTargetId(route) {
const gameMatch = route.match(/^\/games\/([^/]+)/);
// `/games/sokko-tcg` n'est pas une page de jeu : elle n'ouvre pas le tiroir de Sokko TCG.
@ -14,7 +14,7 @@ export function getRouteToolboxTargetId(route) {
return route === "/cards" || route.startsWith("/cards/") ? CARDS_TOOLBOX_TARGET_ID : "";
}
// Toolbox affichée par le tiroir : celle liée au jeu, ou celle choisie dans Sokko TCG tant qu'elle existe encore.
/** Toolbox affichée par le tiroir : celle liée au jeu, ou celle choisie dans Sokko TCG tant qu'elle existe encore. */
export function getDrawerToolboxId(targetId, links, cardsToolboxId, toolboxes) {
if (!targetId) return "";
if (targetId !== CARDS_TOOLBOX_TARGET_ID) return links[targetId] || "";