- nuzlocke-tracker-3el1: mark completed (run progression dividers) - nuzlocke-tracker-66hg: mark completed (auto-select boss variant) - nuzlocke-tracker-x8ol: mark completed (conditional boss teams) - nuzlocke-tracker-igl3: change type to epic - nuzlocke-tracker-jain: add new bean (Nincada split evolution) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1.9 KiB
1.9 KiB
title, status, type, priority, created_at, updated_at
| title | status | type | priority | created_at | updated_at |
|---|---|---|---|---|---|
| Auto-select boss team variant based on starter choice | completed | feature | normal | 2026-02-08T20:21:40Z | 2026-02-08T20:34:35Z |
When a run's starter Pokemon is known, automatically match it against boss battle condition labels (e.g., "Chose Bulbasaur") and pre-select the matching variant instead of showing the pill selector.
Context
Currently, bosses with variant teams (condition_label) display a pill selector on the run page (BossDefeatModal and RunEncounters BossTeamPreview) so the user can manually toggle between team variants. However, if the run's starter choice is known, the correct variant can be inferred automatically.
Behavior
- If the run has a starter Pokemon recorded, check each variant's condition label for a match (e.g., starter name "Bulbasaur" matches condition label "Chose Bulbasaur")
- If exactly one condition label matches, auto-select that variant and hide the pill selector entirely
- If no match is found (or the run has no starter), fall back to showing the pill selector as today
- Matching should be case-insensitive and check if the starter name appears anywhere in the condition label (substring match)
Affected Components
BossDefeatModal— auto-select variant, hide pills when matchedBossTeamPreviewinRunEncounters— same logic- May need to check how/where the run's starter Pokemon is stored and accessible
Checklist
- Determine how the starter Pokemon is stored/accessible from the run data
- Add matching logic to find the right variant from condition labels
- Update BossDefeatModal to auto-select and hide pills when starter matches
- Update BossTeamPreview in RunEncounters with same logic
- Test with variant bosses where starter matches a condition
- Test fallback behavior when no starter is set or no match found