How bhavyasharan/college-complaint-management-system works
The product is a campus complaint portal with student and staff sign-in, complaint filing and tracking, technician assignment and rectification, student confirmation, and staff dashboards and analytics. The frontend routes users into role-specific pages, which use a shared Supabase client; the sampled HOD and technician code shows complaint assignment and status handling. The README describes a Flask API and automated routing, but the available evidence does not show frontend-to-backend calls or the complete routing implementation, so those links are omitted.
Main entry points: App.jsx Route dispatcher · supabaseClient.js Supabase client · TechnicianDashboard.jsx Technician resolution · HodDashboard.jsx Department assignment
Components 19
Portal and access
- Route dispatcher
frontend/src/App.jsx - Role selection
frontend/src/components/RoleSelection.jsx - Session guard
frontend/src/components/ProtectedRoute.jsx - Student access
frontend/src/pages/StudentLogin.jsx - Staff access
frontend/src/pages/AdminLogin.jsx - Account registration
frontend/src/pages/StudentSignUp.jsx - Staff registration
frontend/src/pages/AdminSignUp.jsx
Student services
- Complaint filing and tracking
frontend/src/pages/StudentDashboard.jsx - User profile
frontend/src/pages/Profile.jsx
Staff resolution
- Department assignment
frontend/src/pages/HodDashboard.jsx - Technician resolution
frontend/src/pages/TechnicianDashboard.jsx - Dean overview
frontend/src/pages/DeanDashboard.jsx - Department analytics
frontend/src/pages/DepartmentAnalytics.jsx - Teacher performance
frontend/src/pages/TeacherPerformance.jsx - Dashboard navigation
frontend/src/components/Navbar.jsx
Services and API
- Supabase client
frontend/src/supabaseClient.js - Supabase auth and database
- Flask API
backend/app.py
Other components
- Campus user
Connections 29
- Campus user → Role selection: chooses role
frontend/src/components/RoleSelection.jsx - Route dispatcher → Role selection: routes to
frontend/src/App.jsx - Route dispatcher → Student access: routes to
frontend/src/App.jsx - Route dispatcher → Staff access: routes to
frontend/src/App.jsx - Route dispatcher → Account registration: routes to
frontend/src/App.jsx - Route dispatcher → Staff registration: routes to
frontend/src/App.jsx - Route dispatcher → Session guard: protects routes
frontend/src/App.jsx - Session guard → Supabase client: checks session
frontend/src/components/ProtectedRoute.jsx - Route dispatcher → Complaint filing and tracking: routes to
frontend/src/App.jsx - Route dispatcher → User profile: routes to
frontend/src/App.jsx - Route dispatcher → Department assignment: routes to
frontend/src/App.jsx - Route dispatcher → Technician resolution: routes to
frontend/src/App.jsx - Route dispatcher → Dean overview: routes to
frontend/src/App.jsx - Route dispatcher → Department analytics: routes to
frontend/src/App.jsx - Route dispatcher → Teacher performance: routes to
frontend/src/App.jsx - Student access → Supabase client: authenticates with
frontend/src/pages/StudentLogin.jsx - Staff access → Supabase client: authenticates with
frontend/src/pages/AdminLogin.jsx - Account registration → Supabase client: registers with
frontend/src/pages/StudentSignUp.jsx - Staff registration → Supabase client: registers with
frontend/src/pages/AdminSignUp.jsx - Complaint filing and tracking → Supabase client: reads and updates
frontend/src/pages/StudentDashboard.jsx - Department assignment → Supabase client: loads and assigns
frontend/src/pages/HodDashboard.jsx - Technician resolution → Supabase client: loads and updates
frontend/src/pages/TechnicianDashboard.jsx - Dean overview → Supabase client: loads complaints
frontend/src/pages/DeanDashboard.jsx - Department analytics → Supabase client: queries data
frontend/src/pages/DepartmentAnalytics.jsx - Teacher performance → Supabase client: queries data
frontend/src/pages/TeacherPerformance.jsx - User profile → Supabase client: queries data
frontend/src/pages/Profile.jsx - Supabase client → Supabase auth and database: connects to
frontend/src/supabaseClient.js - Department assignment → Technician resolution: assigns work
- Technician resolution → Complaint filing and tracking: awaits confirmation