How nagavakkalagadda/rymec-complaint-desk works
RYMEC Grievance Desk is a campus complaint-management platform. Students register or submit grievances, receive a tracking ID, follow progress, and can reopen or rate outcomes; staff handle complaint queues, while administrators use analytics and department tools. The backend provides authentication, complaint processing, persistence, audit logging, notifications, and documented SLA escalation. The README also describes duplicate detection, trend alerts, anonymous reporting, and public transparency. Some of those internals are not fully shown in the excerpts, so their links are documented rather than inferred from names.
Main entry points: App.tsx Application shell · server.js API server · api.ts API client · db.js Database and fallback
Components 28
User experience
- Application shell
frontend/src/App.tsx - Authentication UI
frontend/src/components/auth/RoundGlassAuth.tsx - OTP verification
frontend/src/components/auth/OtpOrbitVerification.tsx - Complaint submission
frontend/src/components/student/ComplaintSubmissionForm.tsx - Complaint tracking
frontend/src/components/student/ComplaintTrackingView.tsx - Student dashboard
frontend/src/components/student/StudentDashboard.tsx - Staff dashboard
frontend/src/components/staff/StaffDashboard.tsx - Analytics dashboard
frontend/src/components/analytics/AnalyticsDashboard.tsx - Transparency wall
frontend/src/components/public/TransparencyWall.tsx - Grievance chatbot
frontend/src/components/chatbot/GrievanceChatbot.tsx - API client
frontend/src/services/api.ts
Identity and access
- Auth state
frontend/src/context/AuthContext.tsx - Authentication routes
backend/routes/authRoutes.js - Authentication controller
backend/controllers/authController.js - JWT and role checks
backend/middleware/auth.js
Grievance operations
- Complaint routes
backend/routes/complaintRoutes.js - Complaint lifecycle
backend/controllers/complaintController.js - Triage and duplicate checks
backend/services/aiService.js - SLA escalation
backend/server.js - Department management
backend/controllers/departmentController.js - Analytics service
backend/controllers/analyticsController.js
Backend platform
- Notifications
backend/controllers/notificationController.js - Email delivery
backend/services/emailService.js - Audit logging
backend/services/auditService.js - Database and fallback
backend/config/db.js - API server
backend/server.js
Other components
- Student / complainant
- College staff
Connections 44
- Student / complainant → Application shell: uses
- College staff → Application shell: uses
- Application shell → Complaint submission: renders
frontend/src/App.tsx - Application shell → Complaint tracking: renders
frontend/src/App.tsx - Application shell → Student dashboard: renders
frontend/src/App.tsx - Application shell → Staff dashboard: renders
frontend/src/App.tsx - Application shell → Analytics dashboard: renders
frontend/src/App.tsx - Application shell → Transparency wall: renders
frontend/src/App.tsx - Application shell → Grievance chatbot: renders
frontend/src/App.tsx - Application shell → Authentication UI: renders
frontend/src/App.tsx - Authentication UI → Auth state: uses
frontend/src/components/auth/RoundGlassAuth.tsx - Authentication UI → OTP verification: renders
frontend/src/components/auth/RoundGlassAuth.tsx - Auth state → API client: calls
frontend/src/context/AuthContext.tsx - Complaint submission → API client: submits through
frontend/src/components/student/ComplaintSubmissionForm.tsx - Complaint tracking → API client: loads through
- Staff dashboard → API client: loads through
frontend/src/components/staff/StaffDashboard.tsx - Analytics dashboard → API client: loads through
frontend/src/components/analytics/AnalyticsDashboard.tsx - Transparency wall → API client: loads through
frontend/src/components/public/TransparencyWall.tsx - Grievance chatbot → API client: queries through
frontend/src/components/chatbot/GrievanceChatbot.tsx - API client → API server: requests
- API server → Authentication routes: mounts
backend/server.js - API server → Complaint routes: mounts
backend/server.js - API server → Analytics service: mounts routes
backend/server.js - API server → Department management: mounts routes
backend/server.js - API server → Notifications: mounts routes
backend/server.js - Authentication routes → Authentication controller: routes to
backend/routes/authRoutes.js - Complaint routes → Complaint lifecycle: routes to
backend/routes/complaintRoutes.js - Complaint routes → JWT and role checks: protects routes
backend/routes/complaintRoutes.js - Authentication routes → JWT and role checks: protects routes
backend/routes/authRoutes.js - Authentication controller → Database and fallback: reads and writes
backend/controllers/authController.js - Authentication controller → Email delivery: sends OTP mail
backend/controllers/authController.js - Authentication controller → Audit logging: records events
backend/controllers/authController.js - Complaint lifecycle → Database and fallback: reads and writes
backend/controllers/complaintController.js - Complaint lifecycle → Triage and duplicate checks: uses triage
backend/controllers/complaintController.js - Complaint lifecycle → JWT and role checks: masks identities
backend/controllers/complaintController.js - Complaint lifecycle → Audit logging: records events
backend/controllers/complaintController.js - API server → Database and fallback: queries overdue items
backend/server.js - API server → SLA escalation: runs cycle
backend/server.js - Department management → Database and fallback: reads and writes
backend/controllers/departmentController.js - Analytics service → Database and fallback: queries metrics
- Notifications → Database and fallback: reads and writes
backend/controllers/notificationController.js - Notifications → Email delivery: sends mail
backend/controllers/notificationController.js - Audit logging → Database and fallback: persists logs
backend/services/auditService.js - Email delivery → College staff: delivers notifications