Overview
Horse availability is a critical factor in class scheduling. Only available horses can be assigned to classes, ensuring that horses are not scheduled when they are injured, resting, or otherwise out of service.Availability Status
Indicates whether the horse is available for classes
true: Horse can be assigned to classesfalse: Horse cannot be assigned to classes
Default Behavior
When a new horse is registered:CaballoForm.tsx
~/workspace/source/src/components/forms/CaballoForm.tsx:39
New horses are automatically set as available upon creation.
Managing Availability
Toggle Availability
Availability can only be modified when editing an existing horse:CaballoForm.tsx
~/workspace/source/src/components/forms/CaballoForm.tsx:90-99
The availability toggle is only visible when editing an existing horse, not during creation.
Impact on Class Scheduling
Horse Selection in Classes
When creating a class, only horses (available or not) are shown in the selection dropdown:ClaseForm.tsx
~/workspace/source/src/components/forms/ClaseForm.tsx:432-444
Auto-Assignment Logic
When a student has a default horse (either reserved school horse or private horse), it is automatically pre-selected:ClaseForm.tsx
~/workspace/source/src/components/forms/ClaseForm.tsx:140-152
Display in System
Status Badges
Horse availability is displayed with color-coded badges:Caballos.tsx
~/workspace/source/src/pages/Caballos.tsx:246-248
Available
Green badge - Horse can be assigned to classes
Not Available
Gray badge - Horse cannot be assigned to classes
Filtering by Availability
The system provides filtering options to view horses by availability status:Caballos.tsx
~/workspace/source/src/pages/Caballos.tsx:162-170
Filter Logic
Caballos.tsx
~/workspace/source/src/pages/Caballos.tsx:127-140
Use Cases
Marking Horse as Unavailable
Marking Horse as Unavailable
Marking Horse as Available
Marking Horse as Available
When to mark available:
- Horse has recovered from injury
- Rest period is complete
- Horse has returned to the facility
- Ready to resume normal class schedule
Viewing Horse Utilization
Viewing Horse Utilization
Use the availability filter to:
- View all available horses for scheduling
- Check which horses are currently unavailable
- Monitor overall fleet availability
- Generate reports on horse usage
Business Rules
Reporting
Horse availability is included in the horse utilization reports: From the README:5. Reporte de Caballos Estadísticas:See:
- Uso de cada caballo
- Distribución por tipo (Escuela/Privado)
- Porcentaje de uso en el período
- Caballos disponibles vs. no disponibles
- Exportable a Excel
~/workspace/source/README.md:377-384
Best Practices
Immediate Updates
Update availability status immediately when a horse becomes unavailable (injury, illness, etc.)
Documentation
Use the observations field in related classes to document why a horse was marked unavailable
Next Steps
Horse Registration
Learn how to register and edit horses
Creating Classes
Understand how horses are assigned to classes