Files
nuzlocke-tracker/.beans/nuzlocke-tracker-ymbd--implement-randomize-encounters.md
Julian Tabel 46f246028f Add randomize encounters feature (per-route + bulk)
Per-route: Randomize/Re-roll button in EncounterModal picks a uniform
random pokemon from eligible (non-duped) encounters. Bulk: new
POST /runs/{run_id}/encounters/bulk-randomize endpoint fills all
remaining routes in order, respecting dupes clause cascading, pinwheel
zones, and route group locking. Frontend Randomize All button on the
run page triggers the bulk endpoint with a confirm dialog.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 13:14:43 +01:00

806 B

title, status, type, priority, created_at, updated_at
title status type priority created_at updated_at
Implement randomize encounters completed feature normal 2026-02-08T12:12:09Z 2026-02-08T12:13:47Z

Add per-route Randomize button in EncounterModal and bulk Randomize All on RunEncounters page.

Checklist

  • Phase 1: Per-route randomize in EncounterModal.tsx
    • Add pickRandomPokemon helper function
    • Add Randomize/Re-roll button in Pokemon selection header
  • Phase 2: Bulk randomize backend
    • Add BulkRandomizeResponse schema in encounter.py
    • Add POST /runs/{run_id}/encounters/bulk-randomize endpoint
  • Phase 3: Bulk randomize frontend
    • Add bulkRandomizeEncounters() API function
    • Add useBulkRandomize() hook
    • Add Randomize All button on RunEncounters page