Overview
The system provides comprehensive search and filtering functionality for students, instructors, horses, and classes, with support for both simple filters and intelligent search.Smart Search
Student Search
Intelligent search across multiple fields:~/workspace/source/src/pages/Alumnos.tsx:159-175
Unified Query Pattern
Search and list using a single query:~/workspace/source/src/pages/Alumnos.tsx:90-101
Filter System
Filter Configuration
Define filters declaratively:~/workspace/source/src/pages/Alumnos.tsx:222-252
Filter Component
Reusable filter bar component:Filter Logic
Client-side filtering implementation:~/workspace/source/src/pages/Alumnos.tsx:178-210
Calendar Filters
Filter by Student and Instructor
~/workspace/source/src/pages/Calendario.tsx:87-108
Search Features (from README)
Global Search
~/workspace/source/README.md:405-417
Pagination with Filters
Reset Page on Filter Change
~/workspace/source/src/pages/Alumnos.tsx:293-296
Paginated Results
~/workspace/source/src/pages/Alumnos.tsx:213-219
Filter Persistence
Maintain Filter State
~/workspace/source/src/pages/Alumnos.tsx:116-120
Reset Filters
Active Search Indicator
~/workspace/source/src/pages/Alumnos.tsx:114
Global Search Events
Listen for global search events:~/workspace/source/src/pages/Alumnos.tsx:126-144
Best Practices
- Reset Pagination - Always reset to page 1 when applying filters or searching
- Type Safety - Validate filter types before applying
- Loading States - Show loading indicators during search/filter operations
- Empty States - Display helpful messages when no results found
- Filter Combinations - Allow multiple filters to work together
- Clear Filters - Provide easy way to reset all filters
- Preserve State - Maintain filter state during navigation when appropriate
- Debouncing - Consider debouncing real-time search for performance