fix: delete-account timezone resilience test + timezone admin UI #289
No reviewers
Labels
No labels
agent:hermes
bug
chore
dependency
feature
status:blocked
status:in-progress
status:needs-info
status:needs-review
status:ready
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
owlburtoe/Shiftd!289
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "worktree-fix+timezone-test-and-ui"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
apps/backend/src/lib/jobs/__tests__/delete-account.test.ts): Integration test forexecuteDeleteAccountthat seeds a department with an invalid IANA timezone via direct DB write (bypassing the API validator), creates a future shift + assignment, and asserts the job completes without throwing (UTC fallback kicks in). Also adds a no-op/cancellation path test.apps/frontend/src/components/settings/OrganizationSection.tsx): Adds a department timezone select to Settings → Organization. UsesIntl.supportedValuesOf('timeZone')grouped by region, wired into bothhandleLocationSaveandhandleDefaultsSave. Timezone is now editable byadmin/department_adminand tracked inisLocationDirty. Backend already validates the IANA value (PUT /api/config/department→timezoneSchema).Closes two open bugs from
TODO.md:delete-accountjob-path resilience test for invalid dept timezoneTest plan
pnpm test:backend:db -- --testPathPattern=delete-account— 2 new tests passpnpm --filter icu-schedule-app check-types— no TS errorsPUT /api/config/department, success toast fires