How argellucas/student-monitoring-system works
StudentMonitor is a student attendance and class-management portal. Its main workflow is GitHub sign-in, profile completion and administrator approval, followed by timetable viewing and protected attendance check-in. Administrators manage students and class windows, monitor attendance, and produce filtered reports with CSV export. The React app coordinates these workflows through session and API layers backed by Supabase; database migrations define the security boundary. Edges reflect excerpts or README statements; some unsampled feature wiring is therefore omitted.
Main entry points: AdminPages.jsx Admin pages · StudentPages.jsx Student pages · App.jsx Protected routes · api.js Supabase API
Components 23
Application and session
- React entry
src/main.jsx - Protected routes
src/App.jsx - Session provider
src/state/SessionProvider.jsx - Shared UI and motion
src/components/UI.jsx
Student experience
- Student pages
src/pages/StudentPages.jsx - Access landing
src/components/AccessLanding.jsx - Student workflow
src/lib/student-flow.js - Student dashboard
src/lib/student-dashboard.js - Student experience
src/components/StudentExperience.jsx
Administrator workspace
- Admin pages
src/pages/AdminPages.jsx - Dashboard calculations
src/pages/admin-dashboard.js - Admin screens
src/pages/screens.js - Dashboard focus
src/components/DashboardFocus.jsx
Data and domain logic
- OAuth and session
src/lib/auth.js - Supabase API
src/lib/api.js - Supabase client
src/lib/supabase.js - Schedule logic
src/lib/schedule.js - Daily register
src/lib/daily-register.js - Reports and CSV
src/lib/report.js - Attendance views
src/lib/attendance-views.js - Formatting helpers
src/lib/format.js
Other components
- Student or admin
- Supabase Auth and database
supabase/migrations/202611190001_initial.sql
Connections 31
- Student or admin → React entry: opens portal
README.md - React entry → Session provider: provides session
src/main.jsx - React entry → Protected routes: renders
src/main.jsx - Protected routes → Session provider: guards routes
src/App.jsx - Protected routes → Student pages: routes to
src/App.jsx - Protected routes → Admin pages: routes to
src/App.jsx - Protected routes → Shared UI and motion: renders
src/App.jsx - Session provider → Supabase API: loads context and data
src/state/SessionProvider.jsx - Session provider → OAuth and session: starts heartbeat
src/state/SessionProvider.jsx - OAuth and session → Supabase client: starts OAuth and signs out
src/lib/auth.js - OAuth and session → Supabase API: revokes session
src/lib/auth.js - Student pages → Supabase API: loads and submits
src/pages/StudentPages.jsx - Student pages → Access landing: renders
src/pages/StudentPages.jsx - Student pages → Student workflow: uses workflow logic
src/pages/StudentPages.jsx - Student pages → Student dashboard: uses dashboard data
src/pages/StudentPages.jsx - Student pages → Student experience: renders
src/pages/StudentPages.jsx - Student pages → Schedule logic: uses schedule logic
src/pages/StudentPages.jsx - Admin pages → Supabase API: loads and updates
src/pages/AdminPages.jsx - Admin pages → Dashboard calculations: uses calculations
src/pages/AdminPages.jsx - Admin pages → Admin screens: uses screen logic
src/pages/AdminPages.jsx - Admin pages → Dashboard focus: renders focus panel
src/pages/AdminPages.jsx - Admin pages → Reports and CSV: builds reports
src/pages/AdminPages.jsx - Admin pages → Daily register: uses register logic
src/pages/AdminPages.jsx - Admin pages → Schedule logic: uses schedule logic
src/pages/AdminPages.jsx - Admin pages → Shared UI and motion: renders shared controls
src/pages/AdminPages.jsx - Admin pages → OAuth and session: logs out
src/pages/AdminPages.jsx - Supabase API → Supabase client: queries and invokes RPC
src/lib/api.js - Supabase client → Supabase Auth and database: accesses protected services
README.md - Student workflow → Schedule logic: uses schedule logic
src/lib/student-flow.js - Reports and CSV → Schedule logic: checks windows
src/lib/report.js - Admin screens → Dashboard calculations: uses calculations
src/pages/screens.js