From 5c0c9036c45af258c2f248c86e93dcf5cea603a3 Mon Sep 17 00:00:00 2001 From: Matthieu Haineault Date: Wed, 10 Sep 2025 08:34:21 -0400 Subject: [PATCH] feat(timesheet): added pay-period interface to timesheet employee page --- src/i18n/en-ca/index.ts | 1 + src/i18n/fr-ca/index.ts | 1 + ...et-shift-comment.vue => shift-comment.vue} | 0 .../components/shift/shifts-legend.vue | 48 +++++++ .../timesheet-details-shifts-row-header.vue | 33 +++++ .../timesheet-details-shifts-row.vue | 104 ++++++++++++++ .../components/timesheet-details-shifts.vue | 72 ++++++++++ ...ue => deprecated-timesheet-shift-form.vue} | 2 +- .../timesheet/timesheet-navigation.vue | 127 +++++++++++++----- .../timesheet-shift-form-overview.vue} | 0 .../pages/timesheet-details-overview.vue | 93 +++++++++++++ .../timesheets/pages/timesheet-temp-page.vue | 86 ------------ .../timesheets/services/timesheet-services.ts | 37 ++++- ...t-pay-period-details-overview-interface.ts | 11 ++ src/router/routes.ts | 2 +- 15 files changed, 490 insertions(+), 127 deletions(-) rename src/modules/timesheets/components/shift/{timesheet-shift-comment.vue => shift-comment.vue} (100%) create mode 100644 src/modules/timesheets/components/shift/shifts-legend.vue create mode 100644 src/modules/timesheets/components/timesheet-details-shifts-row-header.vue create mode 100644 src/modules/timesheets/components/timesheet-details-shifts-row.vue create mode 100644 src/modules/timesheets/components/timesheet-details-shifts.vue rename src/modules/timesheets/components/timesheet/{timesheet-shift-form.vue => deprecated-timesheet-shift-form.vue} (99%) rename src/modules/timesheets/components/{time-sheet-employee-container.vue => timesheet/timesheet-shift-form-overview.vue} (100%) create mode 100644 src/modules/timesheets/pages/timesheet-details-overview.vue delete mode 100644 src/modules/timesheets/pages/timesheet-temp-page.vue create mode 100644 src/modules/timesheets/types/timesheet-pay-period-details-overview-interface.ts diff --git a/src/i18n/en-ca/index.ts b/src/i18n/en-ca/index.ts index 79802dd..d53effc 100644 --- a/src/i18n/en-ca/index.ts +++ b/src/i18n/en-ca/index.ts @@ -267,6 +267,7 @@ export default { EMERGENCY: 'Emergency', EVENING: 'Evening', HOLIDAY: 'Holiday', + OVERTIME: 'Overtime', REGULAR: 'Regular', SICK: 'Sick Leave', VACATION: 'Vacation', diff --git a/src/i18n/fr-ca/index.ts b/src/i18n/fr-ca/index.ts index f7cd6e9..490c724 100644 --- a/src/i18n/fr-ca/index.ts +++ b/src/i18n/fr-ca/index.ts @@ -318,6 +318,7 @@ export default { EMERGENCY: 'Urgence', EVENING: 'Soir', HOLIDAY: 'Férier', + OVERTIME: 'Supplémentaire', SICK: 'Absence', REGULAR: 'Régulier', VACATION: 'Vacance', diff --git a/src/modules/timesheets/components/shift/timesheet-shift-comment.vue b/src/modules/timesheets/components/shift/shift-comment.vue similarity index 100% rename from src/modules/timesheets/components/shift/timesheet-shift-comment.vue rename to src/modules/timesheets/components/shift/shift-comment.vue diff --git a/src/modules/timesheets/components/shift/shifts-legend.vue b/src/modules/timesheets/components/shift/shifts-legend.vue new file mode 100644 index 0000000..039abfc --- /dev/null +++ b/src/modules/timesheets/components/shift/shifts-legend.vue @@ -0,0 +1,48 @@ + + + \ No newline at end of file diff --git a/src/modules/timesheets/components/timesheet-details-shifts-row-header.vue b/src/modules/timesheets/components/timesheet-details-shifts-row-header.vue new file mode 100644 index 0000000..37d2af7 --- /dev/null +++ b/src/modules/timesheets/components/timesheet-details-shifts-row-header.vue @@ -0,0 +1,33 @@ + \ No newline at end of file diff --git a/src/modules/timesheets/components/timesheet-details-shifts-row.vue b/src/modules/timesheets/components/timesheet-details-shifts-row.vue new file mode 100644 index 0000000..2fb0ab5 --- /dev/null +++ b/src/modules/timesheets/components/timesheet-details-shifts-row.vue @@ -0,0 +1,104 @@ + + + \ No newline at end of file diff --git a/src/modules/timesheets/components/timesheet-details-shifts.vue b/src/modules/timesheets/components/timesheet-details-shifts.vue new file mode 100644 index 0000000..2129cc0 --- /dev/null +++ b/src/modules/timesheets/components/timesheet-details-shifts.vue @@ -0,0 +1,72 @@ + + + \ No newline at end of file diff --git a/src/modules/timesheets/components/timesheet/timesheet-shift-form.vue b/src/modules/timesheets/components/timesheet/deprecated-timesheet-shift-form.vue similarity index 99% rename from src/modules/timesheets/components/timesheet/timesheet-shift-form.vue rename to src/modules/timesheets/components/timesheet/deprecated-timesheet-shift-form.vue index 17a9dbf..9d3e299 100644 --- a/src/modules/timesheets/components/timesheet/timesheet-shift-form.vue +++ b/src/modules/timesheets/components/timesheet/deprecated-timesheet-shift-form.vue @@ -6,7 +6,7 @@ import { useTimesheetStore } from 'src/stores/timesheet-store'; import TimesheetShiftComment from '../shift/timesheet-shift-comment.vue'; import TimesheetSavePayload from './timesheet-save-payload.vue'; import type { Shift } from '../../types/timesheet-shift-interface'; -import type { CreateShiftPayload } from '../../types/timesheet-shifts-payload-interface'; +import type{ CreateShiftPayload } from '../../types/timesheet-shifts-payload-interface'; const timesheet_store = useTimesheetStore(); diff --git a/src/modules/timesheets/components/timesheet/timesheet-navigation.vue b/src/modules/timesheets/components/timesheet/timesheet-navigation.vue index 1a1136b..1713d8d 100644 --- a/src/modules/timesheets/components/timesheet/timesheet-navigation.vue +++ b/src/modules/timesheets/components/timesheet/timesheet-navigation.vue @@ -1,45 +1,94 @@