# chandruglobalimpactacademy-source/johri_dashboard architecture

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

- Interactive diagram: https://gitdiagram.com/chandruglobalimpactacademy-source/johri_dashboard
- Repository: https://github.com/chandruglobalimpactacademy-source/johri_dashboard

## Overview

This is a Streamlit route-performance dashboard. Users select a date range and operational filters, then inspect summary measures, service-level trends, and depot comparisons; a Johari Window selection can focus the trend view on a service. The single 74 KB script implements these stages together. The excerpts establish the filter, trend, and comparison behavior, but do not show how the underlying data is loaded or the full Johari Window implementation, so those details are not modeled.

Main entry points: [`johari_dashboard_enhanced_V_00.py`](https://github.com/chandruglobalimpactacademy-source/johri_dashboard/blob/main/johari_dashboard_enhanced_V_00.py) (Filtered route data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["User interaction"]
  node_app["Streamlit dashboard"]
  node_filters["Date and service filters"]
end

subgraph group_analysis["Analysis"]
  node_filtered_data["Filtered route data"]
  node_shift_coverage["Shift coverage"]
end

subgraph group_views["Dashboard views"]
  node_summary["Summary metrics"]
  node_johari["Johari Window"]
  node_trends["Daily trends"]
  node_depot_comparison["Depot comparison"]
end

node_user(("Dashboard user"))

node_user -->|"uses"| node_app
node_app -->|"renders"| node_filters
node_filters -->|"filters"| node_filtered_data
node_filtered_data -->|"summarizes"| node_summary
node_filtered_data -->|"checks shifts"| node_shift_coverage
node_filtered_data -.->|"visualizes"| node_johari
node_filtered_data -->|"aggregates"| node_trends
node_filtered_data -->|"compares depots"| node_depot_comparison
node_johari -->|"sets service focus"| node_trends

click node_app "https://github.com/chandruglobalimpactacademy-source/johri_dashboard/blob/main/johari_dashboard_enhanced_V_00.py"
click node_filters "https://github.com/chandruglobalimpactacademy-source/johri_dashboard/blob/main/johari_dashboard_enhanced_V_00.py"
click node_filtered_data "https://github.com/chandruglobalimpactacademy-source/johri_dashboard/blob/main/johari_dashboard_enhanced_V_00.py"
click node_summary "https://github.com/chandruglobalimpactacademy-source/johri_dashboard/blob/main/johari_dashboard_enhanced_V_00.py"
click node_shift_coverage "https://github.com/chandruglobalimpactacademy-source/johri_dashboard/blob/main/johari_dashboard_enhanced_V_00.py"
click node_johari "https://github.com/chandruglobalimpactacademy-source/johri_dashboard/blob/main/johari_dashboard_enhanced_V_00.py"
click node_trends "https://github.com/chandruglobalimpactacademy-source/johri_dashboard/blob/main/johari_dashboard_enhanced_V_00.py"
click node_depot_comparison "https://github.com/chandruglobalimpactacademy-source/johri_dashboard/blob/main/johari_dashboard_enhanced_V_00.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_app,node_filters,node_user toneBlue
class node_filtered_data,node_shift_coverage toneAmber
class node_summary,node_johari,node_trends,node_depot_comparison toneMint
```

## Components

### User interaction

- [Streamlit dashboard](https://github.com/chandruglobalimpactacademy-source/johri_dashboard/blob/main/johari_dashboard_enhanced_V_00.py): `johari_dashboard_enhanced_V_00.py`
- [Date and service filters](https://github.com/chandruglobalimpactacademy-source/johri_dashboard/blob/main/johari_dashboard_enhanced_V_00.py): `johari_dashboard_enhanced_V_00.py`

### Analysis

- [Filtered route data](https://github.com/chandruglobalimpactacademy-source/johri_dashboard/blob/main/johari_dashboard_enhanced_V_00.py): `johari_dashboard_enhanced_V_00.py`
- [Shift coverage](https://github.com/chandruglobalimpactacademy-source/johri_dashboard/blob/main/johari_dashboard_enhanced_V_00.py): `johari_dashboard_enhanced_V_00.py`

### Dashboard views

- [Summary metrics](https://github.com/chandruglobalimpactacademy-source/johri_dashboard/blob/main/johari_dashboard_enhanced_V_00.py): `johari_dashboard_enhanced_V_00.py`
- [Johari Window](https://github.com/chandruglobalimpactacademy-source/johri_dashboard/blob/main/johari_dashboard_enhanced_V_00.py): `johari_dashboard_enhanced_V_00.py`
- [Daily trends](https://github.com/chandruglobalimpactacademy-source/johri_dashboard/blob/main/johari_dashboard_enhanced_V_00.py): `johari_dashboard_enhanced_V_00.py`
- [Depot comparison](https://github.com/chandruglobalimpactacademy-source/johri_dashboard/blob/main/johari_dashboard_enhanced_V_00.py): `johari_dashboard_enhanced_V_00.py`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → Streamlit dashboard: uses (evidence: `johari_dashboard_enhanced_V_00.py`)
- Streamlit dashboard → Date and service filters: renders (evidence: `johari_dashboard_enhanced_V_00.py`)
- Date and service filters → Filtered route data: filters (evidence: `johari_dashboard_enhanced_V_00.py`)
- Filtered route data → Summary metrics: summarizes (evidence: `johari_dashboard_enhanced_V_00.py`)
- Filtered route data → Shift coverage: checks shifts (evidence: `johari_dashboard_enhanced_V_00.py`)
- Filtered route data → Johari Window: visualizes (evidence: `johari_dashboard_enhanced_V_00.py`)
- Filtered route data → Daily trends: aggregates (evidence: `johari_dashboard_enhanced_V_00.py`)
- Filtered route data → Depot comparison: compares depots (evidence: `johari_dashboard_enhanced_V_00.py`)
- Johari Window → Daily trends: sets service focus (evidence: `johari_dashboard_enhanced_V_00.py`)
