fix(predict): route Popular Today to Trending#33373
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:
Tag selection rationale:
No other areas (accounts, swaps, browser, snaps, network, etc.) are affected by these changes. Performance Test Selection: |
🧪 Flaky unit test detectionRun history flaky detectionHistorical failure rate is a hint, not proof — review each suggestion in context. See the flaky-test-detection skill for the full pattern reference and manual audit workflow. Failures / runs sampled per window:
AI-detected flaky patterns
|
|



Description
Popular Today and Trending exposed overlapping prediction-market content through separate pages in the feature-flagged Predict homepage redesign. This removes the standalone Popular Today feed and routes its header and topic tags to Trending. Topic selections are passed as the initial Trending filter so the chosen topic remains selected after dynamic filters load. Existing
feed=popular-todaydeeplinks also redirect to Trending while the redesign flag is enabled and retain the legacy market-list fallback while it is disabled.Changelog
CHANGELOG entry: Opened Popular Today topics in Trending and removed the duplicate Popular Today page
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/PRED-1087
Manual testing steps
Screenshots/Recordings
Before
N/A - No recording was captured; this change only updates navigation between existing Predict screens.
After
N/A - No recording was captured; this change introduces no visual UI changes.
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
Low Risk
Navigation and feed-registry consolidation only; no auth, payments, or new data paths. Deeplink behavior is gated on the existing home redesign flag.
Overview
Removes the duplicate
popular-todayfeed fromPREDICT_FEED_IDSandPREDICT_FEED_REGISTRYso Predict only exposes Sports, Politics, Crypto, Live, and Trending as config-driven feeds.The home Popular today rail is unchanged visually but now opens Trending (
feedId: 'trending'), passinginitialFilterIdwhen a chip is tapped so the topic stays selected after dynamic filters load. Filter options are sourced from the trending registry entry (shared React Query cache with the full Trending feed).feed=popular-todaydeeplinks map to Trending with the samefilterparam when the home redesign flag is on; with the flag off they still fall back to the legacy market list. Tests and docs/comments are updated accordingly.Reviewed by Cursor Bugbot for commit f380479. Bugbot is set up for automated code reviews on this repo. Configure here.