How sohana-018/casebridge works
CaseBridge is an internal grievance coordination desk. Officers use the web app to authenticate, review institution and case records, and record case actions; coordinators also review explainable cross-bureau overlap candidates. The README documents institution indexing, append-only history, SLA alerts, role-based visibility, dashboards, and reporting/export. Edges are limited to relationships shown in excerpts, SOURCE INDEX references, or README architecture; unsampled modules are represented at their exact tree paths where their capabilities are documented.
Main entry points: main.py FastAPI application · client.ts API client · db.py Database access · cases.py Case actions
Components 31
Officer web app
- CaseBridge interface
frontend/src/App.tsx - API client
frontend/src/api/client.ts - Overview dashboard
frontend/src/pages/OverviewPage.tsx - Case management
frontend/src/pages/CasesPage.tsx - Institution profiles
frontend/src/pages/InstitutionsPage.tsx - Coordination queue
frontend/src/pages/OverlapQueuePage.tsx - Reports and export
frontend/src/pages/ReportsPage.tsx - Administration
frontend/src/pages/AdminPage.tsx - Status indicators
frontend/src/components/Badges.tsx - Loading feedback
frontend/src/components/StateFeedback.tsx - Notifications
frontend/src/components/Toast.tsx - Display formatters
frontend/src/utils/formatters.ts
API and access
- FastAPI application
backend/app/main.py - Authentication
backend/app/routers/auth.py - Credential utilities
backend/app/auth_utils.py - Role and bureau guards
backend/app/permissions.py
Case coordination
- Case actions
backend/app/routers/cases.py - Case event log
backend/app/routers/events.py - Institution records
backend/app/routers/institutions.py - Overlap review API
backend/app/routers/overlaps.py - Overlap detection
backend/app/services/overlap.py
Alerts and insights
- Alert API
backend/app/routers/alerts.py - SLA and timelines
backend/app/services/alerts.py - Dashboard API
backend/app/routers/dashboard.py - Analytics and reports
backend/app/services/reports.py - Report API
backend/app/routers/reports.py - Email notifications
backend/app/services/email.py
Domain storage
- Database access
backend/app/db.py - Case domain records
backend/app/models.py - CaseBridge database
Other components
- Administrative officer
Connections 32
- Administrative officer → CaseBridge interface: uses
- CaseBridge interface → API client: routes through
frontend/src/App.tsx - API client → FastAPI application: REST requests
- FastAPI application → Authentication: mounts
backend/app/main.py - FastAPI application → Case actions: mounts
backend/app/main.py - FastAPI application → Case event log: mounts
backend/app/main.py - FastAPI application → Institution records: mounts
backend/app/main.py - FastAPI application → Overlap review API: mounts
backend/app/main.py - FastAPI application → Alert API: mounts
backend/app/main.py - FastAPI application → Dashboard API: mounts
backend/app/main.py - FastAPI application → Report API: mounts
backend/app/main.py - Authentication → Credential utilities: verifies credentials
backend/app/routers/auth.py - Case actions → Email notifications: uses notifications
backend/app/routers/cases.py - Case event log → Email notifications: uses notifications
backend/app/routers/events.py - Institution records → Overlap detection: runs detection
backend/app/routers/institutions.py - Overlap review API → Overlap detection: reviews candidates
backend/app/routers/overlaps.py - Alert API → SLA and timelines: derives alerts
backend/app/routers/alerts.py - Dashboard API → Analytics and reports: gets analytics
backend/app/routers/dashboard.py - FastAPI application → Database access: initializes
backend/app/main.py - Database access → CaseBridge database: connects
backend/app/db.py - Case actions → Database access: queries records
backend/app/routers/cases.py - Case event log → Database access: writes events
backend/app/routers/events.py - Overlap detection → Database access: reads and writes
backend/app/services/overlap.py - SLA and timelines → Database access: reads records
- Analytics and reports → Database access: aggregates records
- API client → Overview dashboard: serves data
frontend/src/pages/OverviewPage.tsx - API client → Case management: serves data
frontend/src/pages/CasesPage.tsx - API client → Institution profiles: serves data
- API client → Coordination queue: serves data
frontend/src/pages/OverlapQueuePage.tsx - API client → Reports and export: serves data
frontend/src/pages/ReportsPage.tsx - API client → Administration: serves data
frontend/src/pages/AdminPage.tsx - Status indicators → Display formatters: formats signals
frontend/src/components/Badges.tsx