# mukthalathadeepika/sales-performance-dashboard architecture

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

- Interactive diagram: https://gitdiagram.com/mukthalathadeepika/sales-performance-dashboard
- Repository: https://github.com/mukthalathadeepika/sales-performance-dashboard

## Overview

This is a Streamlit sales-performance dashboard. A user loads or selects a dataset; the app normalizes it, then presents filtered executive metrics, visual analysis, exports, or deterministic natural-language answers. The graph preserves the documented analysis, geography, shipping, forecasting, and data-quality capabilities. Some subsystem links are based on README descriptions or SOURCE INDEX references; unsampled implementation details are not inferred.

Main entry points: [`frontend/views/dashboard_view.py`](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/frontend/views/dashboard_view.py) (Executive dashboard), [`frontend/app.py`](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/frontend/app.py) (App and navigation), [`backend/pipeline.py`](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/pipeline.py) (Normalization pipeline), [`backend/analytics/currency.py`](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/analytics/currency.py) (INR formatting)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Dashboard experience"]
  node_app["App and navigation<br/>[app.py]"]
  node_dashboard["Executive dashboard<br/>[dashboard_view.py]"]
  node_analysis["Sales analysis"]
  node_assistant_view["Assistant view"]
  node_quality_view["Data quality view"]
  node_charts["Chart components<br/>[charts.py]"]
  node_map["Geographic map<br/>[map.py]"]
end

subgraph group_ingestion["Data ingestion"]
  node_loader["File loader<br/>[loader.py]"]
  node_column_map["Column detection<br/>[detector.py]"]
  node_cleaning["Cleaning and audit<br/>[quality.py]"]
  node_pipeline["Normalization pipeline<br/>[pipeline.py]"]
end

subgraph group_analytics["Sales analytics"]
  node_kpi["KPI calculations<br/>[kpi.py]"]
  node_category["Category analysis<br/>[categories.py]"]
  node_geography["Geographic analysis<br/>[geography.py]"]
  node_insights["Insights and anomalies<br/>[insights.py]"]
  node_other_analytics["Other analyses"]
end

subgraph group_services["Assistant and outputs"]
  node_chat["Query engine<br/>[engine.py]"]
  node_exports["Export generation<br/>[exporter.py]"]
  node_currency["INR formatting<br/>[currency.py]"]
end

node_user(("Dashboard user"))

node_user -->|"uses"| node_app
node_app -->|"loads data"| node_pipeline
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_analysis
node_app -->|"routes to"| node_assistant_view
node_pipeline -->|"loads file"| node_loader
node_pipeline -->|"detects fields"| node_column_map
node_pipeline -->|"cleans and audits"| node_cleaning
node_pipeline -->|"calculates KPIs"| node_kpi
node_dashboard -->|"uses metrics"| node_kpi
node_dashboard -->|"uses breakdowns"| node_category
node_dashboard -->|"uses breakdowns"| node_geography
node_dashboard -->|"uses findings"| node_insights
node_dashboard -->|"uses analysis"| node_other_analytics
node_dashboard -->|"renders charts"| node_charts
node_dashboard -->|"renders map"| node_map
node_dashboard -->|"generates downloads"| node_exports
node_analysis -->|"renders charts"| node_charts
node_assistant_view -->|"submits queries"| node_chat
node_quality_view -->|"shows audit"| node_cleaning
node_map -->|"gets breakdown"| node_geography
node_chat -->|"formats answers"| node_currency
node_insights -->|"formats findings"| node_currency
node_exports -->|"formats values"| node_currency
node_dashboard -->|"uses forecasting"| node_other_analytics

click node_app "https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/frontend/app.py"
click node_dashboard "https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/frontend/views/dashboard_view.py"
click node_analysis "https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/frontend/views/sales_analysis_view.py"
click node_assistant_view "https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/frontend/views/ai_assistant_view.py"
click node_quality_view "https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/frontend/views/data_quality_view.py"
click node_charts "https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/frontend/components/charts.py"
click node_map "https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/frontend/components/map.py"
click node_loader "https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/file_handling/loader.py"
click node_column_map "https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/column_mapping/detector.py"
click node_cleaning "https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/cleaning/quality.py"
click node_pipeline "https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/pipeline.py"
click node_kpi "https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/analytics/kpi.py"
click node_category "https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/analytics/categories.py"
click node_geography "https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/analytics/geography.py"
click node_insights "https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/analytics/insights.py"
click node_other_analytics "https://github.com/mukthalathadeepika/sales-performance-dashboard/tree/main/backend/analytics"
click node_chat "https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/chat/engine.py"
click node_exports "https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/exports/exporter.py"
click node_currency "https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/analytics/currency.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_dashboard,node_analysis,node_assistant_view,node_quality_view,node_charts,node_map,node_user toneBlue
class node_loader,node_column_map,node_cleaning,node_pipeline toneAmber
class node_kpi,node_category,node_geography,node_insights,node_other_analytics toneMint
class node_chat,node_exports,node_currency toneRose
```

## Components

### Dashboard experience

- [App and navigation](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/frontend/app.py): `frontend/app.py`
- [Executive dashboard](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/frontend/views/dashboard_view.py): `frontend/views/dashboard_view.py`
- [Sales analysis](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/frontend/views/sales_analysis_view.py): `frontend/views/sales_analysis_view.py`
- [Assistant view](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/frontend/views/ai_assistant_view.py): `frontend/views/ai_assistant_view.py`
- [Data quality view](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/frontend/views/data_quality_view.py): `frontend/views/data_quality_view.py`
- [Chart components](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/frontend/components/charts.py): `frontend/components/charts.py`
- [Geographic map](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/frontend/components/map.py): `frontend/components/map.py`

### Data ingestion

- [File loader](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/file_handling/loader.py): `backend/file_handling/loader.py`
- [Column detection](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/column_mapping/detector.py): `backend/column_mapping/detector.py`
- [Cleaning and audit](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/cleaning/quality.py): `backend/cleaning/quality.py`
- [Normalization pipeline](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/pipeline.py): `backend/pipeline.py`

### Sales analytics

- [KPI calculations](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/analytics/kpi.py): `backend/analytics/kpi.py`
- [Category analysis](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/analytics/categories.py): `backend/analytics/categories.py`
- [Geographic analysis](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/analytics/geography.py): `backend/analytics/geography.py`
- [Insights and anomalies](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/analytics/insights.py): `backend/analytics/insights.py`
- [Other analyses](https://github.com/mukthalathadeepika/sales-performance-dashboard/tree/main/backend/analytics): `backend/analytics`

### Assistant and outputs

- [Query engine](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/chat/engine.py): `backend/chat/engine.py`
- [Export generation](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/exports/exporter.py): `backend/exports/exporter.py`
- [INR formatting](https://github.com/mukthalathadeepika/sales-performance-dashboard/blob/main/backend/analytics/currency.py): `backend/analytics/currency.py`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → App and navigation: uses (evidence: `README.md`)
- App and navigation → Normalization pipeline: loads data (evidence: `frontend/app.py`)
- App and navigation → Executive dashboard: routes to (evidence: `frontend/app.py`)
- App and navigation → Sales analysis: routes to (evidence: `frontend/app.py`)
- App and navigation → Assistant view: routes to (evidence: `frontend/app.py`)
- Normalization pipeline → File loader: loads file (evidence: `backend/pipeline.py`)
- Normalization pipeline → Column detection: detects fields (evidence: `backend/pipeline.py`)
- Normalization pipeline → Cleaning and audit: cleans and audits (evidence: `backend/pipeline.py`)
- Normalization pipeline → KPI calculations: calculates KPIs (evidence: `backend/pipeline.py`)
- Executive dashboard → KPI calculations: uses metrics (evidence: `frontend/views/dashboard_view.py`)
- Executive dashboard → Category analysis: uses breakdowns (evidence: `frontend/views/dashboard_view.py`)
- Executive dashboard → Geographic analysis: uses breakdowns (evidence: `frontend/views/dashboard_view.py`)
- Executive dashboard → Insights and anomalies: uses findings (evidence: `frontend/views/dashboard_view.py`)
- Executive dashboard → Other analyses: uses analysis (evidence: `README.md`)
- Executive dashboard → Chart components: renders charts (evidence: `frontend/views/dashboard_view.py`)
- Executive dashboard → Geographic map: renders map (evidence: `frontend/views/dashboard_view.py`)
- Executive dashboard → Export generation: generates downloads (evidence: `frontend/views/dashboard_view.py`)
- Sales analysis → Chart components: renders charts (evidence: `frontend/views/sales_analysis_view.py`)
- Assistant view → Query engine: submits queries (evidence: `frontend/views/ai_assistant_view.py`)
- Data quality view → Cleaning and audit: shows audit (evidence: `frontend/views/data_quality_view.py`)
- Geographic map → Geographic analysis: gets breakdown (evidence: `frontend/components/map.py`)
- Query engine → INR formatting: formats answers (evidence: `backend/chat/engine.py`)
- Insights and anomalies → INR formatting: formats findings (evidence: `backend/analytics/insights.py`)
- Export generation → INR formatting: formats values (evidence: `backend/exports/exporter.py`)
- Executive dashboard → Other analyses: uses forecasting (evidence: `frontend/views/dashboard_view.py`)
