Give the toolbox files headers that explain their role, callers and pitfalls
Document the storage chain (optimistic state, write queue, compare-and-write transactions, cross-tab sync), the tool registry, actions and pages, the contract a tool receives through its context, and the encrypted sharing whose key never reaches the server. The compactor registry header no longer calls itself strict: a missing compactor writes data as-is, now tracked in sokko-g-afbw. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
34b412d968
commit
fe21c2d899
25 changed files with 210 additions and 24 deletions
|
|
@ -1,5 +1,15 @@
|
|||
/**
|
||||
* @file Affiche les pages toolbox, le panneau latéral et leurs contrôles.
|
||||
* @file Pages des toolboxes : la liste (`#/toolboxes`), la page d'une toolbox (`#/toolbox/<id>`) avec ses espaces
|
||||
* et ses outils, et le tiroir ouvert à côté d'un jeu ou de Sokko TCG.
|
||||
*
|
||||
* Contexte : construit le `context` passé à chaque outil (lecture et écriture de ses données, normalisateurs,
|
||||
* textes, notifications) ; les outils ne touchent jamais IndexedDB eux-mêmes.
|
||||
* Points d'entrée : `ToolboxesPage`, `ToolboxPage`, `ToolboxDrawer`.
|
||||
* Utilisé par : router/RouteContent.jsx (pages), main.jsx (tiroir, chargé à la demande).
|
||||
* Dépend de : modules/index.jsx, ToolboxSpaces.jsx, ToolboxCard.jsx, toolboxSpaceUtils.js, storage/toolboxStorage.js.
|
||||
* Attention : un nouvel élément partagé par les outils s'ajoute au `moduleContext` ici et à celui de
|
||||
* pages/LibraryPage.jsx, qui fournit le même contrat en mémoire pour les démonstrations.
|
||||
* @see website/src/features/toolboxes/README.md
|
||||
*/
|
||||
|
||||
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue