Mark evolution and admin panel beans as completed

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-05 19:26:53 +01:00
parent 9728773a94
commit c5a2d5c0e6
2 changed files with 37 additions and 32 deletions

View File

@@ -1,14 +1,19 @@
--- ---
# nuzlocke-tracker-a7q2 # nuzlocke-tracker-a7q2
title: Handle pokemon evolutions title: Handle pokemon evolutions
status: todo status: completed
type: feature type: feature
priority: normal
created_at: 2026-02-05T14:27:07Z created_at: 2026-02-05T14:27:07Z
updated_at: 2026-02-05T14:27:07Z updated_at: 2026-02-05T18:26:11Z
parent: nuzlocke-tracker-f5ob parent: nuzlocke-tracker-f5ob
--- ---
Add support for pokemon evolutions in the tracker. When a pokemon evolves during a Nuzlocke run, the tracker should reflect the new species while preserving the encounter history (original catch route, catch level, nickname, etc.). Needs investigation into: Add support for pokemon evolutions in the tracker. When a pokemon evolves during a Nuzlocke run, the tracker should reflect the new species while preserving the encounter history (original catch route, catch level, nickname, etc.).
- How to model evolutions (track current species vs. original species)
- Whether to pull evolution chain data from PokeAPI during seeding ## Implementation
- UX for marking a pokemon as evolved (from the team view or encounter edit)
- **Data model**: `Evolution` table with from/to pokemon, trigger, level, item, and condition fields. `Encounter.current_pokemon_id` tracks evolved species separately from original.
- **Seed data**: Evolution chains fetched from PokeAPI submodule data, with an overrides file for manual corrections.
- **API**: `GET /pokemon/{id}/evolutions` returns available evolutions. `PATCH /encounters/{id}` accepts `current_pokemon_id` to record an evolution.
- **Frontend**: "Evolve" button in StatusChangeModal shows available evolutions with trigger details. PokemonCard displays the current (evolved) species with "Originally: {name}" label.

View File

@@ -1,41 +1,41 @@
--- ---
# nuzlocke-tracker-hy41 # nuzlocke-tracker-hy41
title: Admin Panel title: Admin Panel
status: in-progress status: completed
type: task type: task
priority: normal priority: normal
created_at: 2026-02-04T15:47:05Z created_at: 2026-02-04T15:47:05Z
updated_at: 2026-02-05T17:25:58Z updated_at: 2026-02-05T18:22:09Z
parent: nuzlocke-tracker-f5ob parent: nuzlocke-tracker-f5ob
--- ---
Build an admin interface for managing reference data. Build an admin interface for managing reference data.
## Checklist ## Checklist
- [ ] Create admin routes/pages separate from tracker - [x] Create admin routes/pages separate from tracker
- [ ] Game Management: - [x] Game Management:
- [ ] List all games - [x] List all games
- [ ] Add new game - [x] Add new game
- [ ] Edit game details - [x] Edit game details
- [ ] Delete game (with cascade warning) - [x] Delete game (with cascade warning)
- [ ] Route Management: - [x] Route Management:
- [ ] List routes for a game - [x] List routes for a game
- [ ] Add new route - [x] Add new route
- [ ] Edit route details (name, order) - [x] Edit route details (name, order)
- [ ] Delete route - [x] Delete route
- [ ] Reorder routes via drag-and-drop - [x] Reorder routes via drag-and-drop (implemented as up/down buttons)
- [ ] Route Pokémon Assignment: - [x] Route Pokémon Assignment:
- [ ] View Pokémon available on a route - [x] View Pokémon available on a route
- [ ] Add Pokémon to route - [x] Add Pokémon to route
- [ ] Remove Pokémon from route - [x] Remove Pokémon from route
- [ ] Set encounter rates/methods - [x] Set encounter rates/methods
- [ ] Pokémon Management: - [x] Pokémon Management:
- [ ] List all Pokémon - [x] List all Pokémon
- [ ] Add new Pokémon - [x] Add new Pokémon
- [ ] Edit Pokémon details - [x] Edit Pokémon details
- [ ] Bulk import from CSV/JSON - [x] Bulk import from CSV/JSON
- [ ] Admin API endpoints: - [x] Admin API endpoints:
- [ ] POST/PUT/DELETE for games, routes, pokemon, route_pokemon - [x] POST/PUT/DELETE for games, routes, pokemon, route_pokemon
## Notes ## Notes
- Can be a simple CRUD interface - Can be a simple CRUD interface