Skip to content

IAV-982/ Add company information fields to registration form with custom...

bouslim-saloua a demandé de fusionner feature/IAV-982 vers develop

Summary This commit adds a comprehensive company information section to the registration form with the following changes:

Frontend Features

Company Fields Added:

  • Company name, website URL, legal form, country, address, city, postal code, and department/region
  • Conditional display of department (France) or region (Morocco) based on selected country
  • All fields are frontend-only and excluded from backend submission

UI Components

  • RegisterCompanyField: Reusable component that handles both text inputs and select dropdowns
  • RegisterSelectField: Custom select component with consistent dark theme (rgba(18,24,43)) matching the design system
  • Field Styles: Extracted shared styles (fieldLabelStyles, fieldInputStyles) for maintainability

Layout Fix

  • Fixed footer visibility issue in dashboard layout by restructuring flexbox hierarchy
  • Added proper spacing between fields with margin bottom of 2.5 (1 for city/postal code pair)
  • Ensured responsive behavior across different screen sizes

Technical Improvements

  • Removed dependency on problematic CustomSelect component by creating a dedicated select field
  • Used Lucide React icons for consistent iconography
  • Implemented proper TypeScript typing for all components and options
  • Maintained existing Formik integration without modifying backend logic

Rapports de requête de fusion