refactor: migrate multichain-accounts UI to design-system-react#41663
Conversation
…eact Made-with: Cursor
✨ Files requiring CODEOWNER review ✨🔑 @MetaMask/accounts-engineers (20 files, +363 -303)
|
Builds ready [fe5d75c]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 12 warn · 🔴 0 fail)
Bundle size diffs
|
Builds ready [e0b63ba]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 12 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
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 61c9a2b. Configure here.
Builds ready [61c9a2b]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 12 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [ee47794]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 12 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
|
Builds ready [ec0605e]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 12 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|




Description
Migrates
ui/components/multichain-accounts/from deprecated@metamask/component-libraryprimitives to@metamask/design-system-react.Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/MUL-1675
Manual testing steps
Screenshots/Recordings
Account Connection
Screen.Recording.2026-04-10.at.4.40.42.PM.mov
Reveal SRP
Screen.Recording.2026-04-10.at.4.43.21.PM.mov
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Primarily a UI primitive migration (components, enums, and styling props) with updated tests/snapshots; functional behavior is largely unchanged aside from minor markup/test-id tweaks.
Overview
Migrates key multichain-accounts UI pieces (
AccountDetailsRow,AddMultichainAccount,MultichainAccountCell, SRP backup row, smart account toggle row, and menu items) from deprecated component-library/design-system constants to@metamask/design-system-reactprimitives and token enums.Updates markup/styling to match the new design-system API (e.g.,
Box*props,TextVariant/TextColorcasing, Tailwind utility classes) and adjusts consumers accordingly (e.g., wrappingButtonIconfor spacing and usingiconPropsfor icon color on the account details page).Test coverage is updated to match the new DOM output: adds stable
data-testids for menu items and icon box elements, revises selectors/expectations, and refreshes Jest snapshots for smart-account toggles and connect page rendering.Reviewed by Cursor Bugbot for commit ec0605e. Bugbot is set up for automated code reviews on this repo. Configure here.