chore: remove college basketball (CBB) from iOS app
Remove CBB (~5,000+ games per season) to reduce complexity. Changes: - Remove .cbb enum case from Sport - Remove CBB theme color (cbbMint) - Update documentation to reflect 7 supported leagues Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,6 @@ enum Sport: String, Codable, CaseIterable, Identifiable {
|
||||
case mls = "MLS"
|
||||
case wnba = "WNBA"
|
||||
case nwsl = "NWSL"
|
||||
case cbb = "CBB"
|
||||
|
||||
var id: String { rawValue }
|
||||
|
||||
@@ -27,7 +26,6 @@ enum Sport: String, Codable, CaseIterable, Identifiable {
|
||||
case .mls: return "Major League Soccer"
|
||||
case .wnba: return "Women's National Basketball Association"
|
||||
case .nwsl: return "National Women's Soccer League"
|
||||
case .cbb: return "College Basketball"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,7 +38,6 @@ enum Sport: String, Codable, CaseIterable, Identifiable {
|
||||
case .mls: return "soccerball"
|
||||
case .wnba: return "basketball.fill"
|
||||
case .nwsl: return "soccerball"
|
||||
case .cbb: return "basketball.fill"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +50,6 @@ enum Sport: String, Codable, CaseIterable, Identifiable {
|
||||
case .mls: return .green
|
||||
case .wnba: return .purple
|
||||
case .nwsl: return .teal
|
||||
case .cbb: return .mint
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,7 +63,6 @@ enum Sport: String, Codable, CaseIterable, Identifiable {
|
||||
case .mls: return (2, 12) // February - December
|
||||
case .wnba: return (5, 10) // May - October
|
||||
case .nwsl: return (3, 11) // March - November
|
||||
case .cbb: return (11, 4) // November - April (wraps, March Madness)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,7 +82,7 @@ enum Sport: String, Codable, CaseIterable, Identifiable {
|
||||
|
||||
/// Currently supported sports
|
||||
static var supported: [Sport] {
|
||||
[.mlb, .nba, .nfl, .nhl, .mls, .wnba, .nwsl, .cbb]
|
||||
[.mlb, .nba, .nfl, .nhl, .mls, .wnba, .nwsl]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -128,7 +128,6 @@ enum Theme {
|
||||
static let mlsGreen = Color(hex: "00A651")
|
||||
static let wnbaPurple = Color(hex: "FF6F20") // WNBA orange
|
||||
static let nwslTeal = Color(hex: "009688") // NWSL teal
|
||||
static let cbbMint = Color(hex: "3EB489") // College Basketball mint
|
||||
|
||||
// MARK: - Dark Mode Colors
|
||||
|
||||
|
||||
@@ -217,7 +217,6 @@ extension Sport {
|
||||
case .mls: return Theme.mlsGreen
|
||||
case .wnba: return Theme.wnbaPurple
|
||||
case .nwsl: return Theme.nwslTeal
|
||||
case .cbb: return Theme.cbbMint
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user