Commit graph

3 commits

Author SHA1 Message Date
Lasse Rune Hansen
c1e3c37843 feat(backend/auth): Enforce authentication on LessonsEndpoints minimal API GET endpoints
- Added .RequireAuthorization() to all GET endpoints in LessonsEndpoints.cs
  - /api/lessons
  - /api/lessons/{id}
  - /api/lessons/beginner
  - /api/lessons/advanced
  - /api/lessons/level/{level}
- Updated admin-module.md feature documentation
  - Marked all acceptance criteria as complete
  - Updated functional requirements status to Complete
  - Updated Definition of Done criteria
  - Added note about Phase 4 completion

This ensures all learning content endpoints now require JWT authentication,
completing the Phase 4 Admin Module authentication enforcement requirement.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-14 17:03:30 +02:00
Lasse Rune Hansen
70af326ca7 feat(frontend/admin): Complete Admin Module implementation
- Add AdminLayout component for consistent admin UI
- Create AdminDashboardPage with statistics overview
- Create AdminUsersPage with user management (CRUD, role changes)
- Create AdminReportsPage with user progress reports and CSV export
- Create AdminStoryGeneratorPage for AI-powered story generation
- Create AdminUserDetailPage for detailed user progress tracking
- Add comprehensive admin API client with all endpoints
- Add TypeScript types for admin DTOs (users, reports, stories)
- Add extensive CSS styles for all admin pages
- Update App.tsx with proper admin sub-routes
- Update admin-module.md feature documentation with completion status

Admin features:
- Dashboard with stats (users, lessons, quizzes, stories, activity)
- User management (list, view details, change roles, delete)
- Progress reports (view all, detailed user reports, CSV export)
- Story generator (AI story creation for levels with audio)
- Role-based authentication (AdminRoute protects all admin pages)
- Responsive design for all admin pages

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-14 15:29:20 +02:00
Lasse Rune Hansen
be692886a9 feat(docs/admin): Add Admin Module feature specification and update roadmap
- Created admin-module.md with comprehensive feature documentation
- Updated README.md roadmap with current status and progress
- Added [Authorize] to StoryController GET endpoints
- Documented requirements:
  - Mandatory user registration before accessing content
  - Individual user progress tracking
  - Admin module (Lasse only)
  - Admin story generation functionality
  - Admin user progress reports
- Updated development roadmap with Phase 4 (Admin Module)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-14 11:45:55 +02:00