How codpangestu/jacos-fe works
JACOS is a role-based school operations web app: users enter through public or login routes, then use role-specific dashboards and workflows for school administration, teaching/staff duties, and parent access to child, attendance, pickup, and finance information. The router and selected pages show this structure; many other domain pages are represented by their exact enclosing directories because their implementations were not sampled. The API client confirms a cookie-authenticated backend boundary. The README is generic React/Vite template text, so product capabilities are inferred from the route and source index.
Main entry points: router.jsx Role router · api.js API client · OrtuDashboard.jsx Parent dashboard · auth Login and identity
Components 25
Access and shells
- App provider
src/App.jsx - Role router
src/router.jsx - Login and identity
src/pages/auth - Route guards
src/components - Responsive shells
src/layouts/ResponsiveShell.jsx
Administration
- Admin dashboard
src/pages/admin/AdminDashboard.jsx - Student records
src/pages/admin/AdminStudents.jsx - Admin master data
src/pages/admin - Attendance reporting
src/pages/admin - Finance management
src/pages/admin - Staff and leave
src/pages/admin
School operations
- Teacher workflows
src/pages/guru - Staff workflows
src/pages/staff - Pickup verification
src/pages/pickup/PickupVerify.jsx - Self attendance
src/pages/self-attendance/SelfAttendance.jsx
Family portal
- Parent dashboard
src/pages/ortu/OrtuDashboard.jsx - Child and attendance
src/pages/ortu - Parent payments
src/pages/ortu - Parent pickups
src/pages/ortu
Shared services
- API client
src/lib/api.js - Notifications
src/components/NotificationBell.jsx - Active child context
src/hooks/useOrtuChildren.js - Localization and formatting
src/lib/format.js
Other components
- School user
- JACOS backend
Connections 31
- School user → App provider: opens
- App provider → Role router: provides routing
src/App.jsx - Role router → Login and identity: routes to
src/router.jsx - Role router → Admin dashboard: routes to
src/router.jsx - Role router → Student records: routes to
src/router.jsx - Role router → Admin master data: routes to
src/router.jsx - Role router → Attendance reporting: routes to
src/router.jsx - Role router → Finance management: routes to
src/router.jsx - Role router → Staff and leave: routes to
src/router.jsx - Role router → Teacher workflows: routes to
src/router.jsx - Role router → Staff workflows: routes to
src/router.jsx - Role router → Pickup verification: routes to
src/router.jsx - Role router → Self attendance: routes to
src/router.jsx - Role router → Parent dashboard: routes to
src/router.jsx - Role router → Child and attendance: routes to
src/router.jsx - Role router → Parent payments: routes to
src/router.jsx - Role router → Parent pickups: routes to
src/router.jsx - Role router → Route guards: wraps protected routes
src/router.jsx - Parent dashboard → Responsive shells: renders within
src/pages/ortu/OrtuDashboard.jsx - Responsive shells → API client: uses identity
src/layouts/ResponsiveShell.jsx - Student records → API client: loads records
src/pages/admin/AdminStudents.jsx - Parent dashboard → Active child context: gets child context
src/pages/ortu/OrtuDashboard.jsx - Active child context → API client: fetches children
src/hooks/useOrtuChildren.js - Parent dashboard → API client: loads dashboard data
src/pages/ortu/OrtuDashboard.jsx - Teacher workflows → API client: uses API
src/pages/guru/GuruAttendance.jsx - Pickup verification → API client: uses API
src/pages/pickup/PickupVerify.jsx - Login and identity → API client: authenticates
src/pages/auth/Login.jsx - API client → JACOS backend: sends HTTP requests
src/lib/api.js - Parent dashboard → Notifications: displays notifications
src/pages/ortu/OrtuDashboard.jsx - API client → Login and identity: clears expired session
src/lib/api.js - Admin dashboard → Localization and formatting: formats values
src/pages/admin/AdminDashboard.jsx