Skip to content

refactor(checkandgo/inspections): migrate mes-inspections,...

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

refactor(checkandgo/inspections): migrate mes-inspections, nouvelle-inspection, planning and rapports to shadcn

mes-inspections:

  • New unified CSS-Grid table (inspection-table) matching the client/driver/usager pattern (soft purple header, sticky column pinning, horizontal scroll sync, scroll gradients, skeleton loading).
  • Row: neo-morphic hover card with status/anomaly pill badges (emerald/red/amber + lucide icons), animated scroll-in.
  • View: live stat pill, shadcn TableControlBar + TabsCustom + TabContentContainer.
  • Page wrapper: gradient-text title + icon badge.
  • InspectionDetailPanel: unified FieldWrapper, shadcn Inputs/Select/Textarea/RadioGroup, polished ImageGallery with hover-lift thumbnails + Dialog lightbox.

nouvelle-inspection:

  • Redesigned vertical stepper with gradient indicator boxes (fixed --p-400 variable which did not exist, fell back to transparent), shimmer on active step, animated connector fill.
  • Glass-morphic stepper sidebar + main content card with atmospheric styling.
  • Inspection creator, vehicle selector, comparison-type dialog, image-guidance / image-validation dialogs all migrated with the design system.
  • formFiller outer shell (sections nav + form panel + submit footer) converted to shadcn. FieldRenderer inner form fields remain MUI and should be migrated separately.
  • Removed dead atmospheric orbs and corner-accent blobs that bled into adjacent cards.

planning:

  • Removed all MUI components (Table, Dialog, Autocomplete, Date/TimePicker, etc.) and FontAwesome icons; replaced with shadcn + Lucide.
  • Weekly CSS-Grid calendar with today-highlighted column and status-colored event cards.
  • Unified inspections list grid with colored status Select pill, delete action.
  • Planning dialog with shadcn Calendar + time input + custom popover-based AutocompleteInput for vehicle/driver/collaborator search.

rapports:

  • Replaced dead MUI x-data-grid config with a full unified shadcn table.
  • Row actions in distinct colors per convention (Download=emerald, Send=blue, Tracking=orange, Archive=amber/Unarchive=purple).
  • PDF preview Dialog with purple header, atmospheric loader and error state; SendReportSection side panel redesigned as a polished form card.
  • SignatureTrackingDialog redesigned with status pill, info alert, gradient progress bar, Building2/User signer cards that go emerald when signed.
  • Fixed header/body horizontal-scroll desync by replacing minmax(N, 1fr) with fixed px widths (minmax ruined alignment because each grid sizes independently under minWidth:max-content); last Actions column uses minmax(180px, 1fr) to absorb remaining viewport width.

Closes VSN-2689

Rapports de requête de fusion