What: Add an endpoint that returns comprehensive learning statistics (total time studied, courses completed, skills acquired, learning velocity).
Why: Users need a comprehensive view of their learning journey. Individual metrics are scattered across different endpoints.
Scope: Create endpoint that aggregates: total courses completed, total quizzes taken, average score, total credits earned, badges earned, learning streak, estimated total study time.
Acceptance criteria:
- Returns comprehensive learning stats
- Includes calculated metrics (velocity, estimated time)
- Cached for 5 minutes
- Stats are accurate and up-to-date
Technical context: src/modules/users/user.service.ts — user queries. src/database/schema.ts — all relevant tables.
What: Add an endpoint that returns comprehensive learning statistics (total time studied, courses completed, skills acquired, learning velocity).
Why: Users need a comprehensive view of their learning journey. Individual metrics are scattered across different endpoints.
Scope: Create endpoint that aggregates: total courses completed, total quizzes taken, average score, total credits earned, badges earned, learning streak, estimated total study time.
Acceptance criteria:
Technical context:
src/modules/users/user.service.ts— user queries.src/database/schema.ts— all relevant tables.