Commit Graph

50 Commits

Author SHA1 Message Date
Matthieu Haineault
dda1592871 clean(pre-prod): did some cleaning 2026-01-12 09:54:38 -05:00
7e9dbe5b3d fix(employees): change DTOs to accomodate lack of last_update date 2026-01-09 12:54:57 -05:00
5ab1144d2c fix(employees): add second employeeDetailedUpsertDto to separate from GET dto that only requires partial PaidTimeOff access 2026-01-09 12:12:27 -05:00
791b3aacb9 feat(employees): add paid time off to properties sent to employee list queries (some partial, full when editing) 2026-01-09 11:39:30 -05:00
Matthieu Haineault
4646b2f445 feat(employees): added daily_expected_hours to returns to display and manage daily expected hours by employees using the app 2026-01-07 09:39:10 -05:00
Matthieu Haineault
0791f124a0 feat(schema): migration of the new table paid_time_off and added a column to employee table = daily_expected_hours 2026-01-06 09:13:36 -05:00
Matthieu Haineault
027dd48efb fix(module-access): fix module access for none-admin users 2025-12-19 12:23:55 -05:00
Matthieu Haineault
b9c838d3e5 fix(access): fix module access create 2025-12-15 09:26:59 -05:00
Matthieu Haineault
4b0a45adcc fix(access): fix module access update 2025-12-15 09:26:17 -05:00
Matthieu Haineault
3c773df376 fix(module_access): fix module access validation 2025-12-15 09:00:27 -05:00
Matthieu Haineault
e96cb91304 clean(comments): removed debug comment 2025-12-12 13:59:23 -05:00
Matthieu Haineault
f9a247d9f1 feat(csv): ajusted csv logics and minor fixes to employees 2025-12-12 13:26:09 -05:00
Nic D.
16a8ed41c4 Merge branch 'main' of https://git.targo.ca/Targo/targo_backend 2025-12-11 17:00:39 -05:00
Nic D.
3b01aa3748 fix(create-employee): date was passed directly as string, fixed to pass date object. 2025-12-11 17:00:20 -05:00
Matthieu Haineault
be957d8180 fix(schedule_preset) : added a check to remove preset_id for employees using the newly deleted preset 2025-12-11 12:02:34 -05:00
Matthieu Haineault
acc128e5ea fix(presets): removed name from where clause to find the preset 2025-12-11 10:11:33 -05:00
Matthieu Haineault
71aeeb7133 refactor(employees): added preset_id to dto 2025-12-11 09:26:58 -05:00
Matthieu Haineault
b18ce4972c fix(employees): added 1st and last work day to employee list return 2025-12-04 17:09:38 -05:00
Matthieu Haineault
d81186ba2b clean(modules): modules file cleaning 2025-12-04 15:00:36 -05:00
Matthieu Haineault
13962a8496 clean(modules): modules file cleaning 2025-12-04 14:50:23 -05:00
Matthieu Haineault
0c81f21f1b refactor(employees): added is_supervisor so the frontend can filter employees and use it in a select 2025-12-04 13:57:52 -05:00
Matthieu Haineault
d913f59eb5 refactor(schedules_employees): refactor schema relations between employees and presets 2025-12-04 10:42:54 -05:00
3e0e835cd8 merge 2025-12-03 17:01:34 -05:00
7ee6773235 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-12-03 17:00:42 -05:00
838189ae1f fix(employee) change dto so that module access is typesafe, modify update route to exclude session email 2025-12-03 16:59:03 -05:00
Matthieu Haineault
b40e0ad16e fix(employees): fix create employees 2025-12-03 16:06:53 -05:00
Matthieu Haineault
b44577c595 fix(employees): fix create employees 2025-12-03 15:57:30 -05:00
Matthieu Haineault
f8a70deed2 fix(employees): fix update employees 2025-12-03 15:43:03 -05:00
Matthieu Haineault
f19f981b43 fix(employees): changed email target to use dtos. 2025-12-03 15:25:25 -05:00
Matthieu Haineault
fb0187c117 feat(employees): ajusted employees module, added an update method and route 2025-12-02 12:57:49 -05:00
Matthieu Haineault
0180fa3fdd Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-12-02 09:17:30 -05:00
Matthieu Haineault
68477c17b7 fix(controller): added ModuleAccess tag 2025-12-02 09:17:25 -05:00
e6c949e40b fix(modules): moduleguards properly compare user_module_access to module_list, rather than user_roles to module_list
Optimize toStringFromBoolean mmethod to immediately return an array of Module strings rather than an object of string-string objects that needs to be filtered and manipulated further.
2025-12-02 09:06:08 -05:00
Matthieu Haineault
ebc1cd77d8 refactor(controllers): added ModuleAccessAllowed and Access decorators 2025-12-01 16:03:48 -05:00
Matthieu Haineault
0f509a920f fix(employees): added optional employee_email to findDetailedProfile 2025-12-01 15:17:19 -05:00
Matthieu Haineault
6b0763f277 refactor(module_access): changed the dto to use string instead of boolean for module_access and made a mapper to switch between boolean and string. 2025-12-01 14:44:25 -05:00
Matthieu Haineault
1afd74b0e5 fix(employees): small return fix 2025-12-01 12:37:46 -05:00
Matthieu Haineault
c155df14da fix(employees): added phone, adress and 1st work day to findOwnProfil function 2025-12-01 11:39:27 -05:00
Matthieu Haineault
98180dd16b refactor(employees): adapted logics to match new userModuleAccess and cleaned module of unused methods 2025-12-01 11:28:42 -05:00
Matthieu Haineault
ddb469cd8e feat(decorator): create a new Access decorator and added external_payroll_id to findEmployee 2025-12-01 08:34:08 -05:00
5a28630c21 refactor(employees): added functionality to take an optional employee email to retrieve profile data 2025-11-27 08:40:41 -05:00
Matthieu Haineault
1589df979f clean(): file cleaning 2025-11-14 09:35:05 -05:00
Matthieu Haineault
8df3becbb5 clean(modules): clean module imports and clean utils files 2025-11-13 15:30:29 -05:00
Matthieu Haineault
e067e15bb1 fix(timesheets): added type to expense in return 2025-11-12 13:30:51 -05:00
Matthieu Haineault
809209533a fix(employee): setting up the profil section 2025-11-06 14:00:19 -05:00
Matthieu Haineault
c0189dc61d fix(shifts): rework update and create to match ShiftEntity 2025-11-06 11:04:55 -05:00
Matthieu Haineault
1a0532846f feat(role-guards): added role-guards group and added role check to controllers 2025-11-05 14:27:54 -05:00
Matthieu Haineault
02ebb23d7a refactor(employees): uncomment module and comment archival parts(needs refactoring) 2025-11-05 08:36:24 -05:00
Matthieu Haineault
6c44bb5ad2 refactor(modules): moved some module to change the structure to domain oriented 2025-10-27 09:50:22 -04:00
Matthieu Haineault
1289aed720 reafactor(time-and-attendance): organized files and folders and centralize module files 2025-10-24 16:38:18 -04:00