Pokemon edit modal now shows three tabs (Details, Evolutions, Encounters)
instead of a single long form. Evolution chain entries are clickable to
open the EvolutionFormModal for direct editing. Encounter locations link
to admin route detail pages. Create mode shows only the form (no tabs).
Backend adds GET /pokemon/{id}/encounter-locations (grouped by game) and
GET /pokemon/{id}/evolution-chain (BFS family discovery). Extracts
formatEvolutionMethod to shared utility.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
40 lines
1.4 KiB
Markdown
40 lines
1.4 KiB
Markdown
---
|
|
# nuzlocke-tracker-dyzh
|
|
title: Click-to-edit pattern across admin tables
|
|
status: completed
|
|
type: feature
|
|
priority: high
|
|
created_at: 2026-02-08T12:32:53Z
|
|
updated_at: 2026-02-08T12:45:17Z
|
|
parent: nuzlocke-tracker-iu5b
|
|
blocking:
|
|
- nuzlocke-tracker-fxi7
|
|
- nuzlocke-tracker-mg46
|
|
---
|
|
|
|
Replace the current pattern of separate Edit/Delete action buttons with an inline click-to-edit pattern across all admin pages.
|
|
|
|
## Current behavior
|
|
- Table rows show data with Edit and Delete buttons on the right
|
|
- Clicking Edit opens a modal form
|
|
- Clicking Delete opens a confirmation dialog
|
|
|
|
## Desired behavior
|
|
- Clicking a table row opens an edit card/panel inline or as a detail view
|
|
- The edit card shows all fields in editable form
|
|
- A Delete button is available within the edit card
|
|
- Save/Cancel buttons to confirm or discard changes
|
|
- Clicking outside or pressing Escape cancels
|
|
|
|
## Affected pages
|
|
- AdminPokemon (pokemon table)
|
|
- AdminEvolutions (evolutions table)
|
|
- AdminGames (games table)
|
|
- AdminGameDetail routes tab (routes table)
|
|
- AdminGameDetail bosses tab (boss battles table)
|
|
- AdminRouteDetail (route encounters table)
|
|
- AdminRuns (runs table — delete only, no edit)
|
|
|
|
## Notes
|
|
- Some pages already have row click handlers (Games navigates to detail). Preserve that where it makes sense — the edit card could be the detail page itself.
|
|
- Keep modal forms for Create (adding new entities) since there's no row to click yet. |