How my-project-team-2026/barangaylink-frontend works
BarangayLink is a React frontend for barangay staff, administrators, and residents. Users enter through the shared web or Electron interface, authenticate or register, then use role-specific dashboard, resident, and document-request screens; staff can also access household, announcement, and report screens. The API client sends requests to the separately supplied backend and stores the login session in browser local storage. README capabilities are included, but it notes several proposal features are unavailable through the supplied backend. Some screen-to-API call sites were not excerpted, so those relationships are not asserted.
Main entry points: App.tsx Workspace and routing · shared.tsx Shared UI helpers · main.tsx Renderer entry · main.cjs Electron window host
Components 15
User interface
- Renderer entry
src/main.tsx - Workspace and routing
src/App.tsx - Sign in and registration
src/App.tsx - Dashboard
src/App.tsx - Shared UI helpers
src/shared.tsx
Community services
- Resident search
src/App.tsx - Document requests
src/App.tsx - Household management
src/modules.tsx - Announcements
src/modules.tsx - Reports and analytics
src/modules.tsx
API integration
- API client and session
src/api.ts - BarangayLink backend
Desktop wrapper
- Electron window host
desktop/main.cjs - Minimal preload
desktop/preload.cjs
Other components
- Resident or staff
Connections 17
- Resident or staff → Renderer entry: opens
README.md - Renderer entry → Workspace and routing: renders
src/main.tsx - Workspace and routing → Sign in and registration: routes
src/App.tsx - Workspace and routing → Dashboard: routes
src/App.tsx - Workspace and routing → Resident search: routes
src/App.tsx - Workspace and routing → Document requests: routes
src/App.tsx - Workspace and routing → Household management: routes
src/App.tsx - Workspace and routing → Announcements: routes
src/App.tsx - Workspace and routing → Reports and analytics: routes
src/App.tsx - Workspace and routing → Shared UI helpers: uses
src/App.tsx - Household management → Shared UI helpers: uses
src/modules.tsx - Announcements → Shared UI helpers: uses
src/modules.tsx - Reports and analytics → Shared UI helpers: uses
src/modules.tsx - Workspace and routing → API client and session: reads session
src/App.tsx - API client and session → BarangayLink backend: sends API requests
src/api.ts - Electron window host → Renderer entry: loads interface
desktop/main.cjs - Electron window host → Minimal preload: configures
desktop/main.cjs