chore: reposition perps components around Market Insights cp-7.69.0#27193
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. |
…und-market-insights
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.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
These are part of the Perps feature surface and connected to Trending/Wallet platform presentation logic. Selected tags:
No changes to controllers, Engine, navigation stack, or shared infra. Scope is UI-level conditional rendering and spacing, so medium risk but limited blast radius. Performance Test Selection: |
|
✅ E2E Fixture Validation — Schema is up to date |
|



Description
Reorders the perps and Market Insights sections on the token details screen so the layout is stable regardless of position state.
Market Insights always stays in the same place, meaning no layout shifts as perps state changes. The discovery banner is demoted to a secondary position so it never pushes informational content down.
Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk UI/layout-only change that reorders Perps components and adjusts spacing; main risk is visual regression on the token details screen when Perps position/loading states change.
Overview
Token details layout is reordered to be stable regardless of Perps position state. When a Perps position exists, the
PerpsPositionCardnow renders above the Market Insights entry card; when no position exists, thePerpsDiscoveryBannerrenders below Market Insights.This introduces a shared
showPerpsSectionguard to centralize Perps render conditions and updates unit tests to mockusePerpsPositionForAssetand assert the new ordering/visibility behavior. Separately, the Market Insights entry card adds bottom spacing (mb-4) for improved visual separation.Written by Cursor Bugbot for commit 08cf77e. This will update automatically on new commits. Configure here.