Repository navigation
08 Geolocation and Search
Vicky Patel edited this page Nov 19, 2026
·
2 revisions
HEMA provides sub-millisecond donor search and blood type filtering directly on the client.
graph LR
Input[User Search Query / Blood Pill Click] --> Normalizer[Case-Insensitive Normalizer]
Normalizer --> GroupFilter{Blood Group Match?}
GroupFilter -->|Yes| CityFilter{City Substring Match?}
CityFilter -->|Yes| AvailFilter{Available Only Active?}
AvailFilter -->|Yes| Grid[Render Responsive DonorCard Grid]
- Reactive State Filter: Input changes immediately recompute the filtered donor array in memory.
-
Normalized Query: In
DonorsPage, search queries match the donor'scityproperty using case-insensitive lowercase matching (d.city.toLowerCase().includes(searchCity.toLowerCase())). -
Blood Type Filter: Matches the exact selected blood group, or passes all records when
Allis selected.
| 🏛️ Project Hub | 🛠️ Developer Docs | 💬 Community & Support |
|---|---|---|
| GitHub Repository | System Architecture | GitHub Discussions |
| Contributing Guide | Design System | Open Issues |
| Production Deployment | State Management | Pull Requests |
| Project Roadmap | Testing & QA Matrix | Maintainer Runbook |