Tuesday, March 31, 2026

Fix League Active Status on Athlete Profiles

Fix League Active Status on Athlete Profiles

Canadian Elite Volleyball Academy — Development Update • March 31, 2026

Fix League Active Status on Athlete Profiles

What & Why

League-type events (like "Spring League 2026 Registration") have their own / which represent the registration window — not the league season. Once registration closes, the event shows as "past" on family dashboards and athlete profiles, even though the linked league is still actively running (status ACTIVE, with sessions spanning weeks/months).

The system needs to use the linked league's actual season span (first session date → last session date) when determining whether a LEAGUE-type event is "active" or "past."

Done looks like

  • On the family dashboard, a LEAGUE-type event whose linked league is still ACTIVE (and has future sessions) shows under "Upcoming Events" — not "Past Events"
  • On the community profile "My Leagues" card, ACTIVE leagues display with the "Active" badge (this already works correctly since it checks league.status)
  • On the admin experience preview (), LEAGUE events with an active linked league show as current
  • The flag for LEAGUE events is derived from the linked league's last session date (or league status), not the event's own dates

Out of scope

  • Changing the event's actual / in the database
  • Modifying the coordinator or schedule pages (these already work correctly using league status)
  • Adding new league date columns (the dates already exist via )

Relevant files

- - - - - -

Canadian Elite Volleyball Academy
elitevolleyball.training

No comments:

Post a Comment