40 lines
1.4 KiB
Markdown
40 lines
1.4 KiB
Markdown
---
|
|
# nuzlocke-tracker-dyzh
|
|
title: Click-to-edit pattern across admin tables
|
|
status: todo
|
|
type: feature
|
|
priority: high
|
|
created_at: 2026-02-08T12:32:53Z
|
|
updated_at: 2026-02-08T12:35:03Z
|
|
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. |