feat(heures) : affichage des jours travaillés (CUSTOM) sur la vue Jour
Auto Tag Develop / tag (push) Successful in 12s

Le libellé sous le nom de l'employé affiche en suffixe les jours du planning
workDaysHours au format court (ex. BUREAU — CDI — LU,JE) pour les contrats CUSTOM.
Résolu à la date filtrée et exposé via WorkHourDayContext.workDaysHours ; formaté
front par formatWorkedDaysShort. Limité aux CUSTOM (35h/39h/forfait/intérim sans
planning → rien affiché) et à l'écran Heures (pas Heures Conducteurs).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-12 14:33:46 +02:00
parent 4b22270c60
commit 7187989003
12 changed files with 106 additions and 7 deletions
+6
View File
@@ -517,6 +517,11 @@ export const useHoursPage = () => {
return dayContextByEmployeeId.value.get(employeeId)?.contractNature ?? null
}
// Jours travaillés du planning (contrats CUSTOM uniquement), ex. "LU,VE". null sinon.
const getRowWorkedDaysLabel = (employeeId: number): string | null => {
return formatWorkedDaysShort(dayContextByEmployeeId.value.get(employeeId)?.workDaysHours)
}
const getRowUpdatedAt = (employeeId: number): string => {
const raw = rows.value[employeeId]?.updatedAt
if (!raw) return ''
@@ -1207,6 +1212,7 @@ export const useHoursPage = () => {
hasRowFormation,
getRowFormationLabel,
getRowContractNature,
getRowWorkedDaysLabel,
getRowUpdatedAt,
getPresenceDayValue,
openAbsenceDrawer,