How mostafa00zedan/clinicflow works
ClinicFlow is a browser-only clinic booking demo with patient and staff workflows; appointments, settings, and the simulated reminder queue live in localStorage. The patient flow selects service, clinician and slot, captures details, then books or manages an appointment; staff review appointments and maintain schedules and settings. The README documents the dashboard, calendar export, demo reminders, localization, and decorative motion. Edges below are limited to calls visible in excerpts or capabilities explicitly documented in the README; unsampled page wiring is not inferred.
Main entry points: store.js Appointment store · booking.js Booking wizard · staff.js Staff dashboard · slots.js Slot generation
Components 17
Patient booking
- Booking wizard
js/booking.js - Manage booking
js/booking.js
Staff operations
- Staff dashboard
js/staff.js - Schedule board
js/staff.js - Clinic settings
js/staff.js
Booking domain
- Sample clinic
js/data.js - Slot generation
js/slots.js - Appointment store
js/store.js - Demo reminder queue
js/store.js - Timezone and rules
js/config.js - Clinic time helpers
js/time.js
Shared presentation
- Shared UI helpers
js/ui.js - UI strings
js/strings.js - Decorative motion
js/motion.js - Calendar export
js/ui.js
Other components
- Patient
- Clinic staff
Connections 24
- Patient → Booking wizard: uses
README.md - Booking wizard → Slot generation: requests slots
js/booking.js - Booking wizard → Appointment store: creates booking
js/booking.js - Booking wizard → Manage booking: opens management
js/booking.js - Manage booking → Appointment store: requests changes
- Appointment store → Slot generation: checks availability
js/store.js - Clinic staff → Staff dashboard: uses
README.md - Staff dashboard → Appointment store: updates bookings
- Staff dashboard → Schedule board: shows schedule
js/staff.js - Staff dashboard → Clinic settings: edits settings
js/staff.js - Appointment store → Demo reminder queue: queues notices
js/store.js - Appointment store → Sample clinic: seeds state
js/store.js - Sample clinic → Slot generation: generates appointments
js/data.js - Slot generation → Clinic time helpers: uses dates
js/slots.js - Appointment store → Clinic time helpers: computes clinic time
js/store.js - Slot generation → Timezone and rules: reads booking rules
js/slots.js - Shared UI helpers → Clinic time helpers: formats dates
js/ui.js - Shared UI helpers → Appointment store: reads countdown time
js/ui.js - Booking wizard → Shared UI helpers: renders dialogs
- Staff dashboard → Shared UI helpers: renders dialogs
js/staff.js - Booking wizard → Calendar export: offers export
README.md - Calendar export → Appointment store: formats appointment
README.md - Booking wizard → UI strings: uses translations
README.md - Booking wizard → Decorative motion: animates booking
README.md