Stabilize beta release with warning cleanup and edge-case fixes

This commit is contained in:
Trey t
2026-02-22 13:18:14 -06:00
parent fddea81e36
commit ec2bbb4764
55 changed files with 712 additions and 315 deletions

View File

@@ -298,16 +298,9 @@ final class ScenarioBPlanner: ScenarioPlanner {
to: lastGameDate
).day ?? 0
// If selected games span more days than trip duration, can't fit
// If selected games span more days than trip duration, no valid window exists.
if gameSpanDays >= duration {
// Just return one window that exactly covers the games
let start = firstGameDate
let end = Calendar.current.date(
byAdding: .day,
value: gameSpanDays + 1,
to: start
) ?? lastGameDate
return [DateInterval(start: start, end: end)]
return []
}
// Generate sliding windows