Skip to content

VSN-2251:feat(suivi-courses): Fix pagination, dense mode and datetime filter for departure/arrival

Summary

Fixes several non-functional UI features on the Suivi des Courses page.

Changes

Pagination

  • Fixed rows-per-page selector not slicing data in table-manager.tsx
  • Fixed page navigation buttons resetting to page 0 after every click by removing config.initialData from the useEffect dependency array in use-table-manager.ts
  • Fixed pagination controls overlap issue in table-pagination-custom.tsx by replacing absolute positioning with a flexbox layout
  • Added page reset when filters (usager, chauffeur, véhicule, date) change in suivi-courses-view.tsx

Dense mode

  • Wired table.dense and table.onChangeDense through table-manager.tsx to TablePaginationCustom so the dense toggle now affects the table row size

Datetime filter

  • Changed the filter input for "Heure de départ" and "Arrivée estimée" from type="date" to type="datetime-local" in table-filter.tsx
  • This allows minute-precision filtering using the existing hasExplicitTime and matchesDateCondition logic already present in use-table-manager.ts

Icons

  • Replaced LocationOnIcon with BadgeIcon for the Chauffeur filter to visually distinguish it from the Usager (PersonIcon) filter
Modification effectuée par ismail.boulaich

Rapports de requête de fusion