How neonflicker/ppr-monitor works
This is a field-vaccination monitoring product: the public dashboard presents village progress, reports, notices, and duty information; administrators sign in to manage imports, allocations, targets, rosters, and notices. The shown frontend entry point mounts the dashboard and admin panel, while the README identifies Convex as the backend and database. Several backend modules and UI components are unsampled, so their internal call relationships are not asserted.
Main entry points: PublicDashboard.tsx Public dashboard · AdminPanel.tsx Admin panel · main.tsx React app and routing · use-admin.tsx Admin session
Components 27
Application entry
- React app and routing
src/main.tsx - Sign-in page
src/pages/Auth.tsx - User auth hook
src/hooks/use-auth.ts
Public monitoring
- Public dashboard
src/pages/PublicDashboard.tsx - Village progress
src/components/public/VillageProgress.tsx - Reports and charts
src/components/public/DailyReport.tsx - Notice board
src/components/public/NoticeBoard.tsx - Roster and village views
src/components/public/UntouchedVillages.tsx
Administration
- Admin panel
src/pages/AdminPanel.tsx - Admin session
src/hooks/use-admin.tsx - Programme status
src/components/admin/AdminStatus.tsx - Bharat data import
src/components/admin/BharatUpload.tsx - Import validation
src/components/admin/DataValidation.tsx - Village and target allocation
src/components/admin/UserVillageAllocation.tsx - Duty roster management
src/components/admin/DutyRosterManagement.tsx - Notice management
src/components/admin/NoticeManager.tsx
Convex backend
- Convex database
src/convex/schema.ts - Reports and statistics
src/convex/stats.ts - Report actions
src/convex/reportsActions.ts - Notice services
src/convex/notices.ts - Allocation services
src/convex/allocations.ts - Roster services
src/convex/dutyRosters.ts - Convex authentication
src/convex/auth.ts
Shared domain logic
- Spreadsheet parser
src/convex/lib/sheetParser.ts - Village matching
src/convex/lib/villageMatch.ts
Other components
- Dashboard visitor
- Administrator
Connections 27
- Dashboard visitor → React app and routing: opens
src/main.tsx - Administrator → React app and routing: opens
src/main.tsx - React app and routing → Public dashboard: routes to
src/main.tsx - React app and routing → Admin panel: routes to
src/main.tsx - React app and routing → Sign-in page: routes to
src/main.tsx - React app and routing → Admin session: provides
src/main.tsx - Public dashboard → Village progress: renders
src/pages/PublicDashboard.tsx - Public dashboard → Reports and charts: renders
src/pages/PublicDashboard.tsx - Public dashboard → Notice board: renders
src/pages/PublicDashboard.tsx - Public dashboard → Roster and village views: renders
src/pages/PublicDashboard.tsx - Admin panel → Programme status: renders
src/pages/AdminPanel.tsx - Admin panel → Bharat data import: renders
src/pages/AdminPanel.tsx - Admin panel → Import validation: renders
src/pages/AdminPanel.tsx - Admin panel → Village and target allocation: renders
src/pages/AdminPanel.tsx - Admin panel → Duty roster management: renders
src/pages/AdminPanel.tsx - Admin panel → Notice management: renders
src/pages/AdminPanel.tsx - Admin session → Convex authentication: calls auth actions
src/hooks/use-admin.tsx - Bharat data import → Spreadsheet parser: parses imports
- Spreadsheet parser → Village matching: matches villages
src/convex/lib/sheetParser.ts - Public dashboard → Reports and statistics: loads dashboard data
- Public dashboard → Report actions: requests reports
- Public dashboard → Notice services: loads notices
- Public dashboard → Roster services: loads rosters
- Admin panel → Allocation services: manages allocations
- Notice management → Notice services: manages notices
- Reports and statistics → Convex database: reads
- Allocation services → Convex database: reads and writes