1.3 KiB
1.3 KiB
title, status, type, created_at, updated_at, parent
| title | status | type | created_at | updated_at | parent |
|---|---|---|---|---|---|
| Flattened admin routes page | draft | feature | 2026-03-21T21:59:20Z | 2026-03-21T21:59:20Z | 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/routesshowing 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/:routeIddetail page - Reuse existing
useRoutesor add a new hook that fetches all routes across games
Files to modify
frontend/src/pages/admin/AdminRoutes.tsx— New pagefrontend/src/pages/admin/index.ts— Export new pagefrontend/src/App.tsx— Add routefrontend/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