chore: bean organisation
This commit is contained in:
37
.beans/nuzlocke-tracker-b4d8--flattened-admin-routes-page.md
Normal file
37
.beans/nuzlocke-tracker-b4d8--flattened-admin-routes-page.md
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
# nuzlocke-tracker-b4d8
|
||||
title: Flattened admin routes page
|
||||
status: draft
|
||||
type: feature
|
||||
created_at: 2026-03-21T21:59:20Z
|
||||
updated_at: 2026-03-21T21:59:20Z
|
||||
parent: nuzlocke-tracker-9i9m
|
||||
---
|
||||
|
||||
Add a top-level `/admin/routes` page that shows all routes across all games, with filters for game and region. Eliminates the need to drill into a specific game just to find a route.
|
||||
|
||||
## Approach
|
||||
|
||||
- New page at `/admin/routes` showing all routes in a table
|
||||
- Columns: Route Name, Game, Region/Area, Order, Pokemon Count
|
||||
- Filters: game dropdown, text search
|
||||
- Clicking a route navigates to the existing `/admin/games/:gameId/routes/:routeId` detail page
|
||||
- Reuse existing `useRoutes` or add a new hook that fetches all routes across games
|
||||
|
||||
## Files to modify
|
||||
|
||||
- `frontend/src/pages/admin/AdminRoutes.tsx` — New page
|
||||
- `frontend/src/pages/admin/index.ts` — Export new page
|
||||
- `frontend/src/App.tsx` — Add route
|
||||
- `frontend/src/components/admin/AdminLayout.tsx` — Add nav item
|
||||
- Possibly `frontend/src/hooks/` — Hook for fetching all routes
|
||||
- Possibly `backend/app/routes/` — Endpoint for listing all routes (if not already available)
|
||||
|
||||
## Checklist
|
||||
|
||||
- [ ] AdminRoutes page with table of all routes
|
||||
- [ ] Game filter dropdown
|
||||
- [ ] Text search filter
|
||||
- [ ] Click navigates to route detail page
|
||||
- [ ] Nav item added to admin sidebar
|
||||
- [ ] Route registered in App.tsx
|
||||
Reference in New Issue
Block a user