Commit Graph

565 Commits

Author SHA1 Message Date
Matthieu Haineault
ef969d3c42 fix(CSV): fix csv structure to match Desjardins 2026-02-16 09:36:13 -05:00
Nic D
a9637a93a6 BREAKING(csv-report): Trim shift and expense retrieval, up to calculateOvertime portion, logic requires rework 2026-02-13 16:05:59 -05:00
Matthieu Haineault
df390b41b6 fix(csv): started to fix csv structure to match desjardins needs 2026-02-12 15:14:44 -05:00
Matthieu Haineault
502f92188d feat(tickets): a few more basic setup to match frontend needs 2026-02-11 14:02:34 -05:00
Matthieu Haineault
dccb249b15 feat(Tickets): created helpers for boolean manipulations and basic setup for ticketing module 2026-02-11 08:45:26 -05:00
Matthieu Haineault
3f248a212d feat(modules): basic setup for controllers, services and modules of the customer-support module 2026-02-10 08:35:50 -05:00
Matthieu Haineault
ee6337758e feat(DTO): dto implementations for the ticket module 2026-02-10 08:14:44 -05:00
Matthieu Haineault
c3698d4a36 fix(imports): switched deprecated imports for new version of Prisma 2026-02-06 15:27:37 -05:00
Matthieu Haineault
6a6a3187be fix(imports): fixed deprecated imports 2026-02-06 15:22:19 -05:00
Matthieu Haineault
1da818d843 fix(dockerfile): modified Prisma Client generate command line to match prisma 7.3.0 with multiple databases 2026-02-06 15:12:11 -05:00
Matthieu Haineault
fd177194ec fix(accounts): small import fix 2026-02-06 15:05:10 -05:00
Matthieu Haineault
047871fe35 fix(prisma): many small fixes due to prisma updated version 2026-02-06 15:03:14 -05:00
Matthieu Haineault
364219c267 Merge branch 'main' of git.targo.ca:Targo/targo_backend into dev/matthieu/prisma/MariaDB 2026-02-06 14:41:08 -05:00
Nic D
afa8694e1e fix(sick-hours): fix issue where sicks hours are not properly being deducted nor reimbursed 2026-02-06 14:37:27 -05:00
Nic D
a4be488a0f fix(sick-hours): fix a single error in shift creation where sick hours check was being done with banked hours 2026-02-06 14:02:01 -05:00
Matthieu Haineault
6d911014de feat(Accounts): setthing up account services and e2e testing of the routes 2026-02-06 08:37:40 -05:00
Nic D
6d96311d98 refactor(e2e): remove old e2e workflow, no longer up to date, will need to create new one later(never?) 2026-02-05 15:00:52 -05:00
Nic D
d0f68cf1c6 fix(auth): change logout behavior, now sends success code when logout request processed 2026-02-05 13:24:27 -05:00
Matthieu Haineault
6d17baf6c8 fix(prisma): fix prisma calls to match 7.3.0 versions 2026-02-05 11:52:46 -05:00
Matthieu Haineault
b8157b78d1 fix(PrismaClient): fix a bug where transactionClients where instantiated with the wrong Prisma imports 2026-02-05 11:31:47 -05:00
Nic D
2ec59e2ffb feat(paid-time-off): add methods and controller to pull paid time off for one employee 2026-02-05 08:00:54 -05:00
Matthieu Haineault
d9f0362cb9 fix(PrismaClient): fix the client generation. was overwriting previous entries. now create multiple instances = db amount 2026-02-04 15:24:36 -05:00
Matthieu Haineault
b269062816 fix(Prisma): Fix prisma queries around the whole app to match new structure of many instance of clients/services files. added scripts to manage more than one schema at a time 2026-02-04 14:13:06 -05:00
Matthieu Haineault
a3bdd41648 fix(prisma-client): modified imports in many files to match the new structure of the Prisma ORM. (where @prisma/client => prisma/generated/postgres/client). Added commented mariaDB variables to Dockerfile for future connections 2026-02-04 10:18:03 -05:00
Matthieu Haineault
789e9acf89 fix(mariaDB): fixed account service functions to use new prisma setup 2026-02-04 08:27:38 -05:00
Matthieu Haineault
8b9c2f7a86 feat(mariaDB): clean prisma MariaDB folders. re-organized it and added scripts command for easier generation and migration 2026-02-03 15:52:02 -05:00
Matthieu Haineault
25e9200c41 Merge branch 'main' of git.targo.ca:Targo/targo_backend into dev/matthieu/prisma/MariaDB 2026-02-03 11:42:02 -05:00
Matthieu Haineault
d7eacd127c feat(prisma): setup for including MariaDB with the new Prisma version 7.3.0 2026-02-03 11:40:08 -05:00
Nic D
83f5da2e4a fix(preset): fix issue where notification of creation was being sent for weekly preset application 2026-01-27 16:33:27 -05:00
Nic D
652bc1cba1 feat(presets): add possibility for user with right permissions to apply presets to employee timesheets 2026-01-27 16:12:28 -05:00
Nic D.
0b31fc829b fix(auth): changes to how logout is handled, will now disconnect user from authentik for app only. 2026-01-26 16:27:11 -05:00
Nic D
68883b84e7 feat(pay-period): add SSE for timesheet-approval when employees update timesheet and a user is on timesheet-approval 2026-01-21 10:21:58 -05:00
646cb58e98 feat(pay-period): begin integration of SSE route for live event-based feedback on timesheet update 2026-01-20 16:28:17 -05:00
bf630acb7c replaced app2 by portail 2026-01-20 09:02:02 -05:00
Nic D
11d841e868 refactor(chatbot): change context logic, adding context to chat request instead of sending on page change 2026-01-15 12:18:57 -05:00
Nic D
63cc2a4458 fix(chatbot): changed session id to be unique with user email instead of using testing for everything 2026-01-15 10:17:45 -05:00
Nic D
7d492a2817 fix(timesheet): remove lines that were interfering with weekly overtime calculations. 2026-01-15 09:37:52 -05:00
Nic D
9079cfceed Merge branch 'main' of https://git.targo.ca/Targo/targo_backend 2026-01-14 16:06:59 -05:00
Nic D
8410a3f7c6 fix(chatbot): change post address, object structure, handling of response 2026-01-14 16:06:50 -05:00
78798c9173 added app2.targo.ca in CORS 2026-01-14 15:37:30 -05:00
Matthieu Haineault
e259851b87 clean(banking): removed debug comments 2026-01-14 10:38:49 -05:00
Matthieu Haineault
8a2e67cbc8 fix(banking): fix delete options of withdraw_banking hours 2026-01-14 10:37:46 -05:00
Matthieu Haineault
1abc377891 fix(banking): fix an issue where the banked hours would not be updated as intended 2026-01-14 08:20:27 -05:00
6c89acbe0e Merge branch 'main' of git.targo.ca:Targo/targo_backend 2026-01-13 16:27:31 -05:00
fa64b7d919 feat(timesheet-approval): add overtime calculation for overview and timesheet details 2026-01-13 16:27:27 -05:00
Matthieu Haineault
560bb9cc3c fix(banking_hours): added modifier of 1.5 to ensure real display and manipulations of banked hours 2026-01-13 14:07:44 -05:00
Matthieu Haineault
052cebe003 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2026-01-13 09:16:15 -05:00
Matthieu Haineault
28b8a5612f feat(scripts): added a scripts to fetch and update employee supervisors and supervisor status 2026-01-13 09:13:58 -05:00
8f93c2b0f7 fix(chatbot): minor fixes to chatbot implementation, add chatbot to module access 2026-01-12 14:11:50 -05:00
28f90c027d Merge branch 'main' of git.targo.ca:Targo/targo_backend 2026-01-12 10:34:25 -05:00
297f1241bd feat(chatbot): add chatbot module for frontend deploy testing 2026-01-12 10:34:13 -05:00
Matthieu Haineault
dda1592871 clean(pre-prod): did some cleaning 2026-01-12 09:54:38 -05:00
Matthieu Haineault
5d6f6bfd0a feat(paid_time_off): added last_updated to manipulations bank updates 2026-01-12 07:20:07 -05:00
7e9dbe5b3d fix(employees): change DTOs to accomodate lack of last_update date 2026-01-09 12:54:57 -05:00
6acb853c69 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2026-01-09 12:12:33 -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
Matthieu Haineault
25c9e0a673 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2026-01-09 12:01:11 -05:00
Matthieu Haineault
4c7c596d02 refactor(paid-time-off): refactor functions to use paid-time-off service instead. 2026-01-09 12:01:06 -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
c03ea4cb6f Merge branch 'main' of git.targo.ca:Targo/targo_backend 2026-01-09 08:00:14 -05:00
Matthieu Haineault
70575e1772 feat(banking_hours): added a function to add or take banked_hours 2026-01-09 08:00:08 -05:00
c43d7649ca feat(approvals): add functionality to return weekly hours breakdown 2026-01-09 07:44:15 -05:00
Matthieu Haineault
41efccac17 fix(migration): commented migration scripts 2026-01-08 14:20:05 -05:00
Matthieu Haineault
5b778943a1 feat(paid_time-off): worked on vacation service, implemented vacation business logic inside shifts creation and did a migration 2026-01-08 12:13:14 -05:00
Matthieu Haineault
bae8a037f7 fix(business-logics): small ajustments 2026-01-07 15:46:29 -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
6cbf37ed86 fix(csv): added real paid hours for csv download 2026-01-07 09:02:06 -05:00
Matthieu Haineault
e10a7da1e4 feat(csv and expenses): added employee_email to update expense and added call to holiday service to display the right amount of hour paid for holiday shifts inside csv(needs more work. see next commit) 2026-01-07 08:42:52 -05:00
Matthieu Haineault
70aefdab73 fix(migration): fix some migration problems from legacy db 2026-01-06 15:04:41 -05:00
Matthieu Haineault
6dae8df0d3 fix(url): switch redirect to right url for staging container 2026-01-06 10:04:52 -05:00
Matthieu Haineault
2a6f9eb2ac fix(url): switch redirect to right url for staging container 2026-01-06 09:46:19 -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
e3006b9b82 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2026-01-06 07:34:42 -05:00
53ec64ba1e refactor(sick-leave): remake methods to calculate and update sick leave available 2026-01-06 07:34:26 -05:00
Matthieu Haineault
379104147c fix(csv): added overtime calculation and requalification of regular time unto overtime when daily or weekly maxes are reached 2026-01-06 07:12:24 -05:00
124a80f9bf fixed mispelled URLs 2026-01-05 09:36:57 -05:00
3554f2e901 added app.targo.ca and staging.app.targo.ca to the allowed frontend URLs 2026-01-05 09:07:47 -05:00
17f06e7867 refactor(timesheet): add boolean property to indicate if user has schedule preset or not, used to display set preset buttons on timesheet. 2026-01-02 17:27:29 -05:00
74fe9fc945 debug(module-access): improve error logging to figure out why access module guard is firing 403 errors. 2025-12-29 15:07:30 -05:00
6f9ba599a0 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-12-29 08:57:11 -05:00
7eb1471edb fix(pay-periods): specify that is_approved can be null in controller, to not confuse false with null 2025-12-29 08:56:22 -05:00
Nic D.
6adbcad352 ???(???): holiday work, forget what it was. Probably related to timesheet approval and its filters 2025-12-29 06:53:16 -05:00
Matthieu Haineault
d613d97a1a fix(pay-period): small fix to query 2025-12-23 14:22:28 -05:00
Matthieu Haineault
264ee101bf refactor(pay-period): refactor buildOverview and cleaned service/controller 2025-12-23 14:17:37 -05:00
Matthieu Haineault
15d7821314 fix(pay-period): removed is_remote from payload and added dynamic returns of timesheet.is_approved 2025-12-23 07:18:01 -05:00
da74a93fa0 console.log 2025-12-22 14:10:26 -05:00
58baaade5d refactor(pay-periods): refactored bulkApprove for crew to instead toggle approval of all shifts and expenses of a given employee 2025-12-22 14:09:35 -05:00
Matthieu Haineault
ad49a2265a feat(shifts): added a new route to enable shift creation/modification/deleting using the timesheets_approval page 2025-12-22 11:12:14 -05:00
Matthieu Haineault
ed7e013a71 clean(logs): removed debugging logs 2025-12-19 16:46:19 -05:00
Matthieu Haineault
447d968f59 feat(pay-period): added is_active to payload to filter inactive employee from the timesheets_approval page 2025-12-19 16:25:39 -05:00
Matthieu Haineault
c0d00d0ca9 feat(pay-period): added is_active to payload to filter inactive employee from the timesheets_approval page 2025-12-19 16:16:35 -05:00
Matthieu Haineault
52c2e5f70c Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-12-19 15:46:14 -05:00
Matthieu Haineault
581a4252cd fix(display): fix the display of amount, mileage and hours to use only 2 decimals and no more 2025-12-19 15:46:10 -05:00
072855f34d Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-12-19 15:39:24 -05:00
d9d9de759f fix(auth): fix /me route to properly send user data, now also includes module accesses for user. 2025-12-19 15:39:18 -05:00
Matthieu Haineault
681779345e fix(access): access troubleshooting 2025-12-19 12:43:11 -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
40fe965a6d fix(redirect): fix url redirect 2025-12-19 10:16:30 -05:00
Matthieu Haineault
a40af6a4d0 fix():small fix to redirect 2025-12-19 10:11:29 -05:00
Matthieu Haineault
62bad94343 feat(redirect_url): moved redirect url to .env file 2025-12-19 10:00:50 -05:00