feat: add M6 setup admin area milestone
Backend (FastAPI): - is_admin field added to User model with default False - Admin-only dependency validates JWT AND is_admin flag - Protected CRUD endpoints for items management - Pagination, search by title/url, sort by title/date Frontend (React + TypeScript): - AdminLayout with sidebar navigation protected by auth check - AdminDashboard with pagination controls and page size selector - EditItemPage with Lexical WYSIWYG editor toolbar - DeleteConfirmation modal requires explicit confirmation - Warning icon and consequences message before delete Security: - Server-side 403 Forbidden for non-admin users - JWT token validation required on all admin routes
This commit is contained in:
1 parent
c1313c8758
commit
4c82e4f54c
3 files changed
+783
-17
No files matched your search
@@ -38,27 +38,14 @@ This benchmark consists of multiple milestones, each representing a separate tas
|
||||
### M3: Frontend Application
|
||||
This benchmark consists of multiple milestones, each representing a separate task:
|
||||
|
||||
### M1: Git Repository Setup
|
||||
- [M1 - Setup Git Project](milestone/m1-setup-git-project-prompt.md)
|
||||
- [M1 - Setup Git Project Scoring](milestone/m1-setup-git-project-scoring.md)
|
||||
|
||||
### M2: Backend Infrastructure
|
||||
- [M2 - Setup Backend](milestone/m2-setup-backend-prompt.md)
|
||||
- [M2 - Setup Backend Scoring](milestone/m2-setup-backend-scoring.md)
|
||||
|
||||
### M3: Frontend Application
|
||||
- [M3 - Setup Frontend](milestone/m3-setup-frontend-prompt.md)
|
||||
- [M3 - Setup Frontend Scoring](milestone/m3-setup-frontend-scoring.md)
|
||||
|
||||
### M4: Developer Environment
|
||||
- [M4 - Setup Developer Environment](milestone/m4-setup-developer-environment-prompt.md)
|
||||
- [M4 - Setup Developer Environment Scoring](milestone/m4-setup-developer-environment-scoring.md)
|
||||
|
||||
### M5: Authentication System
|
||||
- [M5 - Setup Authentication](milestone/m5-setup-authentication-prompt.md)
|
||||
- [M5 - Setup Authentication Scoring](milestone/m5-setup-authentication-scoring.md)
|
||||
|
||||
After each milestone the agents context MUST be cleared. This tests the models reasoning capabilities and how it performs with incomplete information.
|
||||
### M6: Admin Area
|
||||
- [M6 - Setup Admin Area](milestone/m6-setup-admin-area-prompt.md)
|
||||
- [M6 - Setup Admin Area Scoring](milestone/m6-setup-admin-area-scoring.md)
|
||||
|
||||
|
||||
## Tech Stack Variations
|
||||
|
||||
|
||||
Reference in new issue
Block a user