How sammy-black/plural-health works
This is a client-side clinic appointments dashboard, with sample appointment data rather than a demonstrated backend. The main workflow is to search patients or review appointment rows, then open a patient-entry or appointment-creation form. Appointment creation gathers patient, clinic, appointment type, date, and time; patient entry supports a photo-capture flow. The graph also includes the dashboard header and shared appointment table/status components. Evidence is limited to the README, source index, and sampled excerpts; unsampled modal and form wiring is not inferred.
Main entry points: page.tsx Appointments page · index.tsx Appointment table · CreateAppointmentModal.tsx Create appointment · ImageCaptureModal.tsx Image capture
Components 26
Dashboard
- Appointments page
app/(dashboard)/page.tsx - Staff header
components/layout/Header.tsx - Patient search
components/form/AutoCompleteField.tsx
Appointment workflow
- Sample appointments
lib/dummyData.ts - Appointment table
components/appointments/index.tsx - Appointment rows
components/appointments/AppointmentsTable.tsx - Appointment status
components/appointments/AppointmentStatusBox.tsx - Paper record status
components/appointments/PaperRecordStatusBox.tsx - Table pagination
components/appointments/AppointmentsTablePagination.tsx - Create appointment
components/modal/CreateAppointmentModal.tsx - Clinic selection
components/modal/ClinicTypeModal.tsx - Appointment type
components/modal/AppointmentTypeModal.tsx - Appointment calendar
components/shared/CreateAppointmentCalendar.tsx - Appointment validation
validations/createAppointmentSchema.ts
Patient intake
- Add patient modal
components/modal/AddPatientModal.tsx - Patient form
components/forms/AddPatientForm.tsx - Image capture
components/modal/ImageCaptureModal.tsx - Image picker
hooks/useImagePicker.ts
Shared UI
- Modal state hook
hooks/useModal.ts - User avatar
components/shared/UserAvatar.tsx - Avatar primitive
components/ui/avatar.tsx - Dialog primitive
components/ui/dialog.tsx - Button primitive
components/ui/button.tsx - Dropdown primitive
components/ui/dropdown-menu.tsx - Calendar primitive
components/ui/calendar.tsx
Other components
- Clinic staff
Connections 26
- Clinic staff → Appointments page: uses
app/(dashboard)/page.tsx - Appointments page → Staff header: renders
app/(dashboard)/page.tsx - Appointments page → Patient search: renders
app/(dashboard)/page.tsx - Appointments page → Appointment table: renders
app/(dashboard)/page.tsx - Appointments page → Sample appointments: searches
app/(dashboard)/page.tsx - Appointments page → Add patient modal: opens
app/(dashboard)/page.tsx - Appointments page → Create appointment: opens
app/(dashboard)/page.tsx - Appointments page → Modal state hook: uses
app/(dashboard)/page.tsx - Appointment table → Sample appointments: displays
components/appointments/index.tsx - Appointment table → Appointment rows: renders
components/appointments/index.tsx - Appointment table → Appointment status: renders
components/appointments/index.tsx - Appointment table → Paper record status: renders
components/appointments/index.tsx - Appointment table → Table pagination: renders
components/appointments/index.tsx - Create appointment → Clinic selection: opens
components/modal/CreateAppointmentModal.tsx - Create appointment → Appointment type: opens
components/modal/CreateAppointmentModal.tsx - Create appointment → Appointment calendar: renders
components/modal/CreateAppointmentModal.tsx - Create appointment → Appointment validation: validates with
components/modal/CreateAppointmentModal.tsx - Patient form → User avatar: renders
components/forms/AddPatientForm.tsx - Patient form → Image capture: opens
components/forms/AddPatientForm.tsx - Image capture → Image picker: uses
components/modal/ImageCaptureModal.tsx - Staff header → User avatar: renders
components/layout/Header.tsx - User avatar → Avatar primitive: uses
components/shared/UserAvatar.tsx - Image capture → Dialog primitive: uses
components/modal/ImageCaptureModal.tsx - Create appointment → Button primitive: renders
components/modal/CreateAppointmentModal.tsx - Appointment table → Dropdown primitive: uses
components/appointments/index.tsx - Appointment calendar → Calendar primitive: uses
components/shared/CreateAppointmentCalendar.tsx