fix(ramp): replace deposit header close button with back button#25126
fix(ramp): replace deposit header close button with back button#25126
Conversation
- Replace settings icon + close button pattern with single back button - Move configuration (settings) icon to right side of header - Update testID from deposit-close-navbar-button to deposit-back-navbar-button - Update tests to reflect new back button behavior Fixes first action item of MDP-274
|
Skipping sonar could issues from existing code |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsThe changes in this PR are specifically scoped to the Ramp (on-ramp/off-ramp) feature navigation. The main code change is in Key changes:
All the snapshot updates and test changes are in the Ramp/Aggregator and Ramp/Deposit directories, confirming the scope is limited to the Ramps feature. The unit tests were updated to use the new testID ( While the Navbar component is widely used across the app, the specific function modified ( |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #25126 +/- ##
========================================
Coverage 79.88% 79.89%
========================================
Files 4245 4253 +8
Lines 109107 109279 +172
Branches 22820 22871 +51
========================================
+ Hits 87164 87307 +143
- Misses 15891 15914 +23
- Partials 6052 6058 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
|
Missing release label release-7.64.0 on PR. Adding release label release-7.64.0 on PR and removing other release labels(release-7.65.0), as PR was added to branch 7.64.0 when release was cut. |




Description
This PR addresses the first action item of MDP-274 - "Deposit: page header revisions".
Problem
The Deposit page header had incorrect and misaligned button icons:
showConfigurationwas enabledThis pattern was inconsistent with standard navigation patterns and the updated design requirements.
Solution
Updated
getDepositNavbarOptionsinapp/components/UI/Navbar/index.jsto:onClosecallbackshowConfigurationis enabledChanges Made
Core navbar function (
Navbar/index.js):getDepositNavbarOptionsto show back button on left whenshowBack || showClosecloseButtonPropsdeposit-back-navbar-buttonfor the back buttondeposit-close-navbar-buttontestIDDeposit views:
BuildQuote.tsx: Simplified options (removed explicitshowBack: false, showClose: true)DepositOrderDetails.tsx: RemovedshowClose: falseAggregator views (also use
getDepositNavbarOptions):OrderDetails.tsx: RemovedshowClose: falseSendTransaction.tsx: RemovedshowClose: falseTest updates:
BuildQuote.test.tsxandQuotes.test.tsxto use new testIDpop: mockPopto navigation mocksSnapshot updates:
Changelog
CHANGELOG entry: fix: Updated Deposit page header to use back button instead of close button
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/MDP-274 (first action item)
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Aligns Deposit and Aggregator headers with standard navigation.
getDepositNavbarOptionsto show back button whenshowBack || showClose; settings icon now on the right viacloseButtonPropsdeposit-back-navbar-buttontestID; removesdeposit-close-navbar-buttonshowClose);BuildQuotekeeps configuration via right-side buttonpop; adjusts navigation mocksWritten by Cursor Bugbot for commit 4cba5b0. This will update automatically on new commits. Configure here.