Give Sokko TCG's interface files headers that explain their role, callers and pitfalls

Document the page, API client, offline cache, card renderer, quest pages and
admin dashboard: how stale responses are ignored, where the CSRF token lives,
which requests are idempotent and what the admin checks really protect. Fix
the Broken Mirror headers that still described two levels instead of three,
and the cards README that still described the stale-response bug as open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-12-01 09:56:58 +01:00
parent 73bd5ae21c
commit 34b412d968
21 changed files with 175 additions and 42 deletions

View file

@ -1,5 +1,12 @@
/**
* @file Crée des campagnes (un code à annoncer, des cartes et paquets offerts) et suit leurs utilisations.
* @file Section « Codes cadeaux » de l'administration : création de campagnes (un code à annoncer, des cartes et
* des paquets offerts), duplication, prolongation, révocation et suivi des utilisations.
*
* Utilisé par : AdminPanel.jsx (section `codes`).
* Dépend de : cardsApi.js (`createCampaign`, `extendCampaign`, `revokeCampaign`, `loadCampaignDetail`),
* catalogLookup.js.
* Attention : le serveur valide la récompense (services/cards/rewards.js) ; les contrôles d'ici servent seulement
* à guider la saisie.
*/
import { Tooltip } from "../../../components/Tooltip.jsx";