fix: Reorged whatshappeningsection to prevent shift on bottomsheet opening - #34579
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. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #34579 +/- ##
==========================================
+ Coverage 85.12% 85.14% +0.01%
==========================================
Files 6350 6390 +40
Lines 173080 174053 +973
Branches 42804 43146 +342
==========================================
+ Hits 147333 148195 +862
- Misses 15708 15736 +28
- Partials 10039 10122 +83 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Per SmokePerps description: "also select SmokeWalletPlatform (Trending section)" — both tags are required together. No text/label changes that would break E2E selectors. No logic changes. The risk is low but the structural change warrants validation of the affected UI areas. Performance Test Selection: |
|



Description
On Perps home, tapping the AI Generated info icon next to What's Happening briefly pushed the Watchlist section downward. The AI disclaimer bottom sheet was mounted as a sibling inside the section
Boxthat usesgap: 12, so opening it inserted an extra flex child and added layout space above Watchlist.This PR mounts
MarketInsightsDisclaimerBottomSheetoutside the gapped section content (for both Perps and Explore paths), matching how other screens render this sheet at the root level so the Modal host no longer participates in section layout.What changed:
WhatsHappeningSectionrenders the AI disclaimer sheet as a sibling of the section contentBox, not inside itChangelog
CHANGELOG entry: Fixed What's Happening AI disclaimer opening causing the Watchlist section to shift down on Perps home
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/DSYS-1046?atlOrigin=eyJpIjoiMzgzNGNlNWJlNGM5NDdiOGJkZGMxNjFjZmU0YzVmODUiLCJwIjoiamlyYS1zbGFjay1pbnQifQ
Manual testing steps
yarn jest app/components/UI/WhatsHappening/WhatsHappeningSection.test.tsxScreenshots/Recordings
Before
ScreenRecording_07-31-2026.11-07-30_1.MP4
After
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2026-08-10.at.17.24.26.mov
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
Localized layout/structure change in one UI component with no auth, data, or business-logic impact.
Overview
Fixes a layout jump on Perps home when users tap the AI Generated info icon: Watchlist no longer shifts down while the disclaimer opens.
WhatsHappeningSectionnow rendersMarketInsightsDisclaimerBottomSheetas a sibling of the section contentBox, not inside it. On the Perps path thatBoxusesgap: 12, so mounting the sheet inside it added an extra flex child and extra space above Watchlist when visible. Explore and Perps both return a fragment: gappedBox(header + carousel) plus the sheet outside, consistent with other screens that host this modal at the root.Reviewed by Cursor Bugbot for commit 674f851. Bugbot is set up for automated code reviews on this repo. Configure here.