How tmkuaewelfarecommunityadmin/tmk-uae-welfare-community works
Village Welfare Fund is a role-governed community finance application for member contributions, assistance requests and payouts, audit, and multi-currency treasury oversight. Users enter through sign-in or public assistance tracking, then use role-specific screens; those screens call the API for operational work, while server routes coordinate persistence and domain helpers. The graph preserves major UI and domain branches named in the source index. Several server and client modules were not excerpted, so uncertain API-to-route and subsystem wiring is left unverified rather than inferred.
Main entry points: App.tsx Application shell · routes.ts HTTP API routes · client.ts API client · seed.ts Reference and bootstrap data
Components 31
Application workflows
- Application shell
src/App.tsx - Sign-in and tracking
src/features/auth/AuthPortal.tsx - Member management
src/features/members/MembersView.tsx - Contribution workflow
src/features/contributions/ContributionsView.tsx - Assistance workflow
src/features/assistance/AssistanceView.tsx - Financial dashboard
src/features/dashboard/DashboardView.tsx - Treasury operations
src/features/treasury/TreasuryView.tsx - Audit views
src/features/audit/AuditView.tsx - Site and street admin
src/features/admin - Account profile
src/features/auth/AccountProfileModal.tsx - Contribution trends chart
src/features/dashboard/MonthlyContributionTrendsChart.tsx - Request status chart
src/features/dashboard/SupportRequestsDoughnutChart.tsx
Server operations
- HTTP API routes
src/server/routes.ts - Session resolution
src/server/auth.ts - Ledger calculations
src/server/ledger.ts - Reference and bootstrap data
src/server/seed.ts - Audit recording
src/server/audit.ts - Attachment handling
src/server/upload.ts
Persistence and security
- Token and password crypto
src/server/crypto.ts - Distributed rate limits
src/server/rateLimit.ts - Domain schema
src/db/schema.ts - Database access
src/db/index.ts
Shared client services
- API client
src/shared/api/client.ts - Attachment preview
src/shared/components/AttachmentPreviewModal.tsx - SSO notice
src/shared/components/SsoRequiredBanner.tsx - Status and money
src/shared/components/StatusText.tsx - English and Tamil
src/shared/i18n/translations.ts - Offline and install
src/shared/pwa/PWAInstall.tsx - Firebase authentication
src/lib/firebase.ts
Other components
- Member or visitor
- Firebase
Connections 35
- Member or visitor → Application shell: uses
src/App.tsx - Application shell → Sign-in and tracking: shows sign-in
src/App.tsx - Application shell → Member management: shows view
src/App.tsx - Application shell → Contribution workflow: shows view
src/App.tsx - Application shell → Assistance workflow: shows view
src/App.tsx - Application shell → Financial dashboard: shows view
src/App.tsx - Application shell → Treasury operations: shows view
src/App.tsx - Application shell → Audit views: shows view
src/App.tsx - Application shell → Site and street admin: shows view
src/App.tsx - Application shell → Account profile: shows modal
src/App.tsx - Sign-in and tracking → Firebase authentication: signs in with
src/features/auth/AuthPortal.tsx - Firebase authentication → Firebase: authenticates
src/lib/firebase.ts - Sign-in and tracking → API client: tracks requests
src/features/auth/AuthPortal.tsx - Member management → API client: sends updates
src/features/members/MembersView.tsx - Contribution workflow → API client: submits payments
src/features/contributions/ContributionsView.tsx - Assistance workflow → API client: updates reasons
src/features/assistance/AssistanceView.tsx - Treasury operations → API client: loads operations
src/features/treasury/TreasuryView.tsx - Financial dashboard → API client: loads summaries
src/features/dashboard/DashboardView.tsx - Contribution workflow → Attachment preview: opens preview
src/features/contributions/ContributionsView.tsx - Attachment preview → API client: fetches attachment
src/shared/components/AttachmentPreviewModal.tsx - Member management → SSO notice: displays notice
src/features/members/MembersView.tsx - Financial dashboard → Contribution trends chart: renders chart
src/features/dashboard/DashboardView.tsx - Financial dashboard → Request status chart: renders chart
src/features/dashboard/DashboardView.tsx - HTTP API routes → Ledger calculations: gets balances
src/server/routes.ts - HTTP API routes → Distributed rate limits: checks limits
src/server/routes.ts - HTTP API routes → Reference and bootstrap data: ensures references
src/server/routes.ts - HTTP API routes → Token and password crypto: generates token
src/server/routes.ts - HTTP API routes → Database access: reads and writes
src/server/routes.ts - HTTP API routes → Domain schema: queries entities
src/server/routes.ts - Session resolution → Token and password crypto: verifies token
src/server/auth.ts - Session resolution → Reference and bootstrap data: ensures references
src/server/auth.ts - Reference and bootstrap data → Token and password crypto: hashes password
src/server/seed.ts - Reference and bootstrap data → Database access: seeds records
src/server/seed.ts - Reference and bootstrap data → Domain schema: writes entities
src/server/seed.ts - API client → HTTP API routes: calls API