How mostafasayed2022/premier_health works
This is a bilingual healthcare website with patient booking and profile experiences, alongside staff-facing dashboards and a headless admin panel. The principal patient workflow is browsing care offerings, choosing appointment details, and managing a patient account; the repository also includes clinic content, IV therapy packages, doctor scheduling, and file/content administration. Several domain areas are represented by unsampled route trees, so those nodes are included without speculative call relationships; edges cite the excerpts or source-index references that establish them.
Main entry points: [locale] Localized pages · client.ts Admin HTTP client · admin Admin routes · useImagePicker.ts Image picker
Components 23
Public care website
- Localized pages
front_end/src/app/[locale] - Services and departments
front_end/src/components/services - IV therapy packages
front_end/src/components/iv-packages - Articles and categories
front_end/src/components/articles - Branches and doctors
front_end/src/components/branches
Booking and accounts
- Appointment wizard
front_end/src/components/booking - Booking state
front_end/src/components/booking/useBookingState.ts - Patient authentication
front_end/src/context/PatientAuthContext.tsx - Patient profile
front_end/src/components/profile/patient
Clinic operations
- Doctor profile
front_end/src/components/profile/doctor - Doctor schedule manager
front_end/src/components/profile/doctor/DoctorScheduleManager/DoctorScheduleManager.tsx - API query hooks
front_end/src/lib/api/hooks.ts - Staff dashboard
front_end/src/app/(dashboard)/dashboard
Admin and content
- Admin interface
front_end/src/admin/components/shell - Admin routes
front_end/src/app/(admin)/admin - Admin overview
front_end/src/admin/components/dashboard/Dashboard.tsx - Admin schema API
front_end/src/admin/api/admin.ts - Admin HTTP client
front_end/src/admin/api/client.ts - File management
front_end/src/admin/components/files - Image picker
front_end/src/admin/hooks/useImagePicker.ts - Dynamic model admin
front_end/src/admin/components/dynamic
Other components
- Site visitor
- Application API
Connections 22
- Site visitor → Localized pages: browses
- Localized pages → Services and departments: presents
- Localized pages → IV therapy packages: presents
- Localized pages → Articles and categories: presents
- Localized pages → Branches and doctors: presents
- Site visitor → Appointment wizard: starts booking
- Appointment wizard → Booking state: manages state
front_end/src/components/booking/useBookingState.ts - Booking state → Application API: checks status
front_end/src/components/booking/useBookingState.ts - Site visitor → Patient authentication: signs in
- Patient authentication → Patient profile: unlocks
- Doctor profile → Doctor schedule manager: manages availability
front_end/src/components/profile/doctor/DoctorScheduleManager/DoctorScheduleManager.tsx - Doctor schedule manager → API query hooks: queries appointments
front_end/src/components/profile/doctor/DoctorScheduleManager/DoctorScheduleManager.tsx - Staff dashboard → Application API: loads operations data
- Admin routes → Admin interface: uses shell
- Admin routes → Admin overview: renders overview
- Admin overview → Admin schema API: requests schemas
front_end/src/admin/components/dashboard/DashboardClientWrapper.tsx - Admin schema API → Admin HTTP client: uses HTTP client
- Admin HTTP client → Application API: sends requests
front_end/src/admin/api/client.ts - File management → Admin HTTP client: loads and deletes files
front_end/src/admin/components/files/useFilesPage.ts - Image picker → Admin HTTP client: loads file library
front_end/src/admin/hooks/useImagePicker.ts - Image picker → Application API: uploads files
front_end/src/admin/hooks/useImagePicker.ts - Admin routes → Dynamic model admin: renders model pages