How adynu182/manage-obat works
Pantau Obat is a per-account medication and stock dashboard. Users sign in, configure medicines and dose schedules, then record doses; dose completion updates stock and date-specific adherence history. The app also supports stock corrections and restocking, daily notes, and printing a summary. The runtime is concentrated in app.js, with UI markup in index.html and Firebase settings in firebase-config.js. The README is empty and the source excerpts are partial, so the diagram shows only documented capabilities and evidenced Firebase interactions.
Main entry points: app.js App runtime · index.html Dashboard UI · firebase-config.js Firebase config
Components 16
Dashboard interface
- Dashboard UI
index.html - App runtime
app.js - Account access
app.js - Daily notes
app.js - Printable summary
app.js
Medication tracking
- Medicine definitions
app.js - Dose schedule
app.js - Dose tracking
app.js - Adherence history
app.js
Stock management
- Stock tracking
app.js - Restock records
app.js
Firebase services
- Firebase config
firebase-config.js - Firebase app
- Firebase Auth
- Firestore user data
Other components
- User
Connections 17
- User → Dashboard UI: uses
- Dashboard UI → App runtime: events
- Firebase config → App runtime: provides settings
- App runtime → Firebase app: initializes
- App runtime → Firebase Auth: authenticates
- App runtime → Firestore user data: reads and writes
- App runtime → Account access: handles
- App runtime → Medicine definitions: manages
- App runtime → Dose schedule: manages
- App runtime → Dose tracking: records doses
- App runtime → Adherence history: computes history
- App runtime → Daily notes: saves notes
- App runtime → Stock tracking: updates stock
- App runtime → Restock records: records restocks
- App runtime → Printable summary: builds print view
- Account access → Firebase Auth: sign-in and reset
- Dose tracking → Stock tracking: deducts quantities