How ph4n70mc0de/dentcare works
DentCare is a role-based dental appointment and patient-management application. Users enter through the app’s role-specific portals; patients can book or join a waitlist, while front-desk staff manage appointment-day events and dentists record consultations. The shared store exposes these operations and retains application state. The README documents lifecycle, exception, notification, and reminder capabilities; some corresponding source files were not sampled, so those links are documented rather than asserted as inspected implementation calls.
Main entry points: App.tsx Role router · useDentalStore.ts Store hook · BookingWizard.tsx Booking wizard · store.ts Dental state store
Components 20
Role Portals
- Role router
src/App.tsx - Patient portal
src/components/patient/PatientDashboard.tsx - Front-desk portal
src/components/frontdesk/FrontDeskDashboard.tsx - Dentist portal
src/components/dentist/DentistDashboard.tsx - Admin portal
src/components/admin/AdminDashboard.tsx
Booking and Exceptions
- Booking wizard
src/components/patient/BookingWizard.tsx - Waitlist management
src/components/admin/WaitlistEngine.tsx - Exception flows
src/components/exceptions
Clinic Operations
- Appointment day flow
src/components/frontdesk/AppointmentDayFlow.tsx - Payment and insurance
src/components/frontdesk/PaymentAndInsurance.tsx - Notifications
src/components/notifications/NotificationCenter.tsx - Clinic administration
src/components/admin
Clinical Records
- Consultation and exam
src/components/dentist/ConsultationAndExam.tsx - Patient directory
src/components/patient/PatientDirectory.tsx - Clinical histories
src/components/dentist/ClinicalHistories.tsx
Shared State
- Store hook
src/services/useDentalStore.ts - Dental state store
src/services/store.ts - Seed records
src/data/seedData.ts - Shared UI components
src/components/common
Other components
- Clinic users
Connections 29
- Clinic users → Role router: uses
README.md - Role router → Patient portal: routes to
src/App.tsx - Role router → Booking wizard: renders
src/App.tsx - Role router → Front-desk portal: routes to
src/App.tsx - Role router → Dentist portal: routes to
src/App.tsx - Role router → Admin portal: routes to
src/App.tsx - Patient portal → Booking wizard: offers booking
README.md - Booking wizard → Waitlist management: offers waitlist
README.md - Booking wizard → Dental state store: checks availability
README.md - Booking wizard → Exception flows: supports exceptions
README.md - Front-desk portal → Appointment day flow: manages appointments
README.md - Appointment day flow → Payment and insurance: handles payment
src/components/frontdesk/AppointmentDayFlow.tsx - Appointment day flow → Exception flows: opens exception flows
src/components/frontdesk/AppointmentDayFlow.tsx - Dentist portal → Consultation and exam: offers consultation
src/components/dentist/DentistDashboard.tsx - Dentist portal → Clinical histories: offers histories
src/components/dentist/DentistDashboard.tsx - Admin portal → Clinic administration: provides settings
src/components/admin/AdminDashboard.tsx - Admin portal → Patient directory: provides directory
src/components/admin/AdminDashboard.tsx - Store hook → Dental state store: delegates actions
src/services/useDentalStore.ts - Dental state store → Seed records: loads seed data
src/services/store.ts - Role router → Store hook: reads state
src/App.tsx - Booking wizard → Store hook: reads and updates
src/components/patient/BookingWizard.tsx - Appointment day flow → Store hook: reads and updates
src/components/frontdesk/AppointmentDayFlow.tsx - Consultation and exam → Store hook: reads and updates
src/components/dentist/ConsultationAndExam.tsx - Notifications → Store hook: reads and updates
src/components/notifications/NotificationCenter.tsx - Patient directory → Store hook: reads and updates
src/components/patient/PatientDirectory.tsx - Payment and insurance → Store hook: reads and updates
src/components/frontdesk/PaymentAndInsurance.tsx - Dental state store → Notifications: dispatches reminders
README.md - Dental state store → Exception flows: enforces lifecycle
README.md - Booking wizard → Shared UI components: uses controls
src/components/patient/BookingWizard.tsx