chore: related assets pills with price change cp-7.78.0#30259
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 59d293d. Configure here.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Key impact areas:
No E2E tests directly reference WhatsHappening — there are no dedicated WhatsHappening E2E test files. The impact is indirect through the Trending and Perps views that embed this component. Changes are UI/component level — new components (AssetPill, AssetSlider, CardSkeleton) and modifications to existing ones. The risk is medium since these are feature-level UI changes that don't touch core infrastructure, but they do affect visible surfaces in Trending and Perps views that have E2E coverage. Performance Test Selection: |
|




Description
Adds the related assets as pills with price variation, in a sliding carousel. When the user taps a pill, it will redirect to the asset perps page.
Also fires the segment
WHATS_HAPPENING_INTERACTED/related_asset_pressedanalytics event on tap.Simulator.Screen.Recording.-.iPhone.17.Pro.-.2026-05-15.at.15.09.51.mov
Changelog
CHANGELOG entry: null
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
Adds new interactive UI inside the
What's Happeningcarousel that subscribes to live perps price streams and triggers trade navigation + analytics on tap, which can impact performance and event accuracy if miswired.Overview
Adds a horizontal “related assets” pill slider to each
WhatsHappeningCard, replacing the prior single “<symbol> +N” label and moving the date display to the top row alongside the impact badge.Each pill can optionally show 24h % change from live perps prices, and when tradable is pressable to open perps trade navigation while emitting a new analytics interaction type
related_asset_pressed(MetaMetricsEvents.WHATS_HAPPENING_INTERACTED).To support live pricing, the homepage
WhatsHappeningSectioncarousel is now wrapped inPerpsStreamProvider, anduseWhatsHappeningAssetPricesis refactored to acceptRelatedAsset[]directly (with tests updated/added for the new pill/slider behavior and updated skeleton layout).Reviewed by Cursor Bugbot for commit 77b44dd. Bugbot is set up for automated code reviews on this repo. Configure here.