Skip to content

fix(usager, planning, holiday): toggle logic, auto-scroll planning, hide duplicate arrows

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

Summary

  • Fixed the active/inactive toggle in usager tables — was showing inverted state (archived instead of !archived)
  • Chauffeur planning now auto-scrolls to 1h30 before the earliest event on load instead of always starting at 00:00
  • Hidden duplicate date navigation arrows next to Calendrier in the holiday calendar toolbar

Changes

Usager toggle fix

  • usager-table-row.tsx (shadcn) — isActive={row.archived}isActive={!row.archived} (3 occurrences)
  • usager-table-row.tsx (legacy) — same fix (1 occurrence)
  • Scanned all table rows across the entire app — no other instances of this bug found

Chauffeur planning auto-scroll

  • driver-schedule.tsx — added auto-scroll effect that finds the earliest startHeure:startMinute across all loaded slots, then scrolls the planning container to 1h30 before that time
  • Uses existing minutesFromMidnightToTimelineXPx util to respect zoom level and per-hour width overrides
  • Auto-scroll fires once per date change, resets when selectedDate changes

Holiday calendar

  • holiday-calander-view.tsx — added hideDateNav prop to ScheduleToolbar (reuses prop added in VSN-2657)

Closes VSN-2677

Rapports de requête de fusion