Commit Graph

567 Commits

Author SHA1 Message Date
Matthieu Haineault
762677b7b1 clean(comments): removed debugg comments 2025-12-12 13:35:36 -05:00
01e407f803 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-12-12 13:33:31 -05:00
93b974c160 fix(presets): simplify process of updating employee profiles with deleted preset.
Also removed superfluous prints that are no longer required in certain modules (testing)
2025-12-12 13:33:27 -05:00
Matthieu Haineault
f9a247d9f1 feat(csv): ajusted csv logics and minor fixes to employees 2025-12-12 13:26:09 -05:00
Matthieu Haineault
a2fc68e9c0 fix(prisma): fix an error from a db pull that changed an Int into a BigInt 2025-12-12 08:42:31 -05:00
Matthieu Haineault
313a1e5fb6 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-12-12 08:25:35 -05:00
Matthieu Haineault
157a7908be refactor(csv): ajusted extract logics 2025-12-12 08:25:31 -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
Nic D.
cb52089db8 fix(schedule-preset): adjust services to use consistent dto and field names (mix of shifts and preset_shifts) 2025-12-10 16:51:38 -05:00
Matthieu Haineault
b6132c8b35 feat(schedule-presets): added a service that applies a preset to an existing timesheet. did some cleaning in utils and dtos 2025-12-09 13:02:10 -05:00
Matthieu Haineault
74e16d7960 feat(migration): created a script to initialize preferences and modules access 2025-12-05 15:43:32 -05:00
491bd7022c feat(auth): add session table to prisma that will be used by express-session to store user session data 2025-12-05 11:33:10 -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
2faecf8e30 fix(swagger): moved swagger-spec.json 2025-12-04 17:04:10 -05:00
Matthieu Haineault
a5917cbe9d clean(modules): modules file cleaning 2025-12-04 17:01:28 -05:00
Matthieu Haineault
8fdbdafd91 clean(modules): modules file cleaning 2025-12-04 15:19:19 -05:00
Matthieu Haineault
e4447a138c fix(modules): file imports fixes 2025-12-04 15:02:54 -05:00
Matthieu Haineault
d81186ba2b clean(modules): modules file cleaning 2025-12-04 15:00:36 -05:00
Matthieu Haineault
6d3ff46c35 clean(modules): modules file cleaning 2025-12-04 14:50:48 -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
9b4517a26d clean(shifts): did some cleaning 2025-12-04 11:05:38 -05:00
Matthieu Haineault
4c933d3564 fix(shifts): small return fixes 2025-12-04 10:46:48 -05:00
Matthieu Haineault
245d671f0b fix(shifts): small return fixes 2025-12-04 10:45:47 -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
5b0e0ce869 fix(preferences): ran a migration command so is_dark_mode = null is accepted in DB 2025-12-03 14:23:59 -05:00
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
4b0189ed48 feat(attachments): cleaning and setting up module for app integration 2025-12-03 08:21:17 -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