chore(predict): add world cup tab to main predict feed#30205
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 9d708fe. Configure here.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Key changes:
Tag selection rationale:
No other tags are needed as changes are entirely self-contained within the Predict feature area and don't touch shared infrastructure, navigation, controllers, or other wallet features. Performance Test Selection: |
|




Description
This PR adds the World Cup tab to the main Predict feed behind the existing
predictWorldCup.enabled && showMainFeedTabconfiguration.It does this by:
world-cupas a Predict tab/category key and rendering it before Hot and Trending when enabledFeedTab, so Hot and World Cup can coexist without special casing Hot inPredictFeedbuildPredictWorldCupAllQueryfor the main feed World Cup tab so it mirrors the dedicated World Cup screen All tab market universeAutomated coverage was added or updated for tab injection/order, disabled behavior, custom query params, and World Cup event query generation.
Verified with:
yarn jest app/components/UI/Predict/hooks/usePredictTabs.test.tsyarn jest app/components/UI/Predict/views/PredictFeed/PredictFeed.test.tsxyarn jest app/components/UI/Predict/providers/polymarket/utils.test.tsChangelog
CHANGELOG entry: Added a World Cup tab to the Predict feed when enabled.
Related issues
Fixes: PRED-874
Manual testing steps
Screenshots/Recordings
Screen.Recording.2026-05-14.at.16.35.35.mov
Before
N/A
After
To be added after manual testing.
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Medium Risk
Changes tab composition and Polymarket event query generation for new
world-cupcategory, which can affect which markets are fetched and shown when feature flags/deeplinks are used.Overview
Adds a new
world-cupcategory/tab to the main Predict feed (gated byselectPredictWorldCupMainFeedTabEnabledFlag), rendered ahead of Hot/Trending and selectable via deeplink when available.Refactors tab handling so each
FeedTabcarries optionalcustomQueryParams, letting Hot and World Cup supply their own Polymarket query strings withoutPredictFeedspecial-casing.Updates
fetchEventsFromPolymarketApito treat Hot and World Cup as exact-query categories (skip default liquidity/volume filters whencustomQueryParamsare provided) and adds a World Cup default query fallback usingPREDICT_WORLD_CUP_DEFAULT_TAG_SLUG. Tests are expanded acrossusePredictTabs,PredictFeed, and Polymarket utils to cover ordering, deeplink fallback when tabs are hidden, and query param behavior.Reviewed by Cursor Bugbot for commit 94108b7. Bugbot is set up for automated code reviews on this repo. Configure here.