# xavieryyyyyy/responde-net_finale architecture

> Architecture diagram of the GitHub repository xavieryyyyyy/responde-net_finale, 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/xavieryyyyyy/responde-net_finale
- Repository: https://github.com/xavieryyyyyy/responde-net_finale

## Overview

Flood Watch Iligan is a flood-response and evacuation coordination application. Residents use the dashboard to view local conditions, submit flood reports, and request rescue; evacuation-center staff manage check-ins and supplies, while administrators oversee citywide response and accounts. The source index identifies dedicated routes for these capabilities and supporting service modules. Excerpts show some route-to-service calls, but not the full service or storage wiring; unverified relationships are therefore omitted. The README provided no additional capability documentation.

Main entry points: [`Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routeTree.gen.ts`](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routeTree.gen.ts) (Application routes), [`Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.center.tsx`](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.center.tsx) (Center operations), [`Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.index.tsx`](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.index.tsx) (Flood dashboard), [`Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/main.tsx`](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/main.tsx) (React application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_app["React application<br/>[main.tsx]"]
  node_router["Route registry<br/>[router.tsx]"]
  node_route_tree["Application routes<br/>[routeTree.gen.ts]"]
end

subgraph group_resident["Resident response"]
  node_dashboard["Flood dashboard<br/>[_app.index.tsx]"]
  node_report["Flood reporting<br/>[_app.report.tsx]"]
  node_rescue_request["Rescue requests<br/>[_app.rescue.tsx]"]
  node_profile["Resident profile<br/>[_app.profile.tsx]"]
  node_auth_routes["Sign-in and registration"]
end

subgraph group_operations["Evacuation operations"]
  node_center_ops["Center operations<br/>[_app.center.tsx]"]
  node_center_directory["Center directory"]
  node_admin_ops["Administration"]
  node_shell["Application shell<br/>[AppShell.tsx]"]
  node_map["Flood map<br/>[FloodMap.tsx]"]
end

subgraph group_platform["Services and data"]
  node_rescue_service["Rescue service<br/>[rescueService.ts]"]
  node_center_service["Center service<br/>[centersService.ts]"]
  node_household_service["Household service"]
  node_inventory_service["Inventory service"]
  node_relief_service["Relief service<br/>[reliefService.ts]"]
  node_auth_service["Authentication service<br/>[authService.ts]"]
  node_supabase_client["Supabase client<br/>[client.ts]"]
  node_supabase_store[("Supabase data")]
end

node_browser(("User"))

node_browser -->|"uses"| node_app
node_app -->|"creates router"| node_router
node_router -->|"registers routes"| node_route_tree
node_route_tree -->|"routes to"| node_dashboard
node_route_tree -->|"routes to"| node_report
node_route_tree -->|"routes to"| node_rescue_request
node_route_tree -->|"routes to"| node_center_ops
node_route_tree -->|"routes to"| node_center_directory
node_route_tree -->|"routes to"| node_admin_ops
node_route_tree -->|"routes to"| node_profile
node_dashboard -->|"loads request"| node_rescue_service
node_dashboard -->|"parses coordinates"| node_map
node_rescue_request -->|"submits request"| node_rescue_service
node_center_ops -->|"updates inventory"| node_inventory_service
node_center_ops -->|"searches households"| node_household_service
node_center_ops -->|"manages shipments"| node_relief_service
node_profile -->|"signs out"| node_auth_service

click node_app "https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/main.tsx"
click node_router "https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/router.tsx"
click node_route_tree "https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routeTree.gen.ts"
click node_dashboard "https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.index.tsx"
click node_report "https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.report.tsx"
click node_rescue_request "https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.rescue.tsx"
click node_profile "https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.profile.tsx"
click node_auth_routes "https://github.com/xavieryyyyyy/responde-net_finale/tree/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes"
click node_center_ops "https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.center.tsx"
click node_center_directory "https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.centers.index.tsx"
click node_admin_ops "https://github.com/xavieryyyyyy/responde-net_finale/tree/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes"
click node_shell "https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/components/layout/AppShell.tsx"
click node_map "https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/components/map/FloodMap.tsx"
click node_rescue_service "https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/services/rescueService.ts"
click node_center_service "https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/services/centersService.ts"
click node_household_service "https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/services/householdsService.ts"
click node_inventory_service "https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/services/inventoryService.ts"
click node_relief_service "https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/services/reliefService.ts"
click node_auth_service "https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/services/authService.ts"
click node_supabase_client "https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/integrations/supabase/client.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_router,node_route_tree,node_browser toneBlue
class node_dashboard,node_report,node_rescue_request,node_profile,node_auth_routes toneAmber
class node_center_ops,node_center_directory,node_admin_ops,node_shell,node_map toneMint
class node_rescue_service,node_center_service,node_household_service,node_inventory_service,node_relief_service,node_auth_service,node_supabase_client,node_supabase_store toneRose
```

## Components

### Application entry

- [React application](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/main.tsx): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/main.tsx`
- [Route registry](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/router.tsx): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/router.tsx`
- [Application routes](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routeTree.gen.ts): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routeTree.gen.ts`

### Resident response

- [Flood dashboard](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.index.tsx): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.index.tsx`
- [Flood reporting](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.report.tsx): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.report.tsx`
- [Rescue requests](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.rescue.tsx): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.rescue.tsx`
- [Resident profile](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.profile.tsx): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.profile.tsx`
- [Sign-in and registration](https://github.com/xavieryyyyyy/responde-net_finale/tree/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes`

### Evacuation operations

- [Center operations](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.center.tsx): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.center.tsx`
- [Center directory](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.centers.index.tsx): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.centers.index.tsx`
- [Administration](https://github.com/xavieryyyyyy/responde-net_finale/tree/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes`
- [Application shell](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/components/layout/AppShell.tsx): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/components/layout/AppShell.tsx`
- [Flood map](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/components/map/FloodMap.tsx): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/components/map/FloodMap.tsx`

### Services and data

- [Rescue service](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/services/rescueService.ts): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/services/rescueService.ts`
- [Center service](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/services/centersService.ts): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/services/centersService.ts`
- [Household service](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/services/householdsService.ts): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/services/householdsService.ts`
- [Inventory service](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/services/inventoryService.ts): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/services/inventoryService.ts`
- [Relief service](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/services/reliefService.ts): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/services/reliefService.ts`
- [Authentication service](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/services/authService.ts): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/services/authService.ts`
- [Supabase client](https://github.com/xavieryyyyyy/responde-net_finale/blob/main/Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/integrations/supabase/client.ts): `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/integrations/supabase/client.ts`
- **Supabase data**

### Other components

- **User**

## Connections

- User → React application: uses
- React application → Route registry: creates router (evidence: `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/main.tsx`)
- Route registry → Application routes: registers routes (evidence: `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/router.tsx`)
- Application routes → Flood dashboard: routes to (evidence: `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routeTree.gen.ts`)
- Application routes → Flood reporting: routes to (evidence: `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routeTree.gen.ts`)
- Application routes → Rescue requests: routes to (evidence: `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routeTree.gen.ts`)
- Application routes → Center operations: routes to (evidence: `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routeTree.gen.ts`)
- Application routes → Center directory: routes to (evidence: `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routeTree.gen.ts`)
- Application routes → Administration: routes to (evidence: `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routeTree.gen.ts`)
- Application routes → Resident profile: routes to (evidence: `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routeTree.gen.ts`)
- Flood dashboard → Rescue service: loads request (evidence: `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.index.tsx`)
- Flood dashboard → Flood map: parses coordinates (evidence: `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.index.tsx`)
- Rescue requests → Rescue service: submits request (evidence: `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.rescue.tsx`)
- Center operations → Inventory service: updates inventory (evidence: `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.center.tsx`)
- Center operations → Household service: searches households (evidence: `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.center.tsx`)
- Center operations → Relief service: manages shipments (evidence: `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.center.tsx`)
- Resident profile → Authentication service: signs out (evidence: `Videos/flood-watch-iligan-main/flood-watch-iligan-main/src/routes/_app.profile.tsx`)
