Summary
Upstream: pickleball-shuffler#32
Fix volunteer sit-out modal stale state and integrate with background pre-generation. Volunteers should reflect the current round's saved state when opening — not leftovers from a previous edit session.
Flow
Open modal
- Pre-check volunteers from current round's saved state.
Edit (draft only — no live save)
- Checkbox changes are draft until Re-jumble is clicked.
- Each draft change triggers debounced (150ms) background pre-generation for the current round.
- Pre-gen uses draft volunteer list (not saved until confirmed).
Re-jumble
- Applies draft volunteer selection (saves state).
- Instantly shows pre-computed round layout (no perceptible wait).
Cancel / close without Re-jumble
- Discard draft pre-generation.
- Saved volunteer state and displayed round unchanged.
Acceptance criteria
Files likely touched
src/SitoutsModal.tsx
pages/rounds.tsx
src/useShuffler.tsx
Dependencies
Upstream reference
Summary
Upstream: pickleball-shuffler#32
Fix volunteer sit-out modal stale state and integrate with background pre-generation. Volunteers should reflect the current round's saved state when opening — not leftovers from a previous edit session.
Flow
Open modal
Edit (draft only — no live save)
Re-jumble
Cancel / close without Re-jumble
Acceptance criteria
yarn test:ciandyarn buildpassFiles likely touched
src/SitoutsModal.tsxpages/rounds.tsxsrc/useShuffler.tsxDependencies
Upstream reference