Refine egg encounter logging bean

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-08 21:56:07 +01:00
parent 803a1a0edf
commit dd277889fd

View File

@@ -1,20 +1,25 @@
--- ---
# nuzlocke-tracker-xa5k # nuzlocke-tracker-xa5k
title: Display encounter-less locations for egg hatching title: Add egg encounter logging
status: draft status: todo
type: feature type: feature
priority: normal
created_at: 2026-02-08T14:49:50Z created_at: 2026-02-08T14:49:50Z
updated_at: 2026-02-08T14:49:50Z updated_at: 2026-02-08T20:55:33Z
--- ---
Some routes/locations don't have wild encounters but are still relevant for gameplay — particularly for hatching eggs. Currently these locations are hidden or not useful in the run view since they have no encounters to log. Allow players to log egg hatches at any location, similar to how shiny encounters work. A "Log Egg" button (next to "Log Shiny") opens a modal that shows all locations — including those without wild encounters — so the player can record where an egg hatched.
Add support for displaying locations that have no encounters in the run view, so players can track egg hatches or other location-based events there. Egg encounters should:
- Bypass route-locking (same pattern as shiny clause / shed evolution)
- Be available at all locations, including those that have no wild encounter data
- Use a dedicated modal similar to ShinyEncounterModal
- Otherwise behave like normal caught encounters (appear in team, can evolve, can die, etc.)
## Checklist ## Checklist
- [ ] Determine how encounter-less routes should appear in the run view (e.g. different visual treatment, no encounter status dot) - [ ] Data: Seed locations without wild encounters into the routes table via PokeAPI (so they appear in the route list)
- [ ] Update route filtering logic to include routes without encounters when relevant - [ ] Backend: Bypass route-lock for egg encounters (extend `skip_route_lock` with an egg origin)
- [ ] Add ability to log an egg hatch at a location (new encounter type or dedicated UI) - [ ] Frontend: Add "Log Egg" button to the run encounters page header (next to "Log Shiny")
- [ ] Consider whether these locations need an admin-side flag (e.g. `show_without_encounters`) or if all routes should always be visible - [ ] Frontend: Create `EggEncounterModal` — similar to `ShinyEncounterModal` but shows all routes (including encounter-less ones) and uses `origin: "egg"`
- [ ] Allow a wildcard Pokemon on all routes for cases where the player hatches a Pokemon there or encounter data is incorrect - [ ] Frontend: Ensure egg encounters display normally in team view and route list