Files
nuzlocke-tracker/.beans/nuzlocke-tracker-fxi7--pokemon-detail-card-with-encounters-and-evolution.md
2026-02-08 13:35:50 +01:00

27 lines
1.4 KiB
Markdown

---
# nuzlocke-tracker-fxi7
title: Pokemon detail card with encounters and evolution chain
status: todo
type: feature
priority: high
created_at: 2026-02-08T12:33:05Z
updated_at: 2026-02-08T12:33:05Z
parent: nuzlocke-tracker-iu5b
---
When viewing/editing a Pokemon in the admin panel, show contextual information about where it can be encountered and its evolution chain.
## Desired behavior
- The pokemon edit card (from click-to-edit) shows:
1. Editable fields (name, types, dex number, sprite, etc.)
2. **Encounter locations**: A list of routes/games where this pokemon appears as a route encounter. Grouped by game, showing route name + encounter method + levels.
3. **Evolution chain**: Visual display of the pokemon's evolution family — predecessors and successors with triggers (level, item, trade, etc.)
- Encounter locations and evolution chain are read-only informational sections
- Encounter locations link to the route detail page in admin for quick navigation
## Backend support
- Encounters by pokemon: May need a new endpoint or can query route_encounters filtered by pokemon_id
- Evolution chain: Can reuse existing /pokemon/{id}/evolutions endpoint, but may need a 'full chain' variant that shows the complete family tree (not just direct evolutions from this pokemon)
## Notes
- This helps the admin quickly verify data completeness — 'is this pokemon assigned to the right routes?' and 'are its evolutions set up correctly?'