How 2minstudio/fuel-frontend works
This is a clinic-management web application for staff and patients, covering appointment scheduling, patient records, billing, reporting, and clinic configuration. The central staff workflow opens the dashboard calendar, selects a clinic and date, and works with appointments and their detail drawer; appointment and billing actions are represented as distinct domain stages. Shared helpers handle API access and session/location state. The README confirms that Next.js API routes are exposed under /api/*. Several API and page implementations were not sampled, so uncertain connections are omitted.
Main entry points: utils.js API helpers · newCalendar.js Calendar view · loadChindren.js Appointment actions · crud.js CRUD helpers
Components 21
Scheduling
- Dashboard page
pages/dashboard/index.js - Calendar view
components/calender/newCalendar.js - Appointment drawer
components/dashboard/rightDrawer.js - Appointment actions
components/dashboard/loadChindren.js - Status changes
components/appointment/changestatus.js
Patient care
- Patient pages
pages/patients/index.js - Patient search
components/global/searchbar.js - Patient list
components/patient/list.js - Patient profile
pages/patient/[id].js
Billing
- Payment collection
components/form/collect.js - Billing views
components/billing/billingitem.js - Payment views
components/billing/payment.js
Application platform
- Application API routes
pages/api - API helpers
helpers/utils.js - CRUD helpers
helpers/crud.js - Session and location
helpers/otherUtils.js - Shared UI state
helpers/state.js
Clinic operations
- Reports
components/report/detailReports.js - Clinic settings
pages/dashboard/settings/index.js
Other components
- Clinic staff
- Configured API service
Connections 27
- Clinic staff → Dashboard page: opens
pages/dashboard/index.js - Dashboard page → Calendar view: renders
pages/dashboard/index.js - Calendar view → Appointment drawer: opens
components/calender/newCalendar.js - Appointment drawer → Appointment actions: renders
components/dashboard/rightDrawer.js - Appointment actions → Status changes: uses
components/dashboard/loadChindren.js - Clinic staff → Patient pages: opens
- Patient pages → API helpers: uses
pages/patients/index.js - Clinic staff → Patient search: searches
- Patient search → API helpers: fetches patients
components/global/searchbar.js - Patient search → Patient list: renders
components/global/searchbar.js - Clinic staff → Patient profile: opens
- Appointment actions → Shared UI state: updates
components/dashboard/loadChindren.js - Appointment actions → API helpers: loads appointment
components/dashboard/loadChindren.js - Calendar view → API helpers: loads patient
components/calender/newCalendar.js - Calendar view → CRUD helpers: deletes item
components/calender/newCalendar.js - Clinic staff → Payment collection: collects payment
- Payment collection → API helpers: creates or updates
components/form/collect.js - Billing views → CRUD helpers: uses
components/billing/billingitem.js - Payment views → API helpers: uses
components/billing/payment.js - Clinic staff → Reports: views
- Clinic staff → Clinic settings: configures clinic
- API helpers → Application API routes: posts to
helpers/utils.js - Application API routes → Configured API service: serves requests
- CRUD helpers → Configured API service: requests data
helpers/crud.js - API helpers → Session and location: uses
helpers/utils.js - CRUD helpers → Session and location: gets auth token
helpers/crud.js - Status changes → Shared UI state: uses
components/appointment/changestatus.js