Skip to content

VSN-2325/ feat(incidents): upload incident photos to document service after creation

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

Incident photos selected by the driver are now uploaded to the document service after the incident is successfully created.

Code quality (MR review feedback) :

  • Extracted buildCreateIncidentPayload() helper in fleetIncidentService — removes any, uses Record<string, unknown>
  • Added ReportIncidentPayload type — removes all (incidentData as any) casts in store
  • catch (err: unknown) + getErrorMessage helper across all store actions
  • Explicit types on updateIncidentStatus and addComment params; removed unused ApiIncidentStatus import
  • Replace hardcoded size:100 + client-side filter with driverId server-side filter (size:20)
  • Add loadMoreIncidents action with currentPage/hasMore/totalElements state
Modification effectuée par fatima senan

Rapports de requête de fusion