How notjofe/musuqdent works
MusuqDent is a backend-free dental clinic management app. Staff sign in with Google or enter demo mode, then use routed clinic pages to manage patients, doctors, appointments, care records and payments; data is persisted in Google Sheets or browser-local demo storage. The graph preserves the documented import, finance, appointment-sharing and patient-balance capabilities. Some page behavior is documented but its implementation was not sampled, so those links cite the README; other relationships rely on the source index or excerpts.
Main entry points: DataContext.jsx Clinic data access · App.jsx Router and access · AuthContext.jsx Session and OAuth · AppointmentModal.jsx Appointment actions
Components 26
Application
- Router and access
src/App.jsx - Clinic overview
src/pages/Dashboard.jsx - Clinic settings
src/pages/Settings.jsx
Clinic records
- Patient records
src/pages/Patients.jsx - Patient history
src/pages/PatientDetail.jsx - Doctor records
src/pages/Doctors.jsx - Appointment calendar
src/pages/CalendarPage.jsx - Appointment actions
src/components/AppointmentModal.jsx - Visit and payment actions
src/components/AttendedActions.jsx
Clinic operations
- Finance view
src/pages/Finance.jsx - Payment reporting
src/lib/report.js - Finance chart
src/components/BarChart.jsx - Import workflow
src/pages/ImportPage.jsx - File mapping and validation
src/lib/importer.js
Access and sharing
- Sign-in
src/pages/Login.jsx - Session and OAuth
src/auth/AuthContext.jsx - Google Identity
src/auth/google.js - Appointment sharing
src/lib/share.js
Data services
- Clinic data access
src/data/DataContext.jsx - Record schema
src/lib/schema.js - Patient balances
src/lib/finance.js - Google Sheets store
src/data/sheetsStore.js - Demo local store
src/data/localStore.js
Other components
- Clinic staff
- Google Sheets
- Browser storage
Connections 42
- Clinic staff → Router and access: opens app
README.md - Router and access → Session and OAuth: provides session
src/App.jsx - Router and access → Sign-in: routes unauthenticated
src/App.jsx - Sign-in → Session and OAuth: signs in
src/pages/Login.jsx - Session and OAuth → Google Identity: checks identity
src/auth/AuthContext.jsx - Session and OAuth → Browser storage: stores session
src/auth/AuthContext.jsx - Session and OAuth → Router and access: gates clinic routes
src/App.jsx - Router and access → Clinic overview: routes to
src/App.jsx - Router and access → Patient records: routes to
src/App.jsx - Router and access → Patient history: routes to
src/App.jsx - Router and access → Doctor records: routes to
src/App.jsx - Router and access → Appointment calendar: routes to
src/App.jsx - Router and access → Finance view: routes to
src/App.jsx - Router and access → Import workflow: routes to
src/App.jsx - Router and access → Clinic settings: routes to
src/App.jsx - Clinic data access → Session and OAuth: gets session token
src/data/DataContext.jsx - Clinic data access → Google Sheets store: uses Google mode
src/data/DataContext.jsx - Clinic data access → Demo local store: uses demo mode
src/data/DataContext.jsx - Google Sheets store → Google Sheets: reads and writes
README.md - Demo local store → Browser storage: persists demo data
README.md - Patient records → Clinic data access: reads and updates
src/pages/Patients.jsx - Patient history → Clinic data access: reads and updates
src/pages/PatientDetail.jsx - Doctor records → Clinic data access: reads and updates
src/pages/Doctors.jsx - Clinic overview → Clinic data access: reads clinic data
src/pages/Dashboard.jsx - Appointment calendar → Clinic data access: reads clinic data
src/pages/CalendarPage.jsx - Appointment calendar → Appointment actions: opens appointment
src/pages/CalendarPage.jsx - Appointment actions → Clinic data access: creates and updates
src/components/AppointmentModal.jsx - Appointment actions → Visit and payment actions: shows actions
src/components/AppointmentModal.jsx - Visit and payment actions → Clinic data access: records visit or payment
src/components/AttendedActions.jsx - Appointment actions → Appointment sharing: builds reminders
src/components/AppointmentModal.jsx - Patient history → Appointment actions: opens appointment editor
src/pages/PatientDetail.jsx - Patient history → Patient balances: shows account balance
README.md - Finance view → Clinic data access: reads clinic data
src/pages/Finance.jsx - Finance view → Payment reporting: filters and groups payments
src/pages/Finance.jsx - Finance view → Finance chart: renders results
src/pages/Finance.jsx - Import workflow → File mapping and validation: maps import rows
src/pages/ImportPage.jsx - Import workflow → Clinic data access: saves imported records
src/pages/ImportPage.jsx - File mapping and validation → Record schema: maps table fields
src/lib/importer.js - Clinic data access → Record schema: uses table definitions
src/data/DataContext.jsx - Clinic settings → Clinic data access: refreshes data
src/pages/Settings.jsx - Clinic settings → Session and OAuth: manages session
src/pages/Settings.jsx - Clinic settings → Browser storage: saves configuration