refactor(Predict): remove temporary BTC up/down row flag and update imports cp-7.80.0 #30754
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 452665b. Configure here.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
SmokePredictions: Directly impacted — the Predictions section UI now renders a live BTC row unconditionally, changing the component's behavior and navigation flow. No changes to core controllers, Engine, navigation infrastructure, or other shared components that would warrant broader test coverage. The changes are scoped to the Predictions feature area. Performance Test Selection: |

Description
Enables the live BTC 5-minute up/down row in the Predict homepage discovery section (HomepagePredictWorldCupDiscovery).
The row was previously gated behind a temporary SHOW_BTC_UP_DOWN_5M_ROW kill switch while waiting on the shared useCurrentCryptoUpDownMarketData hook. That hook is now wired up, so the row shows live BTC spot price, price-to-beat, and a countdown. Tapping the row opens the active BTC market details when available; otherwise it falls back to the crypto category market list.
Why: Surface live crypto up/down markets on the homepage discovery treatment and remove dead placeholder/TODO wiring.
Changes:
Changelog
CHANGELOG entry: Added a live BTC up/down row to the Predict homepage discovery section with real-time price, price-to-beat, and countdown.
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
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
User-visible homepage Predict navigation and live market data depend on external feeds; misconfiguration could send users to the wrong market or show stale prices, but scope is limited to discovery UI.
Overview
Removes the temporary
SHOW_BTC_UP_DOWN_5M_ROWkill switch and turns on the BTC 5-minute up/down discovery row on the Predict homepage.HomepagePredictWorldCupDiscoverynow loads live window data viauseCurrentCryptoUpDownMarketData(seriesBTC_UP_OR_DOWN_5M_SERIES, gated byselectPredictEnabledFlag) and always rendersBtcLiveRowwith spot price, price-to-beat, and countdown. Tapping the row opens the active market throughnavigateToMarketDetailswhenbtcMarketIdexists (includingtransactionActiveAbTestswhen present); otherwise it still navigates to the crypto market list. Placeholder constants and commented TODO wiring are deleted.PredictionsSection.test.tsxmocksuseCurrentCryptoUpDownMarketDataso tests stay stable without live market data.Reviewed by Cursor Bugbot for commit 3e187e4. Bugbot is set up for automated code reviews on this repo. Configure here.