fix(planning): prioritize complete holiday weeks

This commit is contained in:
nessar committed 2026-08-30 17:16:30 +02:00
1 parent 5a81e38b95
commit 31314f3969
7 files changed
+355 -25

No files matched your search

@@ -38,6 +38,7 @@ const plan: PlanOutcome = {
remainingBalances: [],
metrics: {
unplacedAtRisk: 0,
holidayWeekValue: 0,
nonWorkingDayGain: 0,
longestWorkSequence: 0,
shortSequenceDeficit: 0,
@@ -46,6 +46,7 @@ export class CalendarYear {
if (stage === 'obligations') return 20;
if (stage === 'at-risk') return 35;
if (stage.startsWith('preference:')) return 50;
if (stage === 'holiday-week-value') return 58;
if (stage === 'non-working-day-gain') return 65;
if (stage === 'longest-work-sequence') return 72;
if (stage === 'short-sequence-deficit') return 79;