How govindkr21/madnir works
This is a React clinic-management frontend branded Madnir, rather than the Vite template described by the README. Its principal user flow is authentication into a role-aware workspace, where clinic staff manage the queue and patients, conduct consultations, and produce prescriptions. The tree also identifies follow-ups, notifications, organization administration, and staff management. The route and authentication excerpts establish those dispatch paths; most page-to-API wiring is unsampled, so the graph does not infer those calls. API request modules and their backend are shown as a service boundary, not as a fully verified call chain.
Main entry points: DashboardRoutes.jsx Workspace routes · App.jsx Application shell · source API request modules · AuthRoutes.jsx Auth routes
Components 21
Application routing
- Application shell
src/App.jsx - Auth routes
src/routes/AuthRoutes.jsx - Sign in and signup
src/pages/auth/AuthPage.jsx - Workspace routes
src/routes/DashboardRoutes.jsx
Clinical workflow
- Queue dashboard
src/pages/DashboardPage.jsx - Patient records
src/pages/PatientsPage.jsx - Patient intake
src/pages/PatientEntry.jsx - Consultation
src/pages/NewConsultationPage.jsx - Consultation view
src/pages/ConsultationView.jsx - Follow-ups
src/pages/FollowupsPage.jsx - Prescription output
src/pages/PrescriptionGenerated.jsx - Notifications
src/pages/NotificationsPage.jsx
Organization administration
- Organization settings
src/pages/OrganizationPage.jsx - Staff management
src/pages/StaffManagementPage.jsx - Invite acceptance
src/pages/AcceptInvitePage.jsx - Approval status
src/pages/PendingApprovalPage.jsx
API and documents
- API request modules
src/source - Prescription PDF
src/tools/PrescriptionPdf.js - Clinical writing editor
src/components/NotepadEditor.jsx
Other components
- Doctor or staff
- Application backend
Connections 17
- Doctor or staff → Application shell: uses
- Application shell → Auth routes: renders unauthenticated
- Application shell → Workspace routes: renders authorized
- Application shell → Invite acceptance: routes public invite
- Application shell → Approval status: routes approval
- Auth routes → Sign in and signup: renders login and signup
- Sign in and signup → API request modules: calls account and password APIs
- Workspace routes → Queue dashboard: routes workspace
- Workspace routes → Consultation: routes consultation
- Workspace routes → Patient records: routes patients
- Workspace routes → Follow-ups: routes follow-ups
- Workspace routes → Notifications: routes notifications
- Workspace routes → Organization settings: routes admin
- Workspace routes → Staff management: routes staff
- Organization settings → API request modules: calls organization APIs
- API request modules → Application backend: requests data
- Prescription output → Prescription PDF: generates document