How hema2909/aidflow works
AidFlow is a React emergency-response prototype with a public landing page and a three-step ambulance request flow. The user selects an emergency type, shares contact details, obtains browser location, reviews the request, and reaches an in-app dispatch/response view; location mapping is integrated separately. The landing page also describes AI-assisted classification, ambulance dispatch, hospital suitability, and response tracking. Those latter capabilities are represented as documented product claims, not verified backend services: the supplied excerpts show no server, persistence, or actual AI/dispatch integration.
Main entry points: App.tsx Landing page · Hero.tsx Emergency entry · AISection.tsx AI capability overview · main.tsx Route entry
Components 19
Public landing
- Landing page
src/App.tsx - Site header
src/components/Header.tsx - Emergency entry
src/components/Hero.tsx - Workflow overview
src/components/HowItWorks.tsx - AI capability overview
src/components/AISection.tsx - Safety disclaimer
src/components/Disclaimer.tsx - Site footer
src/components/Footer.tsx
Emergency request
- Route entry
src/main.tsx - Emergency request
src/pages/ReportEmergency.tsx
Location services
- Live location map
src/components/LiveLocationMap.tsx - Browser geolocation
- Google Maps API
Response coordination
- AI classification
src/components/AISection.tsx - Ambulance dispatch
src/components/AISection.tsx - Hospital suitability
src/components/AISection.tsx - Response tracking
src/components/HowItWorks.tsx
Presentation helpers
- Animated heading
src/components/AnimatedHeading.tsx - Fade animation
src/components/FadeIn.tsx
Other components
- Visitor
Connections 20
- Visitor → Route entry: opens app
src/main.tsx - Route entry → Landing page: routes to /
src/main.tsx - Route entry → Emergency request: routes to /emergency
src/main.tsx - Landing page → Site header: renders
src/App.tsx - Landing page → Emergency entry: renders
src/App.tsx - Landing page → Workflow overview: renders
src/App.tsx - Landing page → AI capability overview: renders
src/App.tsx - Landing page → Safety disclaimer: renders
src/App.tsx - Landing page → Site footer: renders
src/App.tsx - Emergency entry → Visitor: links to request
src/components/Hero.tsx - Emergency entry → Animated heading: renders
src/components/Hero.tsx - Emergency entry → Fade animation: renders
src/components/Hero.tsx - Visitor → Emergency request: submits request
src/pages/ReportEmergency.tsx - Emergency request → Live location map: renders
src/pages/ReportEmergency.tsx - Live location map → Browser geolocation: reads location
src/components/LiveLocationMap.tsx - Live location map → Google Maps API: loads map
src/components/LiveLocationMap.tsx - AI capability overview → AI classification: describes
src/components/AISection.tsx - AI capability overview → Ambulance dispatch: describes
src/components/AISection.tsx - AI capability overview → Hospital suitability: describes
src/components/AISection.tsx - Workflow overview → Response tracking: describes
src/components/HowItWorks.tsx