Booking block: after a confirmed booking, return to a bookable state #143

Closed
opened 2026-07-29 23:11:45 +00:00 by thatguygriff · 0 comments
Owner

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
## 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
thatguygriff added the bug label 2026-07-29 23:11:45 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Unsupervised/unsupervised-scheduler#143