Parent PRD
#41
What to build
Surface gamification stats in two remaining UI locations (merged slice):
- Dashboard summary card (
app/routes/dashboard.tsx) — a card showing current XP, level, progress toward next level, current streak, and longest streak, shown when the student logs in. See PRD "UI Placement" (Dashboard), user story 11.
- Module-completion toast — when a student completes the last lesson in a module, show a Sonner toast with the total XP earned across that module's lessons, e.g. "Module complete! +40 XP earned". No per-lesson XP toast. See PRD "UI Placement" (Module completion toast), user story 10.
Both consume stats/XP already produced by the foundation and streak slices.
Acceptance criteria
Blocked by
User stories addressed
- User story 10
- User story 11
Parent PRD
#41
What to build
Surface gamification stats in two remaining UI locations (merged slice):
app/routes/dashboard.tsx) — a card showing current XP, level, progress toward next level, current streak, and longest streak, shown when the student logs in. See PRD "UI Placement" (Dashboard), user story 11.Both consume stats/XP already produced by the foundation and streak slices.
Acceptance criteria
positionorderingpnpm testand typecheck passBlocked by
User stories addressed