Skip to content

VSN-2436/ feat(absence): support mobile leave types and fix type/reception display in driver absence table

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

Driver absence requests created from the mobile app use absenceType=OTHER with a leaveType field (e.g. LEAVE_RTT, LEAVE_PAID) instead of the standard BO absence types. This caused the type column to always display "Autre" for mobile-created leave requests.

Changes

  • Added leaveType, requestType, and otherLeaveDescription fields to DriverAbsenceList interface to support mobile-created absences
  • Extended _OPTION_TYPES_ABSENCE with mobile leave types (LEAVE_PAID, LEAVE_UNPAID, LEAVE_SICK, LEAVE_PARENTAL, LEAVE_RTT, OTHER)
  • Fixed typeAbsence mapping in both table hooks: fall back to leaveType / otherLeaveDescription when absenceType is OTHER, so mobile leave requests show their actual type instead of "Autre"
  • Updated typeAbsence cell: matched types render as "Absence : {label}", unknown values as "Autre : {value}"
  • Fixed modeReception cell: raw values (e.g. PORTAL) now resolve to readable labels (e.g. Portail)

Rapports de requête de fusion