Skip to content

fix: non-evm details account display name#40498

Merged
n3ps merged 3 commits intomainfrom
n3ps/non-evm-account-name
Mar 2, 2026
Merged

fix: non-evm details account display name#40498
n3ps merged 3 commits intomainfrom
n3ps/non-evm-account-name

Conversation

@n3ps
Copy link
Contributor

@n3ps n3ps commented Feb 27, 2026

Description

Render the account group display name instead of the internal name

Open in GitHub Codespaces

Changelog

CHANGELOG entry: fix: non-evm txn details account display name

Related issues

Fixes: #40090

Manual testing steps

  1. Complete a non-EVM send transaction
  2. Go to Activity tab
  3. Click for details

Screenshots/Recordings

Before: "Snap Account X"
After: User-defined name

image

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Low Risk
Low risk UI/selector change that only affects how account names are resolved/displayed in the transaction details modal; primary risk is incorrect/undefined name lookup for some addresses.

Overview
Updates the multichain transaction details modal to render From/To rows via a new AccountRow component that resolves a user-facing account group display name (falling back to shortenAddress) rather than showing the internal account name.

Adds a new selector, selectAccountGroupNameByAddress, plus tests, to map an address to its containing account group name (or fall back to the internal account name when no group metadata exists).

Written by Cursor Bugbot for commit dadb13f. This will update automatically on new commits. Configure here.

@n3ps n3ps added the team-core-extension-ux Core Extension UX team label Feb 27, 2026
@github-actions
Copy link
Contributor

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.

};
const statusKey = KEYRING_TRANSACTION_STATUS_KEY[status];

const accountComponent = (label: string, address?: string) => {
Copy link
Contributor Author

@n3ps n3ps Feb 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Just extracted as-is

chain: string;
};

const AccountRow = ({ label, address, chain }: Props) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Extracted from previously inline "accountComponent" for reusability

);

/**
* Get the account group display name for a given address.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. The fix

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Feb 27, 2026

✨ Files requiring CODEOWNER review ✨

🔑 @MetaMask/accounts-engineers (2 files, +60 -0)
  • 📁 ui/
    • 📁 selectors/
      • 📁 multichain-accounts/
        • 📄 account-tree.test.ts +24 -0
        • 📄 account-tree.ts +36 -0

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Feb 27, 2026

Builds ready [68ff5f7]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account27926329514295295
total27926329514295295
Confirm Txconfirm_tx6045602360611360536061
total6045602360611360536061
Bridge User Actionsbridge_load_page21119823012209230
bridge_load_asset_picker25220432451303324
bridge_search_token73870878528743785
total1219112613398212531339
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14481215192211514781696
load12141019160510412411422
domContentLoaded12061017159710012361398
domInteractive3017105202687
firstPaint1706840485228350
backgroundConnect21719429815218249
firstReactRender21135682236
initialActions209224
loadScripts100681713819710341194
setupStore1573971729
numNetworkReqs312291192281
Power User HomeuiStartup3303156810764211040229223
load12931081173313113311608
domContentLoaded12751068170112513121565
domInteractive3518187263399
firstPaint259891234196316406
backgroundConnect12622697966164818213547
firstReactRender25165972738
initialActions107112
loadScripts1056843148212310921354
setupStore1565181632
numNetworkReqs84401392196119
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2182162201219220
srpButtonToSrpForm92919319393
confirmSrpToPwForm21212102121
pwFormToMetricsScreen15151501515
metricsToWalletReadyScreen16161601616
doneButtonToHomeScreen1093583141132313901411
openAccountMenuToAccountListLoaded72936382802759078328027
total8946880090559389829055
Onboarding New WalletcreateWalletToSocialScreen2192172232220223
srpButtonToPwForm1071041102109110
createPwToRecoveryScreen889099
skipBackupToMetricsScreen36353713637
agreeButtonToOnboardingSuccess16161701617
doneButtonToAssetList1041659136027212601360
total14321050175127316431751
Asset DetailsassetClickToPriceChart40344964149
total40344964149
Solana Asset DetailsassetClickToPriceChart57565705757
total57565705757
Import Srp HomeloginToHomeScreen1970194019862119861986
openAccountMenuAfterLogin41394314243
homeAfterImportWithNewWallet24612189266517725552665
total45104211495128045374951
Send TransactionsopenSendPageFromHome321747123947
selectTokenToSendFormLoaded19192011920
reviewTransactionToConfirmationPage8528468595857859
total8978859068904906
SwapopenSwapPageFromHome111991219118121
fetchAndDisplaySwapQuotes53314604638381662726383
total54314725648281763786482
🌐 Dapp Page Load Benchmarks

Current Commit: 68ff5f7 | Date: 2/27/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±40ms) 🟡 | historical mean value: 1.03s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 729ms (±39ms) 🟢 | historical mean value: 728ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 80ms (±12ms) 🟢 | historical mean value: 83ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 40ms 1.01s 1.35s 1.05s 1.35s
domContentLoaded 729ms 39ms 708ms 1.03s 748ms 1.03s
firstPaint 80ms 12ms 64ms 180ms 96ms 180ms
firstContentfulPaint 80ms 12ms 64ms 180ms 96ms 180ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs
  • background: 58 Bytes (0%)
  • ui: 909 Bytes (0.01%)
  • common: 32 Bytes (0%)

@n3ps n3ps marked this pull request as ready for review February 27, 2026 17:13
@n3ps n3ps requested a review from a team as a code owner February 27, 2026 17:13
@n3ps n3ps enabled auto-merge February 27, 2026 17:13
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@sonarqubecloud
Copy link

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Feb 27, 2026

Builds ready [dadb13f]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account2722672773274277
total2722672773274277
Confirm Txconfirm_tx61135973628510861806285
total61135973628510861806285
Bridge User Actionsbridge_load_page27222029528292295
bridge_load_asset_picker20813627053261270
bridge_search_token72870776622736766
total1208113212956812771295
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup15251256207213916091722
load12851038174112713581488
domContentLoaded12761033169612013511478
domInteractive3118121222681
firstPaint195751459158238404
backgroundConnect22720231118234260
firstReactRender20134352230
initialActions208124
loadScripts1067835148711811471265
setupStore1463961725
numNetworkReqs312289192282
Power User HomeuiStartup3185157311701216838739083
load12531064165713112981581
domContentLoaded12321050163112612631550
domInteractive3518130233198
firstPaint208861342144262346
backgroundConnect11632609126170913123685
firstReactRender26165582745
initialActions1011114
loadScripts1018856141312210411333
setupStore18773102035
numNetworkReqs83391562497124
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2182182191219219
srpButtonToSrpForm1009111510110115
confirmSrpToPwForm21202102121
pwFormToMetricsScreen15151601516
metricsToWalletReadyScreen18152021920
doneButtonToHomeScreen1025594133631512671336
openAccountMenuToAccountListLoaded7083702471978071977197
total85037999892140088238921
Onboarding New WalletcreateWalletToSocialScreen2202192211220221
srpButtonToPwForm1081071080108108
createPwToRecoveryScreen888088
skipBackupToMetricsScreen36353713637
agreeButtonToOnboardingSuccess16161601616
doneButtonToAssetList51647962462480624
total9038651013638681013
Asset DetailsassetClickToPriceChart573975136775
total573975136775
Solana Asset DetailsassetClickToPriceChart45454614646
total45454614646
Import Srp HomeloginToHomeScreen21091880251625723072516
openAccountMenuAfterLogin43414934349
homeAfterImportWithNewWallet227022632279722792279
total4273420244289242584428
Send TransactionsopenSendPageFromHome18171801818
selectTokenToSendFormLoaded27193883638
reviewTransactionToConfirmationPage8548518593857859
total9028889129907912
SwapopenSwapPageFromHome1099812010118120
fetchAndDisplaySwapQuotes4583456946172045774617
total4692466847372746874737
🌐 Dapp Page Load Benchmarks

Current Commit: dadb13f | Date: 2/27/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.05s (±45ms) 🟡 | historical mean value: 1.05s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 742ms (±42ms) 🟢 | historical mean value: 740ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 82ms (±13ms) 🟢 | historical mean value: 83ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.05s 45ms 1.03s 1.40s 1.08s 1.40s
domContentLoaded 742ms 42ms 718ms 1.08s 766ms 1.08s
firstPaint 82ms 13ms 64ms 204ms 88ms 204ms
firstContentfulPaint 82ms 13ms 64ms 204ms 88ms 204ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 426 Bytes (0.01%)
  • ui: 1.55 KiB (0.02%)
  • common: 3.75 KiB (0.03%)

@n3ps n3ps added this pull request to the merge queue Mar 2, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 2, 2026
@n3ps n3ps added this pull request to the merge queue Mar 2, 2026
Merged via the queue into main with commit 2320083 Mar 2, 2026
180 checks passed
@n3ps n3ps deleted the n3ps/non-evm-account-name branch March 2, 2026 14:48
@github-actions github-actions bot locked and limited conversation to collaborators Mar 2, 2026
@metamaskbot metamaskbot added the release-13.22.0 Issue or pull request that will be included in release 13.22.0 label Mar 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.22.0 Issue or pull request that will be included in release 13.22.0 size-M team-core-extension-ux Core Extension UX team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Tx Details - Sending a non-evm tx displays Snap Account X in from and to fields instead of the main Account name

4 participants