-
Notifications
You must be signed in to change notification settings - Fork 5.5k
feat: Remove legacy Ramps card and AssetListFundingModals components #37290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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. |
✨ Files requiring CODEOWNER review ✨👨🔧 @MetaMask/core-extension-ux (5 files, +0 -77)
🔒 @MetaMask/extension-security-team (1 files, +0 -12)
💎 @MetaMask/metamask-assets (4 files, +0 -141)
👨🔧 @dbrans (1 files, +0 -12)
👨🔧 @HowardBraham (1 files, +0 -12)
|
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [97a437c]
UI Startup Metrics (1296 ± 94 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
97a437c to
ad19ec7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removing unused locales
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This component is no longer needed as we are using the BalanceEmptyState on the homepage
| store, | ||
| ); | ||
| }; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing unit tests that check for RampsCard component in the asset list
| {showDetectedTokens && ( | ||
| <DetectedToken setShowDetectedTokens={setShowDetectedTokens} /> | ||
| )} | ||
| <AssetListFundingModals /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing AssetListFundingModals which includes the RampsCard from the assets list
| } from '../../../selectors/transactions'; | ||
| import { getCurrentChainId } from '../../../../shared/modules/selectors/networks'; | ||
| import { | ||
| getCurrentNetwork, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing RampsCard from transactions list in favour of the BalanceEmptyState component
| @import 'notifications-settings-box'; | ||
| @import 'notifications-tag-counter'; | ||
| @import 'toast'; | ||
| @import "ramps-card"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing deleted CSS file import
| > | ||
| Your activity | ||
| </h4> | ||
| <div |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating snapshots
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [bb2eeb3]
UI Startup Metrics (1256 ± 74 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
38e0064 to
cabd1d7
Compare
| [ | ||
| "ui/components/app/assets/asset-list/asset-list-funding-modals/asset-list-funding-modals.tsx", | ||
| "ui/components/app/assets/asset-list/asset-list-funding-modals/index.ts", | ||
| "ui/components/app/assets/asset-list/asset-list.tsx", | ||
| "ui/components/app/assets/asset-list/index.ts", | ||
| "ui/components/multichain/account-overview/account-overview-eth.tsx", | ||
| "ui/components/multichain/account-overview/account-overview-layout.tsx", | ||
| "ui/components/multichain/account-overview/account-overview-tabs.tsx", | ||
| "ui/components/multichain/account-overview/account-overview.tsx", | ||
| "ui/components/multichain/account-overview/index.js", | ||
| "ui/components/multichain/index.js" | ||
| ], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating development/circular-deps.jsonc to remove deleted files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay!!!!
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [cabd1d7]
UI Startup Metrics (1281 ± 91 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
cabd1d7 to
dfc1328
Compare
|
Great catch @amandaye0h! Removed here dfc1328 |
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [dfc1328]
UI Startup Metrics (1284 ± 94 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
HowardBraham
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving just the circular dependency reduction


Description
This PR removes the legacy Ramps card and AssetListFundingModals components as part of implementing the new BalanceEmptyState component. These legacy components provided funding options (buy/receive) when users had zero balance, but are now being replaced by a more integrated and streamlined BalanceEmptyState component.
Components Removed:
Key Changes:
AssetListFundingModalscomponent and related filesRampsCardcomponent, including tests, stories, and stylesBenefits:
This cleanup is essential preparation for the BalanceEmptyState implementation, which provides a more cohesive and user-friendly approach to handling empty wallet states.
Changelog
CHANGELOG entry: Removed legacy funding card components in preparation for improved empty state experience
Related issues
Part of BalanceEmptyState component implementation
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Removes legacy funding UI (RampsCard and AssetListFundingModals) and all references, tests, styles, circular-deps, and i18n strings tied to these components.
ui/components/multichain/ramps-card/*(component, index, styles, stories, tests).ui/components/app/assets/asset-list/asset-list-funding-modals/*and its test.asset-list.tsx,transaction-list.component.js, andunified-transaction-list.component.js(including zero-balance/ramps logic and imports).@import "ramps-card"frommultichain-components.scssand deleteramps-cardstyles.fundingMethod,tipsForUsingAWallet, andtipsForUsingAWalletDescriptionmessages across multiple localemessages.jsonfiles.development/circular-deps.jsonc.Written by Cursor Bugbot for commit dfc1328. This will update automatically on new commits. Configure here.