Enhance EffectiveGridBuilder to support background slots and improve scheduling logic
ci / build-backend (push) Successful in 2m37s
ci / build-frontend (push) Successful in 1m11s
ci / tests (push) Successful in 2m31s
ci / sonar (push) Successful in 6m52s

Updated the EffectiveGridBuilder to return an EffectiveGrid containing both scheduled and background slots, allowing for better management of overlapping content. Refactored the ResolveDay method to handle background slots separately, ensuring they fill gaps in the schedule appropriately. Adjusted related components, including GridScheduleGenerator and SchedulePlanner, to accommodate the new structure and improve overall scheduling accuracy. Enhanced documentation and comments for clarity.
This commit is contained in:
Leonid Pershin
2026-07-28 01:06:29 +03:00
parent e0b85807df
commit 7bee84c548
12 changed files with 512 additions and 58 deletions
@@ -139,12 +139,8 @@ public class LayerApplicabilityTests
)
{
var start = from ?? new DateTimeOffset(2026, 3, 17, 12, 0, 0, TimeSpan.Zero);
return EffectiveGridBuilder.Build(
template,
utcOffsetMinutes: 180,
DayStart,
start,
start.AddHours(18)
);
return EffectiveGridBuilder
.Build(template, utcOffsetMinutes: 180, DayStart, start, start.AddHours(18))
.Slots;
}
}