Files
nuzlocke-tracker/.beans/nuzlocke-tracker-b4d8--flattened-admin-routes-page.md
2026-03-22 08:56:06 +01:00

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/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