chore: UI improvements in expanded card#29918
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 09fdbcb. Configure here.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
The locales change adds two new strings (related_assets, whats_happening_ai) used in the WhatsHappeningExpandedCard, which is a UI-only change. No E2E tests currently exist specifically for WhatsHappening, so these tags cover the closest related functionality. The changes are medium risk - they're new UI components with perps integration but don't touch core infrastructure. Performance Test Selection: |
|




Description
The expanded “What’s happening” cards now treat every related asset as a perps market: a single Markets section with Trade only, live prices from the perps stream, verified badge when caip19 + flags allow, and TokenRow removed.
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
Medium risk because it changes expanded card behavior and starts a perps WebSocket price subscription in
WhatsHappeningDetailView, which can affect performance/render frequency and trade CTA visibility.Overview
Updates the expanded “What’s happening” detail cards to treat all
relatedAssetsas perps markets. The card now shows a singleRelated Assetssection withTrade-only rows (noBuyflow) and hides the CTA when an asset has nohlPerpsMarket.Adds live perps price + 24h % change display per asset via a new
useWhatsHappeningAssetPriceshook (deduped symbols, 3s throttling) and wraps the detail view inPerpsStreamProviderto enable the stream. UI polish includes an AI pill next to the impact badge, a bottom fade gradient hint for scrollable content, and a pill-shaped active dot inPageIndicator.Cleans up by removing
TokenRowand adding unit tests for the new/updated components and formatting utilities, plus new i18n strings (related_assets,whats_happening_ai).Reviewed by Cursor Bugbot for commit 36e1821. Bugbot is set up for automated code reviews on this repo. Configure here.