Volleyball Elite Academy development update
|
Volleyball Elite Academy
Show League Sidebar Links to Coordinators on Academy Domain
|
Show League Sidebar Links to Coordinators on Academy DomainVolleyball Elite Academy — Development Update • May 7, 2026
Show League Sidebar Links to Coordinators on Academy Domain
What & Why A user assigned the Coordinator role can only manage league events. Currently, the entire "League" sidebar group (including the league picker) is hidden from coordinators when they are on the academy domain. They only see league links if they happen to be on a path or the dedicated league subdomain. The fix makes the League sidebar group and picker visible to coordinators regardless of which domain they are on, so they can navigate directly to any league they coordinate.
Done looks like
- When a coordinator logs in on the academy domain, a "League" group appears in their sidebar.
- A league picker dropdown renders above the League group links, pre-populated with every league they coordinate (the list is already filtered by ). If they coordinate only one league, it auto-selects.
- Clicking any league link (League Hub, Coordinator, League Admin, Schedule, Leaderboard, Athletes & Parents, etc.) navigates them to that league's page — URLs already use full paths that work on the academy host.
- SuperAdmin behaviour is unchanged.
- Non-coordinator personas (Athlete, Parent, Referee, etc.) are unaffected — they do not gain new league items on the academy domain.
Out of scope
- Changing which league items are visible to other personas (Athlete, Parent, Referee, Community Member).
- Giving coordinators academy-domain items they don't currently have.
- Any change to the league domain sidebar behaviour.
Steps 1. Relax the domain filter for the Coordinator persona — In the IIFE inside (), add a coordinator exception to the domain guard. Currently the filter excludes any item where . Add a bypass: if and the item's domain is , let the item through regardless of . This is a one-line change to the domain filter condition and has no effect on any other persona.
2. Verify the league picker renders on the academy domain for coordinators — The picker is already wired: it renders inside the group header when . Since the League group will now be present for coordinators on the academy domain (because step 1 lets league items through), the picker will appear automatically. Confirm no domain-specific guard blocks the picker itself from rendering.
3. Smoke-test the sidebar-filter unit tests — The existing tests in and cover coordinator+league-domain scenarios. Run them to confirm nothing regresses, and add a new case asserting that a COORDINATOR persona on the academy domain () still receives the League group items.
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