How mohammadnasas/dentalcloud works
DentaCare is a bilingual dental-clinic management application with local/offline and optional Supabase-backed accounts. Its main workflow is clinic sign-in, navigating practice and patient records, recording clinical findings and treatment, and managing appointments, payments, and reporting. The README documents the major clinical and administrative capabilities; the source index and excerpts establish application routing, shared state, and parts of the persistence and payment layers. Several feature implementations are unsampled, so their internal call paths are not asserted.
Main entry points: App.jsx App routes · PatientProfile.jsx Patient profile · StoreContext.jsx Clinic state · backend.js Backend adapter
Components 23
Application shell
- App routes
src/App.jsx - Bilingual UI
src/i18n/I18nContext.jsx - Clinic login
src/pages/Login.jsx
Clinical records
- Patient directory
src/pages/Patients.jsx - Patient profile
src/pages/PatientProfile.jsx - Dental chart
src/components/patient/DentalChart.jsx - Perio chart
src/components/patient/PerioChart.jsx - Medical history
src/components/patient/HistoryForm.jsx - Treatments
src/components/patient/TreatmentsPanel.jsx - Images and X-rays
src/components/patient/Gallery.jsx
Practice operations
- Appointments
src/pages/Appointments.jsx - Payments
src/pages/Payments.jsx - Lab orders
src/pages/Lab.jsx - Clinic reports
src/pages/Reports.jsx - Treatment instructions
src/pages/Instructions.jsx - Patient exports
src/lib/wordExport.js
Data and services
- Clinic state
src/context/StoreContext.jsx - Local records
src/lib/db.js - Backend adapter
src/lib/backend.js - Supabase service
src/lib/supabaseClient.js - Media storage
src/lib/media.js - PayPal billing
src/lib/payments.js
Other components
- Clinic user
Connections 24
- Clinic user → App routes: uses
README.md - App routes → Clinic login: routes to
src/App.jsx - App routes → Patient directory: routes to
src/App.jsx - App routes → Patient profile: routes to
src/App.jsx - App routes → Appointments: routes to
src/App.jsx - App routes → Payments: routes to
src/App.jsx - App routes → Lab orders: routes to
src/App.jsx - App routes → Clinic reports: routes to
README.md - App routes → Treatment instructions: routes to
src/App.jsx - App routes → Clinic state: reads state
src/App.jsx - Clinic state → Backend adapter: calls
src/context/StoreContext.jsx - Clinic state → Local records: uses
src/context/StoreContext.jsx - Backend adapter → Supabase service: uses
src/lib/backend.js - Backend adapter → Local records: uses
src/lib/backend.js - Clinic state → PayPal billing: syncs billing
src/context/StoreContext.jsx - Patient profile → Dental chart: shows
- Patient profile → Perio chart: shows
README.md - Patient profile → Medical history: shows
README.md - Patient profile → Treatments: shows
README.md - Patient profile → Images and X-rays: shows
README.md - Images and X-rays → Media storage: uses
src/components/patient/Gallery.jsx - Dental chart → Treatments: uses
src/components/patient/DentalChart.jsx - Patient profile → Patient exports: exports records
README.md - App routes → Bilingual UI: provides context
src/main.jsx