How rgiridhar1008/codenove-hack-ananta works
Civix is a civic-engagement web app for reporting and tracking grievances, viewing issues on a map, and participating in community polls. The citizen workflow runs from sign-in through issue submission and status tracking; administrators review and update reports. Separate branches provide voting, AI assistance and prioritization, and contributor recognition. Firebase supplies authentication and Firestore-backed data access. The README documents several capabilities whose wiring is not shown in the sampled source; those links are therefore documented rather than inferred from imports.
Main entry points: voting/page.tsx Polls and voting · admin/page.tsx Admin management · grievance-form.tsx Grievance submission · data/page.tsx Grievance tracking
Components 21
Civic issues
- Home and dashboard
src/app/page.tsx - Grievance submission
src/components/grievance-form.tsx - Grievance tracking
src/app/data/page.tsx - Admin management
src/app/admin/page.tsx - Issue map and filters
src/components/issue-map-client.tsx - Contributor recognition
src/app/contributors/page.tsx
Community governance
- Polls and voting
src/app/voting/page.tsx - Poll creation
src/components/create-poll-form.tsx - Poll results
src/components/poll-chart.tsx - Poll analytics
src/components/poll-analytics-dashboard.tsx
Identity and data
- Sign-in
src/components/login-form-wrapper.tsx - Firebase client setup
src/firebase/index.ts - Firestore access hooks
src/firebase/firestore/use-collection.tsx - Cloud Firestore
AI assistance
- AI chatbot
src/components/chatbot.tsx - Chatbot flow
src/ai/flows/chatbot-flow.ts - Issue prioritization
src/ai/flows/issue-prioritization.ts - Prioritization form
src/components/prioritization-form.tsx - AI action wrapper
src/lib/actions.ts
Other components
- Citizen
- Administrator
Connections 24
- Citizen → Sign-in: signs in
- Sign-in → Firebase client setup: authenticates with
src/components/login-form-wrapper.tsx - Citizen → Grievance submission: reports issue
- Grievance submission → Cloud Firestore: saves report
- Citizen → Grievance tracking: tracks reports
- Grievance tracking → Cloud Firestore: reads reports
src/app/data/page.tsx - Administrator → Admin management: manages reports
- Admin management → Cloud Firestore: updates reports
src/app/admin/page.tsx - Citizen → Issue map and filters: explores issues
- Issue map and filters → Cloud Firestore: reads issues
- Citizen → Contributor recognition: views recognition
- Admin management → Contributor recognition: awards badge
- Citizen → Polls and voting: participates
- Polls and voting → Poll creation: renders form
src/app/voting/page.tsx - Polls and voting → Poll results: renders results
src/app/voting/page.tsx - Polls and voting → Poll analytics: renders analytics
src/app/voting/page.tsx - Polls and voting → Cloud Firestore: loads polls
src/app/voting/page.tsx - Citizen → AI chatbot: asks questions
- AI chatbot → Chatbot flow: invokes flow
- Citizen → Prioritization form: requests prioritization
- Prioritization form → AI action wrapper: submits request
- AI action wrapper → Issue prioritization: calls flow
src/lib/actions.ts - Firebase client setup → Firestore access hooks: exports hooks
src/firebase/index.ts - Firestore access hooks → Cloud Firestore: reads documents
src/firebase/firestore/use-collection.tsx