feat(progression): page /progression + section Dashboard Premium — patterns, exercices long terme, indice de préparation (Sprint 3.6c)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a752029c19
commit
a60c298605
18 changed files with 1005 additions and 7 deletions
|
|
@ -64,12 +64,17 @@
|
|||
- Helper `formatRelativeDate` (Intl.RelativeTimeFormat, zéro dépendance).
|
||||
- 102 tests frontend verts (+18 vs baseline 84).
|
||||
|
||||
## Sprint 3.6c — Analyse patterns (Premium)
|
||||
- Backend : GET /users/patterns — agrégation SQL erreurs_codes sur 5 dernières productions
|
||||
- Backend : exercices long terme générés par DeepSeek sur patterns confirmés (≥ 3/5)
|
||||
- Backend : indice de préparation 0→100
|
||||
- Frontend : Dashboard Premium — section "Mon profil de préparation"
|
||||
- Frontend : erreurs récurrentes + exercices long terme + indice
|
||||
## Sprint 3.6c — Analyse patterns (Premium) ✅
|
||||
- Backend : `GET /users/patterns` — agrégation des `erreurs_codes` sur les 5 dernières productions corrigées, seuil 3/5, tri DESC, cache `pattern_analyses` avec invalidation si nouvelle production plus récente que la dernière analyse.
|
||||
- Backend : exercices long terme générés par DeepSeek sur patterns confirmés — format `{ consigne, exemple, correction, astuce }` avec prompt dédié (température 0.4, timeout 20 s). Dégradation gracieuse si DeepSeek échoue.
|
||||
- Backend : indice de préparation 0→100 — formule 60 % score moyen + 20 % régularité + 20 % tendance, messages figés (`<40`, `40-70`, `>70`).
|
||||
- Backend : migration SQL `005_sprint_3_6c_pattern_analyses.sql` (RLS SELECT par user_id, index composite, CHECK constraints).
|
||||
- Backend : 205 tests verts (+19 vs baseline 186).
|
||||
- Frontend : page `/progression` — orchestration hero (indice + jauge), liste patterns, cartes exercices long terme, footer « il y a X » ; gate plan via `hasAccess('pattern_analysis')` (Free/Standard → aperçu flouté + upgrade).
|
||||
- Frontend : `PatternExerciceCard` — composant lesson-style dédié (non interactif, UX distincte de `ExerciceInteractive`) avec encart astuce proéminent.
|
||||
- Frontend : Dashboard Premium — section compacte `MonProfilPreparation` (MetricCard indice + nb patterns + CTA vers `/progression`). Absente pour Free/Standard.
|
||||
- Frontend : hook `usePatterns` (staleTime 60 s, cache partagé entre page et dashboard, `enabled` conditionné par feature).
|
||||
- Frontend : 115 tests verts (+13 vs baseline 102).
|
||||
|
||||
## Sprint 4 — Simulations EO (audio)
|
||||
16. MediaRecorder + upload audio EO T1/T3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue