fix: restrict By Route wizard to stadium cities and filter sports by selected cities

LocationSearchSheet now shows only stadium cities (with sport badges) when
selecting start/end locations, preventing users from picking cities with no
stadiums. TripWizardViewModel filters available sports to the union of sports
at the selected cities, and clears invalid selections when locations change.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-02-20 22:47:46 -06:00
parent b062ced000
commit a4e9327b18
3 changed files with 202 additions and 40 deletions

View File

@@ -60,6 +60,12 @@ struct TripWizardView: View {
startLocation: $viewModel.startLocation,
endLocation: $viewModel.endLocation
)
.onChange(of: viewModel.startLocation) { _, _ in
viewModel.validateSportsForLocations()
}
.onChange(of: viewModel.endLocation) { _, _ in
viewModel.validateSportsForLocations()
}
}
if viewModel.showTeamFirstStep {