Repository navigation
chore: removed old token import modal - #43712
Conversation
✨ Files requiring CODEOWNER review ✨👨🔧 @MetaMask/core-extension-ux (10 files, +1 -2395)
👨🔧 @MetaMask/extension-platform (1 files, +2 -2)
🕵️ @MetaMask/extension-privacy-reviewers (1 files, +0 -1)
💎 @MetaMask/metamask-assets (25 files, +17 -1604)
🧪 @MetaMask/qa (3 files, +104 -152)
🔄 @MetaMask/swaps-engineers (5 files, +0 -170)
|
Builds ready [c14b4da]
⚡ Performance Benchmarks (Total: 🟢 14 pass · 🟡 10 warn · 🔴 1 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [0404882] [reused from c14b4da]
⚡ Performance Benchmarks (Total: 🟢 14 pass · 🟡 10 warn · 🔴 1 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [8009e13]
⚡ Performance Benchmarks (Total: 🟢 17 pass · 🟡 8 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [0943e81]
⚡ Performance Benchmarks (Total: 🟢 15 pass · 🟡 10 warn · 🔴 0 fail)
Bundle size diffs [🚀 Bundle size reduced!]
|
|
LGTM ! |
Co-authored-by: Cursor <cursoragent@cursor.com>
bef9a59
|
Builds ready [bef9a59]
⚡ Performance Benchmarks (Total: 🟢 14 pass · 🟡 10 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|



This PR is to remove the token import old flow. We have added the new flow with token-management page.
Description
Changelog
CHANGELOG entry: removed old token import flow
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/CEUX-1047
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Touches persisted app state via a new migration and removes a full user-facing import path; regression risk is mainly around token import/add and e2e coverage, not auth or funds logic.
Overview
Removes the legacy import-tokens modal flow now that token add/import goes through the Manage Tokens / token-management experience.
UI and state: Drops import-token modal components and related swaps/import-token pages from the migration dashboard list, and adds migration 216 to strip obsolete
importTokensModalOpenfrom persistedAppStateControllerstate. Fixtures and metrics snapshots move to storage version 216.i18n: Deletes unused message keys tied to the old flow (e.g.
importTokenQuestion,customToken,mustSelectOne,enhancedTokenDetectionAlertMessage) across locale files.E2E:
TokensTabpage object now drives Manage Tokens (search toggles, custom token import page, back navigation) instead ofimport-tokens-modalselectors. Token-related specs setextensionUxTokenManagementFilter: trueso tests align with the new UI.Reviewed by Cursor Bugbot for commit bef9a59. Bugbot is set up for automated code reviews on this repo. Configure here.