# ed-roh/react-admin-dashboard architecture

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

- Interactive diagram: https://gitdiagram.com/ed-roh/react-admin-dashboard
- Repository: https://github.com/ed-roh/react-admin-dashboard

## Overview

This is a React admin dashboard: users navigate between an overview and management, data-visualization, and utility pages. App owns the routes and shared shell; pages render their own tables, forms, calendars, FAQs, and charts. Chart components use bundled mock datasets and theme tokens, rather than a demonstrated backend or persistent store. The graph follows imports and routes in the excerpts and SOURCE INDEX; several page implementations are unsampled, so their internal behavior is not expanded.

Main entry points: [`src/App.js`](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/App.js) (Routes and shell), [`src/components/Header.jsx`](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/components/Header.jsx) (Page header), [`src/components`](https://github.com/ed-roh/react-admin-dashboard/tree/master/src/components) (Chart components), [`src/scenes/dashboard/index.jsx`](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/dashboard/index.jsx) (Dashboard overview)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Application shell"]
  node_app["Routes and shell<br/>[App.js]"]
  node_theme["Theme and color mode<br/>[theme.js]"]
  node_sidebar["Sidebar navigation<br/>[Sidebar.jsx]"]
  node_topbar["Topbar<br/>[Topbar.jsx]"]
end

subgraph group_admin["Admin pages"]
  node_team["Team directory<br/>[index.jsx]"]
  node_contacts["Contacts directory<br/>[index.jsx]"]
  node_invoices["Invoices<br/>[index.jsx]"]
  node_form["User form<br/>[index.jsx]"]
  node_faq["FAQ<br/>[index.jsx]"]
  node_calendar["Calendar<br/>[calendar.jsx]"]
end

subgraph group_analytics["Analytics pages"]
  node_dashboard["Dashboard overview<br/>[index.jsx]"]
  node_barpage["Bar analysis<br/>[index.jsx]"]
  node_linepage["Line analysis<br/>[index.jsx]"]
  node_piepage["Pie analysis<br/>[index.jsx]"]
  node_geopage["Geography analysis<br/>[index.jsx]"]
end

subgraph group_shared["Shared UI and data"]
  node_header["Page header<br/>[Header.jsx]"]
  node_charts["Chart components"]
  node_statbox["Stat box<br/>[StatBox.jsx]"]
  node_progress["Progress circle<br/>[ProgressCircle.jsx]"]
  node_mockdata["Mock dashboard data<br/>[mockData.js]"]
  node_geodata["Geographic features<br/>[mockGeoFeatures.js]"]
end

node_user(("Dashboard user"))

node_user -->|"opens dashboard"| node_app
node_app -->|"renders"| node_sidebar
node_app -->|"renders"| node_topbar
node_app -->|"provides theme"| node_theme
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_team
node_app -->|"routes to"| node_contacts
node_app -->|"routes to"| node_invoices
node_app -->|"routes to"| node_form
node_app -->|"routes to"| node_faq
node_app -->|"routes to"| node_calendar
node_app -->|"routes to"| node_barpage
node_app -->|"routes to"| node_linepage
node_app -->|"routes to"| node_piepage
node_app -->|"routes to"| node_geopage
node_dashboard -->|"renders"| node_header
node_dashboard -->|"renders charts"| node_charts
node_dashboard -->|"renders"| node_statbox
node_dashboard -->|"renders"| node_progress
node_team -->|"renders"| node_header
node_team -->|"reads team data"| node_mockdata
node_contacts -->|"renders"| node_header
node_contacts -->|"reads data"| node_mockdata
node_invoices -->|"renders"| node_header
node_invoices -->|"reads data"| node_mockdata
node_form -->|"renders"| node_header
node_faq -->|"renders"| node_header
node_calendar -->|"renders"| node_header
node_barpage -->|"renders"| node_header
node_barpage -->|"renders chart"| node_charts
node_linepage -->|"renders"| node_header
node_linepage -->|"renders chart"| node_charts
node_piepage -->|"renders"| node_header
node_piepage -->|"renders chart"| node_charts
node_geopage -->|"renders"| node_header
node_geopage -->|"renders map"| node_charts
node_charts -->|"uses datasets"| node_mockdata
node_charts -->|"uses features"| node_geodata
node_charts -->|"reads color tokens"| node_theme
node_header -->|"reads color tokens"| node_theme
node_statbox -->|"renders"| node_progress
node_sidebar -->|"reads color tokens"| node_theme
node_topbar -->|"reads color tokens"| node_theme

click node_app "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/App.js"
click node_theme "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/theme.js"
click node_sidebar "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/global/Sidebar.jsx"
click node_topbar "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/global/Topbar.jsx"
click node_dashboard "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/dashboard/index.jsx"
click node_team "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/team/index.jsx"
click node_contacts "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/contacts/index.jsx"
click node_invoices "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/invoices/index.jsx"
click node_form "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/form/index.jsx"
click node_faq "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/faq/index.jsx"
click node_calendar "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/calendar/calendar.jsx"
click node_barpage "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/bar/index.jsx"
click node_linepage "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/line/index.jsx"
click node_piepage "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/pie/index.jsx"
click node_geopage "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/geography/index.jsx"
click node_header "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/components/Header.jsx"
click node_charts "https://github.com/ed-roh/react-admin-dashboard/tree/master/src/components"
click node_statbox "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/components/StatBox.jsx"
click node_progress "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/components/ProgressCircle.jsx"
click node_mockdata "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/data/mockData.js"
click node_geodata "https://github.com/ed-roh/react-admin-dashboard/blob/master/src/data/mockGeoFeatures.js"

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_theme,node_sidebar,node_topbar,node_user toneBlue
class node_team,node_contacts,node_invoices,node_form,node_faq,node_calendar toneAmber
class node_dashboard,node_barpage,node_linepage,node_piepage,node_geopage toneMint
class node_header,node_charts,node_statbox,node_progress,node_mockdata,node_geodata toneRose
```

## Components

### Application shell

- [Routes and shell](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/App.js): `src/App.js`
- [Theme and color mode](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/theme.js): `src/theme.js`
- [Sidebar navigation](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/global/Sidebar.jsx): `src/scenes/global/Sidebar.jsx`
- [Topbar](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/global/Topbar.jsx): `src/scenes/global/Topbar.jsx`

### Admin pages

- [Team directory](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/team/index.jsx): `src/scenes/team/index.jsx`
- [Contacts directory](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/contacts/index.jsx): `src/scenes/contacts/index.jsx`
- [Invoices](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/invoices/index.jsx): `src/scenes/invoices/index.jsx`
- [User form](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/form/index.jsx): `src/scenes/form/index.jsx`
- [FAQ](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/faq/index.jsx): `src/scenes/faq/index.jsx`
- [Calendar](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/calendar/calendar.jsx): `src/scenes/calendar/calendar.jsx`

### Analytics pages

- [Dashboard overview](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/dashboard/index.jsx): `src/scenes/dashboard/index.jsx`
- [Bar analysis](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/bar/index.jsx): `src/scenes/bar/index.jsx`
- [Line analysis](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/line/index.jsx): `src/scenes/line/index.jsx`
- [Pie analysis](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/pie/index.jsx): `src/scenes/pie/index.jsx`
- [Geography analysis](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/scenes/geography/index.jsx): `src/scenes/geography/index.jsx`

### Shared UI and data

- [Page header](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/components/Header.jsx): `src/components/Header.jsx`
- [Chart components](https://github.com/ed-roh/react-admin-dashboard/tree/master/src/components): `src/components`
- [Stat box](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/components/StatBox.jsx): `src/components/StatBox.jsx`
- [Progress circle](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/components/ProgressCircle.jsx): `src/components/ProgressCircle.jsx`
- [Mock dashboard data](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/data/mockData.js): `src/data/mockData.js`
- [Geographic features](https://github.com/ed-roh/react-admin-dashboard/blob/master/src/data/mockGeoFeatures.js): `src/data/mockGeoFeatures.js`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → Routes and shell: opens dashboard (evidence: `README.md`)
- Routes and shell → Sidebar navigation: renders (evidence: `src/App.js`)
- Routes and shell → Topbar: renders (evidence: `src/App.js`)
- Routes and shell → Theme and color mode: provides theme (evidence: `src/App.js`)
- Routes and shell → Dashboard overview: routes to (evidence: `src/App.js`)
- Routes and shell → Team directory: routes to (evidence: `src/App.js`)
- Routes and shell → Contacts directory: routes to (evidence: `src/App.js`)
- Routes and shell → Invoices: routes to (evidence: `src/App.js`)
- Routes and shell → User form: routes to (evidence: `src/App.js`)
- Routes and shell → FAQ: routes to (evidence: `src/App.js`)
- Routes and shell → Calendar: routes to (evidence: `src/App.js`)
- Routes and shell → Bar analysis: routes to (evidence: `src/App.js`)
- Routes and shell → Line analysis: routes to (evidence: `src/App.js`)
- Routes and shell → Pie analysis: routes to (evidence: `src/App.js`)
- Routes and shell → Geography analysis: routes to (evidence: `src/App.js`)
- Dashboard overview → Page header: renders (evidence: `src/scenes/dashboard/index.jsx`)
- Dashboard overview → Chart components: renders charts (evidence: `src/scenes/dashboard/index.jsx`)
- Dashboard overview → Stat box: renders (evidence: `src/scenes/dashboard/index.jsx`)
- Dashboard overview → Progress circle: renders (evidence: `src/scenes/dashboard/index.jsx`)
- Team directory → Page header: renders (evidence: `src/scenes/team/index.jsx`)
- Team directory → Mock dashboard data: reads team data (evidence: `src/scenes/team/index.jsx`)
- Contacts directory → Page header: renders (evidence: `src/scenes/contacts/index.jsx`)
- Contacts directory → Mock dashboard data: reads data (evidence: `src/scenes/contacts/index.jsx`)
- Invoices → Page header: renders (evidence: `src/scenes/invoices/index.jsx`)
- Invoices → Mock dashboard data: reads data (evidence: `src/scenes/invoices/index.jsx`)
- User form → Page header: renders (evidence: `src/scenes/form/index.jsx`)
- FAQ → Page header: renders (evidence: `src/scenes/faq/index.jsx`)
- Calendar → Page header: renders (evidence: `src/scenes/calendar/calendar.jsx`)
- Bar analysis → Page header: renders (evidence: `src/scenes/bar/index.jsx`)
- Bar analysis → Chart components: renders chart (evidence: `src/scenes/bar/index.jsx`)
- Line analysis → Page header: renders (evidence: `src/scenes/line/index.jsx`)
- Line analysis → Chart components: renders chart (evidence: `src/scenes/line/index.jsx`)
- Pie analysis → Page header: renders (evidence: `src/scenes/pie/index.jsx`)
- Pie analysis → Chart components: renders chart (evidence: `src/scenes/pie/index.jsx`)
- Geography analysis → Page header: renders (evidence: `src/scenes/geography/index.jsx`)
- Geography analysis → Chart components: renders map (evidence: `src/scenes/geography/index.jsx`)
- Chart components → Mock dashboard data: uses datasets (evidence: `src/components/BarChart.jsx`)
- Chart components → Geographic features: uses features (evidence: `src/components/GeographyChart.jsx`)
- Chart components → Theme and color mode: reads color tokens (evidence: `src/components/BarChart.jsx`)
- Page header → Theme and color mode: reads color tokens (evidence: `src/components/Header.jsx`)
- Stat box → Progress circle: renders (evidence: `src/components/StatBox.jsx`)
- Sidebar navigation → Theme and color mode: reads color tokens (evidence: `src/scenes/global/Sidebar.jsx`)
- Topbar → Theme and color mode: reads color tokens (evidence: `src/scenes/global/Topbar.jsx`)
