How jusaldesai1/aegisflow works
AegisFlow is a multi-agency emergency operations platform: operators enter through authentication, review role-specific incident and situational data, then coordinate alerts and resource dispatch. The README describes live incident updates flowing through the WebSocket layer into application state and UI. The tree also identifies GIS, analytics, offline support, and multiple role dashboards; their detailed wiring is not shown in the sampled source, so uncertain links are omitted. The README mentions optional Firebase and backend storage, but their implementation is not present in the tree.
Main entry points: dashboards Role dashboards · useAuthStore.ts Authentication state · useDisasterDetection.ts Disaster detection · page.tsx Login page
Components 21
Access and Roles
- Login page
src/app/auth/login/page.tsx - Authentication state
lib/stores/useAuthStore.ts - Role permissions
src/utils/rbac.ts
Incident Response
- Disaster detection
src/hooks/useDisasterDetection.ts - Incident state
src/store/disasterStore.ts - Dispatch panel
src/components/DispatchPanel.tsx - Alert views
src/components/AlertStack.tsx - Incident details
src/components/IncidentModal.tsx
Operations Views
- Dashboard entry
src/app/dashboard/page.tsx - Role dashboards
src/components/dashboards - GIS situational map
src/components/GISMapContainer.tsx - Operations metrics
src/components/Dashboard/MetricsCards.tsx - Resource tracking
src/components/Dashboard/ResourceTracker.tsx
Realtime and Data
- REST API client
src/services/api.ts - WebSocket manager
lib/ws/wsManager.ts - WebSocket hook
lib/hooks/useWebSocket.ts - Operations and GIS state
src/stores/operationsStore.ts
Offline Support
- Offline utilities
src/utils/offline.ts
Other components
- Agency operator
- Backend services
- Incident event source
Connections 17
- Agency operator → Login page: opens login
- Login page → Authentication state: submits credentials
- Authentication state → Backend services: requests login
- Authentication state → Role permissions: checks permissions
- Agency operator → Dashboard entry: opens dashboard
- Dashboard entry → Role dashboards: renders role view
- Role dashboards → GIS situational map: shows map
- Role dashboards → Operations metrics: shows metrics
- Role dashboards → Resource tracking: shows resources
- Disaster detection → Incident state: adds incidents
- Disaster detection → Alert views: creates alerts
- Agency operator → Dispatch panel: coordinates response
- Incident event source → WebSocket manager: sends events
- WebSocket manager → WebSocket hook: dispatches events
- WebSocket hook → Operations and GIS state: notifies subscribers
- REST API client → Backend services: calls REST services
- Offline utilities → Operations and GIS state: supports degraded use