Overview
The availability system allows lawyers to define their working hours on a weekly recurring schedule. This is used for appointment booking and is managed through theManageAvailability component.
Accessing Availability Settings
Availability is configured from your profile page:The availability editor is only accessible when your profile is in edit mode.
Availability Grid
The system uses a time-slot grid covering:- Days: Monday through Sunday
- Hours: 09:00 - 20:00 (10 hours)
- Granularity: 1-hour blocks
Setting Your Availability
Open Availability Manager
Click Gestionar disponibilidad button on your profile page. This opens a modal with the weekly grid.
Select Time Slots
Click individual hour blocks to toggle availability:
- Blue background: Available
- Gray background: Unavailable
- Check mark: Confirms selection
Use Quick Fill (Optional)
Check “Llenar todas las horas de Lunes a Viernes” to automatically fill weekday hours:
Day & Time Restrictions
Sunday Restriction
Saturday Limitations
Saturday hours are limited to morning/early afternoon:- ✅ 09:00 - 14:00
- ❌ 15:00 - 20:00
Data Structure
Availability is stored as JSON in theprofiles.availability column:
- Index 0 = 09:00-10:00
- Index 1 = 10:00-11:00
- …
- Index 9 = 18:00-19:00
Loading Existing Availability
When opening the availability manager, existing settings are loaded:Change Tracking
The system tracks unsaved changes:Google Calendar Integration
Future integration: The dashboard includes a
GoogleCalendarConnect component for syncing availability with Google Calendar events.- Auto-block appointment slots when Google Calendar events exist
- Two-way sync for bookings
- OAuth2 integration for calendar access
Appointment Booking Logic
When clients book appointments, the system:- Checks lawyer availability for the requested time slot
- Validates the time is marked as available in the grid
- Confirms no existing appointment conflicts
- Creates the appointment and blocks the time
Best Practices
Consistent Schedule
Maintain regular weekly hours for client predictability
Buffer Time
Leave gaps between appointments for preparation
Update Regularly
Review and adjust availability weekly
Block Vacations
Use appointment system to block vacation periods
Troubleshooting
Changes not saving
Changes not saving
Ensure you’re clicking “Guardar cambios” before closing the modal. The system tracks
hasChanges state and won’t persist without explicit save.Can't select Sunday slots
Can't select Sunday slots
Sunday is intentionally disabled per platform policy. Focus availability on weekdays and Saturday mornings.
Availability not showing to clients
Availability not showing to clients
Verify your profile completion is above 70% and you have at least one active service created.
Impact on Profile Visibility
Setting availability impacts your profile’s bookability status:| Availability Status | Client Experience |
|---|---|
| No slots set | ”Currently unavailable” message |
| < 10 hours/week | Limited booking options |
| 10+ hours/week | Full booking calendar shown |
| Weekdays filled | ”Recommended” badge on profile |