# mohamedhafez2/customer_sentiment_analysis_dashboard_simulation architecture

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

- Interactive diagram: https://gitdiagram.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation
- Repository: https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation

## Overview

This is a Streamlit customer-sentiment dashboard for exploring supplied clothing reviews and assessing deterministic, assumption-driven scenarios. The main workflow loads a bundled or uploaded dataset, prepares it for analysis, and presents filtered metrics and visualizations; users can also run a what-if simulation and follow an in-app guided tour. The source index identifies the core modules, but excerpts do not expose every call site, so some plausible connections are omitted rather than asserted.

Main entry points: [`app.py`](https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/app.py) (Streamlit dashboard), [`src/data_loader.py`](https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/src/data_loader.py) (Dataset ingestion), [`src/data_cleaning.py`](https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/src/data_cleaning.py) (Data cleaning), [`data/Womens Clothing E-Commerce Reviews.csv`](https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/data/Womens%20Clothing%20E-Commerce%20Reviews.csv) (Review dataset)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Data Ingestion"]
  node_loader["Dataset ingestion<br/>[data_loader.py]"]
  node_cleaning["Data cleaning<br/>[data_cleaning.py]"]
end

subgraph group_analysis["Analysis and Scenarios"]
  node_analytics["Review analytics<br/>[analytics.py]"]
  node_simulation["What-if simulation<br/>[simulation.py]"]
end

subgraph group_experience["Dashboard Experience"]
  node_app["Streamlit dashboard<br/>[app.py]"]
  node_charts["Chart builders<br/>[charts.py]"]
  node_tour["Guided tour<br/>[guided_tour.py]"]
  node_styles["Dashboard styling<br/>[styles.py]"]
end

node_user(("Dashboard user"))
node_dataset["Review dataset"]

node_user -->|"uses"| node_app
node_app -->|"loads data"| node_loader
node_dataset -.->|"supplies reviews"| node_loader
node_app -->|"runs scenario"| node_simulation
node_app -->|"applies styles"| node_styles
node_app -->|"renders charts"| node_charts
node_app -.->|"renders tour"| node_tour
node_app -.->|"prepares data"| node_cleaning
node_app -.->|"shows analysis"| node_analytics
node_cleaning -.->|"uses ingestion"| node_loader

click node_app "https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/app.py"
click node_dataset "https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/data/Womens%20Clothing%20E-Commerce%20Reviews.csv"
click node_loader "https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/src/data_loader.py"
click node_cleaning "https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/src/data_cleaning.py"
click node_analytics "https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/src/analytics.py"
click node_simulation "https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/src/simulation.py"
click node_charts "https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/src/charts.py"
click node_tour "https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/src/guided_tour.py"
click node_styles "https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/src/styles.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_loader,node_cleaning,node_user,node_dataset toneBlue
class node_analytics,node_simulation toneAmber
class node_app,node_charts,node_tour,node_styles toneMint
```

## Components

### Data Ingestion

- [Dataset ingestion](https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/src/data_loader.py): `src/data_loader.py`
- [Data cleaning](https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/src/data_cleaning.py): `src/data_cleaning.py`

### Analysis and Scenarios

- [Review analytics](https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/src/analytics.py): `src/analytics.py`
- [What-if simulation](https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/src/simulation.py): `src/simulation.py`

### Dashboard Experience

- [Streamlit dashboard](https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/app.py): `app.py`
- [Chart builders](https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/src/charts.py): `src/charts.py`
- [Guided tour](https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/src/guided_tour.py): `src/guided_tour.py`
- [Dashboard styling](https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/src/styles.py): `src/styles.py`

### Other components

- **Dashboard user**
- [Review dataset](https://github.com/mohamedhafez2/customer_sentiment_analysis_dashboard_simulation/blob/main/data/Womens%20Clothing%20E-Commerce%20Reviews.csv): `data/Womens Clothing E-Commerce Reviews.csv`

## Connections

- Dashboard user → Streamlit dashboard: uses
- Streamlit dashboard → Dataset ingestion: loads data (evidence: `app.py`)
- Review dataset → Dataset ingestion: supplies reviews
- Streamlit dashboard → What-if simulation: runs scenario (evidence: `app.py`)
- Streamlit dashboard → Dashboard styling: applies styles (evidence: `app.py`)
- Streamlit dashboard → Chart builders: renders charts (evidence: `app.py`)
- Streamlit dashboard → Guided tour: renders tour (evidence: `app.py`)
- Streamlit dashboard → Data cleaning: prepares data (evidence: `app.py`)
- Streamlit dashboard → Review analytics: shows analysis (evidence: `app.py`)
- Data cleaning → Dataset ingestion: uses ingestion (evidence: `src/data_cleaning.py`)
