Browse studio classes by date, check availability, and manage your bookings and waitlist spots.
Fitness Class Planner · Preview
Loading widget…
Preparing integration examples…
Source under review
The source code and files will be available after this version passes review.
Idle
API contract
Props for integrating the React component in your app.
classesreadonly StudioClass[] | null
Upcoming class records. Omit for the bundled preview, pass null when unavailable, or [] for an empty schedule. Optional date enables day filtering.
studiostring
Studio display name.
onReservationChangeClassReservationHandler
Receives (classId, action) for book, waitlist or cancel. Reject on failure and return refreshed classes via props after confirmation. Omit for read-only connected data.
Data and integration
Preview
Two days of studio classes with open spots, a full class with a waitlist, and a class with booking closed. Open any class for its instructor, room, duration and notes.
Inputs
Each StudioClass has a unique id, name, studio-local time label, durationMinutes, coach, room and whole nonnegative capacity, booked and waitlist counts. Optional date is YYYY-MM-DD in the studio’s local calendar. Optional bookingStatus is open (default), closed or cancelled. Optional waitlistEnabled and canCancel default to true. Supply the current viewer’s reservation as booked or waitlisted, an optional one-based waitlistPosition for that viewer, and optional description for class notes.
Source options
Map upcoming sessions and the authenticated viewer’s reservations from the host’s booking system. Format time and date in the studio’s IANA time zone. Sort by start time within each date. Refresh classes when availability changes and after a reservation is confirmed.
Actions
Use the in-card dates picker, My classes and the class details sheet. A full class offers a waitlist only while booking is open and the waitlist is enabled. A closed class can still allow cancellation of an existing reservation. A cancelled class has no reservation actions. Reject onReservationChange on failure to show a retry. With connected data the widget displays the last confirmed state and issues at most one pending request per class.
Integration requirements
Pass [] for an empty schedule or null for an unavailable feed. Dates sort chronologically and same-day rows keep input order. Records without a valid date remain in All dates. A zero or invalid capacity is treated as unavailable. The widget computes spots left as capacity minus booked, with counts clamped to safe bounds. It does not infer booking cutoffs or waitlist rank.