How iamamritjha/lifeledger_frontend works
LifeLedger is a healthcare web application with patient and doctor workspaces, authentication, medical records, care discovery, emergency information, and AI-related features. The principal patient workflow is to enter the authenticated workspace, review health information, then manage records or seek care; doctors have a separate workspace for appointments and practice details. Feature modules and API-client infrastructure form the internal layer. Relationships below are limited to README descriptions and SOURCE INDEX references; most feature internals and backend integrations were not sampled.
Main entry points: dashboard-shell.tsx Patient workspace shell · auth-context.tsx Authentication · profile/page.tsx Doctor profile · signin/page.tsx Sign in and signup
Components 20
Entry and identity
- Public pages
src/app/page.tsx - Sign in and signup
src/app/(auth)/signin/page.tsx - Authentication
src/features/auth/auth-context.tsx
Patient workspace
- Patient workspace shell
src/components/dashboard/dashboard-shell.tsx - Health dashboard
src/app/(user)/dashboard/page.tsx
Care and records
- Appointments
src/app/(user)/appointments/page.tsx - Doctor discovery
src/features/doctors/doctor-discovery-api.ts - Hospital discovery
src/app/(user)/hospitals/page.tsx - Medical reports
src/app/(user)/reports/[reportId]/page.tsx - Health timeline
src/app/(user)/timeline/page.tsx - AI health features
src/features/ai/ai-api.ts - Emergency contacts
src/features/emergency/components/EmergencyContactsManager.tsx - Doctor workspace
src/components/doctor/doctor-shell.tsx - Doctor appointments
src/app/doctor/appointments/page.tsx - Doctor profile
src/app/doctor/profile/page.tsx
Application internals
- Feature APIs and hooks
src/features - HTTP API client
src/lib/api-client.ts - Query provider
src/providers/query-provider.tsx
Other components
- Patient
- Doctor
Connections 17
- Patient → Sign in and signup: signs in
README.md - Doctor → Sign in and signup: signs in
README.md - Sign in and signup → Authentication: authenticates
- Patient → Public pages: visits
- Health dashboard → Patient workspace shell: uses shell
- Patient workspace shell → Authentication: reads identity
src/components/dashboard/dashboard-shell.tsx - Appointments → Doctor discovery: uses discovery
src/app/(user)/appointments/page.tsx - Hospital discovery → Patient workspace shell: uses shell
src/app/(user)/hospitals/page.tsx - Medical reports → AI health features: uses AI feature
src/app/(user)/reports/[reportId]/page.tsx - Medical reports → Patient workspace shell: uses shell
src/app/(user)/reports/[reportId]/page.tsx - Health timeline → Patient workspace shell: uses shell
src/app/(user)/timeline/page.tsx - Emergency contacts → Feature APIs and hooks: uses query hooks
src/features/emergency/components/EmergencyContactsManager.tsx - Doctor appointments → Doctor workspace: uses shell
src/app/doctor/appointments/page.tsx - Doctor profile → Doctor workspace: uses shell
src/app/doctor/profile/page.tsx - Doctor profile → Authentication: reads identity
src/app/doctor/profile/page.tsx - Doctor profile → Feature APIs and hooks: uses doctor queries
src/app/doctor/profile/page.tsx - Authentication → HTTP API client: calls API client
src/features/auth/auth-context.tsx