Restore Live shelf on Today, flatten Feed to time-ordered highlights
Today tab: Removed LiveSituationBar, restored the full Live game shelf below the featured Astros card where it belongs. Feed tab: Changed from two grouped shelves (condensed / highlights) to a single horizontal scroll with ALL highlights ordered by timestamp (most recent first). Added condensed game badge overlay on thumbnails. Added date field to Highlight model for time-based ordering. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -121,25 +121,6 @@ struct DashboardView: View {
|
||||
}
|
||||
.padding(.top, 80)
|
||||
} else {
|
||||
// Live situation bar — compact strip of all live games
|
||||
if !viewModel.liveGames.isEmpty {
|
||||
VStack(alignment: .leading, spacing: 12) {
|
||||
HStack(spacing: 8) {
|
||||
LiveIndicator()
|
||||
Text("LIVE NOW")
|
||||
.font(DS.Fonts.caption)
|
||||
.foregroundStyle(DS.Colors.live)
|
||||
.kerning(1.5)
|
||||
}
|
||||
.padding(.horizontal, 4)
|
||||
|
||||
LiveSituationBar(games: viewModel.liveGames) { game in
|
||||
selectedGame = game
|
||||
}
|
||||
.padding(.horizontal, -horizontalPadding)
|
||||
}
|
||||
}
|
||||
|
||||
// Hero featured game
|
||||
if let featured = viewModel.featuredGame {
|
||||
FeaturedGameCard(game: featured) {
|
||||
@@ -147,6 +128,9 @@ struct DashboardView: View {
|
||||
}
|
||||
}
|
||||
|
||||
if !viewModel.liveGames.isEmpty {
|
||||
gameShelf(title: "Live", icon: "antenna.radiowaves.left.and.right", games: viewModel.liveGames, excludeId: viewModel.featuredGame?.id)
|
||||
}
|
||||
if !viewModel.scheduledGames.isEmpty {
|
||||
gameShelf(title: "Upcoming", icon: "calendar", games: viewModel.scheduledGames, excludeId: viewModel.featuredGame?.id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user