No description
Find a file
jtricerolph 9bfd14a082 Add timesheet sync: pull actual hours, daily cron, per-cell source indicators
- fetchTimesheetShifts: hits /api/v2/shifts, subtracts breaks, carries PENDING/APPROVED status
- syncJobs.js: shared runRotaSync/runTimesheetSync logic used by routes and cron
- Rota sync now skips dates already marked source='timesheet'
- POST /api/workforce/sync-timesheets: on-demand pull of last 7 days actual hours
- Daily 6am cron: rota sync then timesheet sync, each logged independently
- upsertWorkforceShifts now writes source per row (workforce or timesheet)
- Frontend: Pull timesheets button alongside Sync rota button
- Clock icon on timesheet cells — amber for PENDING, green for APPROVED
- Both buttons disabled while either sync is in progress

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-22 18:25:02 +00:00
backend Add timesheet sync: pull actual hours, daily cron, per-cell source indicators 2026-07-22 18:25:02 +00:00
frontend Add timesheet sync: pull actual hours, daily cron, per-cell source indicators 2026-07-22 18:25:02 +00:00
.env.example Initial commit: HK Planner app 2026-07-02 09:24:14 +00:00
.gitignore Add .gitignore and remove accidentally committed node_modules 2026-07-22 14:19:59 +00:00
docker-compose.yml Fix compose: use default bridge network, match cashup service names 2026-07-02 14:03:33 +00:00
seed-app.js Rename app to Rota Check 2026-07-04 13:19:40 +00:00
workforce-api-docs.md Add sync error logging, extend error flash, fix unload saves 2026-07-22 14:19:38 +00:00