Skip to content

VSN-1901 / Feat(anomaly-config): add full anomaly configuration module (fuel, mileage, vehicle)

yassine.chhirou a demandé de fusionner VSN-1901 vers develop

**🚀 Anomaly Configuration Module Implementation

️ Core Features & Components**

  • Implement Fuel, Mileage, and Vehicle anomaly configuration views

  • Add VehicleConfigView, FuelAnomalyConfigView, and MileageAnomalyConfigView

  • Introduce DaySelector for day selection layout

  • Add ScheduleDetailsEditor for managing start/end dates and hours

  • Include ApplyToOthersDialog for cross-configuration duplication with conditional rendering

🧠 State Management & Hooks

  • Create custom hook useVehicleConfig for centralized anomaly configuration state

  • Add helper methods: setEnabled, updateDetails, and applyToOthers

💅 UI & Styling Enhancements

  • Style dialogs with rounded corners and primary-colored headers

  • Improve layout of day selectors (two-line grid layout)

  • Apply consistent design using MUI, FontAwesome icons, and custom styled pickers (RoadMapStyledTimePicker, RoadMapStyledDatePicker)

🧩 Integration & Navigation

  • Add AnomalyConfigView with tabbed navigation for:

  • Fuel anomalies

  • Mileage anomalies

  • Vehicle-specific anomalies

🐛 Bug Fix

  • Fixed issue where departure or destination addresses could be null → Now safely rendered with ConditionalComponent to display a fallback “-”

Closes VSN-1901

Rapports de requête de fusion