How saharshasamala1112/disaster_visualization_dashboard works
This is a multi-hazard disaster monitoring and response dashboard. Operators enter through the dashboard, choose operations or analytics, and in operations view review hazard signals, incidents, and a live risk map; live snapshots are served by an API backed by hazard-specific ingestion and fallback logic. The README also describes exports, offline resilience, and accessibility features. Some client-to-API wiring and several documented capabilities are not visible in the excerpts, so those links are marked unverified or omitted rather than inferred as direct calls.
Main entry points: DisasterCommandCenter.tsx Command center · mock-pipeline.ts Snapshot ingestion · page.tsx Dashboard page · disaster-data.ts Hazard definitions
Components 23
Dashboard entry
- Dashboard page
app/(dashboard)/page.tsx - Dashboard navigation
app/(dashboard)/layout.tsx - Hazard navigation
components/dashboard/Sidebar.tsx - Theme control
components/ThemeToggle.tsx - Mode control
components/dashboard/ModeToggle.tsx
Operations center
- Command center
components/dashboard/DisasterCommandCenter.tsx - Hazard tabs
components/dashboard/DisasterTabs.tsx - Map loader
components/dashboard/LiveMapDynamic.tsx - Risk map
components/dashboard/LiveMap.tsx - Incident feed
components/dashboard/IncidentFeed.tsx
Live data
- Hazard definitions
lib/disaster-data.ts - Live operations API
app/api/live-ops/route.ts - Snapshot ingestion
lib/realtime/mock-pipeline.ts
Analytics
- Analytics dashboard
components/dashboard/AnalyticsDashboard.tsx - Visualization and exports
lib/analytics/viz-utils.ts
Offline resilience
- App shell
app/layout.tsx - Offline service worker
public/sw.js
Other components
- Response operator
- USGS earthquake feed
- OpenWeather feed
- Open-Meteo flood feed
- NASA FIRMS feed
- OpenStreetMap tiles
Connections 22
- Response operator → Dashboard page: opens
- Dashboard page → Command center: renders operations
app/(dashboard)/page.tsx - Dashboard page → Analytics dashboard: renders analytics
app/(dashboard)/page.tsx - Dashboard page → Mode control: offers mode switch
app/(dashboard)/page.tsx - Dashboard page → Theme control: offers theme switch
app/(dashboard)/page.tsx - Dashboard navigation → Hazard navigation: renders navigation
app/(dashboard)/layout.tsx - Hazard navigation → Hazard definitions: reads hazard routes
components/dashboard/Sidebar.tsx - Command center → Hazard definitions: reads hazard definitions
components/dashboard/DisasterCommandCenter.tsx - Command center → Hazard tabs: renders
components/dashboard/DisasterCommandCenter.tsx - Command center → Map loader: renders map
components/dashboard/DisasterCommandCenter.tsx - Map loader → Risk map: loads
components/dashboard/LiveMapDynamic.tsx - Command center → Incident feed: renders incidents
components/dashboard/DisasterCommandCenter.tsx - Command center → Live operations API: requests snapshot
- Live operations API → Snapshot ingestion: builds snapshot
app/api/live-ops/route.ts - Snapshot ingestion → Hazard definitions: uses hazard definitions
lib/realtime/mock-pipeline.ts - Snapshot ingestion → USGS earthquake feed: fetches earthquakes
lib/realtime/mock-pipeline.ts - Snapshot ingestion → OpenWeather feed: fetches cyclone data
lib/realtime/mock-pipeline.ts - Snapshot ingestion → Open-Meteo flood feed: fetches flood data
lib/realtime/mock-pipeline.ts - Snapshot ingestion → NASA FIRMS feed: fetches fire data
lib/realtime/mock-pipeline.ts - Risk map → OpenStreetMap tiles: loads tiles
components/dashboard/LiveMap.tsx - Analytics dashboard → Visualization and exports: uses visualizations
components/dashboard/AnalyticsDashboard.tsx - App shell → Offline service worker: registers
app/layout.tsx