fix(usager, planning, holiday): toggle logic, auto-scroll planning, hide duplicate arrows
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 earlieststartHeure:startMinuteacross all loaded slots, then scrolls the planning container to 1h30 before that time - Uses existing
minutesFromMidnightToTimelineXPxutil to respect zoom level and per-hour width overrides - Auto-scroll fires once per date change, resets when
selectedDatechanges
Holiday calendar
-
holiday-calander-view.tsx— addedhideDateNavprop to ScheduleToolbar (reuses prop added in VSN-2657)
Closes VSN-2677