How phyco-optik/react-admin-dashboard works
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: App.js App router · index.jsx Dashboard overview · mockData.js Mock dashboard data · Header.jsx Page header
Components 26
Application shell
- React entry
src/index.js - App router
src/App.js - Theme and mode
src/theme.js - Sidebar
src/scenes/global/Sidebar.jsx - Topbar
src/scenes/global/Topbar.jsx
Admin management
Analytics views
- Dashboard overview
src/scenes/dashboard/index.jsx - Bar report
src/scenes/bar/index.jsx - Line report
src/scenes/line/index.jsx - Pie report
src/scenes/pie/index.jsx - Geography report
src/scenes/geography/index.jsx
Shared UI and data
- Bar chart
src/components/BarChart.jsx - Line chart
src/components/LineChart.jsx - Pie chart
src/components/PieChart.jsx - Geography chart
src/components/GeographyChart.jsx - Stat box
src/components/StatBox.jsx - Progress circle
src/components/ProgressCircle.jsx - Page header
src/components/Header.jsx - Mock dashboard data
src/data/mockData.js - Geographic features
src/data/mockGeoFeatures.js
Other components
- Dashboard user
Connections 44
- Dashboard user → React entry: opens
src/index.js - React entry → App router: renders
src/index.js - App router → Theme and mode: provides theme
src/App.js - App router → Sidebar: renders
src/App.js - App router → Topbar: renders
src/App.js - App router → Dashboard overview: routes to
src/App.js - App router → Team directory: routes to
src/App.js - App router → Contacts: routes to
src/App.js - App router → Invoices: routes to
src/App.js - App router → User form: routes to
src/App.js - App router → Bar report: routes to
src/App.js - App router → Line report: routes to
src/App.js - App router → Pie report: routes to
src/App.js - App router → FAQ: routes to
src/App.js - App router → Calendar: routes to
src/App.js - App router → Geography report: routes to
src/App.js - Dashboard overview → Line chart: renders
src/scenes/dashboard/index.jsx - Dashboard overview → Bar chart: renders
src/scenes/dashboard/index.jsx - Dashboard overview → Stat box: renders
src/scenes/dashboard/index.jsx - Dashboard overview → Progress circle: renders
src/scenes/dashboard/index.jsx - Line report → Line chart: renders
src/scenes/line/index.jsx - Geography report → Geography chart: renders
src/scenes/geography/index.jsx - Team directory → Mock dashboard data: reads
src/scenes/team/index.jsx - Contacts → Mock dashboard data: reads
src/scenes/contacts/index.jsx - Invoices → Mock dashboard data: reads
src/scenes/invoices/index.jsx - Bar chart → Mock dashboard data: reads
src/components/BarChart.jsx - Line chart → Mock dashboard data: reads
src/components/LineChart.jsx - Pie chart → Mock dashboard data: reads
src/components/PieChart.jsx - Geography chart → Mock dashboard data: reads
src/components/GeographyChart.jsx - Geography chart → Geographic features: uses features
src/components/GeographyChart.jsx - Dashboard overview → Mock dashboard data: reads
src/scenes/dashboard/index.jsx - Dashboard overview → Page header: renders
src/scenes/dashboard/index.jsx - Team directory → Page header: renders
src/scenes/team/index.jsx - Calendar → Page header: renders
src/scenes/calendar/calendar.jsx - FAQ → Page header: renders
src/scenes/faq/index.jsx - User form → Page header: renders
src/scenes/form/index.jsx - Geography report → Page header: renders
src/scenes/geography/index.jsx - Line report → Page header: renders
src/scenes/line/index.jsx - Bar chart → Theme and mode: uses tokens
src/components/BarChart.jsx - Line chart → Theme and mode: uses tokens
src/components/LineChart.jsx - Geography chart → Theme and mode: uses tokens
src/components/GeographyChart.jsx - Sidebar → Theme and mode: uses tokens
src/scenes/global/Sidebar.jsx - Topbar → Theme and mode: uses tokens
src/scenes/global/Topbar.jsx - Stat box → Progress circle: renders
src/components/StatBox.jsx