How shanmukhamanikantainti-web/medicrewv1 works
MediCrew is a role-based healthcare web application for patients, doctors, and administrators. Users enter through landing and authentication, then the application routes them to role-specific dashboards and workflows: patient health monitoring, AI health assistance, device telemetry, and appointments; doctor clinical oversight; and administrative governance and verification. Authentication and page features use Supabase, while the AI assistant delegates analysis to Gemini. The tree also includes a separate bridge server, but its relationship to the device workflow is not established by the available excerpts.
Main entry points: App.jsx Route and guard · supabaseClient.js Supabase client · AuthContext.jsx Auth and profiles · Sidebar.jsx Role navigation
Components 18
App entry and access
- Route and guard
src/App.jsx - Landing page
src/pages/Landing.jsx - Sign-in and signup
src/pages/Auth.jsx
Patient care
- Patient dashboard
src/pages/PatientDashboard.jsx - AI health assistant
src/pages/AIAssistant.jsx - Device monitor
src/pages/DeviceMonitor.jsx - Appointments
src/pages/Appointments.jsx
Clinical and administration
- Doctor dashboard
src/pages/DoctorDashboard.jsx - Admin dashboard
src/pages/AdminDashboard.jsx - Admin verification
src/pages/AdminVerify.jsx
Shared services
- Auth and profiles
src/context/AuthContext.jsx - Supabase client
src/lib/supabaseClient.js - Supabase
- Role navigation
src/components/Sidebar.jsx - Admin shortcut
src/components/AdminShortcut.jsx - Gemini analysis
src/lib/gemini.js - Device bridge server
medicrew-bridge/server.js
Other components
- User
Connections 31
- User → Route and guard: opens
- Route and guard → Landing page: routes to
src/App.jsx - Route and guard → Sign-in and signup: routes to
src/App.jsx - Route and guard → Patient dashboard: routes to
src/App.jsx - Route and guard → AI health assistant: routes to
src/App.jsx - Route and guard → Device monitor: routes to
src/App.jsx - Route and guard → Appointments: routes to
src/App.jsx - Route and guard → Doctor dashboard: routes to
src/App.jsx - Route and guard → Admin dashboard: routes to
src/App.jsx - Route and guard → Admin verification: routes to
src/App.jsx - Route and guard → Auth and profiles: checks access
src/App.jsx - Route and guard → Admin shortcut: renders
src/App.jsx - Sign-in and signup → Auth and profiles: uses auth
src/pages/Auth.jsx - Auth and profiles → Supabase client: queries
src/context/AuthContext.jsx - Supabase client → Supabase: connects
src/lib/supabaseClient.js - Patient dashboard → Auth and profiles: reads user
src/pages/PatientDashboard.jsx - Patient dashboard → Role navigation: renders
src/pages/PatientDashboard.jsx - AI health assistant → Gemini analysis: requests analysis
src/pages/AIAssistant.jsx - AI health assistant → Supabase client: stores results
src/pages/AIAssistant.jsx - AI health assistant → Role navigation: renders
src/pages/AIAssistant.jsx - Device monitor → Supabase client: uses data service
src/pages/DeviceMonitor.jsx - Device monitor → Role navigation: renders
src/pages/DeviceMonitor.jsx - Appointments → Supabase client: uses data service
src/pages/Appointments.jsx - Appointments → Role navigation: renders
src/pages/Appointments.jsx - Doctor dashboard → Supabase client: uses data service
src/pages/DoctorDashboard.jsx - Doctor dashboard → Role navigation: renders
src/pages/DoctorDashboard.jsx - Admin dashboard → Supabase client: uses data service
src/pages/AdminDashboard.jsx - Admin dashboard → Role navigation: renders
src/pages/AdminDashboard.jsx - Admin verification → Auth and profiles: checks verification
src/pages/AdminVerify.jsx - Admin shortcut → Auth and profiles: checks role
src/components/AdminShortcut.jsx - Device bridge server → Device monitor