How imnotheron/community-resource-mapping works
CRMS is a role-based municipal records and relief-coordination platform. Its main workflow is field registration of vulnerable residents, administrative review, worker-recorded relief distribution, and administrative approval and reporting; maps, announcements, feedback, and guided help support that work. The graph combines README-described capabilities with relationships visible in excerpts and the source index. Many individual routes and screens were not sampled, so their internal wiring is grouped or left unspecified.
Main entry points: worker-dashboard.tsx Role dashboards · api API routes · register-vulnerable/route.ts Registration review · chat/route.ts CRMS assistant
Components 27
Role-based experience
- Role dashboards
src/components/dashboards/worker-dashboard.tsx - Sign-in experience
src/components/auth-screen.tsx - Guided walkthroughs
src/components/walkthrough/walkthrough-provider.tsx
Registration and relief
- Resident registration
src/components/modals/VulnerableRegistrationModal.tsx - Registration review
src/app/api/admin/register-vulnerable/route.ts - Duplicate screening
src/lib/vulnerable-duplicate-check.ts - Registration documents
src/lib/registration-documents.ts - Relief distribution
src/components/dashboards/worker-dashboard.tsx - Relief approval
src/app/api/admin/relief-approval/route.ts - Operations history
src/components/admin/operations-history.tsx - Daily reports
src/components/reports/daily-reports-view.tsx
Maps and information
- Community mapping
src/components/maps/live-vulnerable-map-view.tsx - Municipal geography
src/lib/san-policarpo-geography.ts - Announcements
src/app/api/announcements/route.ts - Feedback
src/app/api/feedback/route.ts - Admin analytics
src/app/api/admin/analytics/route.ts - CRMS assistant
src/app/api/assistant/chat/route.ts
Application services
- API client
src/lib/api-client.ts - API routes
src/app/api - Assistant language
src/lib/assistant-language.ts - Email delivery
src/lib/email.ts
Identity and data
- Request authorization
src/lib/request-user-session.ts - Session tokens
src/lib/session-token.ts - Database client
src/lib/db.ts - SQLite / libSQL
Other components
- Community users
- Gemini AI
Connections 31
- Community users → Role dashboards: uses
README.md - Community users → Sign-in experience: signs in
README.md - Role dashboards → API client: requests data
src/components/dashboards/worker-dashboard.tsx - API client → API routes: sends requests
src/lib/api-client.ts - Sign-in experience → API routes: authenticates
- Role dashboards → Guided walkthroughs: offers guidance
- Role dashboards → Resident registration: starts registration
src/components/dashboards/worker-dashboard.tsx - Resident registration → API routes: submits records
- API routes → Registration review: routes review
- Registration review → Duplicate screening: checks duplicates
src/app/api/admin/register-vulnerable/route.ts - Registration review → Registration documents: handles documents
src/app/api/admin/register-vulnerable/route.ts - Role dashboards → Relief distribution: records assistance
src/components/dashboards/worker-dashboard.tsx - Relief distribution → API routes: submits distributions
src/components/dashboards/worker-dashboard.tsx - API routes → Relief approval: routes approval
- Role dashboards → Operations history: views history
src/components/dashboards/worker-dashboard.tsx - Role dashboards → Daily reports: views reports
README.md - Role dashboards → Community mapping: views locations
README.md - Community mapping → API routes: loads map data
README.md - API routes → Municipal geography: uses map bounds
src/app/api/map/data/route.ts - Role dashboards → Announcements: views updates
README.md - Role dashboards → Feedback: submits feedback
README.md - Role dashboards → Admin analytics: views analytics
README.md - Role dashboards → CRMS assistant: asks questions
- CRMS assistant → Assistant language: normalizes language
src/app/api/assistant/chat/route.ts - CRMS assistant → Gemini AI: requests responses
- API routes → Request authorization: checks access
src/app/api/announcements/route.ts - Request authorization → Session tokens: verifies tokens
src/lib/request-user-session.ts - Request authorization → Database client: loads user
src/lib/request-user-session.ts - API routes → Database client: reads and writes
src/app/api/announcements/route.ts - Database client → SQLite / libSQL: connects to
src/lib/db.ts - API routes → Email delivery: sends notifications
src/app/api/admin/register-vulnerable/route.ts