# ericmetho517-wq/el_salhyautilites architecture

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

- Interactive diagram: https://gitdiagram.com/ericmetho517-wq/el_salhyautilites
- Repository: https://github.com/ericmetho517-wq/el_salhyautilites

## Overview

This is a bilingual dashboard for exploring Obour’s utility networks, roads, and sectors. Users enter through the overview, browse all networks, or open a network-specific detail view; those pages load summary, sector, road, or network JSON and present it through maps, charts, filters, and tables. The graph preserves the main visualization and styling layers. The README is empty, and some page excerpts are partial, so edges reflect only shown imports, calls, or fetch behavior.

Main entry points: [`src/pages/NetworkDetail.tsx`](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/pages/NetworkDetail.tsx) (Network detail), [`src/pages/AllNetworks.tsx`](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/pages/AllNetworks.tsx) (All networks), [`src/App.tsx`](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/App.tsx) (App router), [`src/pages/Overview.tsx`](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/pages/Overview.tsx) (City overview)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Navigation and shell"]
  node_app["App router<br/>[App.tsx]"]
  node_layout["Navigation shell<br/>[Layout.tsx]"]
end

subgraph group_domain["Dashboard views"]
  node_overview["City overview<br/>[Overview.tsx]"]
  node_allnetworks["All networks<br/>[AllNetworks.tsx]"]
  node_networkdetail["Network detail<br/>[NetworkDetail.tsx]"]
end

subgraph group_visualization["Analysis and visualization"]
  node_map["Interactive map<br/>[Map.tsx]"]
  node_charts["Charts<br/>[Charts.tsx]"]
  node_table["Feature table<br/>[DataTable.tsx]"]
  node_filters["Smart filters<br/>[SmartFilter.tsx]"]
  node_elementtypes["Element types"]
  node_stats["Stat cards<br/>[StatCard.tsx]"]
  node_networkicon["Network icons<br/>[NetworkIcon.tsx]"]
  node_typeindicator["Type indicator<br/>[TypeIndicator.tsx]"]
end

subgraph group_data["Data and presentation logic"]
  node_data["JSON data access<br/>[data.ts]"]
  node_symbology["Network symbology<br/>[symbology.ts]"]
  node_types["Domain data types<br/>[types.ts]"]
  node_i18n["Localization<br/>[i18n.ts]"]
end

node_user(("Dashboard user"))
node_jsonassets["Static JSON data"]

node_user -->|"opens dashboard"| node_app
node_app -->|"wraps routes"| node_layout
node_app -->|"routes to"| node_overview
node_app -->|"routes to"| node_allnetworks
node_app -->|"routes to"| node_networkdetail
node_layout -->|"reads language"| node_i18n
node_layout -->|"renders"| node_networkicon
node_overview -->|"loads summaries"| node_data
node_overview -->|"renders"| node_map
node_overview -->|"renders"| node_charts
node_overview -->|"renders"| node_stats
node_allnetworks -->|"loads network data"| node_data
node_allnetworks -->|"renders"| node_map
node_allnetworks -->|"renders"| node_charts
node_allnetworks -->|"renders"| node_table
node_allnetworks -->|"renders"| node_stats
node_networkdetail -->|"loads network data"| node_data
node_networkdetail -->|"renders"| node_map
node_networkdetail -->|"renders"| node_charts
node_networkdetail -->|"renders"| node_table
node_networkdetail -->|"renders"| node_filters
node_networkdetail -->|"renders"| node_elementtypes
node_networkdetail -->|"renders"| node_stats
node_data -->|"fetches JSON"| node_jsonassets
node_map -->|"gets feature styles"| node_symbology
node_stats -->|"renders"| node_typeindicator
node_elementtypes -->|"renders"| node_typeindicator

click node_app "https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/App.tsx"
click node_layout "https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/components/Layout.tsx"
click node_overview "https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/pages/Overview.tsx"
click node_allnetworks "https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/pages/AllNetworks.tsx"
click node_networkdetail "https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/pages/NetworkDetail.tsx"
click node_data "https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/lib/data.ts"
click node_map "https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/components/Map.tsx"
click node_charts "https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/components/Charts.tsx"
click node_table "https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/components/DataTable.tsx"
click node_filters "https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/components/SmartFilter.tsx"
click node_elementtypes "https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/components/ElementTypesPanel.tsx"
click node_stats "https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/components/StatCard.tsx"
click node_symbology "https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/lib/symbology.ts"
click node_types "https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/lib/types.ts"
click node_i18n "https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/lib/i18n.ts"
click node_networkicon "https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/components/NetworkIcon.tsx"
click node_typeindicator "https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/components/TypeIndicator.tsx"

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_layout,node_user toneBlue
class node_overview,node_allnetworks,node_networkdetail toneAmber
class node_map,node_charts,node_table,node_filters,node_elementtypes,node_stats,node_networkicon,node_typeindicator toneMint
class node_data,node_symbology,node_types,node_i18n toneRose
class node_jsonassets toneIndigo
```

## Components

### Navigation and shell

- [App router](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation shell](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/components/Layout.tsx): `src/components/Layout.tsx`

### Dashboard views

- [City overview](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/pages/Overview.tsx): `src/pages/Overview.tsx`
- [All networks](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/pages/AllNetworks.tsx): `src/pages/AllNetworks.tsx`
- [Network detail](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/pages/NetworkDetail.tsx): `src/pages/NetworkDetail.tsx`

### Analysis and visualization

- [Interactive map](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/components/Map.tsx): `src/components/Map.tsx`
- [Charts](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/components/Charts.tsx): `src/components/Charts.tsx`
- [Feature table](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/components/DataTable.tsx): `src/components/DataTable.tsx`
- [Smart filters](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/components/SmartFilter.tsx): `src/components/SmartFilter.tsx`
- [Element types](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/components/ElementTypesPanel.tsx): `src/components/ElementTypesPanel.tsx`
- [Stat cards](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/components/StatCard.tsx): `src/components/StatCard.tsx`
- [Network icons](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/components/NetworkIcon.tsx): `src/components/NetworkIcon.tsx`
- [Type indicator](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/components/TypeIndicator.tsx): `src/components/TypeIndicator.tsx`

### Data and presentation logic

- [JSON data access](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/lib/data.ts): `src/lib/data.ts`
- [Network symbology](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/lib/symbology.ts): `src/lib/symbology.ts`
- [Domain data types](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/lib/types.ts): `src/lib/types.ts`
- [Localization](https://github.com/ericmetho517-wq/el_salhyautilites/blob/main/src/lib/i18n.ts): `src/lib/i18n.ts`

### Other components

- **Dashboard user**
- **Static JSON data**

## Connections

- Dashboard user → App router: opens dashboard (evidence: `src/App.tsx`)
- App router → Navigation shell: wraps routes (evidence: `src/App.tsx`)
- App router → City overview: routes to (evidence: `src/App.tsx`)
- App router → All networks: routes to (evidence: `src/App.tsx`)
- App router → Network detail: routes to (evidence: `src/App.tsx`)
- Navigation shell → Localization: reads language (evidence: `src/components/Layout.tsx`)
- Navigation shell → Network icons: renders (evidence: `src/components/Layout.tsx`)
- City overview → JSON data access: loads summaries (evidence: `src/pages/Overview.tsx`)
- City overview → Interactive map: renders (evidence: `src/pages/Overview.tsx`)
- City overview → Charts: renders (evidence: `src/pages/Overview.tsx`)
- City overview → Stat cards: renders (evidence: `src/pages/Overview.tsx`)
- All networks → JSON data access: loads network data (evidence: `src/pages/AllNetworks.tsx`)
- All networks → Interactive map: renders (evidence: `src/pages/AllNetworks.tsx`)
- All networks → Charts: renders (evidence: `src/pages/AllNetworks.tsx`)
- All networks → Feature table: renders (evidence: `src/pages/AllNetworks.tsx`)
- All networks → Stat cards: renders (evidence: `src/pages/AllNetworks.tsx`)
- Network detail → JSON data access: loads network data (evidence: `src/pages/NetworkDetail.tsx`)
- Network detail → Interactive map: renders (evidence: `src/pages/NetworkDetail.tsx`)
- Network detail → Charts: renders (evidence: `src/pages/NetworkDetail.tsx`)
- Network detail → Feature table: renders (evidence: `src/pages/NetworkDetail.tsx`)
- Network detail → Smart filters: renders (evidence: `src/pages/NetworkDetail.tsx`)
- Network detail → Element types: renders (evidence: `src/pages/NetworkDetail.tsx`)
- Network detail → Stat cards: renders (evidence: `src/pages/NetworkDetail.tsx`)
- JSON data access → Static JSON data: fetches JSON (evidence: `src/lib/data.ts`)
- Interactive map → Network symbology: gets feature styles (evidence: `src/components/Map.tsx`)
- Stat cards → Type indicator: renders (evidence: `src/components/StatCard.tsx`)
- Element types → Type indicator: renders (evidence: `src/components/ElementTypesPanel.tsx`)
