How fikriramadhanss/monitoring-system works
SIMBA is a role-based case-management system for monitoring correctional guidance. Staff sign in, enter a protected dashboard, and manage clients, guidance schedules, session reports, notifications, users, and statistical recaps; report and recap screens also support exporting. The frontend API client connects these workflows to PHP endpoints and a MySQL database, while authentication maintains session and user state. Backend endpoint details and some page-to-data behavior were not sampled, so uncertain connections are omitted.
Main entry points: App.jsx Routing and access · api.js API client · AuthContext.jsx Authentication state · database.php Database connection
Components 28
Application Shell
- Routing and access
src/App.jsx - Authentication state
src/context/AuthContext.jsx - Login
src/pages/LoginPage.jsx - App layout
src/components/layout/AppLayout.jsx - Role guard
src/components/common/RoleGuard.jsx - User profile
src/pages/ProfilPage.jsx
Guidance Workflows
- Client registry
src/pages/DaftarKlienPage.jsx - Client details
src/pages/DetailKlienPage.jsx - Guidance schedule
src/pages/JadwalPage.jsx - Session report form
src/pages/FormLaporanPage.jsx - Report review
src/pages/DaftarLaporanPage.jsx - Notifications
src/pages/NotifikasiPage.jsx - User management
src/pages/ManajemenPenggunaPage.jsx
Monitoring and Exports
- Dashboard
src/pages/DashboardPage.jsx - Statistics recap
src/pages/RekapStatistikPage.jsx - Export controls
src/components/ui/ExportModal.jsx - PDF and Excel export
src/utils/exportService.js
Backend and Data
- API client
src/services/api.js - Authentication API
api/auth.php - Client API
api/klien.php - Schedule API
api/jadwal.php - Report API
api/laporan.php - Notification API
api/notifikasi.php - User API
api/pengguna.php - Statistics API
api/statistik.php - Database connection
api/config/database.php
Other components
- Staff user
- MySQL database
Connections 39
- Staff user → Routing and access: opens
src/App.jsx - Routing and access → Authentication state: provides session
src/App.jsx - Routing and access → Login: routes to
src/App.jsx - Routing and access → Role guard: guards routes
src/App.jsx - Routing and access → App layout: wraps protected pages
src/App.jsx - Login → Authentication state: authenticates through
src/pages/LoginPage.jsx - Authentication state → API client: requests identity
src/context/AuthContext.jsx - Authentication state → Authentication API: login and lookup
- Authentication state → User API: manages users
src/context/AuthContext.jsx - Routing and access → Dashboard: routes to
src/App.jsx - Routing and access → Client registry: routes to
src/App.jsx - Routing and access → Client details: routes to
src/App.jsx - Routing and access → Guidance schedule: routes to
src/App.jsx - Routing and access → Session report form: routes to
src/App.jsx - Routing and access → Report review: routes to
src/App.jsx - Routing and access → Statistics recap: routes to
src/App.jsx - Routing and access → User management: routes to
src/App.jsx - Routing and access → Notifications: routes to
src/App.jsx - Routing and access → User profile: routes to
src/App.jsx - Client registry → API client: requests client data
src/pages/DaftarKlienPage.jsx - Client details → API client: requests client data
src/pages/DetailKlienPage.jsx - Guidance schedule → API client: requests schedule data
src/pages/JadwalPage.jsx - Session report form → API client: submits reports
src/pages/FormLaporanPage.jsx - Report review → API client: requests reports
src/pages/DaftarLaporanPage.jsx - Notifications → API client: requests notifications
src/pages/NotifikasiPage.jsx - User management → API client: manages accounts
- Dashboard → API client: requests dashboard data
src/pages/DashboardPage.jsx - Statistics recap → API client: requests recap data
src/pages/RekapStatistikPage.jsx - Report review → Export controls: offers export
src/pages/DaftarLaporanPage.jsx - Statistics recap → Export controls: offers export
src/pages/RekapStatistikPage.jsx - Export controls → PDF and Excel export: generates files
src/components/ui/ExportModal.jsx - API client → Authentication API: calls endpoint
src/services/api.js - API client → Client API: calls endpoint
src/services/api.js - API client → Schedule API: calls endpoint
src/services/api.js - API client → Report API: calls endpoint
src/services/api.js - Authentication API → Database connection: uses connection helpers
api/auth.php - Client API → Database connection: uses connection helpers
api/klien.php - Report API → Database connection: uses connection helpers
api/laporan.php - Database connection → MySQL database: connects to
api/config/database.php