fix(predict): add extended sports market support for more leagues cp-7.79.0#30559
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. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Key changes:
Tag selection rationale:
Performance Test Selection: |
|



Description
Adds Predict live sports and extended-market support for additional basketball, baseball, hockey, soccer, and tennis leagues. This expands league parsing and supported flag filtering so newly enabled Polymarket game events can render as game detail experiences instead of generic markets.
This also fixes several extended sports details issues found while validating the new leagues:
seriesand team metadata when ATP/WTA/ITF events only include generic tennis tags.Game Linesand1st Setgroups.Changelog
CHANGELOG entry: Added support for additional Predict sports leagues and extended sports market details.
Related issues
Fixes: PRED-925 https://consensyssoftware.atlassian.net/browse/PRED-925
Manual testing steps
Automated testing
node .yarn/releases/yarn-4.14.1.cjs jest app/components/UI/Predict/utils/gameParser.test.ts app/components/UI/Predict/constants/sports.test.ts app/components/UI/Predict/providers/polymarket/utils.test.ts app/components/UI/Predict/components/PredictActionButtons/PredictActionButtons.test.tsx app/components/UI/Predict/components/PredictGameChart/PredictGameChart.test.tsx app/components/UI/Predict/components/PredictGameChart/PredictGameChart.wrapper.test.tsx app/components/UI/Predict/components/PredictGameDetailsContent/PredictGameDetailsTabsContent.test.tsx app/components/UI/Predict/components/PredictGameDetailsContent/PredictGameOutcomesTab.test.tsx app/components/UI/Predict/components/PredictMarketSportCard/PredictMarketSportCard.test.tsxnode .yarn/releases/yarn-4.14.1.cjs lint:tscScreenshots/Recordings
Before
N/A - no recordings attached in this local PR draft.
After
N/A - no recordings attached in this local PR draft.
Pre-merge author checklist
Performance checks (if applicable)
For performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Medium Risk
Medium risk because it changes how sports leagues are detected/whitelisted and how UI components select outcome tokens (primary moneyline vs extended markets), which can affect navigation, pricing subscriptions, and displayed teams across multiple sport experiences.
Overview
Extends Predict live/extended sports support to additional leagues (WNBA/MLB/NHL and tennis
atp/wta/itf), including updated league whitelisting/types and more robust league detection from eventseries/team metadata when tags are missing.Standardizes "primary" moneyline selection via
getPrimaryMoneylineOutcomes, and updates the footer buttons, market sport cards, and game charts to ignore non-moneyline extended outcomes (especially for draw-capable leagues) and to map tennis/home-away tokens to the correct team labels/colors.Improves game details UX by routing outcomes-tab buys through the shared
onBetPressbottom-sheet flow (instead of navigation) and reserving chart height only while loading to avoid layout jump; adds tennis group ordering/labels (e.g.,first_set) and corresponding i18n strings.Reviewed by Cursor Bugbot for commit c2a0122. Bugbot is set up for automated code reviews on this repo. Configure here.