feat 2130 : add driver comparison feature for geolocation
Summary
- New Feature: Driver comparison module for geolocation analysis
- New Component: CustomDateRangePicker with single date and range mode support
- UI Improvements: Modern pill-style status tabs with hover effects
Changes
New Files
-
src/app/dashboard/geolocalisation/driver-comparison/- Page routing -
src/shared/sections/geolocalisation/driver-comparison/- Feature module-
views/driver-comparison-view.tsx- Main view with table and filters -
components/driver-comparison-header.tsx- Header with date picker and actions -
components/driver-comparison-status-tabs.tsx- Status filter tabs (Tous, OK, Attention, Alerte, Données
manquantes) -
components/driver-comparison-table-row.tsx- Table row component -
components/driver-comparison-calculating-dialog.tsx- Loading dialog -
components/driver-comparison-empty-state.tsx- Empty state display -
hooks/use-driver-comparison-table.ts- Table logic hook -
styles.ts- Styling utilities
-
-
src/shared/api/stores/driverComparison.ts- Zustand store -
src/shared/components/date-picker/CustomDateRangePicker.tsx- Reusable date picker
Modified Files
-
src/layouts/dashboard/config-navigation.tsx- Added navigation item -
src/routes/paths.ts- Added route path -
src/shared/api/endpoints/geolocHistory.ts- Added comparison endpoints -
src/shared/types/geoloc.ts- Added comparison types -
src/shared/components/table/table-head-custom.tsx- Enhanced with date filter
Closes VSN-2130