Stop new code from skipping its JSDoc or SassDoc, and tell agents to fix old gaps as they go
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 24m10s
Validate and deploy Sokko G / deploy (push) Successful in 19s

A ratchet test fails on any new exported function without a JSDoc block and
keeps the list of the 496 older ones only shrinking. Every Sass sheet must now
start with its role header, not only the listed ones. The root, website, styles
and tests AGENTS.md files say to document new declarations at once and to
complete an undocumented one whenever it is modified.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-12-01 16:34:47 +01:00
parent db93420daf
commit 2f3c371d7b
11 changed files with 623 additions and 2 deletions

View file

@ -523,3 +523,4 @@
{"id":"int-f3f7a71bcd3bb9af26870ccc2ac33360","kind":"field_change","created_at":"2026-12-01T14:12:12.498260709Z","actor":"Shinuwa","issue_id":"sokko-g-thd8","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Requête de conteneur sur .nebula-card-summary : 2 × 2 sous 31,5rem de large, quelle que soit la fenêtre. Vérifié de 375 à 1280 px ; parcours E2E à 768 px."}}
{"id":"int-a989535f032bdd9bfef68d44c0f1fa5d","kind":"field_change","created_at":"2026-12-01T15:10:39.274660548Z","actor":"Shinuwa","issue_id":"sokko-g-2ni0","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"17 cartes au caractère marqué reçoivent un archétype existant ; 17 restent équilibrées avec un penchant léger tiré de leur texte, le Gecko garde le profil de la collection. Simulation et test d'équilibrage OK, guides à jour."}}
{"id":"int-3057bc99910598e9893f56c3ada9c6ad","kind":"field_change","created_at":"2026-12-01T15:22:31.938418272Z","actor":"Shinuwa","issue_id":"sokko-g-ls6r","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"156 mixins et fonctions documentés en SassDoc, 10 mixins inutilisés supprimés (CSS produit identique), garde-fou dans tests/static-styles.test.mjs, convention dans website/AGENTS.md."}}
{"id":"int-0fb1dce0186811918733b7c3d55135f5","kind":"field_change","created_at":"2026-12-01T15:34:42.418321329Z","actor":"Shinuwa","issue_id":"sokko-g-u82a","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Cliquet tests/function-docs.test.mjs (496 exceptions), en-tête // Rôle : vérifié sur toutes les feuilles, règles dans AGENTS.md racine, website, styles et tests."}}

View file

@ -22,6 +22,7 @@ Lire le fichier d'instructions le plus proche du code modifié avant d'interveni
- Concevoir l'interface pour un ordinateur utilisé en plein écran ou en demi-écran, avec `768px` comme largeur minimale validée. Ne pas créer de navigation, de composant ou de parcours propre au téléphone. Sous `768px`, préserver seulement l'accès au contenu et empêcher les débordements globaux, sans optimiser le confort d'usage.
- Ne pas réintroduire de fallback massif type `DEFAULT_SITE_CONTENT` dans le code React.
- Chaque fichier source ou test commence par un en-tête : bloc JSDoc `/** @file … */` en JS/JSX/MJS, `// Rôle : …` en SCSS, `# Rôle : …` en shell, avec un niveau de détail adapté au fichier (syntaxe et gabarit en trois niveaux dans `website/AGENTS.md`, section « En-têtes de fichiers »). Quand on modifie un fichier central dont l'en-tête n'a que sa description, le compléter dans la même modification.
- Les commentaires de déclaration suivent aussi un format (détails dans `website/AGENTS.md`, sections « Commentaires de fonctions » et « Commentaires Sass ») : une fonction exportée reçoit un bloc JSDoc `/** … */`, un mixin ou une fonction Sass un bloc SassDoc `///`. Une nouvelle déclaration est documentée dès sa création. Une déclaration existante qu'on modifie sans qu'elle ait son bloc le reçoit dans la même modification ; si c'est une fonction de `tests/fixtures/undocumented-exports.json`, la retirer de la liste avec `node tests/helpers/exported-functions.mjs --write`. Les tests `function-docs`, `file-headers` et `static-styles` font échouer `npm run check` en cas d'oubli.
- Le projet doit rester reprenable par un développeur humain : `ARCHITECTURE.md` (couches, dossiers, glossaire), `CONTRIBUTING.md` (recettes) et les `README.md` de dossier (`services/cards`, `website/src/features/cards`, `website/src/features/toolboxes`, `website/src/styles`, `tests`, `e2e`, `docs`) se mettent à jour dans la même modification que le code qu'ils décrivent.
- Ne pas lancer automatiquement un serveur sur `5174` si `5173` répond déjà.
- Avant de terminer une modification significative, lancer `npm run check`.

View file

@ -79,5 +79,6 @@ Voir `ARCHITECTURE.md` (couches, flux, carte des dossiers, glossaire) et les
Les règles du dépôt sont dans `AGENTS.md` (racine) et dans le `AGENTS.md` le plus
proche du code modifié. En particulier : en-têtes de fichiers `/** @file … */` (JS) ou
`// Rôle :` (SCSS) en trois niveaux (`website/AGENTS.md`), textes dans `website/public/data/site.json`,
`// Rôle :` (SCSS) en trois niveaux (`website/AGENTS.md`), JSDoc des fonctions exportées et SassDoc `///`
des mixins (nouvelles déclarations documentées, anciennes complétées quand on les modifie), textes dans `website/public/data/site.json`,
documentation humaine mise à jour avec le code.

View file

@ -15,3 +15,12 @@ Suivre `../docs/TEST_STRATEGY.md` pour choisir entre tests purs, contrôle du
serveur Node et parcours navigateur. Une assertion statique protège un contrat
stable ou une frontière d'architecture ; elle ne remplace pas un scénario E2E
quand le risque porte sur une interaction, le focus ou le rendu calculé.
## Garde-fous de documentation
`file-headers.test.mjs` (en-têtes JS), `static-styles.test.mjs` (en-têtes Sass
et SassDoc) et `function-docs.test.mjs` (JSDoc des fonctions exportées) vérifient
les conventions de `../website/AGENTS.md`. Ne pas les assouplir pour faire passer
une modification : documenter le code. La seule mise à jour permise de
`fixtures/undocumented-exports.json` est de la raccourcir, avec
`node tests/helpers/exported-functions.mjs --write`.

View file

@ -19,7 +19,7 @@ npm run test:cards # seulement le TCG
| `nebula-cards*.test.mjs` | Sokko TCG : règles pures, service avec une base SQLite en mémoire, API HTTP, Carte du jour, Expéditions et leur équilibrage, Équipe du jour, Miroir brisé |
| `server-*.test.mjs`, `static-app.test.mjs`, `deployment-workflow.test.mjs`, `project-env.test.mjs` | Serveur Node (cache, robustesse), application construite, livraison, lecture du `.env` |
| `toolbox-modules.test.mjs`, `static-toolboxes.test.mjs`, `persistence-queue.test.mjs`, `deferred-module-data.test.mjs`, `quota-refresh.test.mjs`, `auto-backup.test.mjs`, `library-copy.test.mjs` | Toolboxes : normalisation des outils, file d'écriture, médias différés, sauvegarde, copie depuis la Librairie |
| `file-headers.test.mjs`, `static-styles.test.mjs`, `react-lint.test.mjs`, `toolbox-compactors.test.mjs` | Règles d'architecture vérifiées sur les sources : en-têtes `/** @file … */` du JS (rubriques des fichiers centraux et des gros fichiers) et `// Rôle :` des feuilles Sass, blocs SassDoc `///` des mixins et fonctions, compacteur de chaque outil, taille des feuilles Sass, chargement des styles du TCG, règles React |
| `file-headers.test.mjs`, `function-docs.test.mjs`, `static-styles.test.mjs`, `react-lint.test.mjs`, `toolbox-compactors.test.mjs` | Règles d'architecture vérifiées sur les sources : en-têtes `/** @file … */` du JS (rubriques des fichiers centraux et des gros fichiers), JSDoc des fonctions exportées (cliquet sur `fixtures/undocumented-exports.json`) et `// Rôle :` des feuilles Sass, blocs SassDoc `///` des mixins et fonctions, compacteur de chaque outil, taille des feuilles Sass, chargement des styles du TCG, règles React |
| `aniimo*.test.mjs`, `static-games.test.mjs`, `guide-checklist.test.mjs` | Guides de jeux |
| `holo-flares.test.mjs`, `finish-availability.test.mjs` | Effets visuels des cartes |

498
tests/fixtures/undocumented-exports.json vendored Normal file
View file

@ -0,0 +1,498 @@
[
"scripts/load-project-env.mjs: loadProjectEnv",
"server.mjs: createStaticServer",
"server.mjs: startServer",
"services/cards/api.js: createCardsApiHandler",
"services/cards/backup.js: backupCardsDatabase",
"services/cards/backup.js: verifyCardsDatabase",
"services/cards/daily-clues.js: loadDailyClues",
"services/cards/daily-image.js: createDailyImageRenderer",
"services/cards/expedition-content.js: loadExpeditionDestinations",
"services/cards/expedition-content.js: validateExpeditionDestinations",
"services/cards/expedition-settings.js: readPath",
"services/cards/game-rules.js: calculateRecharge",
"services/cards/game-rules.js: spendOpening",
"services/cards/mirror-image.js: createMirrorImageRenderer",
"services/cards/mirror-service.js: loadMirrorMeasures",
"services/cards/mirror-settings.js: mirrorSettingsError",
"services/cards/stardust.js: validateShopSetting",
"services/cards/team-settings.js: dailyTeamSettingsError",
"services/shares/api.js: createSharesApiHandler",
"website/src/components/dropdownPlacement.js: placeDropdownMenu",
"website/src/features/cards/admin/adminFormat.js: formatRelative",
"website/src/features/cards/admin/adminSettings.js: inRange",
"website/src/features/cards/admin/adminSettings.js: parse",
"website/src/features/cards/admin/catalogLookup.js: buildCatalogLookup",
"website/src/features/cards/admin/catalogLookup.js: useCatalogLookup",
"website/src/features/cards/admin/catalogSettings.js: openingSettingFor",
"website/src/features/cards/admin/catalogSettings.js: withoutOpeningSetting",
"website/src/features/cards/admin/expeditionSettingFields.js: formatSettingValue",
"website/src/features/cards/admin/guildQuests.js: guildQuest",
"website/src/features/cards/admin/guildQuests.js: questFigures",
"website/src/features/cards/admin/teamSettingFields.js: formatTeamSetting",
"website/src/features/cards/admin/teamSettingFields.js: teamSettingLabel",
"website/src/features/cards/admin/useAdminDashboard.js: useAdminDashboard",
"website/src/features/cards/cardCache.js: writeCardsCache",
"website/src/features/cards/cardsApi.js: acceptTransfer",
"website/src/features/cards/cardsApi.js: buyOpening",
"website/src/features/cards/cardsApi.js: buyShopPack",
"website/src/features/cards/cardsApi.js: cancelExpedition",
"website/src/features/cards/cardsApi.js: cancelTransfer",
"website/src/features/cards/cardsApi.js: chooseTeamCharacter",
"website/src/features/cards/cardsApi.js: claimExpedition",
"website/src/features/cards/cardsApi.js: claimReward",
"website/src/features/cards/cardsApi.js: completeOpening",
"website/src/features/cards/cardsApi.js: createCampaign",
"website/src/features/cards/cardsApi.js: declineTransfer",
"website/src/features/cards/cardsApi.js: deleteCardsAccount",
"website/src/features/cards/cardsApi.js: departExpedition",
"website/src/features/cards/cardsApi.js: devLogin",
"website/src/features/cards/cardsApi.js: engraveEquipment",
"website/src/features/cards/cardsApi.js: extendCampaign",
"website/src/features/cards/cardsApi.js: flipDailyHint",
"website/src/features/cards/cardsApi.js: healTeamCompanion",
"website/src/features/cards/cardsApi.js: keepTeamCompanion",
"website/src/features/cards/cardsApi.js: leaveExpedition",
"website/src/features/cards/cardsApi.js: loadAdminDashboard",
"website/src/features/cards/cardsApi.js: loadAdminHistory",
"website/src/features/cards/cardsApi.js: loadCampaignDetail",
"website/src/features/cards/cardsApi.js: loadCardsConfig",
"website/src/features/cards/cardsApi.js: loadCardsReserve",
"website/src/features/cards/cardsApi.js: loadCardsSession",
"website/src/features/cards/cardsApi.js: loadCardsState",
"website/src/features/cards/cardsApi.js: loadDaily",
"website/src/features/cards/cardsApi.js: loadExpeditions",
"website/src/features/cards/cardsApi.js: loadMirror",
"website/src/features/cards/cardsApi.js: loadTeam",
"website/src/features/cards/cardsApi.js: loadTraders",
"website/src/features/cards/cardsApi.js: logoutCards",
"website/src/features/cards/cardsApi.js: markStarterSeen",
"website/src/features/cards/cardsApi.js: openGiftPack",
"website/src/features/cards/cardsApi.js: recallExpedition",
"website/src/features/cards/cardsApi.js: rerollTeamOffer",
"website/src/features/cards/cardsApi.js: resetTeam",
"website/src/features/cards/cardsApi.js: revealTeamStar",
"website/src/features/cards/cardsApi.js: revokeCampaign",
"website/src/features/cards/cardsApi.js: setCollectionActive",
"website/src/features/cards/cardsApi.js: setDropRates",
"website/src/features/cards/cardsApi.js: setFavorite",
"website/src/features/cards/cardsApi.js: startExpedition",
"website/src/features/cards/cardsApi.js: startRace",
"website/src/features/cards/cardsApi.js: updateCardMythic",
"website/src/features/cards/cardsApi.js: updateCollectionMythicOpening",
"website/src/features/cards/cardsApi.js: updateExpeditionSettings",
"website/src/features/cards/cardsApi.js: updateMirrorSettings",
"website/src/features/cards/cardsApi.js: updateMythicFinish",
"website/src/features/cards/cardsApi.js: updateMythicFlare",
"website/src/features/cards/cardsApi.js: updateMythicTuning",
"website/src/features/cards/cardsApi.js: updateRechargeSetting",
"website/src/features/cards/cardsApi.js: updateShopSetting",
"website/src/features/cards/cardsApi.js: updateTeamSettings",
"website/src/features/cards/dropRates.js: formatPercent",
"website/src/features/cards/guildQuests.js: mirrorDone",
"website/src/features/cards/guildQuests.js: pendingQuestCount",
"website/src/features/cards/rendering/flareSprites.js: motifSprite",
"website/src/features/cards/rendering/flareSprites.js: streakSprite",
"website/src/features/cards/rendering/holoFireflies.js: createFireflies",
"website/src/features/cards/rendering/holoLightning.js: boltGeometry",
"website/src/features/cards/rendering/holoLightning.js: createLightning",
"website/src/features/cards/rendering/holoTwinkle.js: createTwinkle",
"website/src/features/cards/rewardText.js: describeReward",
"website/src/features/cards/stardustFormat.js: formatStardust",
"website/src/features/cards/useCardsConfig.js: useCardsConfig",
"website/src/features/games/CopyChecklistItemsButton.jsx: formatChecklistImportItems",
"website/src/features/games/CopyChecklistItemsButton.jsx: formatChecklistImportSections",
"website/src/features/games/aniimo/elementMatchups.js: calculateElementMatchups",
"website/src/features/games/aniimo/utils.js: aniimoAsset",
"website/src/features/games/aniimo/utils.js: aniimoLabel",
"website/src/features/games/aniimo/utils.js: createAniimoFilters",
"website/src/features/games/aniimo/utils.js: filterAniimoVariants",
"website/src/features/games/aniimo/utils.js: groupAniimoVariants",
"website/src/features/games/aniimo/utils.js: prepareAniimoData",
"website/src/features/games/diablo4/utils.js: formatCategory",
"website/src/features/games/diablo4/utils.js: getCategoryIconStyle",
"website/src/features/games/diablo4/utils.js: getCategoryId",
"website/src/features/games/diablo4/utils.js: getCategoryLabel",
"website/src/features/games/diablo4/utils.js: getFilteredDiablo4Affixes",
"website/src/features/games/diablo4/utils.js: normalizeText",
"website/src/features/games/guideChecklist.js: aniimoChecklistEntries",
"website/src/features/games/guideChecklist.js: getGuideChecklistEntries",
"website/src/features/games/guideChecklist.js: matchGuideChecklist",
"website/src/features/games/guideChecklist.js: normalizeGuideLabel",
"website/src/features/games/guideChecklist.js: toggleGuideChecklistRows",
"website/src/features/games/guideChecklist.js: validGuideAssociations",
"website/src/features/games/mhwilds/utils.js: assetPath",
"website/src/features/games/mhwilds/utils.js: getConditionValues",
"website/src/features/games/mhwilds/utils.js: getFilteredMhwildsItems",
"website/src/features/games/mhwilds/utils.js: getMhwildsFilterKey",
"website/src/features/games/mhwilds/utils.js: getUniqueConditionValues",
"website/src/features/games/mhwilds/utils.js: normalizeText",
"website/src/features/games/useGuideChecklist.js: useGuideChecklist",
"website/src/features/games/useGuideChecklist.js: useGuideChecklistPanel",
"website/src/features/toolboxes/ToolboxCard.jsx: formatDate",
"website/src/features/toolboxes/ToolboxCard.jsx: getGameCardBackground",
"website/src/features/toolboxes/ToolboxCard.jsx: getGameCardCover",
"website/src/features/toolboxes/ToolboxCoverEditor.jsx: createToolboxCoverDataUrl",
"website/src/features/toolboxes/ToolboxCoverEditor.jsx: getCoverCropSourceRect",
"website/src/features/toolboxes/modules/calculatorUtils.js: calculateExpression",
"website/src/features/toolboxes/modules/calculatorUtils.js: calculateRemainingValue",
"website/src/features/toolboxes/modules/calculatorUtils.js: createStoredFormula",
"website/src/features/toolboxes/modules/calculatorUtils.js: evaluateCalculatorEntries",
"website/src/features/toolboxes/modules/calculatorUtils.js: formatDisplayResult",
"website/src/features/toolboxes/modules/calculatorUtils.js: formatResult",
"website/src/features/toolboxes/modules/calculatorUtils.js: getChildren",
"website/src/features/toolboxes/modules/calculatorUtils.js: getDescendantIds",
"website/src/features/toolboxes/modules/calculatorUtils.js: getEditableFormula",
"website/src/features/toolboxes/modules/calculatorUtils.js: getEntriesInTreeOrder",
"website/src/features/toolboxes/modules/calculatorUtils.js: getEntryFormula",
"website/src/features/toolboxes/modules/calculatorUtils.js: getEntryResultLengthClass",
"website/src/features/toolboxes/modules/calculatorUtils.js: getResultLengthClass",
"website/src/features/toolboxes/modules/calculatorUtils.js: parseCalculatorCurrent",
"website/src/features/toolboxes/modules/calendarDraft.js: createDefaultDraft",
"website/src/features/toolboxes/modules/calendarDraft.js: getCalendarRepeatMode",
"website/src/features/toolboxes/modules/calendarDraft.js: getDateSpanDays",
"website/src/features/toolboxes/modules/calendarDraft.js: getDraftSelection",
"website/src/features/toolboxes/modules/calendarDraft.js: normalizeDraftAlertOffsets",
"website/src/features/toolboxes/modules/calendarDraft.js: normalizeDraftDateKey",
"website/src/features/toolboxes/modules/calendarDraft.js: normalizeDraftMonthlyRepeatBy",
"website/src/features/toolboxes/modules/calendarEventActions.js: buildCalendarEventFromDraft",
"website/src/features/toolboxes/modules/calendarEventActions.js: buildPastedCalendarEvent",
"website/src/features/toolboxes/modules/calendarEventActions.js: getCalendarDraftFromEvent",
"website/src/features/toolboxes/modules/calendarLayout.js: getMonthOccurrenceSegments",
"website/src/features/toolboxes/modules/calendarLayout.js: getWeekGridLayout",
"website/src/features/toolboxes/modules/calendarLayout.js: getWeekMinutePosition",
"website/src/features/toolboxes/modules/calendarLayout.js: layoutConcurrentOccurrences",
"website/src/features/toolboxes/modules/calendarUtils.js: addDays",
"website/src/features/toolboxes/modules/calendarUtils.js: addMonths",
"website/src/features/toolboxes/modules/calendarUtils.js: formatLocalDateKey",
"website/src/features/toolboxes/modules/calendarUtils.js: getCalendarAlertOffsets",
"website/src/features/toolboxes/modules/calendarUtils.js: getCalendarColorValue",
"website/src/features/toolboxes/modules/calendarUtils.js: getCalendarEventSurfaceVariant",
"website/src/features/toolboxes/modules/calendarUtils.js: getCalendarOccurrences",
"website/src/features/toolboxes/modules/calendarUtils.js: getCurrentCalendarOccurrence",
"website/src/features/toolboxes/modules/calendarUtils.js: getDateForMonthDay",
"website/src/features/toolboxes/modules/calendarUtils.js: getDateForWeekDay",
"website/src/features/toolboxes/modules/calendarUtils.js: getDaysInMonth",
"website/src/features/toolboxes/modules/calendarUtils.js: getEventDurationMs",
"website/src/features/toolboxes/modules/calendarUtils.js: getLocalDayIndex",
"website/src/features/toolboxes/modules/calendarUtils.js: getMonthEnd",
"website/src/features/toolboxes/modules/calendarUtils.js: getMonthGridDays",
"website/src/features/toolboxes/modules/calendarUtils.js: getMonthStart",
"website/src/features/toolboxes/modules/calendarUtils.js: getNextCalendarAlertTime",
"website/src/features/toolboxes/modules/calendarUtils.js: getWeekDays",
"website/src/features/toolboxes/modules/calendarUtils.js: getWeekStart",
"website/src/features/toolboxes/modules/calendarUtils.js: minutesToTimeValue",
"website/src/features/toolboxes/modules/calendarUtils.js: pad2",
"website/src/features/toolboxes/modules/calendarUtils.js: parseLocalDateKey",
"website/src/features/toolboxes/modules/calendarUtils.js: startOfLocalDay",
"website/src/features/toolboxes/modules/calendarUtils.js: timeValueToMinutes",
"website/src/features/toolboxes/modules/checklistUtils.js: appendChecklistItems",
"website/src/features/toolboxes/modules/checklistUtils.js: findChecklistSectionByItemId",
"website/src/features/toolboxes/modules/checklistUtils.js: getChecklistReorderItems",
"website/src/features/toolboxes/modules/checklistUtils.js: getSectionHideWhenComplete",
"website/src/features/toolboxes/modules/checklistUtils.js: isSectionComplete",
"website/src/features/toolboxes/modules/checklistUtils.js: keepChecklistSection",
"website/src/features/toolboxes/modules/checklistUtils.js: moveChecklistItem",
"website/src/features/toolboxes/modules/checklistUtils.js: moveChecklistItemToCategory",
"website/src/features/toolboxes/modules/checklistUtils.js: renameChecklistSection",
"website/src/features/toolboxes/modules/checklistUtils.js: updateChecklistItem",
"website/src/features/toolboxes/modules/combosUtils.js: createCombo",
"website/src/features/toolboxes/modules/combosUtils.js: createInput",
"website/src/features/toolboxes/modules/combosUtils.js: formatHoldLabel",
"website/src/features/toolboxes/modules/combosUtils.js: getComboCategory",
"website/src/features/toolboxes/modules/combosUtils.js: getHoldSeconds",
"website/src/features/toolboxes/modules/combosUtils.js: getInputLabel",
"website/src/features/toolboxes/modules/combosUtils.js: getPaletteColumns",
"website/src/features/toolboxes/modules/combosUtils.js: getPaletteGroups",
"website/src/features/toolboxes/modules/combosUtils.js: inputKey",
"website/src/features/toolboxes/modules/combosUtils.js: isDirectionInput",
"website/src/features/toolboxes/modules/combosUtils.js: normalizeCustomKey",
"website/src/features/toolboxes/modules/combosUtils.js: parseHoldSeconds",
"website/src/features/toolboxes/modules/combosUtils.js: setComboItemCategory",
"website/src/features/toolboxes/modules/equipmentPlannerOptions.js: createLocalId",
"website/src/features/toolboxes/modules/equipmentPlannerOptions.js: formatValue",
"website/src/features/toolboxes/modules/equipmentPlannerOptions.js: getCharacteristicCategories",
"website/src/features/toolboxes/modules/equipmentPlannerOptions.js: getEquipmentTabLabel",
"website/src/features/toolboxes/modules/equipmentPlannerOptions.js: getSocketItemName",
"website/src/features/toolboxes/modules/equipmentPlannerOptions.js: setItemCategory",
"website/src/features/toolboxes/modules/goalTreeDisplay.js: getDefaultGoalTreeItem",
"website/src/features/toolboxes/modules/goalTreeDisplay.js: getEffectiveGoalTreeProgressMode",
"website/src/features/toolboxes/modules/goalTreeDisplay.js: getGoalTreeAncestorIds",
"website/src/features/toolboxes/modules/goalTreeDisplay.js: getGoalTreeConvergenceKeepOpenIds",
"website/src/features/toolboxes/modules/goalTreeDisplay.js: getGoalTreeKindIcon",
"website/src/features/toolboxes/modules/goalTreeDisplay.js: getGoalTreeLinkedControlIds",
"website/src/features/toolboxes/modules/goalTreeDisplay.js: getGoalTreeNodeColor",
"website/src/features/toolboxes/modules/goalTreeDisplay.js: getGoalTreeNodeIcon",
"website/src/features/toolboxes/modules/goalTreeDisplay.js: getGoalTreeNodeIconColor",
"website/src/features/toolboxes/modules/goalTreeDisplay.js: getGoalTreeNodeTooltip",
"website/src/features/toolboxes/modules/goalTreeDisplay.js: getVisibleGoalTreeEdges",
"website/src/features/toolboxes/modules/goalTreeDisplay.js: getVisibleGoalTreeNodeIds",
"website/src/features/toolboxes/modules/goalTreeDisplay.js: isSingleValueGoalTreeNode",
"website/src/features/toolboxes/modules/goalTreeUtils.js: applyGoalTreeDueResets",
"website/src/features/toolboxes/modules/goalTreeUtils.js: calculateGoalTreeFormula",
"website/src/features/toolboxes/modules/goalTreeUtils.js: evaluateGoalTreeNodes",
"website/src/features/toolboxes/modules/goalTreeUtils.js: formatGoalTreeNumber",
"website/src/features/toolboxes/modules/goalTreeUtils.js: getGoalTreeChildren",
"website/src/features/toolboxes/modules/goalTreeUtils.js: getGoalTreeDescendantIds",
"website/src/features/toolboxes/modules/goalTreeUtils.js: getGoalTreeParentIds",
"website/src/features/toolboxes/modules/goalTreeUtils.js: getGoalTreeParentMap",
"website/src/features/toolboxes/modules/memosPlannerUtils.js: getLinkedTaskPlannerModules",
"website/src/features/toolboxes/modules/memosPlannerUtils.js: getMemosDataAfterPlannerRemoval",
"website/src/features/toolboxes/modules/memosPlannerUtils.js: getPlannerTaskTickerItems",
"website/src/features/toolboxes/modules/memosPlannerUtils.js: getTaskPlannerModules",
"website/src/features/toolboxes/modules/memosPlannerUtils.js: resolveMemosPlannerLink",
"website/src/features/toolboxes/modules/notepadUtils.js: formatUpdatedAt",
"website/src/features/toolboxes/modules/notepadUtils.js: getPlainText",
"website/src/features/toolboxes/modules/notepadUtils.js: isHtmlEmpty",
"website/src/features/toolboxes/modules/notepadUtils.js: queryBlockFormat",
"website/src/features/toolboxes/modules/notepadUtils.js: queryCommandState",
"website/src/features/toolboxes/modules/randomizer/randomizerUiUtils.js: describeWheelArc",
"website/src/features/toolboxes/modules/randomizer/randomizerUiUtils.js: formatDateTime",
"website/src/features/toolboxes/modules/randomizer/randomizerUiUtils.js: getWheelTargetRotation",
"website/src/features/toolboxes/modules/randomizer/randomizerUiUtils.js: hasReducedMotion",
"website/src/features/toolboxes/modules/randomizer/randomizerUiUtils.js: pickRandomItems",
"website/src/features/toolboxes/modules/randomizer/useTimeoutQueue.js: useTimeoutQueue",
"website/src/features/toolboxes/modules/randomizerUtils.js: addRandomizerHistory",
"website/src/features/toolboxes/modules/randomizerUtils.js: buildWheelSegments",
"website/src/features/toolboxes/modules/randomizerUtils.js: clampNumber",
"website/src/features/toolboxes/modules/randomizerUtils.js: createBalancedTeams",
"website/src/features/toolboxes/modules/randomizerUtils.js: drawWeightedEntries",
"website/src/features/toolboxes/modules/randomizerUtils.js: filterExclusionsForPlayers",
"website/src/features/toolboxes/modules/randomizerUtils.js: getDiceShape",
"website/src/features/toolboxes/modules/randomizerUtils.js: getValidWheelEntries",
"website/src/features/toolboxes/modules/randomizerUtils.js: rollDice",
"website/src/features/toolboxes/modules/resetUtils.js: getLatestDailyReset",
"website/src/features/toolboxes/modules/resetUtils.js: getLatestWeeklyReset",
"website/src/features/toolboxes/modules/resetUtils.js: parseResetTime",
"website/src/features/toolboxes/modules/rngSimulatorUtils.js: addRngSimulationHistory",
"website/src/features/toolboxes/modules/rngSimulatorUtils.js: calculateAtLeastOneProbability",
"website/src/features/toolboxes/modules/rngSimulatorUtils.js: calculateDrawsForChance",
"website/src/features/toolboxes/modules/rngSimulatorUtils.js: calculateDurationChances",
"website/src/features/toolboxes/modules/rngSimulatorUtils.js: calculateRngCostSummary",
"website/src/features/toolboxes/modules/rngSimulatorUtils.js: calculateRngRealDrawsSummary",
"website/src/features/toolboxes/modules/rngSimulatorUtils.js: calculateRngSummary",
"website/src/features/toolboxes/modules/rngSimulatorUtils.js: clampDecimal",
"website/src/features/toolboxes/modules/rngSimulatorUtils.js: clampInteger",
"website/src/features/toolboxes/modules/rngSimulatorUtils.js: getAveragePositionStatus",
"website/src/features/toolboxes/modules/rngSimulatorUtils.js: getDurationPresetsForAverageHours",
"website/src/features/toolboxes/modules/rngSimulatorUtils.js: getEffectiveRate",
"website/src/features/toolboxes/modules/rngSimulatorUtils.js: isValidRateString",
"website/src/features/toolboxes/modules/rngSimulatorUtils.js: normalizeCostString",
"website/src/features/toolboxes/modules/rngSimulatorUtils.js: normalizeOccurrenceSettings",
"website/src/features/toolboxes/modules/rngSimulatorUtils.js: normalizeOccurrenceUnit",
"website/src/features/toolboxes/modules/rngSimulatorUtils.js: normalizeRateString",
"website/src/features/toolboxes/modules/rngSimulatorUtils.js: simulateRngDraws",
"website/src/features/toolboxes/modules/tableFormulaEngine.js: cellAddress",
"website/src/features/toolboxes/modules/tableFormulaEngine.js: columnIndexToName",
"website/src/features/toolboxes/modules/tableFormulaEngine.js: evaluateFormula",
"website/src/features/toolboxes/modules/tableFormulaEngine.js: evaluateTable",
"website/src/features/toolboxes/modules/tableFormulaEngine.js: evaluateTableCell",
"website/src/features/toolboxes/modules/tableFormulaEngine.js: isCellInBounds",
"website/src/features/toolboxes/modules/tableFormulaEngine.js: parseCellAddress",
"website/src/features/toolboxes/modules/tableUtils.js: clampCellPosition",
"website/src/features/toolboxes/modules/tableUtils.js: cleanCells",
"website/src/features/toolboxes/modules/tableUtils.js: cleanLabels",
"website/src/features/toolboxes/modules/tableUtils.js: estimateTextWidth",
"website/src/features/toolboxes/modules/tableUtils.js: getBoundsFromStartAndSize",
"website/src/features/toolboxes/modules/tableUtils.js: getCellBlock",
"website/src/features/toolboxes/modules/tableUtils.js: getColumnWidths",
"website/src/features/toolboxes/modules/tableUtils.js: getFormulaRangeText",
"website/src/features/toolboxes/modules/tableUtils.js: getRangeAddresses",
"website/src/features/toolboxes/modules/tableUtils.js: getRowHeaderWidth",
"website/src/features/toolboxes/modules/tableUtils.js: getSelectionBounds",
"website/src/features/toolboxes/modules/tableUtils.js: isCellInBounds",
"website/src/features/toolboxes/modules/tableUtils.js: isCellSelected",
"website/src/features/toolboxes/modules/tableUtils.js: isMultiCellSelection",
"website/src/features/toolboxes/modules/tableUtils.js: isSameBounds",
"website/src/features/toolboxes/modules/tableUtils.js: moveSelectionCells",
"website/src/features/toolboxes/modules/tableUtils.js: parseTsvBlock",
"website/src/features/toolboxes/modules/tableUtils.js: pasteCellBlock",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: applyDueResets",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: countCompletedTaskTree",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: countTaskTree",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: getBoundaryTaskId",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: getEffectiveTaskCategory",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: getNextDailyReset",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: getNextWeeklyReset",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: getRootTaskIdsForCategory",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: getTaskById",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: getTaskCategory",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: getTaskCategoryDataset",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: getTaskCategoryForParent",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: getTaskCategoryGroups",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: getTaskParentId",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: getTaskParentMap",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: getTaskResetTimeRemainingMs",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: getTaskTitle",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: getTaskTreeIds",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: getTaskTypeLabel",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: getTasksForParent",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: isTaskResetSoon",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: isTaskTreeComplete",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: moveTask",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: updateTaskQuantity",
"website/src/features/toolboxes/modules/taskPlannerUtils.js: updateTaskQuantityTarget",
"website/src/features/toolboxes/modules/textImport/basic.js: cloneImportedNotepadDrawings",
"website/src/features/toolboxes/modules/textImport/basic.js: exportCalculatorText",
"website/src/features/toolboxes/modules/textImport/basic.js: exportChecklistText",
"website/src/features/toolboxes/modules/textImport/basic.js: exportCountersText",
"website/src/features/toolboxes/modules/textImport/basic.js: exportLinksText",
"website/src/features/toolboxes/modules/textImport/basic.js: exportMemosText",
"website/src/features/toolboxes/modules/textImport/basic.js: exportNotepadText",
"website/src/features/toolboxes/modules/textImport/basic.js: exportTableTsv",
"website/src/features/toolboxes/modules/textImport/basic.js: importCalculatorText",
"website/src/features/toolboxes/modules/textImport/basic.js: importChecklistText",
"website/src/features/toolboxes/modules/textImport/basic.js: importCountersText",
"website/src/features/toolboxes/modules/textImport/basic.js: importLinksText",
"website/src/features/toolboxes/modules/textImport/basic.js: importMemosText",
"website/src/features/toolboxes/modules/textImport/basic.js: importNotepadText",
"website/src/features/toolboxes/modules/textImport/basic.js: importTableTsv",
"website/src/features/toolboxes/modules/textImport/combos.js: exportComboInput",
"website/src/features/toolboxes/modules/textImport/combos.js: exportCombosText",
"website/src/features/toolboxes/modules/textImport/combos.js: importCombosText",
"website/src/features/toolboxes/modules/textImport/combos.js: parseComboInput",
"website/src/features/toolboxes/modules/textImport/equipment.js: exportEquipmentPlannerText",
"website/src/features/toolboxes/modules/textImport/equipment.js: importEquipmentPlannerText",
"website/src/features/toolboxes/modules/textImport/media.js: exportImageAnnotationText",
"website/src/features/toolboxes/modules/textImport/media.js: exportImagesText",
"website/src/features/toolboxes/modules/textImport/media.js: importImageAnnotationText",
"website/src/features/toolboxes/modules/textImport/media.js: importImagesText",
"website/src/features/toolboxes/modules/textImport/planning.js: exportGoalTreeText",
"website/src/features/toolboxes/modules/textImport/planning.js: exportTaskPlannerText",
"website/src/features/toolboxes/modules/textImport/planning.js: importGoalTreeText",
"website/src/features/toolboxes/modules/textImport/planning.js: importTaskPlannerText",
"website/src/features/toolboxes/modules/textImport/planning.js: parseGoalTreeItemsMeta",
"website/src/features/toolboxes/modules/textImport/randomizer.js: exportRandomizerText",
"website/src/features/toolboxes/modules/textImport/randomizer.js: importRandomizerText",
"website/src/features/toolboxes/modules/textImport/rngSimulator.js: exportRngSimulatorText",
"website/src/features/toolboxes/modules/textImport/rngSimulator.js: importRngSimulatorText",
"website/src/features/toolboxes/modules/textImport/shared.js: cloneDrawingData",
"website/src/features/toolboxes/modules/textImport/shared.js: fail",
"website/src/features/toolboxes/modules/textImport/shared.js: formatMeta",
"website/src/features/toolboxes/modules/textImport/shared.js: isValidImageDataUrl",
"website/src/features/toolboxes/modules/textImport/shared.js: lineError",
"website/src/features/toolboxes/modules/textImport/shared.js: parseBoolean",
"website/src/features/toolboxes/modules/textImport/shared.js: parseColonImportLines",
"website/src/features/toolboxes/modules/textImport/shared.js: parseInteger",
"website/src/features/toolboxes/modules/textImport/shared.js: parseMetaLine",
"website/src/features/toolboxes/modules/textImport/shared.js: parseNumber",
"website/src/features/toolboxes/modules/textImport/shared.js: parsePipeParts",
"website/src/features/toolboxes/modules/textImport/shared.js: splitLines",
"website/src/features/toolboxes/modules/textImport/shared.js: textToNotepadExchangeHtml",
"website/src/features/toolboxes/modules/textImport/time.js: exportCalendarText",
"website/src/features/toolboxes/modules/textImport/time.js: exportTimerText",
"website/src/features/toolboxes/modules/textImport/time.js: formatCalendarEventMeta",
"website/src/features/toolboxes/modules/textImport/time.js: importCalendarText",
"website/src/features/toolboxes/modules/textImport/time.js: importTimerText",
"website/src/features/toolboxes/modules/textImport/time.js: parseCalendarAlertOffsets",
"website/src/features/toolboxes/modules/textImport/time.js: parseCalendarDayIndex",
"website/src/features/toolboxes/modules/timerOptions.js: canToggleAutoRefresh",
"website/src/features/toolboxes/modules/timerOptions.js: getAlertGuardMessage",
"website/src/features/toolboxes/modules/timerOptions.js: getCountdownMetaParts",
"website/src/features/toolboxes/modules/timerOptions.js: getCountdownValidationError",
"website/src/features/toolboxes/modules/timerOptions.js: handleEditableKeyDown",
"website/src/features/toolboxes/modules/timerOptions.js: hasTimePartValue",
"website/src/features/toolboxes/modules/timerOptions.js: isAlertGuarded",
"website/src/features/toolboxes/modules/timerUtils.js: formatDuration",
"website/src/features/toolboxes/modules/timerUtils.js: formatDurationWithCentiseconds",
"website/src/features/toolboxes/modules/timerUtils.js: formatTargetTime",
"website/src/features/toolboxes/modules/timerUtils.js: getCentiseconds",
"website/src/features/toolboxes/modules/timerUtils.js: getCountdownTargetMs",
"website/src/features/toolboxes/modules/timerUtils.js: getDailyTargetMs",
"website/src/features/toolboxes/modules/timerUtils.js: getIntervalAnchorMs",
"website/src/features/toolboxes/modules/timerUtils.js: getIntervalTargetMs",
"website/src/features/toolboxes/modules/timerUtils.js: getNowMs",
"website/src/features/toolboxes/modules/timerUtils.js: getTimePatternRecurrenceMs",
"website/src/features/toolboxes/modules/timerUtils.js: getTimePatternTargetMs",
"website/src/features/toolboxes/modules/timerUtils.js: normalizeTimePart",
"website/src/features/toolboxes/modules/timerUtils.js: normalizeTimeParts",
"website/src/features/toolboxes/modules/timerUtils.js: pad",
"website/src/features/toolboxes/modules/timerUtils.js: parseTimeString",
"website/src/features/toolboxes/modules/timerUtils.js: timePartsToDurationMs",
"website/src/features/toolboxes/modules/timerUtils.js: timePartsToString",
"website/src/features/toolboxes/modules/useCalendarController.js: useCalendarController",
"website/src/features/toolboxes/modules/useCalendarDraftControls.js: useCalendarDraftControls",
"website/src/features/toolboxes/modules/useCalendarLifecycle.js: useCalendarClock",
"website/src/features/toolboxes/modules/useCalendarLifecycle.js: useCalendarEditingReset",
"website/src/features/toolboxes/modules/useCalendarLifecycle.js: usePruneExpiredCalendarEvents",
"website/src/features/toolboxes/modules/useCombosEditorState.js: useCombosEditorState",
"website/src/features/toolboxes/modules/useCombosReorder.js: useCombosReorder",
"website/src/features/toolboxes/modules/useGoalTreeController.js: useGoalTreeController",
"website/src/features/toolboxes/modules/useTableClipboard.js: useTableClipboard",
"website/src/features/toolboxes/modules/useTableInteractions.js: useTableInteractions",
"website/src/features/toolboxes/modules/useTaskPlannerReorder.js: useTaskPlannerReorder",
"website/src/features/toolboxes/modules/useTextExchange.js: useTextExchange",
"website/src/features/toolboxes/sharing/shareCrypto.js: decryptSharePayload",
"website/src/features/toolboxes/sharing/shareCrypto.js: isShareKey",
"website/src/features/toolboxes/sharing/shareQuota.js: createShareQuota",
"website/src/features/toolboxes/sharing/useSharesConfig.js: useSharesConfig",
"website/src/features/toolboxes/storage/autoBackup.js: backupContentsEqual",
"website/src/features/toolboxes/storage/autoBackup.js: getBackupContentSignature",
"website/src/features/toolboxes/storage/autoBackup.js: getBackupFileName",
"website/src/features/toolboxes/storage/autoBackup.js: getDirectoryPermission",
"website/src/features/toolboxes/storage/autoBackup.js: getLocalDateKey",
"website/src/features/toolboxes/storage/autoBackup.js: hasBackupDataChanged",
"website/src/features/toolboxes/storage/autoBackup.js: isFileSystemAccessSupported",
"website/src/features/toolboxes/storage/autoBackup.js: normalizeAutoBackupConfig",
"website/src/features/toolboxes/storage/autoBackup.js: saveBackup",
"website/src/features/toolboxes/storage/modules/calculator.js: compactCalculatorDataForStorage",
"website/src/features/toolboxes/storage/modules/calculator.js: normalizeCalculatorData",
"website/src/features/toolboxes/storage/modules/calendar.js: compactCalendarDataForStorage",
"website/src/features/toolboxes/storage/modules/calendar.js: normalizeCalendarData",
"website/src/features/toolboxes/storage/modules/checklist.js: clampQty",
"website/src/features/toolboxes/storage/modules/checklist.js: compactChecklistDataForStorage",
"website/src/features/toolboxes/storage/modules/checklist.js: compactChecklistSectionForStorage",
"website/src/features/toolboxes/storage/modules/checklist.js: normalizeChecklistData",
"website/src/features/toolboxes/storage/modules/combos.js: compactCombosDataForStorage",
"website/src/features/toolboxes/storage/modules/combos.js: normalizeCombosData",
"website/src/features/toolboxes/storage/modules/counters.js: compactCountersDataForStorage",
"website/src/features/toolboxes/storage/modules/counters.js: normalizeCountersData",
"website/src/features/toolboxes/storage/modules/drawing.js: normalizeDrawingData",
"website/src/features/toolboxes/storage/modules/equipmentPlanner.js: compactEquipmentPlannerDataForStorage",
"website/src/features/toolboxes/storage/modules/equipmentPlanner.js: normalizeEquipmentPlannerData",
"website/src/features/toolboxes/storage/modules/equipmentPlanner.js: summarizeEquipmentPlannerData",
"website/src/features/toolboxes/storage/modules/goalTree.js: compactGoalTreeDataForStorage",
"website/src/features/toolboxes/storage/modules/goalTree.js: normalizeGoalTreeData",
"website/src/features/toolboxes/storage/modules/imageAnnotation.js: compactImageAnnotationDataForStorage",
"website/src/features/toolboxes/storage/modules/imageAnnotation.js: compactImagesDataForStorage",
"website/src/features/toolboxes/storage/modules/imageAnnotation.js: labelFromFileName",
"website/src/features/toolboxes/storage/modules/imageAnnotation.js: normalizeImageAnnotationData",
"website/src/features/toolboxes/storage/modules/links.js: compactLinksDataForStorage",
"website/src/features/toolboxes/storage/modules/links.js: hostnameFromUrl",
"website/src/features/toolboxes/storage/modules/links.js: normalizeLinksData",
"website/src/features/toolboxes/storage/modules/links.js: normalizeUrl",
"website/src/features/toolboxes/storage/modules/memos.js: compactMemosDataForStorage",
"website/src/features/toolboxes/storage/modules/memos.js: normalizeMemosData",
"website/src/features/toolboxes/storage/modules/notepad.js: compactNotepadDataForStorage",
"website/src/features/toolboxes/storage/modules/notepad.js: normalizeNotepadData",
"website/src/features/toolboxes/storage/modules/notepad.js: sanitizeNotepadHtml",
"website/src/features/toolboxes/storage/modules/randomizer.js: compactRandomizerDataForStorage",
"website/src/features/toolboxes/storage/modules/randomizer.js: normalizeRandomizerData",
"website/src/features/toolboxes/storage/modules/rngSimulator.js: compactRngSimulatorDataForStorage",
"website/src/features/toolboxes/storage/modules/rngSimulator.js: normalizeRngSimulatorData",
"website/src/features/toolboxes/storage/modules/table.js: compactTableDataForStorage",
"website/src/features/toolboxes/storage/modules/table.js: normalizeTableData",
"website/src/features/toolboxes/storage/modules/taskPlanner.js: compactTaskPlannerDataForStorage",
"website/src/features/toolboxes/storage/modules/taskPlanner.js: normalizeTaskPlannerData",
"website/src/features/toolboxes/storage/modules/timer.js: compactTimerDataForStorage",
"website/src/features/toolboxes/storage/modules/timer.js: normalizeTimerData",
"website/src/features/toolboxes/storage/persistenceQueue.js: createPersistenceQueue",
"website/src/features/toolboxes/storage/quotaRefresh.js: createQuotaRefresh",
"website/src/features/toolboxes/storage/toolboxImportValidation.js: validateToolboxImportPayload",
"website/src/features/toolboxes/storage/useAutoBackup.js: useAutoBackup",
"website/src/features/toolboxes/storage/useIndexedToolboxes.js: useIndexedToolboxes",
"website/src/features/toolboxes/useCardsToolboxChoice.js: useCardsToolboxChoice",
"website/src/features/toolboxes/useToolboxActions.js: useToolboxActions",
"website/src/hooks/useAppData.js: useAppData",
"website/src/hooks/useDraftForm.js: useDraftForm",
"website/src/hooks/useGameFilters.js: useGameFilters",
"website/src/hooks/useGuideChecklistStorage.js: useGuideChecklistStorage",
"website/src/hooks/useInlineEdit.js: useInlineEdit",
"website/src/hooks/useKeyedState.js: useKeyedState",
"website/src/hooks/useMediaQuery.js: useMediaQuery",
"website/src/hooks/usePointerReorder.js: usePointerReorder",
"website/src/hooks/useToolboxAlerts.js: useToolboxAlerts",
"website/src/utils/bodyScrollLock.js: lockBodyScroll",
"website/src/utils/collectionUtils.js: toggleListValue",
"website/src/utils/imageCompression.js: compressImage"
]

View file

@ -0,0 +1,25 @@
/**
* @file Cliquet de la JSDoc des fonctions exportées : aucune nouvelle fonction exportée sans bloc `/** … *\/`, et la liste
* des anciennes fonctions encore sans commentaire ne fait que raccourcir.
*
* Attention : une fonction documentée doit sortir de tests/fixtures/undocumented-exports.json dans la même modification
* (`node tests/helpers/exported-functions.mjs --write`). Ne jamais y ajouter une fonction nouvelle : la documenter.
* @see website/AGENTS.md
*/
import assert from "node:assert/strict";
import { readFile } from "node:fs/promises";
import { test } from "node:test";
import { BASELINE_PATH, undocumentedExports } from "./helpers/exported-functions.mjs";
test("new exported functions come with a JSDoc block", async () => {
const known = new Set(JSON.parse(await readFile(BASELINE_PATH, "utf8")));
const added = (await undocumentedExports()).filter((entry) => !known.has(entry));
assert.deepEqual(added, [], "Document these exported functions with a /** … */ block (see website/AGENTS.md)");
});
test("the list of undocumented exports only shrinks", async () => {
const current = new Set(await undocumentedExports());
const stale = JSON.parse(await readFile(BASELINE_PATH, "utf8")).filter((entry) => !current.has(entry));
assert.deepEqual(stale, [], `Remove these documented, renamed or deleted functions from ${BASELINE_PATH}: node tests/helpers/exported-functions.mjs --write`);
});

View file

@ -0,0 +1,53 @@
/**
* @file Repère les fonctions exportées sans bloc JSDoc au-dessus, pour le cliquet de tests/function-docs.test.mjs.
*
* Usage : `node tests/helpers/exported-functions.mjs --write` réécrit la liste des exceptions
* (tests/fixtures/undocumented-exports.json) d'après les sources. À lancer seulement pour la raccourcir après avoir
* documenté des fonctions, jamais pour y ajouter une fonction nouvelle.
* Attention : les composants React (nom en majuscule) ne sont pas comptés, l'en-tête de leur fichier les décrit déjà.
* Une directive `// eslint-…` peut séparer le bloc JSDoc de la fonction.
* @see website/AGENTS.md
*/
import { readdir, readFile, writeFile } from "node:fs/promises";
import { join } from "node:path";
import { fileURLToPath } from "node:url";
const ROOTS = ["website/src", "services", "scripts"];
const ROOT_FILES = ["server.mjs"];
const SOURCE = /\.(js|jsx|mjs)$/;
const EXPORTED = /^export\s+(?:default\s+)?(?:async\s+)?(?:function\*?\s+(\w+)|const\s+(\w+)\s*=\s*(?:async\s+)?(?:\([^)]*\)|\w+)\s*=>|const\s+(\w+)\s*=\s*(?:async\s+)?function)/;
export const BASELINE_PATH = "tests/fixtures/undocumented-exports.json";
async function sourceFiles() {
const files = [...ROOT_FILES];
for (const root of ROOTS) {
const entries = await readdir(root, { recursive: true });
files.push(...entries.filter((entry) => SOURCE.test(entry) && !entry.includes("node_modules")).map((entry) => join(root, entry)));
}
return files.sort();
}
/** Fonctions exportées (hors composants React) sans bloc JSDoc au-dessus, sous la forme `chemin: nom`, triées. */
export async function undocumentedExports() {
const missing = [];
for (const file of await sourceFiles()) {
const lines = (await readFile(file, "utf8")).split("\n");
lines.forEach((line, index) => {
const match = line.match(EXPORTED);
if (!match) return;
const name = match.slice(1).find(Boolean);
if (/^[A-Z]/.test(name)) return;
let above = index - 1;
while (above >= 0 && lines[above].trimStart().startsWith("// eslint")) above -= 1;
if (!lines[above]?.trimEnd().endsWith("*/")) missing.push(`${file}: ${name}`);
});
}
return missing.sort();
}
if (process.argv[1] === fileURLToPath(import.meta.url) && process.argv.includes("--write")) {
const missing = await undocumentedExports();
await writeFile(BASELINE_PATH, `${JSON.stringify(missing, null, 2)}\n`);
console.log(`${missing.length} fonctions exportées sans JSDoc enregistrées dans ${BASELINE_PATH}`);
}

View file

@ -166,3 +166,13 @@ test("every Sass mixin and function has a SassDoc block", async () => {
}
assert.deepEqual(missing, [], "Describe these with a /// SassDoc block (see website/AGENTS.md)");
});
test("every Sass sheet starts with a role header", async () => {
const root = "website/src/styles";
const paths = (await readdir(root, { recursive: true })).filter((path) => path.endsWith(".scss"));
const missing = [];
for (const path of paths) {
if (!(await readFile(`${root}/${path}`, "utf8")).startsWith("// Rôle :")) missing.push(path);
}
assert.deepEqual(missing, [], "Start these sheets with a // Rôle : … header (see website/AGENTS.md)");
});

View file

@ -145,6 +145,17 @@ qu'elle renvoie, ce qu'elle fait d'une valeur absente ou invalide, et si elle
modifie son argument sur place. Un composant React n'en a pas besoin : l'en-tête
du fichier le décrit déjà.
Environ 500 fonctions exportées plus anciennes n'ont pas encore de bloc ; elles
sont listées dans `tests/fixtures/undocumented-exports.json`. Le test
`tests/function-docs.test.mjs` fonctionne comme un cliquet :
- une fonction exportée **nouvelle** sans bloc JSDoc fait échouer
`npm run check` : la documenter, ne jamais l'ajouter à la liste ;
- quand on **modifie** une fonction de la liste, on la documente au passage,
puis on régénère la liste avec `node tests/helpers/exported-functions.mjs --write`
(le test échoue aussi tant qu'une fonction documentée, renommée ou supprimée y
reste). La liste ne fait que raccourcir.
### Commentaires Sass (SassDoc)
Chaque `@mixin` et chaque `@function` reçoit un bloc SassDoc `///` juste

View file

@ -19,3 +19,15 @@ Privilégier :
- les patterns visuels déjà présents pour les cards, panels, badges, scrollbars et hovers.
Éviter les styles isolés qui ne réutilisent pas le thème.
## Commentaires
- Chaque feuille commence par `// Rôle : …` (gabarit en trois niveaux dans
`../../AGENTS.md`, section « En-têtes de fichiers »).
- Chaque `@mixin` et `@function` a un bloc SassDoc `///` juste au-dessus :
une phrase sur ce qu'il dessine et quand l'utiliser, `@param` avec les valeurs
acceptées, `@see` vers le mixin qui va avec, `@return` pour une fonction
(gabarit dans `../../AGENTS.md`, section « Commentaires Sass »). Un mixin
nouveau est documenté dès sa création ; un mixin modifié garde un bloc à jour.
- Un mixin que plus rien n'inclut se supprime.
- `tests/static-styles.test.mjs` vérifie les deux règles.