Volleyball Elite Academy development update
|
Volleyball Elite Academy
Fix Empty Schedule — Generate Button for Existing Sessions
|
Fix Empty Schedule — Generate Button for Existing SessionsVolleyball Elite Academy — Development Update • May 8, 2026
Fix Empty Schedule — Generate Button for Existing Sessions
What & Why When a league's sessions are created via the manage-days date setup flow, session records are created with dates and types but no player assignments are generated. The "Generate Day 1" button only appears when Day 1 doesn't exist yet — so once sessions are pre-created through date management, the coordinator has no way to trigger schedule generation. This results in completely empty schedules (game/court/side grid renders but no players assigned).
The Spring League 2026 is in this state right now — 60 registered players, 10 sessions, 0 assignments on any day.
Done looks like
- When a session exists but has zero assignments, a "Generate Schedule" button appears on the schedule page for that session
- Clicking it runs the sorting-algorithm schedule generator (generateDay1Schedule) and populates player assignments
- The button works for PLAY and SORTING session types (both use the same age-balanced rotation algorithm)
- For REGULAR sessions, it shows a different message or button that runs the tiered algorithm (only if prior days are locked)
- After generation, the schedule grid shows players in their assigned positions
- The existing "Generate Day 1" button logic still works for the case when no sessions exist yet
- Production fix: the coordinator on elitevolleyball.training can generate the Day 1 schedule for Spring League 2026
Out of scope
- Auto-generating schedules when manage-days creates sessions (that's a separate improvement)
- Changing the manage-days endpoint behavior
- Lock/unlock flow changes
Relevant files - - - - -
|
Volleyball Elite Academy Reply to this email — we read every reply. You received this because you have an account with Volleyball Elite Academy. elitevolleyball.training |
|
No comments:
Post a Comment