Fix it so booking blocks show confirmed, but also return to a state where they can do booking
Problem
Once a booking succeeds the block shows the "Confirmed" state and stays there. The student has no way to book another lesson without reloading the page.
Expected
Show the confirmation, then return the block to a bookable state — the slot list refreshed (the just-booked slot gone), the upcoming-lessons panel updated, and the confirmation shown as a dismissible/transient notice rather than a terminal screen.
Places to touch
assets/js/booking.js — the confirmed branch around line 569 and the status label at line 582
Likely the same pattern in assets/js/group-classes.js for enrolments — check and fix both
tests/Unit/Booking/BookingPageTest.php / booking endpoint tests as needed
## Feedback
> Fix it so booking blocks show confirmed, but also return to a state where they can do booking
## Problem
Once a booking succeeds the block shows the "Confirmed" state and stays there. The student has no way to book another lesson without reloading the page.
## Expected
Show the confirmation, then return the block to a bookable state — the slot list refreshed (the just-booked slot gone), the upcoming-lessons panel updated, and the confirmation shown as a dismissible/transient notice rather than a terminal screen.
## Places to touch
- `assets/js/booking.js` — the confirmed branch around line 569 and the status label at line 582
- Likely the same pattern in `assets/js/group-classes.js` for enrolments — check and fix both
- `tests/Unit/Booking/BookingPageTest.php` / booking endpoint tests as needed
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Feedback
Problem
Once a booking succeeds the block shows the "Confirmed" state and stays there. The student has no way to book another lesson without reloading the page.
Expected
Show the confirmation, then return the block to a bookable state — the slot list refreshed (the just-booked slot gone), the upcoming-lessons panel updated, and the confirmation shown as a dismissible/transient notice rather than a terminal screen.
Places to touch
assets/js/booking.js— the confirmed branch around line 569 and the status label at line 582assets/js/group-classes.jsfor enrolments — check and fix bothtests/Unit/Booking/BookingPageTest.php/ booking endpoint tests as needed