Add a dropdown to sort Active Team and Graveyard by route order, catch level, species name, or national dex number. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1.4 KiB
1.4 KiB
title, status, type, priority, created_at, updated_at
| title | status | type | priority | created_at | updated_at |
|---|---|---|---|---|---|
| Add sort options to run team overview | completed | feature | normal | 2026-02-09T10:03:49Z | 2026-02-09T11:09:33Z |
The Active Team / Final Team section on the run dashboard (RunDashboard.tsx) currently displays Pokemon in whatever order encounters arrive from the backend — there is no explicit sorting. Add a sort dropdown so the user can choose how their team is ordered.
Sort options
- Route order (default) — sort by the route's
orderfield, matching game progression - Catch level — sort by
catchLevel, ascending - Species name — sort alphabetically by the display Pokemon's name (accounting for evolutions via
currentPokemon) - National Dex — sort by the display Pokemon's
nationalDexnumber
Scope
- Frontend-only change — all data is already available in the
EncounterDetailobjects - Add a small sort control (dropdown or segmented buttons) above the team grid
- Persist the selected sort in component state (no need for localStorage)
- Apply the same sort options to both the Active Team and Graveyard sections
Checklist
- Add sort state and sort logic to
RunDashboard.tsx - Add sort dropdown/control above the team grid
- Apply sorting to both
aliveanddeadencounter arrays - Verify sort works correctly with evolved Pokemon (use
currentPokemon ?? pokemonfor name/dex)