How mr-black-droid/class-booking works
Class slot booking is a browser-based weekly timetable backed by Supabase. Staff sign in with Google and approved emails can view and book slots; overlapping requests enter an ordered waitlist, while admins manage bookings and staff. Cancellation promotes the next waiter, and database outbox events drive email alerts through Resend. The README and sampled code establish the browser-to-Supabase and notification paths; the migration's internal rules and UI implementation were not excerpted, so those connections are documented rather than asserted as inspected source calls.
Main entry points: index.html Booking page · index.ts Notification sender · 0001_init.sql Email outbox · config.js Page configuration
Components 11
Booking experience
- Booking page
web/index.html - Page configuration
web/config.js
Supabase services
- Google sign-in
- Booking and waitlist rules
supabase/migrations/0001_init.sql - Access and admin rules
supabase/migrations/0001_init.sql - Session log and attendance
supabase/migrations/0001_init.sql - Email outbox
supabase/migrations/0001_init.sql
Email alerts
- Notification sender
supabase/functions/notify/index.ts - Resend
Other components
- Staff
- Admins
Connections 11
- Staff → Booking page: uses
README.md - Admins → Booking page: manages
README.md - Booking page → Page configuration: reads settings
README.md - Booking page → Google sign-in: signs in
README.md - Booking page → Access and admin rules: checks access
README.md - Booking page → Booking and waitlist rules: books and updates
README.md - Admins → Session log and attendance: reviews
README.md - Booking and waitlist rules → Email outbox: queues email
README.md - Email outbox → Notification sender: webhook triggers
supabase/functions/notify/index.ts - Notification sender → Email outbox: reads and updates
supabase/functions/notify/index.ts - Notification sender → Resend: sends email
supabase/functions/notify/index.ts