chore: remove scraper, add docs, add marketing-videos gitignore
- Remove Scripts/ directory (scraper no longer needed) - Add themed background documentation to CLAUDE.md - Add .gitignore for marketing-videos to prevent node_modules tracking Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -17,11 +17,13 @@ import CoreLocation
|
||||
/// - scenarioB: User selects specific games + date range
|
||||
/// - scenarioC: User provides start/end locations, system plans route
|
||||
/// - scenarioD: User follows a team's schedule
|
||||
/// - scenarioE: User selects teams, system finds best trip windows across season
|
||||
enum PlanningScenario: Equatable {
|
||||
case scenarioA // Date range only
|
||||
case scenarioB // Selected games + date range
|
||||
case scenarioC // Start + end locations
|
||||
case scenarioD // Follow team schedule
|
||||
case scenarioE // Team-first (select teams, find trip windows)
|
||||
}
|
||||
|
||||
// MARK: - Planning Failure
|
||||
@@ -568,4 +570,25 @@ struct PlanningRequest {
|
||||
func stadium(for game: Game) -> Stadium? {
|
||||
stadiums[game.stadiumId]
|
||||
}
|
||||
|
||||
// MARK: - Team-First Mode Properties
|
||||
|
||||
/// Teams selected for Team-First mode (resolved from selectedTeamIds)
|
||||
@MainActor
|
||||
var selectedTeams: [Team] {
|
||||
preferences.selectedTeamIds.compactMap { teamId in
|
||||
AppDataProvider.shared.team(for: teamId)
|
||||
}
|
||||
}
|
||||
|
||||
/// All home games for the selected teams (for Team-First mode)
|
||||
/// Filters availableGames to only those where a selected team is the home team
|
||||
var homeGamesForSelectedTeams: [Game] {
|
||||
let selectedIds = preferences.selectedTeamIds
|
||||
guard !selectedIds.isEmpty else { return [] }
|
||||
|
||||
return availableGames.filter { game in
|
||||
selectedIds.contains(game.homeTeamId)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user