feat: update business modules with new design system (VSN-2272)
Summary
- Update business modules (infrastructure, fleets, chauffeur, contract, RH, geolocalisation, planning) with new design system
- Migrate infrastructure forms (agency, department, sector, lot) from MUI to shadcn/Tailwind CSS with FormField component
- Rewrite ColorPicker components (ColorOption, ColorPickerInput) from MUI to Tailwind with lucide-react icons
- Unify primary color from
#746CD4to#6C5CE7across 22 files in all business modules - Add missing usager table column widths and representative field definitions
- Merge latest develop (including VSN-2271) into branch and resolve conflicts
Changes
Migrated: Infrastructure Forms (src/shared/sections/exploitation/infrastructure/)
- agency-form — Migrated from MUI Grid/Box/Typography to shadcn FormField + Tailwind layout
- department-form — Migrated to shadcn FormField, added missing navigation props
- sector-form — Migrated to shadcn FormField + Tailwind layout
- lot-form — Updated color references
Rewritten: Department ColorPicker (src/shared/sections/exploitation/infrastructure/department/components/)
- ColorOption — Rewritten from MUI Box/Tooltip to Tailwind with lucide-react Check icon
- ColorPickerInput — Rewritten from MUI Popover/Grid/Typography to shadcn Popover + Label + Tailwind
Updated: Infrastructure View
- infastructure-view — Updated primary color reference
Updated: Fleets Module (src/shared/sections/fleets/)
- fuel-type-new-view — Color unification
#746CD4→#6C5CE7 - vehicle-new-view — Color unification
- vehicle-brand-model-new-view — Color unification
- vehicle-type-new-view — Color unification
- service-provider-form — Color unification
- interventions-new-view — Color unification
Updated: Chauffeur Module (src/shared/sections/chauffeur/)
- schedule-utils — Color unification
- combined-table-validation — Color unification
Updated: Contract Module (src/shared/sections/contract/)
- styles.ts — Refined borders (3px → 1px), updated hover states, background colors
- contract-new-view — Color unification
Updated: RH Module (src/shared/sections/rh/)
- stytles.ts (rdv-annuel) — Color unification
- candidature-table-row — Color unification
- formulaire-table-row — Color unification
Updated: Other Modules
- driver-comparison/styles.ts — Color unification (geolocalisation)
- location/schedule-utils — Color unification (planning)
Updated: Usager Table & Fields
- usager-table — Added min-widths for representative, department code, circuit, class level, state, and code columns
- form-fields-representative — Added missing
assignedPersonNamesfield definition to fix runtime error in DuplicableField
Fixes
- Resolved 5 merge conflicts after merging latest develop (VSN-2271)
- Fixed missing
defaultAgencyName,departmentIds,onNavigateprops in DepartmentFormProps - Fixed duplicate code in interventions-new-view from merge conflict
- Reverted jwt-login-view.tsx to develop version (preserves CSS variable references from VSN-2271)
- Fixed
entityIdstype error (string[] | undefined→ default fallback)