1.5 KiB
1.5 KiB
title, status, type, priority, tags, created_at, updated_at, parent
| title | status | type | priority | tags | created_at | updated_at | parent | |
|---|---|---|---|---|---|---|---|---|
| Add team snapshot to boss battle results | completed | feature | low |
|
2026-03-20T15:11:53Z | 2026-03-20T19:41:44Z | nuzlocke-tracker-neqv |
When recording a boss battle result, allow the player to snapshot which alive team pokemon they used and at what levels. This gives a record of "what I brought to the fight."
Checklist
- Migration: Create `boss_result_team` table (`id`, `boss_result_id` FK, `encounter_id` FK, `level`)
- Model: Create `BossResultTeam` model, add relationship to `BossResult`
- Schemas: Add `BossResultTeamInput` and update `BossResultCreate`/`BossResultResponse`
- API: Update `POST /runs/{run_id}/boss-results` to accept and save team snapshot
- BossDefeatModal: Add checkboxes for alive team members with optional level override
- Display: Show team snapshot when viewing past boss results in `RunEncounters.tsx`
Summary of Changes
Implemented team snapshot feature for boss battle results:
- Created
boss_result_teamtable (id,boss_result_idFK,encounter_idFK,level) - Added
BossResultTeammodel with relationship toBossResult - Updated schemas with
BossResultTeamMemberInputandBossResultTeamMemberResponse - Updated
POST /runs/{run_id}/boss-resultsto validate and save team snapshot - Added team selection UI in
BossDefeatModalwith level override - Display team snapshot in defeated boss cards on
RunEncounters.tsx