# mianwaleed689/emaar-dashboard architecture

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

- Interactive diagram: https://gitdiagram.com/mianwaleed689/emaar-dashboard
- Repository: https://github.com/mianwaleed689/emaar-dashboard

## Overview

This repository is a Dubai real-estate analytics and brokerage platform, with a separate Emaar data-collection automation package. The main user journey enters through the React app, reaches the dashboard, and reads live property and account data from Firebase; administrators also manage project data, while brokerage users work deals through a CRM pipeline. The dashboard exposes market, community, investment, and portfolio analysis, though the supplied excerpts do not establish all tab-level wiring. Automation’s orchestrator combines market, property, stock, rental, and developer collection. Edges reflect excerpts or SOURCE INDEX references; unsampled connections are omitted.

Main entry points: [`automation/main.py`](https://github.com/mianwaleed689/emaar-dashboard/blob/main/automation/main.py) (Collection orchestrator), [`src/pages/EmaarDashboardV2.jsx`](https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/pages/EmaarDashboardV2.jsx) (Analytics dashboard), [`src/tabs/PipelineTab.jsx`](https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/tabs/PipelineTab.jsx) (Deal pipeline), [`src/App.jsx`](https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/App.jsx) (App routing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Product app"]
  node_app_entry["App routing<br/>[App.jsx]"]
  node_dashboard["Analytics dashboard"]
  node_admin["Admin panel<br/>[AdminPanel.jsx]"]
  node_project_manager["Project manager<br/>[ProjectManager.jsx]"]
  node_firebase[("Firebase services<br/>[firebase.js]")]
end

subgraph group_analytics["Property analytics"]
  node_market_data["Market datasets<br/>[index.js]"]
  node_community_data["Community catalogue<br/>[index.js]"]
  node_foundation["Property foundation"]
  node_market_tab["Market analysis<br/>[MarketTab.jsx]"]
  node_neighbourhood_tab["Neighbourhood analysis"]
  node_project_analysis["Project analysis<br/>[ProjectsTab.jsx]"]
end

subgraph group_brokerage["Brokerage CRM"]
  node_pipeline["Deal pipeline<br/>[PipelineTab.jsx]"]
  node_crm["Brokerage CRM<br/>[CRMApp.jsx]"]
  node_journeys["Deal journeys<br/>[journeys.js]"]
  node_commission["Commission logic<br/>[commission.js]"]
  node_workflow["Deal workflow<br/>[workflow.js]"]
end

subgraph group_automation["Data automation"]
  node_automation_runner["Collection orchestrator<br/>[main.py]"]
  node_automation_config["Source configuration<br/>[config.py]"]
  node_property_scraper["Property scraper"]
  node_market_scraper["Market tracker<br/>[market_tracker.py]"]
  node_developer_tracker["Developer tracker"]
  node_rental_tracker["Rental tracker<br/>[rental_tracker.py]"]
  node_stock_fetcher["Stock fetcher<br/>[stock_fetcher.py]"]
end

node_user(("User"))

node_user -->|"opens"| node_app_entry
node_app_entry -->|"routes to"| node_dashboard
node_app_entry -->|"routes to"| node_admin
node_app_entry -->|"routes to"| node_project_manager
node_dashboard -->|"reads and writes"| node_firebase
node_project_manager -->|"reads and writes"| node_firebase
node_dashboard -->|"imports"| node_market_data
node_dashboard -->|"imports"| node_community_data
node_dashboard -->|"imports"| node_foundation
node_pipeline -->|"writes deals"| node_firebase
node_pipeline -->|"calls"| node_journeys
node_pipeline -->|"calls"| node_commission
node_pipeline -->|"calls"| node_workflow
node_automation_runner -->|"imports"| node_automation_config
node_automation_runner -->|"runs"| node_property_scraper
node_automation_runner -->|"runs"| node_market_scraper
node_automation_runner -->|"runs"| node_developer_tracker
node_automation_runner -->|"runs"| node_rental_tracker
node_automation_runner -->|"runs"| node_stock_fetcher

click node_app_entry "https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/App.jsx"
click node_dashboard "https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/pages/EmaarDashboardV2.jsx"
click node_admin "https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/admin/AdminPanel.jsx"
click node_project_manager "https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/admin/ProjectManager.jsx"
click node_firebase "https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/firebase.js"
click node_market_data "https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/data/index.js"
click node_community_data "https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/communities/index.js"
click node_foundation "https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/data/dubai_complete_foundation.js"
click node_market_tab "https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/tabs/MarketTab.jsx"
click node_neighbourhood_tab "https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/tabs/NeighbourhoodsTab.jsx"
click node_project_analysis "https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/tabs/ProjectsTab.jsx"
click node_pipeline "https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/tabs/PipelineTab.jsx"
click node_crm "https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/crm/CRMApp.jsx"
click node_journeys "https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/crm/model/journeys.js"
click node_commission "https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/crm/model/commission.js"
click node_workflow "https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/crm/model/workflow.js"
click node_automation_runner "https://github.com/mianwaleed689/emaar-dashboard/blob/main/automation/main.py"
click node_automation_config "https://github.com/mianwaleed689/emaar-dashboard/blob/main/automation/config.py"
click node_property_scraper "https://github.com/mianwaleed689/emaar-dashboard/blob/main/automation/scrapers/property_scraper.py"
click node_market_scraper "https://github.com/mianwaleed689/emaar-dashboard/blob/main/automation/scrapers/market_tracker.py"
click node_developer_tracker "https://github.com/mianwaleed689/emaar-dashboard/blob/main/automation/scrapers/developer_tracker.py"
click node_rental_tracker "https://github.com/mianwaleed689/emaar-dashboard/blob/main/automation/scrapers/rental_tracker.py"
click node_stock_fetcher "https://github.com/mianwaleed689/emaar-dashboard/blob/main/automation/scrapers/stock_fetcher.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_entry,node_dashboard,node_admin,node_project_manager,node_firebase,node_user toneBlue
class node_market_data,node_community_data,node_foundation,node_market_tab,node_neighbourhood_tab,node_project_analysis toneAmber
class node_pipeline,node_crm,node_journeys,node_commission,node_workflow toneMint
class node_automation_runner,node_automation_config,node_property_scraper,node_market_scraper,node_developer_tracker,node_rental_tracker,node_stock_fetcher toneRose
```

## Components

### Product app

- [App routing](https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/App.jsx): `src/App.jsx`
- [Analytics dashboard](https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/pages/EmaarDashboardV2.jsx): `src/pages/EmaarDashboardV2.jsx`
- [Admin panel](https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/admin/AdminPanel.jsx): `src/admin/AdminPanel.jsx`
- [Project manager](https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/admin/ProjectManager.jsx): `src/admin/ProjectManager.jsx`
- [Firebase services](https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/firebase.js): `src/firebase.js`

### Property analytics

- [Market datasets](https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/data/index.js): `src/data/index.js`
- [Community catalogue](https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/communities/index.js): `src/communities/index.js`
- [Property foundation](https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/data/dubai_complete_foundation.js): `src/data/dubai_complete_foundation.js`
- [Market analysis](https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/tabs/MarketTab.jsx): `src/tabs/MarketTab.jsx`
- [Neighbourhood analysis](https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/tabs/NeighbourhoodsTab.jsx): `src/tabs/NeighbourhoodsTab.jsx`
- [Project analysis](https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/tabs/ProjectsTab.jsx): `src/tabs/ProjectsTab.jsx`

### Brokerage CRM

- [Deal pipeline](https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/tabs/PipelineTab.jsx): `src/tabs/PipelineTab.jsx`
- [Brokerage CRM](https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/crm/CRMApp.jsx): `src/crm/CRMApp.jsx`
- [Deal journeys](https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/crm/model/journeys.js): `src/crm/model/journeys.js`
- [Commission logic](https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/crm/model/commission.js): `src/crm/model/commission.js`
- [Deal workflow](https://github.com/mianwaleed689/emaar-dashboard/blob/main/src/crm/model/workflow.js): `src/crm/model/workflow.js`

### Data automation

- [Collection orchestrator](https://github.com/mianwaleed689/emaar-dashboard/blob/main/automation/main.py): `automation/main.py`
- [Source configuration](https://github.com/mianwaleed689/emaar-dashboard/blob/main/automation/config.py): `automation/config.py`
- [Property scraper](https://github.com/mianwaleed689/emaar-dashboard/blob/main/automation/scrapers/property_scraper.py): `automation/scrapers/property_scraper.py`
- [Market tracker](https://github.com/mianwaleed689/emaar-dashboard/blob/main/automation/scrapers/market_tracker.py): `automation/scrapers/market_tracker.py`
- [Developer tracker](https://github.com/mianwaleed689/emaar-dashboard/blob/main/automation/scrapers/developer_tracker.py): `automation/scrapers/developer_tracker.py`
- [Rental tracker](https://github.com/mianwaleed689/emaar-dashboard/blob/main/automation/scrapers/rental_tracker.py): `automation/scrapers/rental_tracker.py`
- [Stock fetcher](https://github.com/mianwaleed689/emaar-dashboard/blob/main/automation/scrapers/stock_fetcher.py): `automation/scrapers/stock_fetcher.py`

### Other components

- **User**

## Connections

- User → App routing: opens (evidence: `src/App.jsx`)
- App routing → Analytics dashboard: routes to (evidence: `src/App.jsx`)
- App routing → Admin panel: routes to (evidence: `src/App.jsx`)
- App routing → Project manager: routes to (evidence: `src/App.jsx`)
- Analytics dashboard → Firebase services: reads and writes (evidence: `src/pages/EmaarDashboardV2.jsx`)
- Project manager → Firebase services: reads and writes (evidence: `src/admin/ProjectManager.jsx`)
- Analytics dashboard → Market datasets: imports (evidence: `src/pages/EmaarDashboardV2.jsx`)
- Analytics dashboard → Community catalogue: imports (evidence: `src/pages/EmaarDashboardV2.jsx`)
- Analytics dashboard → Property foundation: imports (evidence: `src/pages/EmaarDashboardV2.jsx`)
- Deal pipeline → Firebase services: writes deals (evidence: `src/tabs/PipelineTab.jsx`)
- Deal pipeline → Deal journeys: calls (evidence: `src/tabs/PipelineTab.jsx`)
- Deal pipeline → Commission logic: calls (evidence: `src/tabs/PipelineTab.jsx`)
- Deal pipeline → Deal workflow: calls (evidence: `src/tabs/PipelineTab.jsx`)
- Collection orchestrator → Source configuration: imports (evidence: `automation/main.py`)
- Collection orchestrator → Property scraper: runs (evidence: `automation/main.py`)
- Collection orchestrator → Market tracker: runs (evidence: `automation/main.py`)
- Collection orchestrator → Developer tracker: runs (evidence: `automation/main.py`)
- Collection orchestrator → Rental tracker: runs (evidence: `automation/main.py`)
- Collection orchestrator → Stock fetcher: runs (evidence: `automation/main.py`)
