From e7dfe6db0049ef30ca2403e8459b02f14adcba24 Mon Sep 17 00:00:00 2001 From: Matthieu Haineault Date: Mon, 8 Sep 2025 16:14:57 -0400 Subject: [PATCH] feat(timesheet): added remote_work, add_shift, add_expense btns, --- src/i18n/en-ca/index.ts | 10 +- src/i18n/fr-ca/index.ts | 11 +- .../shift/timesheet-shift-comment.vue | 8 +- .../timesheet/timesheet-expense-list.vue | 0 .../timesheet/timesheet-navigation.vue | 5 + .../timesheet/timesheet-save-payload.vue | 64 +++++ .../timesheet/timesheet-shift-form.vue | 243 +++++++++--------- .../timesheets/pages/timesheet-temp-page.vue | 93 ++++--- .../timesheets/types/timesheet-interface.ts | 1 + .../types/timesheet-shift-interface.ts | 8 +- 10 files changed, 273 insertions(+), 170 deletions(-) delete mode 100644 src/modules/timesheets/components/timesheet/timesheet-expense-list.vue create mode 100644 src/modules/timesheets/components/timesheet/timesheet-save-payload.vue diff --git a/src/i18n/en-ca/index.ts b/src/i18n/en-ca/index.ts index 2e94179..fe6b433 100644 --- a/src/i18n/en-ca/index.ts +++ b/src/i18n/en-ca/index.ts @@ -259,19 +259,23 @@ export default { previous_week:'Previous week', }, save_button:'Save', - shift_types: 'Shift`s Type', - shiftTypes: { + cancel_button:'Cancel', + remote_button: 'Remote work', + add_shift:'Add Shift', + shift_types_label: 'Shift`s Type', + shift_types: { EMERGENCY: 'Emergency', EVENING: 'Evening', HOLIDAY: 'Holiday', REGULAR: 'Regular', SICK: 'Sick Leave', VACATION: 'Vacation', - WORK_FROM_HOME: 'Work from home', }, fields: { start:'Start', end:'End', + header_comment:'Shift`s comment', + textarea_comment: 'Leave a comment here', }, //rest timeSheetTab_1: 'Shifts', diff --git a/src/i18n/fr-ca/index.ts b/src/i18n/fr-ca/index.ts index 3067ace..bed8c78 100644 --- a/src/i18n/fr-ca/index.ts +++ b/src/i18n/fr-ca/index.ts @@ -309,19 +309,24 @@ export default { previous_week:'Semaine précédente', }, save_button:'Enregistrer', - shift_types: 'Type de quart', - shiftTypes: { + cancel_button:'Annuler', + remote_button: 'Télétravail', + + add_shift:'Ajouter une quart', + shift_types_label: 'Type de quart', + shift_types: { EMERGENCY: 'Urgence', EVENING: 'Soir', HOLIDAY: 'Férier', SICK: 'Absence', REGULAR: 'Régulier', VACATION: 'Vacance', - WORK_FROM_HOME: 'Télétravail', }, fields: { start:'Entrée', end:'Sortie', + header_comment:'Commentaire du Quart', + textarea_comment:'Laissez votre commentaire', }, //rest timeSheetTab_1: 'Quarts de travail', diff --git a/src/modules/timesheets/components/shift/timesheet-shift-comment.vue b/src/modules/timesheets/components/shift/timesheet-shift-comment.vue index d8c88cf..997487f 100644 --- a/src/modules/timesheets/components/shift/timesheet-shift-comment.vue +++ b/src/modules/timesheets/components/shift/timesheet-shift-comment.vue @@ -26,7 +26,7 @@ const save = ()=> {