How bongs20/smart-pabbura works
Smart-Pabbura is a Next.js oral-health monitoring application for tracking stomatitis symptoms, pain, pH, hydration, and recovery. Users record symptoms through periodic assessments and daily monitoring; those records are stored and surfaced in dashboards, history, and medical-report views. The app also includes account/profile management, dose tracking, notifications, and educational content. Supabase is documented as the authentication/backend integration, alongside local storage. Several page implementations were not sampled, so links for those capabilities are documented at the subsystem level rather than inferred from filenames.
Main entry points: storage.ts Health and account storage · app/page.tsx Health dashboard · cek-sariawan/page.tsx Ulcer assessment · monitoring/page.tsx Daily monitoring
Components 17
Health tracking
- Health dashboard
app/page.tsx - Ulcer assessment
app/cek-sariawan/page.tsx - Daily monitoring
app/monitoring/page.tsx - Pain log
app/pain-log/page.tsx - Ulcer records
app/ulcer-documentation/page.tsx - Dose tracking
app/dosis/page.tsx
Reports and guidance
- Health history
app/riwayat/page.tsx - Recommendations
app/rekomendasi/page.tsx - Oral health education
app/edukasi - Notifications
app/notifikasi/page.tsx
Account and access
- Sign in
app/login/page.tsx - Registration
app/register/page.tsx - Profile
app/profil/page.tsx
Shared services
- Health and account storage
lib/storage.ts - Supabase
- Domain types
types/index.ts
Other components
- Patient
Connections 18
- Patient → Health dashboard: views
- Patient → Ulcer assessment: assesses symptoms
- Patient → Daily monitoring: records metrics
- Patient → Dose tracking: tracks doses
- Ulcer assessment → Health and account storage: saves assessment
app/cek-sariawan/page.tsx - Daily monitoring → Health and account storage: saves measurements
app/monitoring/page.tsx - Pain log → Health and account storage: uses records
app/pain-log/page.tsx - Ulcer records → Health and account storage: uses records
app/ulcer-documentation/page.tsx - Dose tracking → Health and account storage: uses records
app/dosis/page.tsx - Health dashboard → Health and account storage: loads user
app/page.tsx - Health history → Health and account storage: uses records
app/riwayat/page.tsx - Sign in → Health and account storage: authenticates
app/login/page.tsx - Registration → Health and account storage: uses records
app/register/page.tsx - Profile → Health and account storage: updates profile
app/profil/page.tsx - Health and account storage → Supabase: uses auth client
lib/storage.ts - Daily monitoring → Health history: updates report data
app/monitoring/page.tsx - Health dashboard → Domain types: uses domain metrics
app/page.tsx - Ulcer assessment → Domain types: records health data
types/index.ts