How prasannakumar317/cycloneimpact-ai works
CycloneShield is a demo cyclone-impact and infrastructure-vulnerability forecaster for coastal Odisha and Andhra Pradesh. The authority dashboard coordinates scenario controls, map-based hazard and asset inspection, responder-capacity and district-risk views, and an AI action-plan workflow; a citizen view presents alerts and evacuation guidance. The app uses mock-first scenario, infrastructure, and resilience data, with optional Gemini and Earth Engine adapters. Edges reflect shown imports/rendering and documented capabilities; unsampled wiring is not inferred.
Main entry points: App.tsx Authority Dashboard · geminiService.ts Gemini Adapter · RiskMap.tsx Risk GIS Map · infrastructure.ts Infrastructure Types
Components 23
Application
- Authority Dashboard
src/App.tsx - Role Header
src/components/common/Header.tsx - Scenario Controls
src/components/common/ScenarioControlBar.tsx - Citizen View
src/components/citizen/CitizenAlertPanel.tsx
Hazard Situational Awareness
- Cyclone Status
src/components/common/CycloneStatusBar.tsx - Risk GIS Map
src/components/map/RiskMap.tsx - Impact Forecast
src/components/dashboard/ImpactForecastModal.tsx - Exposure KPIs
src/components/common/KpiCards.tsx - Asset Inspection
src/components/common/InfrastructureDetailModal.tsx - Infrastructure Inventory
src/data/infrastructure.ts - Cyclone Scenario
src/data/cycloneScenario.ts
Response Operations
- AI Action Brief
src/components/dashboard/AiResilienceBrief.tsx - Responder Capacity
src/components/dashboard/ResilienceCorpsCard.tsx - District Vulnerability
src/components/dashboard/VulnerabilityRankings.tsx - Infrastructure Status
src/components/dashboard/InfrastructureTable.tsx - Population Exposure
src/data/demographics.ts - Response Scenarios
src/data/responderData.ts
Domain Data and Services
- Gemini Adapter
src/services/geminiService.ts - Earth Engine Adapter
src/services/geeService.ts - Cyclone Types
src/types/cyclone.ts - Infrastructure Types
src/types/infrastructure.ts - Resilience Types
src/types/resilience.ts
Other components
- Authority or Citizen
Connections 39
- Authority or Citizen → Authority Dashboard: uses
README.md - Authority Dashboard → Role Header: renders
src/App.tsx - Authority Dashboard → Scenario Controls: renders
src/App.tsx - Authority Dashboard → Cyclone Status: renders
src/App.tsx - Authority Dashboard → Risk GIS Map: renders
src/App.tsx - Authority Dashboard → Impact Forecast: opens
src/App.tsx - Authority Dashboard → Exposure KPIs: renders
src/App.tsx - Authority Dashboard → Citizen View: renders
src/App.tsx - Authority Dashboard → Asset Inspection: opens
src/App.tsx - Authority Dashboard → AI Action Brief: renders
src/App.tsx - Authority Dashboard → Responder Capacity: renders
src/App.tsx - Authority Dashboard → District Vulnerability: renders
src/App.tsx - Authority Dashboard → Infrastructure Status: renders
src/App.tsx - Authority Dashboard → Gemini Adapter: requests plan
src/App.tsx - Authority Dashboard → Earth Engine Adapter: gets layer config
src/App.tsx - Authority Dashboard → Cyclone Scenario: reads scenario
src/App.tsx - Authority Dashboard → Infrastructure Inventory: reads assets
src/App.tsx - Authority Dashboard → Population Exposure: reads exposure
src/App.tsx - Authority Dashboard → Response Scenarios: reads response data
src/App.tsx - Risk GIS Map → Earth Engine Adapter: uses layer data
src/components/map/RiskMap.tsx - Risk GIS Map → Infrastructure Inventory: shows assets
- Impact Forecast → Gemini Adapter: uses plan service
src/components/dashboard/ImpactForecastModal.tsx - AI Action Brief → Gemini Adapter: uses plan service
src/components/dashboard/AiResilienceBrief.tsx - Gemini Adapter → Response Scenarios: uses fallback actions
src/services/geminiService.ts - Gemini Adapter → Authority or Citizen: calls API
- Earth Engine Adapter → Authority or Citizen: may stream tiles
README.md - Cyclone Status → Cyclone Types: uses types
src/components/common/CycloneStatusBar.tsx - Risk GIS Map → Cyclone Types: uses types
src/components/map/RiskMap.tsx - Risk GIS Map → Infrastructure Types: uses types
src/components/map/RiskMap.tsx - Asset Inspection → Infrastructure Types: uses types
src/components/common/InfrastructureDetailModal.tsx - Infrastructure Status → Infrastructure Types: uses types
src/components/dashboard/InfrastructureTable.tsx - Citizen View → Resilience Types: uses types
src/components/citizen/CitizenAlertPanel.tsx - Responder Capacity → Resilience Types: uses types
src/components/dashboard/ResilienceCorpsCard.tsx - District Vulnerability → Resilience Types: uses types
src/components/dashboard/VulnerabilityRankings.tsx - Gemini Adapter → Cyclone Types: uses types
src/services/geminiService.ts - Gemini Adapter → Infrastructure Types: uses types
src/services/geminiService.ts - Gemini Adapter → Resilience Types: uses types
src/services/geminiService.ts - Infrastructure Types → Cyclone Types: imports risk type
src/types/infrastructure.ts - Resilience Types → Cyclone Types: imports risk type
src/types/resilience.ts