Skip to content

feat(fleets): migrate fleet module pages to shadcn CSS grid table pattern

yahya.elmokhtari a demandé de fusionner VSN-2487 vers develop

Summary

Migrates 4 fleet management pages from the legacy MUI table pattern to the unified shadcn CSS Grid table layout, and fixes the date picker range across the app.


Changes

Fix — Date Picker Range (1970–2040)

  • Extended startMonth/endMonth in the table header filter popover (table-head.tsx) and form field date picker (form-field.tsx)

Feat — Service Provider (/dashboard/flottes/supplier/types-fournisseurs)

  • Replaced MUI Box/Stack/CustomTabs/TableManager/CustomDrawer with shadcn TabsCustom, TabContentContainer, TabPanel, TableControlBar
  • New CSS Grid table container with synchronized horizontal scroll, skeleton loaders, empty state, and pagination
  • Rewritten table row with shadcn Checkbox, TableActionColumn, accent left bar

Feat — Révision (/dashboard/flottes/revision)

  • New CSS Grid table container (revision-table.tsx)
  • Inline StatusBadge with shadcn Popover dropdown for status changes
  • Status filter tabs as plain styled <button> elements

Feat — Réparation (/dashboard/flottes/entretien/reparation)

  • New CSS Grid table container (vehicle-repair-table.tsx)
  • Rewritten table row with RepairStatusBadge, accent bar using getRepairStatusColor
  • Preserved AXA/incident pending repair session storage logic

Feat — Incidents (/dashboard/flottes/incidents)

  • New CSS Grid table container (vehicle-incident-table.tsx)
  • Inline IncidentStatusBadge Popover dropdown for in-row status changes
  • active column renders Actif/Inactif badge

=

Rapports de requête de fusion