# phyco-optik/react-admin-dashboard architecture

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

- Interactive diagram: https://gitdiagram.com/phyco-optik/react-admin-dashboard
- Repository: https://github.com/phyco-optik/react-admin-dashboard

## Overview

This is a React admin dashboard, not a data-backed service: users navigate between dashboard, management, reporting, and utility screens, with most displayed records and chart values supplied by local mock data. The App owns route dispatch and shared shell/theme setup; individual scenes render their own tables, forms, charts, and calendar. The README broadly describes an admin dashboard with light/dark mode. Several scene files were not excerpted, so their links are limited to App’s explicit route imports; no backend or persistent store is evidenced.

Main entry points: [`src/App.js`](https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/App.js) (App router), [`src/scenes/dashboard/index.jsx`](https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/scenes/dashboard/index.jsx) (Dashboard overview), [`src/data/mockData.js`](https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/data/mockData.js) (Mock dashboard data), [`src/components/Header.jsx`](https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/components/Header.jsx) (Page header)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Application shell"]
  node_entry["React entry<br/>[index.js]"]
  node_app["App router<br/>[App.js]"]
  node_theme["Theme and mode<br/>[theme.js]"]
  node_sidebar["Sidebar<br/>[Sidebar.jsx]"]
  node_topbar["Topbar<br/>[Topbar.jsx]"]
end

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

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

subgraph group_shared["Shared UI and data"]
  node_barchart["Bar chart<br/>[BarChart.jsx]"]
  node_linechart["Line chart<br/>[LineChart.jsx]"]
  node_piechart["Pie chart<br/>[PieChart.jsx]"]
  node_geochart["Geography chart<br/>[GeographyChart.jsx]"]
  node_statbox["Stat box<br/>[StatBox.jsx]"]
  node_progress["Progress circle<br/>[ProgressCircle.jsx]"]
  node_header["Page header<br/>[Header.jsx]"]
  node_mockdata["Mock dashboard data<br/>[mockData.js]"]
  node_geojson["Geographic features<br/>[mockGeoFeatures.js]"]
end

node_user(("Dashboard user"))

node_user -->|"opens"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"provides theme"| node_theme
node_app -->|"renders"| node_sidebar
node_app -->|"renders"| node_topbar
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_barpage
node_app -->|"routes to"| node_linepage
node_app -->|"routes to"| node_piepage
node_app -->|"routes to"| node_faq
node_app -->|"routes to"| node_calendar
node_app -->|"routes to"| node_geopage
node_dashboard -->|"renders"| node_linechart
node_dashboard -->|"renders"| node_barchart
node_dashboard -->|"renders"| node_statbox
node_dashboard -->|"renders"| node_progress
node_linepage -->|"renders"| node_linechart
node_geopage -->|"renders"| node_geochart
node_team -->|"reads"| node_mockdata
node_contacts -->|"reads"| node_mockdata
node_invoices -->|"reads"| node_mockdata
node_barchart -->|"reads"| node_mockdata
node_linechart -->|"reads"| node_mockdata
node_piechart -->|"reads"| node_mockdata
node_geochart -->|"reads"| node_mockdata
node_geochart -->|"uses features"| node_geojson
node_dashboard -->|"reads"| node_mockdata
node_dashboard -->|"renders"| node_header
node_team -->|"renders"| node_header
node_calendar -->|"renders"| node_header
node_faq -->|"renders"| node_header
node_form -->|"renders"| node_header
node_geopage -->|"renders"| node_header
node_linepage -->|"renders"| node_header
node_barchart -->|"uses tokens"| node_theme
node_linechart -->|"uses tokens"| node_theme
node_geochart -->|"uses tokens"| node_theme
node_sidebar -->|"uses tokens"| node_theme
node_topbar -->|"uses tokens"| node_theme
node_statbox -->|"renders"| node_progress

click node_entry "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/index.js"
click node_app "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/App.js"
click node_theme "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/theme.js"
click node_sidebar "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/scenes/global/Sidebar.jsx"
click node_topbar "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/scenes/global/Topbar.jsx"
click node_dashboard "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/scenes/dashboard/index.jsx"
click node_barpage "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/scenes/bar/index.jsx"
click node_linepage "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/scenes/line/index.jsx"
click node_piepage "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/scenes/pie/index.jsx"
click node_geopage "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/scenes/geography/index.jsx"
click node_team "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/scenes/team/index.jsx"
click node_contacts "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/scenes/contacts/index.jsx"
click node_invoices "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/scenes/invoices/index.jsx"
click node_form "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/scenes/form/index.jsx"
click node_calendar "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/scenes/calendar/calendar.jsx"
click node_faq "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/scenes/faq/index.jsx"
click node_barchart "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/components/BarChart.jsx"
click node_linechart "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/components/LineChart.jsx"
click node_piechart "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/components/PieChart.jsx"
click node_geochart "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/components/GeographyChart.jsx"
click node_statbox "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/components/StatBox.jsx"
click node_progress "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/components/ProgressCircle.jsx"
click node_header "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/components/Header.jsx"
click node_mockdata "https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/data/mockData.js"
click node_geojson "https://github.com/phyco-optik/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_entry,node_app,node_theme,node_sidebar,node_topbar,node_user toneBlue
class node_team,node_contacts,node_invoices,node_form,node_calendar,node_faq toneAmber
class node_dashboard,node_barpage,node_linepage,node_piepage,node_geopage toneMint
class node_barchart,node_linechart,node_piechart,node_geochart,node_statbox,node_progress,node_header,node_mockdata,node_geojson toneRose
```

## Components

### Application shell

- [React entry](https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/index.js): `src/index.js`
- [App router](https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/App.js): `src/App.js`
- [Theme and mode](https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/theme.js): `src/theme.js`
- [Sidebar](https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/scenes/global/Sidebar.jsx): `src/scenes/global/Sidebar.jsx`
- [Topbar](https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/scenes/global/Topbar.jsx): `src/scenes/global/Topbar.jsx`

### Admin management

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

### Analytics views

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

### Shared UI and data

- [Bar chart](https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/components/BarChart.jsx): `src/components/BarChart.jsx`
- [Line chart](https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/components/LineChart.jsx): `src/components/LineChart.jsx`
- [Pie chart](https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/components/PieChart.jsx): `src/components/PieChart.jsx`
- [Geography chart](https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/components/GeographyChart.jsx): `src/components/GeographyChart.jsx`
- [Stat box](https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/components/StatBox.jsx): `src/components/StatBox.jsx`
- [Progress circle](https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/components/ProgressCircle.jsx): `src/components/ProgressCircle.jsx`
- [Page header](https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/components/Header.jsx): `src/components/Header.jsx`
- [Mock dashboard data](https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/data/mockData.js): `src/data/mockData.js`
- [Geographic features](https://github.com/phyco-optik/react-admin-dashboard/blob/master/src/data/mockGeoFeatures.js): `src/data/mockGeoFeatures.js`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → React entry: opens (evidence: `src/index.js`)
- React entry → App router: renders (evidence: `src/index.js`)
- App router → Theme and mode: provides theme (evidence: `src/App.js`)
- App router → Sidebar: renders (evidence: `src/App.js`)
- App router → Topbar: renders (evidence: `src/App.js`)
- App router → Dashboard overview: routes to (evidence: `src/App.js`)
- App router → Team directory: routes to (evidence: `src/App.js`)
- App router → Contacts: routes to (evidence: `src/App.js`)
- App router → Invoices: routes to (evidence: `src/App.js`)
- App router → User form: routes to (evidence: `src/App.js`)
- App router → Bar report: routes to (evidence: `src/App.js`)
- App router → Line report: routes to (evidence: `src/App.js`)
- App router → Pie report: routes to (evidence: `src/App.js`)
- App router → FAQ: routes to (evidence: `src/App.js`)
- App router → Calendar: routes to (evidence: `src/App.js`)
- App router → Geography report: routes to (evidence: `src/App.js`)
- Dashboard overview → Line chart: renders (evidence: `src/scenes/dashboard/index.jsx`)
- Dashboard overview → Bar chart: renders (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`)
- Line report → Line chart: renders (evidence: `src/scenes/line/index.jsx`)
- Geography report → Geography chart: renders (evidence: `src/scenes/geography/index.jsx`)
- Team directory → Mock dashboard data: reads (evidence: `src/scenes/team/index.jsx`)
- Contacts → Mock dashboard data: reads (evidence: `src/scenes/contacts/index.jsx`)
- Invoices → Mock dashboard data: reads (evidence: `src/scenes/invoices/index.jsx`)
- Bar chart → Mock dashboard data: reads (evidence: `src/components/BarChart.jsx`)
- Line chart → Mock dashboard data: reads (evidence: `src/components/LineChart.jsx`)
- Pie chart → Mock dashboard data: reads (evidence: `src/components/PieChart.jsx`)
- Geography chart → Mock dashboard data: reads (evidence: `src/components/GeographyChart.jsx`)
- Geography chart → Geographic features: uses features (evidence: `src/components/GeographyChart.jsx`)
- Dashboard overview → Mock dashboard data: reads (evidence: `src/scenes/dashboard/index.jsx`)
- Dashboard overview → Page header: renders (evidence: `src/scenes/dashboard/index.jsx`)
- Team directory → Page header: renders (evidence: `src/scenes/team/index.jsx`)
- Calendar → Page header: renders (evidence: `src/scenes/calendar/calendar.jsx`)
- FAQ → Page header: renders (evidence: `src/scenes/faq/index.jsx`)
- User form → Page header: renders (evidence: `src/scenes/form/index.jsx`)
- Geography report → Page header: renders (evidence: `src/scenes/geography/index.jsx`)
- Line report → Page header: renders (evidence: `src/scenes/line/index.jsx`)
- Bar chart → Theme and mode: uses tokens (evidence: `src/components/BarChart.jsx`)
- Line chart → Theme and mode: uses tokens (evidence: `src/components/LineChart.jsx`)
- Geography chart → Theme and mode: uses tokens (evidence: `src/components/GeographyChart.jsx`)
- Sidebar → Theme and mode: uses tokens (evidence: `src/scenes/global/Sidebar.jsx`)
- Topbar → Theme and mode: uses tokens (evidence: `src/scenes/global/Topbar.jsx`)
- Stat box → Progress circle: renders (evidence: `src/components/StatBox.jsx`)
