Volleyball Elite Academy development update
|
Volleyball Elite Academy
Fix Same-Day Session Labels (Day 1A / Day 1B)
|
Fix Same-Day Session Labels (Day 1A / Day 1B)Volleyball Elite Academy — Development Update • June 17, 2026
Fix Same-Day Session Labels (Day 1A / Day 1B)
What & Why When a multi-date event has two sessions on the same calendar day (e.g., 5–6 PM and 6–7 PM both on June 12), they currently both get labeled "Day 1" and "Day 2" as if they were different days. This is confusing — they should share a day number but be distinguished by a suffix (Day 1A / Day 1B, Day 2A / Day 2B, etc.).
Done looks like
- On the public event schedule, two sessions on the same calendar day are shown as "Day 1A" and "Day 1B" (not "Day 1" and "Day 2").
- Sessions on different calendar days still get distinct day numbers (Day 1, Day 2, Day 3…).
- The admin event-editing UI assigns labels consistently with this rule when dates are saved.
- Existing manually-set values on event_dates rows are still respected and override the auto-label.
- The fix applies everywhere day labels are rendered: public event detail, event summary component, admin views, staffing/coach views, and any email templates that include a day label.
Out of scope
- Changing the column — that stays as-is (sequential). Only the computed display label changes.
- League "Sorting Day" special-casing — that logic is untouched.
- Corsizio-imported events (they use the same fallback, so the fix propagates automatically).
Steps 1. Create a shared label-generation helper — In (or a suitable util file importable by both client and server), write a function. It groups all dates by calendar day (America/Regina local date), assigns a shared day number per calendar day in chronological order, and appends an "A/B/C…" suffix when two or more sessions fall on the same day. Returns the computed label, but if is already set it returns that unchanged.
2. **Replace all Day \${dateNumber}\`Day ${dateNumber}client/src/components/event-summary/EventSummaryView.tsxserver/routes/misc.tsserver/routes/coaches.tsserver/email.tsclient/src/pages/events-management.tsxlabelshared/schema:3492client/src/components/event-summary/EventSummaryView.tsxclient/src/pages/events-management:2070,2250server/routes/misc.tsserver/routes/coaches.tsserver/email.tsclient/src/pages/event-detail`
|
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