Add genlocke admin panel with CRUD endpoints and UI

Backend: PATCH/DELETE genlocke, POST/DELETE legs with order
re-numbering. Frontend: admin list page with status filter,
detail page with inline editing, legs table, and stats display.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Julian Tabel
2026-02-09 10:51:47 +01:00
parent 08f6857451
commit a81a17c485
11 changed files with 685 additions and 12 deletions

View File

@@ -1,10 +1,11 @@
---
# nuzlocke-tracker-k7ot
title: Genlocke management in admin panel
status: todo
status: in-progress
type: feature
priority: normal
created_at: 2026-02-09T08:38:13Z
updated_at: 2026-02-09T08:38:13Z
updated_at: 2026-02-09T09:43:04Z
parent: nuzlocke-tracker-25mh
---
@@ -41,12 +42,12 @@ Add genlocke management to the admin panel, allowing admins to view, edit, and d
- API client functions and hooks for admin CRUD operations
## Checklist
- [ ] Implement `GET /api/v1/genlockes` list endpoint
- [ ] Implement `GET /api/v1/genlockes/{id}` detail endpoint
- [ ] Implement `PATCH /api/v1/genlockes/{id}` update endpoint
- [ ] Implement `DELETE /api/v1/genlockes/{id}` delete endpoint
- [ ] Implement leg management endpoints (add, remove, reorder)
- [ ] Build admin genlocke list page
- [ ] Build admin genlocke detail/edit page
- [ ] Add admin routes and sidebar navigation
- [ ] Add frontend API client and hooks for genlocke admin
- [x] Implement `GET /api/v1/genlockes` list endpoint
- [x] Implement `GET /api/v1/genlockes/{id}` detail endpoint
- [x] Implement `PATCH /api/v1/genlockes/{id}` update endpoint
- [x] Implement `DELETE /api/v1/genlockes/{id}` delete endpoint
- [x] Implement leg management endpoints (add, remove)
- [x] Build admin genlocke list page
- [x] Build admin genlocke detail/edit page
- [x] Add admin routes and sidebar navigation
- [x] Add frontend API client and hooks for genlocke admin