Overview
CFIs, admins, and owners can set recurring weekly availability blocks — for example, "Available Monday through Friday, 8 AM to 5 PM." When a student or renter is booking a flight and selects an instructor, the booking form shows which CFIs are available for the chosen date and time, and marks unavailable instructors as disabled in the dropdown.
Setting Your Availability
- Go to My Availability in the left sidebar (visible to CFIs, admins, and owners).
- Click Add Block.
- Select:
- Day of week — Sunday through Saturday
- Start hour — e.g., 08:00
- End hour — e.g., 17:00
- Click Add.
Repeat for each day you're available. Blocks are displayed grouped by day of the week with time ranges shown as badges.
Removing an Availability Block
Click the × on any availability block to delete it. The change takes effect immediately for new bookings.
How It Works in the Booking Form
When a user is creating a new reservation and selects a date, start time, and end time:
- The system looks up all CFIs and checks whose availability blocks overlap with the selected time on that day of the week.
- In the Instructor / Co-Pilot dropdown:
- Available instructors appear normally.
- Instructors with no availability set for that time show (unavailable) and are disabled.
- If no availability data exists for any CFI, no filtering is applied (the dropdown works as before).
Availability is based on day-of-week patterns, not specific calendar dates. A block of "Wednesday 9–17" means every Wednesday, not one specific date.
Notes
- Availability filtering is a courtesy aid — it doesn't block a booking if an instructor is selected while marked unavailable. It's informational only.
- If a CFI has no availability blocks at all, they appear normally in the dropdown without the unavailable tag.
- Availability requires migration
supabase-migration-v36.sql.
- The feature applies to the instructor/co-pilot dropdown only. It does not affect the pilot (first-in-command) field.