How anirudh7240/civicconnect works
CivicConnect is a citizen issue-reporting product with citizen, administrator, and representative workflows. In the primary web app, routing leads citizens to sign in, submit complaints, and track them; administrators and representatives have separate complaint-management views. The sampled service shows Supabase-backed authentication and complaint operations, while the README also describes localStorage demo persistence. Those appear to represent different or evolving implementations; unsampled page-to-service links are therefore shown as unverified. The repository also contains a separate client app, not mapped here.
Main entry points: App.jsx App routing · supabaseService.js Supabase service · useLocalStorage.js Local storage state · MainShell.jsx Citizen shell
Components 23
Citizen experience
- Landing and login
src/pages/Landing.jsx - Citizen shell
src/components/MainShell.jsx - Citizen dashboard
src/pages/Dashboard.jsx - Complaint submission
src/pages/AddComplaint.jsx - Complaint tracking
src/pages/TrackComplaints.jsx - Preferences and settings
src/pages/Preferences.jsx
Complaint operations
- Admin shell
src/components/admin/AdminShell.jsx - Admin dashboard
src/pages/admin/Dashboard.jsx - Admin complaint management
src/pages/admin/ComplaintDetails.jsx - Representative management
src/pages/admin/Representatives.jsx - Representative shell
src/components/representative/RepresentativeShell.jsx - Assigned complaint handling
src/pages/representative/RepresentativeComplaintDetails.jsx
Shared services
- App routing
src/App.jsx - Supabase service
src/services/supabaseService.js - Supabase client
src/supabaseClient.js - Supabase backend
- Local storage state
src/hooks/useLocalStorage.js - Browser localStorage
- Translation hook
src/hooks/useTranslation.js - Translation catalog
src/utils/translations.js
Separate client app
- Client app routing
client/src/App.jsx - Client complaint submission
client/src/pages/citizen/SubmitComplaint.jsx
Other components
- Citizen
Connections 30
- Citizen → App routing: opens app
src/App.jsx - App routing → Landing and login: routes to
src/App.jsx - App routing → Citizen shell: protects route
src/App.jsx - App routing → Citizen dashboard: routes to
src/App.jsx - App routing → Complaint submission: routes to
src/App.jsx - App routing → Complaint tracking: routes to
src/App.jsx - App routing → Preferences and settings: routes to
src/App.jsx - App routing → Admin shell: routes to
src/App.jsx - App routing → Admin dashboard: routes to
src/App.jsx - App routing → Admin complaint management: routes to
src/App.jsx - App routing → Representative management: routes to
src/App.jsx - App routing → Representative shell: routes to
src/App.jsx - App routing → Assigned complaint handling: routes to
src/App.jsx - Landing and login → Supabase service: authenticates with
src/pages/Landing.jsx - Citizen shell → Supabase service: signs out through
src/components/MainShell.jsx - Complaint submission → Supabase service: submits complaint
- Complaint tracking → Supabase service: fetches complaints
src/pages/TrackComplaints.jsx - Admin shell → Supabase service: uses services
src/components/admin/AdminShell.jsx - Representative shell → Supabase service: uses services
src/components/representative/RepresentativeShell.jsx - Admin complaint management → Supabase service: loads complaint
src/pages/admin/ComplaintDetails.jsx - Assigned complaint handling → Supabase service: loads complaint
src/pages/representative/RepresentativeComplaintDetails.jsx - Supabase service → Supabase client: uses client
src/services/supabaseService.js - Supabase client → Supabase backend: connects to
src/supabaseClient.js - Citizen shell → Local storage state: reads and writes
src/components/MainShell.jsx - App routing → Local storage state: checks profile
src/App.jsx - Local storage state → Browser localStorage: persists state
src/hooks/useLocalStorage.js - Translation hook → Local storage state: reads language
src/hooks/useTranslation.js - Translation hook → Translation catalog: looks up strings
src/hooks/useTranslation.js - Citizen → Client app routing: uses alternate app
client/src/App.jsx - Client app routing → Client complaint submission: routes to
client/src/App.jsx