How codewithmaaz-05/civic_connect works
CivicConnect is a civic-issue reporting and tracking portal: citizens can report and follow issues, the public can browse issue status, and authorities can manage and update reports. The visible runtime is a routed React application backed by Supabase, with authentication context and protected dashboard views. The README is empty and the Index page and form internals were not sampled, so their detailed wiring is not inferred; the graph shows only relationships supported by excerpts or the source index.
Main entry points: App.tsx App Router · client.ts Supabase Client · CitizenDashboard.tsx Citizen Dashboard · AuthorityDashboard.tsx Authority Dashboard
Components 16
Application
- React Entry
ground-truth-gov-main/src/main.tsx - App Router
ground-truth-gov-main/src/App.tsx - Home Page
ground-truth-gov-main/src/pages/Index.tsx - Not Found
ground-truth-gov-main/src/pages/NotFound.tsx
Identity and Access
- Sign In and Signup
ground-truth-gov-main/src/pages/Auth.tsx - Auth Context
ground-truth-gov-main/src/contexts/AuthContext.tsx - Access Guard
ground-truth-gov-main/src/components/ProtectedComponent.tsx
Issue Workflows
- Issue Reporting
ground-truth-gov-main/src/components/IssueReportForm.tsx - Citizen Dashboard
ground-truth-gov-main/src/components/CitizenDashboard.tsx - Public Issue Board
ground-truth-gov-main/src/components/PublicDashboard.tsx - Authority Dashboard
ground-truth-gov-main/src/components/AuthorityDashboard.tsx - Issue Display
ground-truth-gov-main/src/components/IssueCard.tsx
Data Services
- Supabase Client
ground-truth-gov-main/src/integrations/supabase/client.ts - Supabase Backend
- Database Types
ground-truth-gov-main/src/integrations/supabase/types.ts
Other components
- Portal User
Connections 17
- Portal User → React Entry: opens portal
ground-truth-gov-main/src/main.tsx - React Entry → App Router: renders
ground-truth-gov-main/src/main.tsx - App Router → Home Page: routes to
ground-truth-gov-main/src/App.tsx - App Router → Sign In and Signup: routes to
ground-truth-gov-main/src/App.tsx - App Router → Not Found: routes to
ground-truth-gov-main/src/App.tsx - App Router → Auth Context: provides context
ground-truth-gov-main/src/App.tsx - Access Guard → Auth Context: reads session
ground-truth-gov-main/src/components/ProtectedComponent.tsx - Citizen Dashboard → Access Guard: guards view
ground-truth-gov-main/src/components/CitizenDashboard.tsx - Authority Dashboard → Access Guard: guards view
ground-truth-gov-main/src/components/AuthorityDashboard.tsx - Citizen Dashboard → Issue Display: renders issues
ground-truth-gov-main/src/components/CitizenDashboard.tsx - Authority Dashboard → Issue Display: renders issues
ground-truth-gov-main/src/components/AuthorityDashboard.tsx - Public Issue Board → Issue Display: renders issues
ground-truth-gov-main/src/components/PublicDashboard.tsx - Citizen Dashboard → Supabase Client: queries reports
ground-truth-gov-main/src/components/CitizenDashboard.tsx - Public Issue Board → Supabase Client: queries reports
ground-truth-gov-main/src/components/PublicDashboard.tsx - Authority Dashboard → Supabase Client: loads reports
- Supabase Client → Supabase Backend: connects to
ground-truth-gov-main/src/integrations/supabase/client.ts - Supabase Client → Database Types: uses schema types
ground-truth-gov-main/src/integrations/supabase/client.ts