Skip to content

VSN-2325/ fix(incident-documents): fix crash, stale data, download, owner name and import UX

fatima senan a demandé de fusionner feature/VSN-2325 vers develop

This MR includes the following changes :

  • Fixe multiple bugs in the Documents tab of the incident form (Client-side crash, Old documents flash when switching incidents, Owner name shows fallback instead of real value, Download opens blank tab, Import triggers upload immediately on file select)
  • Align incident document types with the backend DocumentType enum

Code quality (MR review feedback)

  • Replace catch (error: any) with catch (err: unknown) across fleet-document-store, driver-absence-document-store and documents-form
  • Type the raw API response in driver-absence-document-store with DriverAbsenceDocumentRaw instead of any
  • Type documentToRename as IDocument | null, handleDownloadDocument and handleRenameDocument parameters as IDocument, and the store document mapping as (FleetDocument | DriverAbsenceDocument)[]
  • Fix typo secoundButtonTextsecondButtonText in ActionButtons and all call sites (9 files)
  • Translate ConfirmDialog labels to French for UI consistency
  • Add JSDoc to _INCIDENT_DOCUMENT_TYPES and mainIncidentFormFields
Modification effectuée par fatima senan

Rapports de requête de fusion