How padyalahemakrishnasai-del/care-bridge works
CareBridge is a healthcare access and family-care web application. The main journey starts at the routed web app, where people can authenticate or use the zero-login emergency screen, then reach care-finding and patient-support modules. The README documents additional modules whose source was not sampled; these are represented at their listed page paths. Sampled state is React context with local-storage persistence and demo data, while authentication also uses Supabase. Edges are limited to routing documented in the README or references shown in sampled source/index entries.
Main entry points: App.tsx Route application · AppContext.tsx Application state · FacilitiesPage.tsx Facility discovery · FacilityDetailsPage.tsx Facility details
Components 30
Application entry
- Route application
src/App.tsx - Main navigation
src/components/layout/MainLayout.tsx - Landing page
src/pages/LandingPage.tsx - Help and legal information
src/pages/HelpInfoPages.tsx
Care access
- Emergency fast lane
src/pages/EmergencyPage.tsx - Facility discovery
src/pages/FacilitiesPage.tsx - Facility details
src/pages/FacilityDetailsPage.tsx - Cost comparison
src/pages/CostComparisonPage.tsx - Rural care finder
src/pages/RuralCarePage.tsx - Trust indicators
src/components/ui/TrustBadge.tsx
Patient support
- Medication reminders
src/pages/MedicationsPage.tsx - Appointments
src/pages/AppointmentsPage.tsx - Medical records vault
src/pages/MedicalRecordsPage.tsx - Health awareness
src/pages/HealthLibraryPage.tsx - Mental well-being
src/pages/MentalHealthPage.tsx - Notifications and preferences
src/pages/NotificationsPage.tsx - Profile and privacy
src/pages/ProfilePage.tsx - Care dashboard
src/pages/DashboardPage.tsx - Dose action tile
src/components/ui/ReminderTile.tsx - Document preview card
src/components/ui/DocumentCard.tsx
Family and community
- Family coordination
src/pages/FamilyCoordinationPage.tsx - Blood donor coordination
src/pages/BloodDonorsPage.tsx - Administration and verification
src/pages/VerificationModerationPage.tsx - Confirmation dialog
src/components/ui/ConfirmationDialog.tsx
State and identity
- Sign-in and enrollment
src/pages/SignUpPage.tsx - Authentication state
src/context/AuthContext.tsx - Supabase client
src/lib/supabase.ts - Application state
src/context/AppContext.tsx - Demo data
src/data/initialData.ts
Other components
- Patient or caregiver
Connections 48
- Patient or caregiver → Route application: opens app
README.md - Route application → Authentication state: provides auth
src/App.tsx - Route application → Application state: provides state
src/App.tsx - Route application → Emergency fast lane: routes directly
src/App.tsx - Route application → Main navigation: wraps app pages
src/App.tsx - Route application → Sign-in and enrollment: routes signup
src/App.tsx - Route application → Landing page: routes home
README.md - Route application → Facility discovery: routes finder
README.md - Route application → Facility details: routes details
src/App.tsx - Route application → Cost comparison: routes comparison
src/App.tsx - Route application → Medication reminders: routes doses
src/App.tsx - Route application → Appointments: routes visits
src/App.tsx - Route application → Medical records vault: routes records
src/App.tsx - Route application → Rural care finder: routes rural care
README.md - Route application → Blood donor coordination: routes donors
README.md - Route application → Mental well-being: routes support
README.md - Route application → Health awareness: routes library
README.md - Route application → Family coordination: routes family care
README.md - Route application → Notifications and preferences: routes preferences
README.md - Route application → Profile and privacy: routes profile
README.md - Route application → Administration and verification: routes verification
src/App.tsx - Route application → Help and legal information: routes legal pages
src/App.tsx - Sign-in and enrollment → Authentication state: uses auth
src/pages/SignUpPage.tsx - Authentication state → Supabase client: calls auth API
src/context/AuthContext.tsx - Application state → Demo data: loads defaults
src/context/AppContext.tsx - Facility discovery → Application state: reads care data
src/pages/FacilitiesPage.tsx - Facility details → Application state: reads care data
src/pages/FacilityDetailsPage.tsx - Cost comparison → Application state: reads care data
src/pages/CostComparisonPage.tsx - Rural care finder → Application state: reads care data
src/pages/RuralCarePage.tsx - Emergency fast lane → Application state: uses app state
src/pages/EmergencyPage.tsx - Medication reminders → Application state: updates doses
src/pages/MedicationsPage.tsx - Appointments → Application state: uses app state
src/pages/AppointmentsPage.tsx - Medical records vault → Application state: uses app state
src/pages/MedicalRecordsPage.tsx - Health awareness → Application state: uses app state
src/pages/HealthLibraryPage.tsx - Mental well-being → Application state: uses app state
src/pages/MentalHealthPage.tsx - Family coordination → Application state: updates care tasks
src/pages/FamilyCoordinationPage.tsx - Blood donor coordination → Application state: uses app state
src/pages/BloodDonorsPage.tsx - Administration and verification → Application state: uses app state
src/pages/VerificationModerationPage.tsx - Notifications and preferences → Application state: updates preferences
src/pages/NotificationsPage.tsx - Profile and privacy → Application state: uses app state
src/pages/ProfilePage.tsx - Care dashboard → Application state: reads care state
src/pages/DashboardPage.tsx - Care dashboard → Dose action tile: renders doses
src/pages/DashboardPage.tsx - Medication reminders → Dose action tile: renders dose actions
src/pages/MedicationsPage.tsx - Medical records vault → Document preview card: renders documents
src/pages/MedicalRecordsPage.tsx - Family coordination → Confirmation dialog: uses confirmations
src/pages/FamilyCoordinationPage.tsx - Facility discovery → Trust indicators: shows trust status
- Facility details → Trust indicators: shows trust status
src/pages/FacilityDetailsPage.tsx - Rural care finder → Trust indicators: shows trust status
src/pages/RuralCarePage.tsx