refactor(ramp): use MMDS HeaderStandard#29705
Conversation
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. |
|
Skipping sonar cloud since this is a simple direct replacement |
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 66a8c6a. Configure here.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: The changes affect:
The risk is medium because while the change is a straightforward component swap, SmokeMoney is the correct tag as it directly covers the Ramp/fiat on-ramp flows (buy, sell, deeplinks, card flows, region-aware flows) that are all affected by this header component change. No other tags are needed since this is purely a Ramp UI component migration with no impact on confirmations, swaps, or other wallet flows. Performance Test Selection: |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #29705 +/- ##
==========================================
+ Coverage 81.54% 81.86% +0.32%
==========================================
Files 5343 5434 +91
Lines 142128 144898 +2770
Branches 32411 33093 +682
==========================================
+ Hits 115899 118623 +2724
+ Misses 18299 18166 -133
- Partials 7930 8109 +179 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
|
Can we add some screenshot to be sure there are no design regressions? |
amitabh94
left a comment
There was a problem hiding this comment.
Approving as this is the direct replacement of the component.



Description
This PR replaces the temporary
HeaderCompactStandardcomponent withHeaderStandardfrom@metamask/design-system-react-nativeacross the Ramp (buy / sell / on-ramp) and Deposit flows, including aggregator screens, selector bottom sheets, checkout and build-quote flows, native verification screens, and assorted Ramp modals.Reason: Align Ramp UI with the MetaMask design system and reduce reliance on
component-library/components-tempfor standard headers.Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/DSYS-702
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
Broad UI refactor across many Ramp/Deposit screens swaps out a core navigation header component, which could cause subtle regressions in back/close behavior, spacing (safe area insets), or test selectors despite minimal logic changes.
Overview
Migrates Ramp (aggregator + unified) and Deposit flows from the temporary
HeaderCompactStandardto design-systemHeaderStandardacross screens and bottom-sheet modals, standardizing header rendering and props foronBack/onClose, titles, and top inset handling.Updates affected tests to match the new header implementation (notably switching assertions from
headerto the new back/close button test ids such asbutton-icon).Reviewed by Cursor Bugbot for commit df0d668. Bugbot is set up for automated code reviews on this repo. Configure here.