# yaesen-hany/egypt-training-operations-dashboard architecture

> Architecture diagram of the GitHub repository yaesen-hany/egypt-training-operations-dashboard, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yaesen-hany/egypt-training-operations-dashboard
- Repository: https://github.com/yaesen-hany/egypt-training-operations-dashboard

## Overview

Insight Dashboard Builder is a single-file Streamlit application for exploring training activity across Egyptian cities, tracks, and delivery channels. Its main workflow loads or synthesizes activity records, derives analytical fields, applies sidebar filters, and presents results across overview, trend, geographic, and data-explorer views. The documented product also includes an AI-assisted operations assistant. The source excerpt confirms data preparation, filtering, and several chart implementations; other documented views and integrations are represented at the app level because their implementation details were not sampled.

Main entry points: [`app.py`](https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/app.py) (Sidebar Filters), [`training_activity.csv`](https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/training_activity.csv) (Activity CSV)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Activity Data"]
  node_csv["Activity CSV"]
  node_prepare["Load and Derive<br/>[app.py]"]
  node_filter["Sidebar Filters<br/>[app.py]"]
end

subgraph group_dashboard["Dashboard Views"]
  node_overview["Overview<br/>[app.py]"]
  node_trends["Trends<br/>[app.py]"]
  node_geography["Geography<br/>[app.py]"]
  node_explorer["Data Explorer<br/>[app.py]"]
end

subgraph group_assistant["AI Assistant"]
  node_assistant_ui["Operations Assistant<br/>[app.py]"]
  node_local_engine["Local Records Engine<br/>[app.py]"]
  node_gemini["Gemini Service"]
end

node_team(("Program Team"))

node_team -->|"sets filters"| node_filter
node_csv -->|"loads records"| node_prepare
node_prepare -->|"provides records"| node_filter
node_filter -->|"filters data"| node_overview
node_filter -->|"filters data"| node_trends
node_filter -->|"filters data"| node_geography
node_filter -->|"filters data"| node_explorer
node_team -.->|"asks questions"| node_assistant_ui
node_assistant_ui -.->|"queries records"| node_local_engine
node_assistant_ui -.->|"uses when configured"| node_gemini

click node_csv "https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/training_activity.csv"
click node_prepare "https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/app.py"
click node_filter "https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/app.py"
click node_overview "https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/app.py"
click node_trends "https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/app.py"
click node_geography "https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/app.py"
click node_explorer "https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/app.py"
click node_assistant_ui "https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/app.py"
click node_local_engine "https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/app.py"

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_csv,node_prepare,node_filter toneBlue
class node_overview,node_trends,node_geography,node_explorer toneAmber
class node_assistant_ui,node_local_engine,node_gemini toneMint
class node_team toneIndigo
```

## Components

### Activity Data

- [Activity CSV](https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/training_activity.csv): `training_activity.csv`
- [Load and Derive](https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/app.py): `app.py`
- [Sidebar Filters](https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/app.py): `app.py`

### Dashboard Views

- [Overview](https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/app.py): `app.py`
- [Trends](https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/app.py): `app.py`
- [Geography](https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/app.py): `app.py`
- [Data Explorer](https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/app.py): `app.py`

### AI Assistant

- [Operations Assistant](https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/app.py): `app.py`
- [Local Records Engine](https://github.com/yaesen-hany/egypt-training-operations-dashboard/blob/main/app.py): `app.py`
- **Gemini Service**

### Other components

- **Program Team**

## Connections

- Program Team → Sidebar Filters: sets filters (evidence: `README.md`)
- Activity CSV → Load and Derive: loads records (evidence: `README.md`)
- Load and Derive → Sidebar Filters: provides records (evidence: `app.py`)
- Sidebar Filters → Overview: filters data (evidence: `README.md`)
- Sidebar Filters → Trends: filters data (evidence: `README.md`)
- Sidebar Filters → Geography: filters data (evidence: `README.md`)
- Sidebar Filters → Data Explorer: filters data (evidence: `README.md`)
- Program Team → Operations Assistant: asks questions
- Operations Assistant → Local Records Engine: queries records (evidence: `app.py`)
- Operations Assistant → Gemini Service: uses when configured
