How deep-chan-45/clenc works
ClenC is a civic waste-management app for Kanpur, with citizen, field-worker, and municipal-admin views. Its principal workflow is citizen sign-in, reporting a complaint or requesting a pickup, municipal/worker handling, and citizen tracking or resolution confirmation. The app also provides waste-awareness material, maps, ward analytics, and civic points/leaderboards. The excerpts show Firebase authentication and persistence, but not every page’s callbacks or data wiring; uncertain links are omitted. The README is empty, so capability coverage relies on the source index and shown excerpts.
Main entry points: App.tsx App and Routing · LeafletMap.tsx Maps and Locations · firebase.ts Firebase Services · CitizenViews.tsx Citizen Workflows
Components 16
App Shell
- App and Routing
src/App.tsx - Landing Page
src/pages/LandingPage.tsx - Authentication
src/pages/AuthPage.tsx - Navigation and Modals
src/components/NavbarAndModals.tsx
Citizen Services
- Citizen Workflows
src/pages/CitizenViews.tsx - Waste Awareness
src/pages/AwarenessPage.tsx - Civic Leaderboard
src/components/Leaderboard.tsx
Municipal Operations
- Worker and Admin Views
src/pages/WorkerAndAdminViews.tsx
Shared Services
- Maps and Locations
src/components/LeafletMap.tsx - Firebase Services
src/firebase.ts - Firestore
- Sample Civic Data
src/data/mockData.ts - Domain Types
src/types.ts - Branding
src/components/ClenCLogo.tsx - Icon Set
src/components/Icons.tsx
Other components
- Citizen
Connections 22
- Citizen → App and Routing: uses app
- Authentication → Firebase Services: authenticates
src/pages/AuthPage.tsx - App and Routing → Firebase Services: saves reports
src/App.tsx - App and Routing → Firebase Services: saves profiles
src/App.tsx - Civic Leaderboard → Firestore: reads citizens
src/components/Leaderboard.tsx - Firebase Services → Firestore: reads and writes
src/firebase.ts - Maps and Locations → Firestore
- Maps and Locations → Citizen
- Landing Page → Branding: renders
src/pages/LandingPage.tsx - Authentication → Branding: renders
src/pages/AuthPage.tsx - Navigation and Modals → Branding: renders
src/components/NavbarAndModals.tsx - Navigation and Modals → Icon Set: renders
src/components/NavbarAndModals.tsx - Civic Leaderboard → Icon Set: renders
src/components/Leaderboard.tsx - App and Routing → Landing Page
src/App.tsx - App and Routing → Authentication
src/App.tsx - App and Routing → Citizen Workflows
src/App.tsx - App and Routing → Waste Awareness
src/App.tsx - App and Routing → Worker and Admin Views
src/App.tsx - Citizen Workflows → Maps and Locations
src/pages/CitizenViews.tsx - Worker and Admin Views → Maps and Locations
src/pages/WorkerAndAdminViews.tsx - Citizen Workflows → Civic Leaderboard
src/pages/CitizenViews.tsx - App and Routing → Navigation and Modals
src/App.tsx