feat(planning): ship holiday-aware planning and assistant upgrades

This commit is contained in:
2026-03-28 22:49:28 +01:00
parent 2a005794e7
commit 4f48afe7b4
151 changed files with 17738 additions and 1940 deletions
@@ -113,7 +113,7 @@ describe("getRecurringHoursForDay", () => {
it("returns 0 before pattern startDate", () => {
const patternWithStart: RecurrencePattern = {
...weeklyPattern,
startDate: new Date("2026-03-16"),
startDate: "2026-03-16",
};
expect(getRecurringHoursForDay(monday, patternWithStart, 8, allocationStart)).toBe(0);
});
@@ -121,7 +121,7 @@ describe("getRecurringHoursForDay", () => {
it("returns 0 after pattern endDate", () => {
const patternWithEnd: RecurrencePattern = {
...weeklyPattern,
endDate: new Date("2026-03-08"),
endDate: "2026-03-08",
};
expect(getRecurringHoursForDay(monday, patternWithEnd, 8, allocationStart)).toBe(0);
});
@@ -129,8 +129,8 @@ describe("getRecurringHoursForDay", () => {
it("returns hours within pattern date bounds", () => {
const bounded: RecurrencePattern = {
...weeklyPattern,
startDate: new Date("2026-03-01"),
endDate: new Date("2026-03-31"),
startDate: "2026-03-01",
endDate: "2026-03-31",
};
expect(getRecurringHoursForDay(monday, bounded, 8, allocationStart)).toBe(8);
});