How kingjoso/main-osrms works
This is a React administrative dashboard application. Users enter through login, then navigate a routed workspace for overview analytics, people and invoice records, data-entry forms, charts, calendar, FAQ and geography. The dashboard combines summary metrics with charts and transaction data; other pages provide tabular or specialized views. Data and chart content is largely mock data. Source excerpts establish the main routing and dashboard composition; several page implementations are unsampled, so their internal behavior is not inferred.
Main entry points: App.js Route shell · index.jsx Dashboard overview · mockData.js Mock records and series · theme.js Theme and color mode
Components 30
Application shell
- Route shell
src/App.js - Sidebar navigation
src/scenes/global/Sidebar.jsx - Topbar
src/scenes/global/Topbar.jsx
Workspace pages
- Login
src/scenes/login/index.jsx - Dashboard overview
src/scenes/dashboard/index.jsx - Team management
src/scenes/team/index.jsx - Contacts
src/scenes/contacts/index.jsx - Invoices
src/scenes/invoices/index.jsx - User form
src/scenes/form/index.jsx - Department form
src/scenes/departmentform/index.jsx - Calendar
src/scenes/calendar/calendar.jsx - FAQ
src/scenes/faq/index.jsx - Bar chart page
src/scenes/bar/index.jsx - Line chart page
src/scenes/line/index.jsx - Pie chart page
src/scenes/pie/index.jsx - Geography page
src/scenes/geography/index.jsx
Charts and presentation
- Page headings
src/components/Header.jsx - Line chart
src/components/LineChart.jsx - Bar chart
src/components/BarChart.jsx - Pie chart
src/components/PieChart.jsx - Geography chart
src/components/GeographyChart.jsx - Metric cards
src/components/StatBox.jsx - Progress indicator
src/components/ProgressCircle.jsx - Form section headings
src/components/SubTitles.jsx
Data and configuration
- Mock records and series
src/data/mockData.js - Geographic features
src/data/mockGeoFeatures.js - Department form fields
src/data/formData.js - Theme and color mode
src/theme.js - Firebase configuration
src/config/firebase.js
Other components
- Dashboard user
Connections 39
- Dashboard user → Route shell: opens
src/App.js - Route shell → Login: routes to
src/App.js - Route shell → Sidebar navigation: renders
src/App.js - Route shell → Topbar: renders
src/App.js - Route shell → Dashboard overview: routes to
src/App.js - Route shell → Team management: routes to
src/App.js - Route shell → Contacts: routes to
src/App.js - Route shell → Invoices: routes to
src/App.js - Route shell → User form: routes to
src/App.js - Route shell → Department form: routes to
src/App.js - Route shell → Calendar: routes to
src/App.js - Route shell → FAQ: routes to
src/App.js - Route shell → Bar chart page: routes to
src/App.js - Route shell → Line chart page: routes to
src/App.js - Route shell → Pie chart page: routes to
src/App.js - Route shell → Geography page: routes to
- Login → Firebase configuration: uses config
src/scenes/login/index.jsx - Dashboard overview → Line chart: renders
src/scenes/dashboard/index.jsx - Dashboard overview → Bar chart: renders
src/scenes/dashboard/index.jsx - Dashboard overview → Metric cards: renders
src/scenes/dashboard/index.jsx - Dashboard overview → Progress indicator: renders
src/scenes/dashboard/index.jsx - Dashboard overview → Page headings: renders
src/scenes/dashboard/index.jsx - Department form → Form section headings: renders
src/scenes/departmentform/index.jsx - Department form → Department form fields: uses fields
src/scenes/departmentform/index.jsx - Team management → Mock records and series: reads rows
src/scenes/team/index.jsx - Dashboard overview → Mock records and series: reads records
src/scenes/dashboard/index.jsx - Line chart → Mock records and series: reads series
src/components/LineChart.jsx - Bar chart → Mock records and series: reads series
src/components/BarChart.jsx - Geography chart → Mock records and series: reads values
src/components/GeographyChart.jsx - Geography chart → Geographic features: renders features
src/components/GeographyChart.jsx - Geography page → Geography chart: renders
src/scenes/geography/index.jsx - Bar chart page → Bar chart: renders
src/scenes/bar/index.jsx - Line chart page → Line chart: renders
src/scenes/line/index.jsx - Pie chart page → Pie chart: renders
src/scenes/pie/index.jsx - Route shell → Theme and color mode: provides theme
src/App.js - Line chart → Theme and color mode: uses tokens
src/components/LineChart.jsx - Bar chart → Theme and color mode: uses tokens
src/components/BarChart.jsx - Geography chart → Theme and color mode: uses tokens
src/components/GeographyChart.jsx - Page headings → Theme and color mode: uses tokens
src/components/Header.jsx