fix(perps): watchlist and explore header and list padding fix cp-7.64.0 #25407
fix(perps): watchlist and explore header and list padding fix cp-7.64.0 #25407
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. |
app/components/UI/Perps/components/PerpsWatchlistMarkets/PerpsWatchlistMarkets.styles.ts
Outdated
Show resolved
Hide resolved
app/components/UI/Perps/components/PerpsWatchlistMarkets/PerpsWatchlistMarkets.styles.ts
Outdated
Show resolved
Hide resolved
app/components/UI/Perps/components/PerpsWatchlistMarkets/PerpsWatchlistMarkets.styles.ts
Outdated
Show resolved
Hide resolved
…arrow from watchlist header
| </View> | ||
| {watchlistMarkets.map(renderExploreMarketRow)} | ||
| </View> | ||
| ); |
There was a problem hiding this comment.
Watchlist header tap-to-navigate functionality removed
Medium Severity
The new inline renderWatchlistSection function renders the "Watchlist" header as a plain View, but the previous PerpsWatchlistMarkets component used a TouchableOpacity with an onPress handler that navigated to Routes.PERPS.MARKET_LIST. Users could tap the watchlist header to view all markets. This navigation functionality is now missing entirely in the PerpsTabView, as the header is no longer interactive.
Additional Locations (1)
| </View> | ||
| ), | ||
| [styles.header, styles.titleRow, handleViewAll, headerStyle], | ||
| [styles.header, headerStyle], |
There was a problem hiding this comment.
Shared component lost clickable header navigation functionality
Medium Severity
The PerpsWatchlistMarkets component's header was changed from a pressable TouchableOpacity (with arrow icon and navigation to market list) to a non-interactive View. While PerpsTabView now uses inline rendering and doesn't rely on this component, PerpsHomeView still uses PerpsWatchlistMarkets directly. This removes the ability for users to tap the "Watchlist" header to navigate to the full market list in PerpsHomeView. The PR description mentions font weight and padding changes but not this functional regression.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
All changes are contained within the Perps UI components with no functional/business logic changes. The SmokePerps tag is the appropriate choice as it covers the Perps trading functionality including the Add Funds flow, balance verification, and Perps interface. No other features are affected by these changes. Performance Test Selection: |
gambinish
left a comment
There was a problem hiding this comment.
LGTM! Thanks for working through this
| justifyContent: 'space-between', | ||
| alignItems: 'center', | ||
| paddingVertical: 6, | ||
| paddingVertical: 16, |
There was a problem hiding this comment.
Unused explore market row styles after refactoring
Low Severity
The styles exploreMarketRow, exploreMarketLeft, exploreMarketIcon, exploreMarketInfo, exploreMarketHeader, exploreMarketSecondRow, exploreMarketRight, exploreMarketPrice, and exploreMarketChange are now dead code. These were used by the removed renderExploreMarketRow function, which was replaced with PerpsMarketRowItem. The styles remain defined but are never referenced anywhere in the codebase.
| alignItems: 'center', | ||
| paddingHorizontal: 16, | ||
| marginBottom: 8, | ||
| marginBottom: 12, |
There was a problem hiding this comment.
Unused titleRow style in PerpsWatchlistMarkets
Low Severity
The titleRow style is now dead code after the header was simplified from a pressable TouchableOpacity with nested content and chevron icon to a simple View with just text. The style definition remains but styles.titleRow is never referenced in PerpsWatchlistMarkets.tsx.
|




Description
Fix header font weight to match Figma design specs (500 Medium instead of 700
Bold)
presence)
parent)
Changes
Font Weight:
TextVariant.BodyLGMedium
Dynamic Header Padding:
watchlist)
Padding Cleanup:
parent)
Changelog
CHANGELOG entry: Fix watchlist and explore header and list padding
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk UI-only changes adjusting layout/typography and swapping
PerpsTabViewto inline-render watchlist rows; no business logic or data flow changes beyond presentation.Overview
Adjusts the Perps wallet-home tab layout to match design specs by standardizing header typography (
TextVariant.BodyLGMedium) and tuning spacing (dynamic watchlist/explore header padding based on balance visibility and watchlist presence, larger row vertical padding, and horizontal margins for the “See all perps” button).PerpsTabViewno longer usesPerpsWatchlistMarketsin the empty state; it now renders watchlist rows inline viaPerpsMarketRowItemwith a local skeleton state. Shared section components (PerpsHomeSection,PerpsMarketTypeSection,PerpsWatchlistMarkets) also get minor header spacing tweaks, and tests are updated to mock the new dependencies.Written by Cursor Bugbot for commit a86ce7e. This will update automatically on new commits. Configure here.