Capstone: ship Smart Ledger
Assemble the product
This capstone starts empty—there is no fake ledger. A real user adds their own transactions. The app validates and normalizes input, stores amounts as agorot, persists locally, derives KPIs, filters rows, deletes entries, and exports a JSON backup.
The export is a real artifact. The storage is real browser storage. The only limitation is deliberate: this learning project never connects to a bank and never asks for banking credentials.
Instructions
Implement loadTransactions and saveTransactions using localStorage and JSON.
Indice : Restore [] on parse failure; stringify transactions on every mutation.
Où faut-il écrire ça ?
// Assemble: load/save, validation, add/delete, derived KPIs, filter, and JSON export.Écrivez-le à la ligne 5 — sous ce commentaire, après le code que vous avez déjà ajouté.
Validate and normalize input in createTransaction.
Render KPIs and filtered rows from the transactions array.
Implement add and delete flows, saving after each mutation.
Export a real JSON backup with Blob and URL.createObjectURL.
Votre code
Décrivez ce que vous voulez créer pour cette étape et je rédige le code — puis cliquez sur Appliquer pour l'insérer dans votre éditeur. Cette étape : Implement loadTransactions and saveTransactions using localStorage and JSON.