refactor: migrate AccountDetails leaf components to design system#29765
Conversation
…n system (MUL-1689) Migrate AccountInfo, ExportCredentials, SmartAccount, and SmartAccountNetworkList from component-library to @metamask/design-system-react-native. Update SmartAccount unit test Icon import. Part 1 of 2 for MUL-1689. Co-authored-by: Cursor <cursoragent@cursor.com>
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 c638753. Configure here.
Import Skeleton from components-temp so Jest/E2E disable animations per PR #29765 review (Cursor Bugbot). Co-authored-by: Cursor <cursoragent@cursor.com>
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Tag Selection Rationale:
No other tags are warranted - these changes don't affect confirmations, browser, swaps, staking, network management, snaps, or other areas. Performance Test Selection: |
|




Description
Part 1 of 2 for MUL-1689.
Migrates Account Details leaf UI from deprecated
app/component-libraryto@metamask/design-system-react-native:AccountInfo.tsx—AvatarAccount,Text, semantic colors and typography.ExportCredentials.tsx—Text,Icon,TextVariant/TextColor/FontWeightfrom the design system.SmartAccount.tsx—Text,Icon.SmartAccountNetworkList.tsx—Skeletonfrom the design system (alongside existingBox).SmartAccount.test.tsx—Iconimport from the design system forUNSAFE_getByType.No changes to
BaseAccountDetailsorSmartAccountModalin this PR; those land in part 2.Changelog
CHANGELOG entry: null
Related issues
Refs: https://consensyssoftware.atlassian.net/browse/MUL-1689
Manual testing steps
Note: There is a bug where the SCA toggles are not being displayed, this is not caused by this PR
Screenshots/Recordings
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
Low Risk
Primarily a UI refactor swapping deprecated component-library primitives for design-system equivalents, with minor test adjustments; functional behavior should remain the same.
Overview
Migrates Multichain Account Details leaf UI components (
AccountInfo,ExportCredentials,SmartAccount) from deprecatedapp/component-libraryprimitives to@metamask/design-system-react-nativecomponents, updating typography, icon usage, and semantic colors.Updates related tests to match the new design-system components (e.g.,
Icontype lookup) and stabilizesMultichainAccountSelectorListsearch tests by mockingMaskicon, extracting a sharedperformSearchhelper, and increasing the debounce wait timeout for CI reliability.Reviewed by Cursor Bugbot for commit dddbc74. Bugbot is set up for automated code reviews on this repo. Configure here.