Volleyball Elite Academy development update
|
Volleyball Elite Academy
Make the linked-rental court hint update instantly when admins change times
|
Make the linked-rental court hint update instantly when admins change timesVolleyball Elite Academy — Development Update • May 22, 2026
--- title: Make the linked-rental court hint update instantly when admins change times ---
Make the linked-rental court hint update instantly when admins change times
## What & Why While adding e2e coverage for the linked-rental court re-suggestion (Task #1076), I found that the "no free court at this time" hint in the events form does not appear immediately after an admin shifts a date's start/end time into a fully-busy window. The picked court correctly clears, but the hint stays hidden because the IIFE that renders it reads its window via (a non-subscribing snapshot read), so it doesn't re-evaluate when sibling FormField time inputs change. The hint only appears after another render trigger (or on a fresh load with cleared courtNumber).
The e2e test for #1076 had to split the "all courts busy" case into two assertions (dynamic clear + static hint render) to work around this; replacing the snapshot reads with (or wrapping the panel in a child component that subscribes) would let a single dynamic test cover both halves and would also match what admins expect in the UI.
## Done looks like - Shifting start/end on a multi-court linked rental into an all-busy window immediately shows without any extra interaction. - The split assertion in can be collapsed back into one dynamic test asserting both is cleared and the hint is visible.
## Relevant files - (IIFE around line 3430-3500, time inputs around 3540-3585) -
|
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