How sksingh040/ai-powered-citizen-grievance-intelligence-resolution-platform works
The platform takes citizen reports through a web interface, registers and triages complaints, then supports officer assignment, evidence-backed resolution, citizen feedback, and tracking. Separate branches provide duplicate incident clustering, multilingual chatbot help, executive analytics, and audit review. The graph reflects documented routes and indexed imports; some feature internals were not sampled, so their links are based on README documentation rather than assumed implementation details.
Main entry points: App.jsx Web app navigation · complaintController.js Complaint workflows · api.js API client · server.js Express API server
Components 26
Citizen and staff web app
- Web app navigation
client/src/App.jsx - File grievance
client/src/components/citizen/CitizenComplaintForm.jsx - Track and feedback
client/src/pages/TrackTicketPage.jsx - Officer workbench
client/src/pages/OfficerDashboardPage.jsx - Incident clusters view
client/src/pages/IncidentClustersPage.jsx - Executive analytics
client/src/pages/AdminAnalyticsPage.jsx - Audit log review
client/src/pages/AuditorLogsPage.jsx - Civic chatbot widget
client/src/components/citizen/ChatbotWidget.jsx - API client
client/src/services/api.js
Complaint intake and triage
- Complaint workflows
server/controllers/complaintController.js - AI triage
server/services/aiService.js - Priority scoring
server/utils/priorityCalculator.js - Duplicate detection
server/utils/duplicateDetector.js - GIS and proximity
server/services/geoService.js
Resolution and incidents
- Officer workflows
server/controllers/officerController.js - Incident clustering
server/controllers/incidentController.js
Assistance and oversight
- Chatbot responses
server/controllers/chatbotController.js - Analytics and audit
server/controllers/analyticsController.js
API and persistence
- Complaint endpoints
server/routes/complaintRoutes.js - Authentication
server/controllers/authController.js - Complaint records
server/models/Complaint.js - Incident cluster records
server/models/IncidentCluster.js - Audit log records
server/models/AuditLog.js - MongoDB and fallback
server/config/db.js - Express API server
server/server.js
Other components
- Citizen or staff
Connections 35
- Citizen or staff → Web app navigation: uses
README.md - Web app navigation → File grievance: opens
client/src/App.jsx - Web app navigation → Track and feedback: opens
client/src/App.jsx - Web app navigation → Officer workbench: opens
client/src/App.jsx - Web app navigation → Incident clusters view: opens
client/src/App.jsx - Web app navigation → Executive analytics: opens
client/src/App.jsx - Web app navigation → Audit log review: opens
client/src/App.jsx - Web app navigation → Civic chatbot widget: renders
client/src/App.jsx - File grievance → API client: submits via
- Track and feedback → API client: requests data
- Officer workbench → API client: requests data
client/src/pages/OfficerDashboardPage.jsx - Executive analytics → API client: requests data
client/src/pages/AdminAnalyticsPage.jsx - Audit log review → API client: requests data
client/src/pages/AuditorLogsPage.jsx - Civic chatbot widget → API client: sends messages
client/src/components/citizen/ChatbotWidget.jsx - API client → Express API server: calls API
- Express API server → Complaint endpoints: mounts route
server/server.js - Express API server → Authentication: mounts route
server/server.js - Express API server → Analytics and audit: mounts route
server/server.js - Express API server → Chatbot responses: mounts route
server/server.js - Complaint endpoints → Complaint workflows: routes to
server/routes/complaintRoutes.js - Complaint workflows → AI triage: triages with
server/controllers/complaintController.js - Complaint workflows → Priority scoring: scores with
server/controllers/complaintController.js - Complaint workflows → Duplicate detection: checks duplicates
server/controllers/complaintController.js - Complaint workflows → GIS and proximity: checks location
server/controllers/complaintController.js - Complaint workflows → Complaint records: creates and updates
server/controllers/complaintController.js - Complaint workflows → Incident cluster records: uses
server/controllers/complaintController.js - Officer workflows → Complaint records: reads and updates
server/controllers/officerController.js - Officer workflows → Audit log records: records actions
- Incident clustering → Incident cluster records: manages clusters
server/controllers/incidentController.js - Incident clustering → Complaint records: links complaints
server/controllers/incidentController.js - Analytics and audit → Audit log records: reads audit trail
README.md - Authentication → MongoDB and fallback: authenticates against
server/controllers/authController.js - Complaint workflows → MongoDB and fallback: uses fallback mode
server/controllers/complaintController.js - Officer workflows → MongoDB and fallback: uses fallback mode
server/controllers/officerController.js - Express API server → MongoDB and fallback: connects to
server/server.js