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,18 @@
|
|||
/**
|
||||
* @file Regroupe les actions métier de création, import/export, lien et édition toolbox.
|
||||
* @file Actions sur les toolboxes, au-dessus du stockage : créer, renommer, supprimer, réordonner, importer et
|
||||
* exporter, lier à un jeu, ajouter un outil depuis la Librairie, créer une checklist depuis un guide, ajouter
|
||||
* des images, notifications.
|
||||
*
|
||||
* Contexte : couche métier entre l'interface et useIndexedToolboxes.js ; elle prépare les données (validation,
|
||||
* copies, compaction) puis confie l'écriture au store.
|
||||
* Points d'entrée : `useToolboxActions({ store, … })`, qui renvoie l'objet `actions` (createToolbox,
|
||||
* importToolbox, deleteToolbox, linkToolboxToGame, addLibraryToolToToolbox, updateModuleData…).
|
||||
* Utilisé par : main.jsx, qui transmet `actions` aux pages et overlays.
|
||||
* Dépend de : storage/toolboxStorage.js, storage/toolboxImportValidation.js, storage/autoBackup.js,
|
||||
* toolboxSpaceUtils.js.
|
||||
* Attention : une action renvoie `null` tant que le stockage n'est pas prêt ; un import n'annonce son succès
|
||||
* qu'après le commit de sa transaction.
|
||||
* @see docs/STORAGE_SCHEMA.md
|
||||
*/
|
||||
|
||||
import {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue