How muhammed-bilal777/analytics-dashboard works
This is a React marketing analytics dashboard. Users view campaign metrics, then search, sort, filter by channel or region, and page through results; the chart reflects the filtered data. DashboardPage coordinates that workflow, while hooks and context provide data and table state, and reusable components render the interface. The README documents broader extensibility and formatting capabilities. Some subsystem links rely on README or SOURCE INDEX references; unsampled implementation details are not inferred.
Main entry points: DashboardPage.jsx Dashboard workflow · useDashboardData.js Dashboard data hook · App.jsx App entry · DashboardProvider.jsx Dashboard context
Components 15
Dashboard entry
- App entry
src/App.jsx - Dashboard workflow
src/pages/DashboardPage.jsx
Data and logic
- Dashboard context
src/context/DashboardProvider.jsx - Dashboard reducer
src/context/reducer.js - Dashboard data hook
src/hooks/useDashboardData.js - Campaign records
src/constants/constantData.js - Search debounce
src/hooks/useDebounce.js - Table sorting
src/hooks/useTableLogic.js - Pagination logic
src/hooks/usePagination.js
Dashboard presentation
- Headless data table
src/components/headless/DataTable/DataTable.jsx - Conversions chart
src/pages/DashboardPage.jsx - Loading skeletons
src/components/skeletons/PageSkeleton.jsx
Shared components
- Dashboard controls
src/components/ui - Number formatting
src/utils/formatNumbers.js
Other components
- Dashboard user
Connections 14
- Dashboard user → App entry: opens dashboard
README.md - App entry → Dashboard workflow: renders
src/App.jsx - Dashboard workflow → Dashboard data hook: loads data
src/pages/DashboardPage.jsx - Dashboard data hook → Dashboard context: reads and dispatches
src/hooks/useDashboardData.js - Dashboard data hook → Campaign records: loads records
src/hooks/useDashboardData.js - Dashboard context → Dashboard reducer: updates state
src/context/DashboardProvider.jsx - Dashboard workflow → Search debounce: debounces search
src/pages/DashboardPage.jsx - Dashboard workflow → Table sorting: sorts results
src/pages/DashboardPage.jsx - Dashboard workflow → Pagination logic: pages filtered results
src/pages/DashboardPage.jsx - Dashboard workflow → Dashboard controls: renders controls
src/pages/DashboardPage.jsx - Dashboard workflow → Headless data table: renders page rows
src/pages/DashboardPage.jsx - Headless data table → Number formatting: formats values
src/components/headless/DataTable/DataTable.jsx - Dashboard workflow → Conversions chart: renders filtered data
src/pages/DashboardPage.jsx - Dashboard workflow → Loading skeletons: shows while loading
src/pages/DashboardPage.jsx