Commit Graph
16 Commits
Author SHA1 Message Date
Claude b2149ad0a6 fix(ui): message clair quand l'onglet est périmé après un déploiement
« Server Action "…" was not found on the server » n'est pas une panne du
snapshot : Next.js identifie chaque Server Action par un hash calculé à la
compilation, et un onglet ouvert avant un nouveau build continue d'envoyer les
anciens identifiants. La seule issue est de recharger la page.

- src/lib/stale-action.ts : détection de cette erreur + message utilisateur.
- Grille et Snapshots : au lieu d'afficher l'erreur technique brute, on propose
  « Recharger la page ». Les brouillons de la Grille sont persistés
  (localStorage), recharger ne perd rien.
- SuccessModal accepte `variant="error"` : icône d'alerte rouge au lieu de la
  coche verte, et surtout plus de fermeture automatique au bout de 3 s — un
  message d'échec doit rester lisible. Les erreurs s'affichaient jusqu'ici sous
  une coche de succès.
- SuccessModal accepte une action secondaire optionnelle, et joue son animation
  d'entrée en CSS au lieu d'un setState synchrone dans un effet.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DfqUihgixw4K1AmJhizWiu
2026-07-29 12:40:16 +00:00
Michael 05549fbde5 fix: add cache revalidation to snapshot APIs and fix imports 2026-03-10 16:29:45 +01:00
Michael 85972b287d fix: restore anonymous snapshot visibility and deletion 2026-03-10 16:16:23 +01:00
Michael 8237cf2d9f fix: snapshot deletion, restore grid logic and add diagnostic API 2026-03-10 16:07:24 +01:00
Michael 43c625c3ec feat: Introduce SnapshotList component for managing user snapshots and exports, leveraging a new ConfirmModal. 2026-02-22 14:43:48 +01:00
Michael bab862bf5c feat: Add server-side function getSnapshots to retrieve session snapshots from the database. 2026-02-22 14:39:42 +01:00
Michael d6e313f945 feat: Implement a snapshots feature with a list component and a dedicated page to manage and restore saved sessions. 2026-02-22 14:37:19 +01:00
Michael 359d196c4d feat: implement user authentication and authorization with NextAuth, including user schema, password hashing, and role-based access control. 2026-02-22 14:11:36 +01:00
Michael c842c2447a feat: Implement snapshot and export listing, restoration, and deletion with a new success modal and floating summary bar. 2026-02-22 13:54:24 +01:00
Michael a93b1b36fc feat: Implement snapshot and export management, including API endpoints, database schema, and UI for listing, saving, loading, and deleting. 2026-02-22 13:49:51 +01:00
Michael 7288b3da72 feat: implement server-side function to save session snapshots, including input validation and database table creation fallback. 2026-02-22 13:41:49 +01:00
Michael 0bec6b953b feat: implement server action to save session snapshots, including table auto-creation. 2026-02-22 13:39:01 +01:00
Michael 3b3021d85f feat: Add API to save session snapshots and initialize the corresponding database table. 2026-02-22 13:35:34 +01:00
Michael 77fb61ef79 feat: Add floating summary bar with draft management, snapshot, and Excel export functionalities. 2026-02-22 13:31:38 +01:00
Michael c9cf83d4c7 feat: implement session snapshot creation and history viewing with new pages and components. 2026-02-22 13:29:12 +01:00
Michael 3544c0c898 feat(grid): ajout algorithme score produit avec parametrage dynamique et page d'aide 2026-02-21 04:00:51 +01:00