Commit Graph

46 Commits

Author SHA1 Message Date
35a71d217a Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-12-03 14:10:23 -05:00
5dafef82f2 refactor(auth): make validate method of strategy use parsed idToken to work with Authentik JWT payload instead of profile 2025-12-03 14:10:17 -05:00
Matthieu Haineault
e4a4e317bc fix(preferences): ajusted schema so is_dark_mode accepts null 2025-12-03 14:06: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
f12950757c Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-12-01 11:39:31 -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
c7f92ed46c Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-12-01 11:31:36 -05:00
57dc4eeb66 refactor(preferences): add id to response for easier frontend state management 2025-12-01 11:30:23 -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
Matthieu Haineault
f499abbb78 fix(userModuleAccess): small return fixes 2025-11-28 10:01:59 -05:00
Matthieu Haineault
822763db2b fix(prefs): small fix 2025-11-27 15:23:19 -05:00
Matthieu Haineault
83804b4008 fix(preferences): modified returns to match needs 2025-11-27 15:22:01 -05:00
Matthieu Haineault
7cddd84e23 fix(preferences): removed user data from update return 2025-11-27 15:13:02 -05:00
Matthieu Haineault
b714a460f0 feat(migration): reset DB to match new schema 2025-11-27 12:24:47 -05:00
Matthieu Haineault
58c550103f Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-11-27 08:47:51 -05:00
Matthieu Haineault
e76f2a9a72 feat(preferences): added validation pipes to DTO, commented migration scripts 2025-11-27 08:47:47 -05:00
e7213c62ed Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-11-27 08:40:47 -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
7c9f3cda65 feat(preferences): small update on prefrences table 2025-11-26 16:32:56 -05:00
Matthieu Haineault
d7b1bab68f fix(preferences): minor type fix to dto 2025-11-26 15:33:10 -05:00
Matthieu Haineault
5f7f639c62 feat(preferences): added a getter function and modified schema to use boolean 2025-11-26 15:31:50 -05:00
Matthieu Haineault
439e005936 fix(user_module_access): fix imports and file naming 2025-11-26 15:10:02 -05:00
Matthieu Haineault
26ea84cf1a feat(user_module_access): created user_module_access model and module. implemented update, revoke and get methods. 2025-11-26 15:05:22 -05:00
Matthieu Haineault
8c816da286 cleaning(): more cleaning and imports ajustements 2025-11-14 09:39:15 -05:00
Matthieu Haineault
1589df979f clean(): file cleaning 2025-11-14 09:35:05 -05:00
Matthieu Haineault
7968359bfe clean(imports): module import cleaning 2025-11-13 15:34:48 -05:00
Matthieu Haineault
1a88e02411 clean(modules): clean module imports and clean utils files 2025-11-13 15:23:17 -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
e0cefc8ec9 refactor(expenses): modified createExpense signature. removed timesheet_id from the param. ajusted auth logic 2025-10-31 12:11:55 -04:00
78aec894ed fix(auth): change auth to work with remote docker lab 2025-10-30 14:23:52 -04:00
Matthieu Haineault
5e49bc5df6 refactor(utils): moved utils to shared utils folder 2025-10-27 11:47:38 -04:00
fc6681a548 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-10-27 09:59:34 -04: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