refactor(perps): migrate provider selector UI to MMDS#33363
refactor(perps): migrate provider selector UI to MMDS#33363brianacnguyen wants to merge 6 commits into
Conversation
Use SelectButton, BottomSheet, ListItemSelect, and Tag so home and sheet chrome stay vertically centered without custom badge styles. Co-authored-by: Cursor <cursoragent@cursor.com>
|
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. |
Co-authored-by: Cursor <cursoragent@cursor.com>
Update the order lifecycle view test after MMDS ListItemSelect stopped exposing separate check testIDs. Co-authored-by: Cursor <cursoragent@cursor.com>
…elector sheet Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Tag selection rationale:
The changes are UI refactoring (not logic changes), but the provider selector sheet's visibility mechanism changed significantly (from Performance Test Selection: |
|
⚡ Performance Test Results
✅ All tests passed · 2 tests · 1 device 📱 Devices tested (1)Android: Google Pixel 8 Pro (v14.0) ✅ Passed Tests (2)
Branch: |



Description
The Perps provider selector on home and in the sheet used custom badge/option styles that misaligned Testnet tags and chrome with adjacent heading content. This migrates that UI to MMDS primitives so layout stays vertically centered without a local stylesheet.
What changed:
TouchableOpacitybadge with MMDSSelectButton(Sm/Primary), including a small warning dotstartAccessoryon testnetPerpsProviderSelectorSheetwith MMDSBottomSheet,BottomSheetHeader,ListItemSelect, andTag(Warning / Neutral) for network labelstwClassName="self-center"on home TestnetTagand the selector button so chrome aligns with the heading rowPerpsProviderSelector.styles.tsand the sheet’sisVisibleprop (visibility is owned by navigation / mounting)Changelog
CHANGELOG entry: Fixed vertical alignment of the Perps provider selector and Testnet tags on Perps home and the provider sheet
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/TAT-3564
Manual testing steps
Unit coverage (optional):
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
Low Risk
UI-only refactor in Perps provider selection with no auth, data, or trading logic changes; tests updated for new components.
Overview
Migrates the Perps provider selector (home badge and selection sheet) from custom component-library styling to MMDS primitives, mainly to fix vertical alignment of Testnet tags and selector chrome with the home heading.
The home badge is now an MMDS
SelectButton(with a testnet warning dot asstartAccessory) instead of a customTouchableOpacity+ text/icon row. The sheet uses MMDSBottomSheet,ListItemSelect, andTagfor network labels;PerpsProviderSelector.styles.tsis removed and the sheet no longer takes anisVisibleprop—visibility is navigation/mount-driven.twClassName="self-center"is added on the home Testnet tag and selector for heading-row alignment.Tests are updated for new testIDs,
accessibilityState.selectedinstead of check icons, and the lifecycle flow assertion for aggregated provider selection.Reviewed by Cursor Bugbot for commit 0884e3b. Bugbot is set up for automated code reviews on this repo. Configure here.