Skip to content

fix(ios): remove finished event links from Browse and Search (#13671) - #13675

Open
alexander-bain wants to merge 1 commit into
masterfrom
builder-c/13662-browse-remove-finished-links
Open

alexander-bain wants to merge 1 commit into
masterfrom
builder-c/13662-browse-remove-finished-links

Conversation

@alexander-bain

Copy link
Copy Markdown
Owner

Fixes #13671 (reproduced from #13662 item 8).

What changed

  • ios/Bain Luck/Bain Luck/Views/LeaguesView.swift: removed trailing completed-tournament hub cards (ForEach(hubs.trailing)) from featuredGrid so finished hubs (e.g., US Open) no longer appear on Browse.
  • ios/Bain Luck/Bain Luck/Models/ContainerDiscoveryModels.swift: filtered finished/settled statuses (final, completed, closed, resolved, settled, finished) out of ContainerDiscoveryRequest.entries(in:) so past weeks (e.g., NFL Weeks 4–11) do not surface in Browse Collections.
  • ios/Bain Luck/Bain Luck/Views/SearchView.swift: filtered empty-state Tournaments pills with isBeingPlayed() so finished tournaments are also excluded there.
  • Scope note: updates the iOS source-scan guard frontend/__tests__/ios/browseFeaturedHubOrder.test.ts alongside the Swift change so it asserts ForEach(hubs.leading) and the absence of ForEach(hubs.trailing).

Tests

  • xcodebuild test across BrowseNoFinishedEventLinks13662Tests, BrowseFeaturedHubOrder6444Tests, ContainerDiscoveryContractTests, ContainerDiscoveryViewModelTests, BrowseCollectionsViewStartsItsFirstRead9989Tests, FeaturedTournamentSubtitleTests, BrowseLeagueTileLabelTests, DiscoverCollectionFeed9653Tests: 56/56 passed (0 failures).
  • npx jest --ci __tests__/ios/: 61/61 suites (2089/2089 tests) passed.

Sheet (simulator results, not phone results — 390 pt)

Browse no finished event links at 390pt Light/Dark

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Browse tab links to finished events (US Open and past NFL weeks)

1 participant