VSN-2325/ feat(incidents): clean up incident display
Changes :
-
Incident list: title now displays description (damages + circumstances entered by the driver); removed obsolete "En réparation" status case
-
Incident detail card: title replaced with incident.description
-
Vehicle store: removed lastMaintenanceDate fallback
-
Home menu: removed "Bulletin de paie" card
-
Incident status: fixed enum values (IN_PROGRESS, RESOLVED, PENDING) and status mapper to align with backend; removed AWAITING_PARTS and UNDER_REPAIR
-
homeScreen: clear setTimeout on unmount to prevent memory leaks
-
incidentStatusConfig.ts (new): extracted shared status config (label, colorKey, icon, title, description) used by both incidentHistoryScreen and IncidentStatusCard — eliminates duplication
-
incidentHistoryScreen: typed returnTo with Href instead of as any; added fetchIncidents to useEffect dependencies; StyleSheet.create wrapped in useMemo
-
IncidentStatusCard, IncidentDetailsCard, IncidentVehicleCard: StyleSheet.create wrapped in useMemo([colors]) to avoid unnecessary style recreation on each render
-
vehicleStore: type error
-
IncidentPhotosCard: file confirmed present in the repository