# sarthakdhabale2006-dev/resq---ai architecture

> Architecture diagram of the GitHub repository sarthakdhabale2006-dev/resq---ai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sarthakdhabale2006-dev/resq---ai
- Repository: https://github.com/sarthakdhabale2006-dev/resq---ai

## Overview

RESQ-AI is a simulated emergency-operations coordination interface. An operator enters the command workspace, reviews the dashboard’s incident and zone picture, inspects zone dossiers and resource recommendations, then reviews and authorizes a phased response plan or manages incident reports. App owns shared session and operational state; screen components render and update that state. Data is initialized from mock fixtures, not a demonstrated backend. The map, telemetry, AI, and dispatch capabilities are represented in the UI; excerpts do not establish live external integrations.

Main entry points: [`src/App.tsx`](https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/App.tsx) (App State & Routing), [`src/components/DashboardScreen.tsx`](https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/DashboardScreen.tsx) (Operations Dashboard), [`src/types.ts`](https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/types.ts) (Operational Types), [`src/components/LoginScreen.tsx`](https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/LoginScreen.tsx) (Command Login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_command["Command Workspace"]
  node_app["App State &amp; Routing<br/>[App.tsx]"]
  node_login["Command Login<br/>[LoginScreen.tsx]"]
  node_header["Navigation Header<br/>[Header.tsx]"]
  node_audio["Tactical Audio<br/>[TacticalAudio.ts]"]
end

subgraph group_situational["Situation Assessment"]
  node_dashboard["Operations Dashboard"]
  node_map["Disaster Map<br/>[DisasterMap.tsx]"]
  node_priority["AI Priority Analysis"]
  node_insights["AI Insights"]
  node_feed["Live Incident Feed"]
  node_zone["Zone Dossier"]
  node_reports["Incident Reports"]
end

subgraph group_operations["Response Operations"]
  node_resources["Resource Allocation"]
  node_planning["Response Planning"]
end

subgraph group_domain["Domain Model"]
  node_mockdata["Initial Disaster Data"]
  node_types["Operational Types<br/>[types.ts]"]
end

node_operator(("Operator"))

node_operator -->|"enters credentials"| node_login
node_login -.->|"authorizes session"| node_app
node_operator -->|"uses workspace"| node_app
node_mockdata -->|"initializes state"| node_app
node_app -->|"renders and supplies state"| node_header
node_app -->|"routes and supplies state"| node_dashboard
node_app -->|"routes and supplies state"| node_zone
node_app -->|"routes and supplies state"| node_planning
node_app -->|"routes and supplies state"| node_reports
node_dashboard -->|"renders"| node_map
node_dashboard -->|"renders"| node_priority
node_dashboard -->|"renders"| node_resources
node_dashboard -->|"renders"| node_feed
node_dashboard -->|"renders"| node_insights
node_app -->|"uses domain types"| node_types
node_dashboard -->|"uses domain types"| node_types
node_zone -->|"uses domain types"| node_types
node_reports -->|"uses domain types"| node_types
node_planning -->|"uses domain types"| node_types

click node_app "https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/App.tsx"
click node_login "https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/LoginScreen.tsx"
click node_header "https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/Header.tsx"
click node_dashboard "https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/DashboardScreen.tsx"
click node_map "https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/DisasterMap.tsx"
click node_priority "https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/AIPriorityAnalysis.tsx"
click node_insights "https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/AIInsightsPanel.tsx"
click node_feed "https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/LiveIncidentFeed.tsx"
click node_zone "https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/ZoneDetailsScreen.tsx"
click node_reports "https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/IncidentReportsScreen.tsx"
click node_resources "https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/ResourceAllocation.tsx"
click node_planning "https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/ResponsePlanningScreen.tsx"
click node_mockdata "https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/data/mockDisasterData.ts"
click node_types "https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/types.ts"
click node_audio "https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/TacticalAudio.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_login,node_header,node_audio toneBlue
class node_dashboard,node_map,node_priority,node_insights,node_feed,node_zone,node_reports toneAmber
class node_resources,node_planning toneMint
class node_mockdata,node_types toneRose
class node_operator toneIndigo
```

## Components

### Command Workspace

- [App State & Routing](https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/App.tsx): `src/App.tsx`
- [Command Login](https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/LoginScreen.tsx): `src/components/LoginScreen.tsx`
- [Navigation Header](https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Tactical Audio](https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/TacticalAudio.ts): `src/components/TacticalAudio.ts`

### Situation Assessment

- [Operations Dashboard](https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/DashboardScreen.tsx): `src/components/DashboardScreen.tsx`
- [Disaster Map](https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/DisasterMap.tsx): `src/components/DisasterMap.tsx`
- [AI Priority Analysis](https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/AIPriorityAnalysis.tsx): `src/components/AIPriorityAnalysis.tsx`
- [AI Insights](https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/AIInsightsPanel.tsx): `src/components/AIInsightsPanel.tsx`
- [Live Incident Feed](https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/LiveIncidentFeed.tsx): `src/components/LiveIncidentFeed.tsx`
- [Zone Dossier](https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/ZoneDetailsScreen.tsx): `src/components/ZoneDetailsScreen.tsx`
- [Incident Reports](https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/IncidentReportsScreen.tsx): `src/components/IncidentReportsScreen.tsx`

### Response Operations

- [Resource Allocation](https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/ResourceAllocation.tsx): `src/components/ResourceAllocation.tsx`
- [Response Planning](https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/components/ResponsePlanningScreen.tsx): `src/components/ResponsePlanningScreen.tsx`

### Domain Model

- [Initial Disaster Data](https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/data/mockDisasterData.ts): `src/data/mockDisasterData.ts`
- [Operational Types](https://github.com/sarthakdhabale2006-dev/resq---ai/blob/main/src/types.ts): `src/types.ts`

### Other components

- **Operator**

## Connections

- Operator → Command Login: enters credentials (evidence: `src/components/LoginScreen.tsx`)
- Command Login → App State & Routing: authorizes session (evidence: `src/App.tsx`)
- Operator → App State & Routing: uses workspace (evidence: `src/App.tsx`)
- Initial Disaster Data → App State & Routing: initializes state (evidence: `src/App.tsx`)
- App State & Routing → Navigation Header: renders and supplies state (evidence: `src/App.tsx`)
- App State & Routing → Operations Dashboard: routes and supplies state (evidence: `src/App.tsx`)
- App State & Routing → Zone Dossier: routes and supplies state (evidence: `src/App.tsx`)
- App State & Routing → Response Planning: routes and supplies state (evidence: `src/App.tsx`)
- App State & Routing → Incident Reports: routes and supplies state (evidence: `src/App.tsx`)
- Operations Dashboard → Disaster Map: renders (evidence: `src/components/DashboardScreen.tsx`)
- Operations Dashboard → AI Priority Analysis: renders (evidence: `src/components/DashboardScreen.tsx`)
- Operations Dashboard → Resource Allocation: renders (evidence: `src/components/DashboardScreen.tsx`)
- Operations Dashboard → Live Incident Feed: renders (evidence: `src/components/DashboardScreen.tsx`)
- Operations Dashboard → AI Insights: renders (evidence: `src/components/DashboardScreen.tsx`)
- App State & Routing → Operational Types: uses domain types (evidence: `src/App.tsx`)
- Operations Dashboard → Operational Types: uses domain types (evidence: `src/components/DashboardScreen.tsx`)
- Zone Dossier → Operational Types: uses domain types (evidence: `src/types.ts`)
- Incident Reports → Operational Types: uses domain types (evidence: `src/components/IncidentReportsScreen.tsx`)
- Response Planning → Operational Types: uses domain types (evidence: `src/components/ResponsePlanningScreen.tsx`)
