How urveebettadapur/grievai works
GrievAI is a civic grievance intake and officer-review prototype. Citizens submit reports through the web portal; the API validates and stores them, produces an explainable rule-based analysis, and supports staff review, status history, and citizen feedback. Officers can inspect related-incident hypotheses, recurrence, and dashboard analytics. The README documents offline queuing and synchronization; sampled frontend code confirms the browser queue and API requests. The repository contains root-level and GrievAI_Thanmay copies of the backend and frontend; both are represented. Other feature links rely on README documentation because their source excerpts are incomplete.
Main entry points: backend/app.py Grievance API · backend/app.py API copy · frontend/app.js Citizen and staff portal · frontend/app.js Portal copy
Components 16
Citizen intake
- Citizen and staff portal
frontend/app.js - Portal copy
GrievAI_Thanmay/frontend/app.js - Offline queue
frontend/app.js
Grievance casework
- Explainable analysis
backend/app.py - Analysis copy
GrievAI_Thanmay/backend/app.py - Grievance records
backend/app.py - Status and feedback
backend/app.py - Staff authentication
backend/app.py
Incident intelligence
- Incident grouping
backend/app.py - Recurrence view
backend/app.py - Dashboard analytics
backend/app.py
Application platform
- Grievance API
backend/app.py - API copy
GrievAI_Thanmay/backend/app.py - Offline app shell
frontend/sw.js
Other components
- Citizen
- Officer
Connections 30
- Citizen → Citizen and staff portal: submits report
README.md - Citizen → Portal copy: submits report
README.md - Citizen and staff portal → Offline queue: queues offline
frontend/app.js - Portal copy → Offline queue: queues offline
GrievAI_Thanmay/frontend/app.js - Offline queue → Grievance API: syncs reports
README.md - Offline queue → API copy: syncs reports
README.md - Citizen and staff portal → Grievance API: requests data
frontend/app.js - Portal copy → API copy: requests data
GrievAI_Thanmay/frontend/app.js - Grievance API → Explainable analysis: analyzes reports
README.md - API copy → Analysis copy: analyzes reports
README.md - Grievance API → Grievance records: persists reports
README.md - API copy → Grievance records: persists reports
README.md - Officer → Citizen and staff portal: reviews cases
README.md - Officer → Portal copy: reviews cases
README.md - Citizen and staff portal → Grievance API: updates status
README.md - Portal copy → API copy: updates status
README.md - Grievance API → Status and feedback: records feedback
README.md - API copy → Status and feedback: records feedback
README.md - Citizen and staff portal → Grievance API: authenticates staff
README.md - Portal copy → API copy: authenticates staff
README.md - Grievance API → Incident grouping: serves groupings
README.md - API copy → Incident grouping: serves groupings
README.md - Citizen and staff portal → Grievance API: reviews incidents
frontend/app.js - Portal copy → API copy: reviews incidents
GrievAI_Thanmay/frontend/app.js - Grievance API → Recurrence view: aggregates recurrence
README.md - API copy → Recurrence view: aggregates recurrence
README.md - Grievance API → Dashboard analytics: aggregates metrics
README.md - API copy → Dashboard analytics: aggregates metrics
README.md - Citizen and staff portal → Offline app shell: uses app shell
README.md - Portal copy → Offline app shell: uses app shell
README.md