How leweprojects/mghsite works
This is a React clinic portal for finding doctors and managing patient appointments, with separate patient, doctor, and administrator experiences. The principal workflow runs from doctor discovery and appointment submission through verification/status tracking and consultation history; doctors manage their active queue, while administrators oversee appointments and clinic records. The excerpts confirm routing, Supabase access, face-to-face booking, and queue operations. Other branches are included from the file tree, but their internal wiring is not established by the sampled source.
Main entry points: App.js App routes · Dashboard.jsx Role dashboard · Supabase.js Supabase client · DoctorPage.jsx Doctor dashboard
Components 24
App entry
- App routes
src/App.js - Home
src/components/Homepage/Home.jsx
Patient services
- Role dashboard
src/components/patient/Dashboard.jsx - Doctor search
src/components/Doctor read/Doctors.jsx - Doctor details
src/components/Doctor read/DoctorInfo.jsx - Appointment flow
src/components/patient/Appointment Process/Appointment.jsx - Face-to-face booking
src/components/patient/Appointment Process/Face2face.jsx - Submission outcome
src/components/patient/Appointment Process/After Submitting/SuccessAppointment.jsx - Appointment verification
src/components/patient/Appointment Process/After Submitting/WaitingVerify.jsx - Appointment status
src/components/patient/Appointment Process/Appointment Status/Status.jsx - Consultation history
src/components/patient/Appointment Process/Archives/OnlineConsultationHistory.jsx
Clinical operations
- Doctor dashboard
src/components/Higher user level/Doctor/DoctorPage.jsx - Doctor appointments
src/components/Higher user level/Doctor/Appointments/Doc_Appointments.jsx - Doctor history
src/components/Higher user level/Doctor/Archives/DoctorConsulHistory.jsx
Administration
- Admin dashboard
src/components/Higher user level/Admin/AdminDashboard.jsx - Appointment review
src/components/Higher user level/Admin/Confirmation of Appointments/AppointmentConfirmation.jsx - Doctor management
src/components/Higher user level/Admin/Edit Doctors/EditDoctors.jsx - Patient management
src/components/Higher user level/Admin/Edit Patients/EditPatients.jsx - Messages and ratings
src/components/Higher user level/Admin/Message Page/Messages.jsx
Backend access
- Supabase client
src/components/config/Supabase.js - Supabase backend
Other components
- Visitor / patient
- Doctor
- Administrator
Connections 22
- Visitor / patient → App routes: opens
- Doctor → App routes: opens
- Administrator → App routes: opens
- App routes → Home: routes to
- App routes → Role dashboard: routes to
- App routes → Appointment flow: routes to
- App routes → Appointment status: routes to
- App routes → Appointment verification: routes to
- App routes → Submission outcome: routes to
- App routes → Doctor dashboard: routes to
- App routes → Doctor appointments: routes to
- App routes → Doctor history: routes to
- App routes → Admin dashboard: routes to
- App routes → Patient management: routes to
- Role dashboard → Doctor search: renders search
- Doctor search → Doctor details: links details
- Role dashboard → Admin dashboard: renders for admin
- Role dashboard → Doctor dashboard: renders for doctor
- Face-to-face booking → Supabase client: uses client
- Doctor dashboard → Supabase client: queries queue
- App routes → Supabase client: fetches profile
- Supabase client → Supabase backend: accesses