Skip to content

Comments

fix: non-evm bridge details#40383

Open
n3ps wants to merge 4 commits intomainfrom
n3ps/non-evm-bridge-modal
Open

fix: non-evm bridge details#40383
n3ps wants to merge 4 commits intomainfrom
n3ps/non-evm-bridge-modal

Conversation

@n3ps
Copy link
Contributor

@n3ps n3ps commented Feb 24, 2026

Description

Render the correct modal for non-EVM bridge details

Open in GitHub Codespaces

Changelog

CHANGELOG entry: fix: handle non-evm bridge details

Related issues

Fixes:

Manual testing steps

  1. Go to Activity tab
  2. Click on a non-EVM bridge transaction

Screenshots/Recordings

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
Small UI wiring change gated by existing bridge history data and isCrossChain checks; low risk outside of potentially showing the wrong modal if selectors/IDs don’t match.

Overview
Fixes non-EVM Activity (v2) transaction details to show the bridge-specific details modal when the selected transaction matches bridge history and is cross-chain.

Introduces a NonEvmDetailsModal wrapper that selects between MultichainBridgeTransactionDetailsModal and the generic MultichainTransactionDetailsModal, wires it into activity-list.tsx, and adds unit tests covering no-history, cross-chain, and same-chain (swap) cases.

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

@n3ps n3ps requested a review from a team as a code owner February 24, 2026 21:21
@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.

@n3ps n3ps added the team-core-extension-ux Core Extension UX team label Feb 24, 2026
@n3ps n3ps enabled auto-merge February 24, 2026 21:21
onClose: () => void;
};

export const NonEvmDetailsModal = ({ transaction, onClose }: 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.

Thin wrapper over the multichain details modal

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Feb 24, 2026

✨ Files requiring CODEOWNER review ✨

👨‍🔧 @MetaMask/core-extension-ux (3 files, +121 -2)
  • 📁 ui/
    • 📁 components/
      • 📁 multichain/
        • 📁 activity-v2/
          • 📄 activity-list.tsx +2 -2
          • 📄 non-evm-details-modal.test.tsx +81 -0
          • 📄 non-evm-details-modal.tsx +38 -0

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.

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Feb 24, 2026

Builds ready [3f5490b]
⚡ Performance Benchmarks (1383 ± 113 ms)
👆 Interaction Benchmarks
ActionMetricMean (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account28520285315
total28520285315
Confirm Txconfirm_tx60653060766112
total60653060766112
Bridge User Actionsbridge_load_page22327243250
bridge_load_asset_picker16925190207
bridge_search_token6994702705
total1095110961096
🔌 Startup Benchmarks
BuildMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
Chrome Browserify Startup Standard HomeuiStartup13831163186811314151584
load1176977156910112041367
domContentLoaded116997415479712001359
domInteractive271686172475
firstPaint161651182132208336
backgroundConnect21118739724212243
firstReactRender19133342026
initialActions107113
loadScripts97678213549710081162
setupStore1263041418
numNetworkReqs312290192284
Chrome Browserify Startup Power User HomeuiStartup18161391985282117842084
load11331025172712811211489
domContentLoaded11211020171512711131465
domInteractive3219122173469
firstPaint1717154485247285
backgroundConnect3342584335406296347
firstReactRender25154982741
initialActions1010113
loadScripts91581614931239031238
setupStore18667102036
numNetworkReqs60381582462117
Chrome Webpack Startup Standard HomeuiStartup83369313451048591053
load711597105588754875
domContentLoaded705593104588745867
domInteractive2715128202371
firstPaint1135940562130226
backgroundConnect28196683242
firstReactRender19123972232
initialActions104112
loadScripts703591103886743860
setupStore1254561221
numNetworkReqs312295202586
Chrome Webpack Startup Power User HomeuiStartup1222910298525512851579
load71762414001277041037
domContentLoaded70861913831276931027
domInteractive37181713232123
firstPaint1266654075128262
backgroundConnect17013433546160286
firstReactRender22173432428
initialActions104111
loadScripts70561713751256911020
setupStore1243951318
numNetworkReqs1133927553138252
Firefox Browserify Startup Standard HomeuiStartup16581389273221016822100
load13991177237917914271801
domContentLoaded13981172237918014261800
domInteractive79333735190158
firstPaint------
backgroundConnect61302002765102
firstReactRender14112011416
initialActions102012
loadScripts13691154234817013951663
setupStore197168251555
numNetworkReqs311994192787
Firefox Browserify Startup Power User HomeuiStartup27702087406242529873717
load15851291306130516662249
domContentLoaded15841291306130516652248
domInteractive134351695189111446
firstPaint------
backgroundConnect2931071179254254919
firstReactRender19146591924
initialActions103122
loadScripts15461267297229316092204
setupStore114776518091574
numNetworkReqs62291623879148
Firefox Webpack Startup Standard HomeuiStartup16601360330928616931958
load14001145299526314421539
domContentLoaded13991141299526314411539
domInteractive972825952131182
firstPaint------
backgroundConnect59241863661148
firstReactRender15125451522
initialActions102022
loadScripts13781132289125714191506
setupStore247206321976
numNetworkReqs311992182578
Firefox Webpack Startup Power User HomeuiStartup27082098404637928923439
load15691229263428517242138
domContentLoaded15691229263428517242137
domInteractive14233901174114581
firstPaint------
backgroundConnect301107991247324905
firstReactRender22146582331
initialActions2054523
loadScripts15321208259627517012078
setupStore1627772213174721
numNetworkReqs62291633790135
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2181218219
srpButtonToSrpForm9029292
confirmSrpToPwForm2212223
pwFormToMetricsScreen1501515
metricsToWalletReadyScreen1611617
doneButtonToHomeScreen57934563637
openAccountMenuToAccountListLoaded728637976467830
total829645487578934
Onboarding New WalletcreateWalletToSocialScreen2213223227
srpButtonToPwForm11210124124
createPwToRecoveryScreen8088
skipBackupToMetricsScreen3513536
agreeButtonToOnboardingSuccess1501516
doneButtonToAssetList58088629696
total9739810251108
Asset DetailsassetClickToPriceChart4274154
total4274154
Solana Asset DetailsassetClickToPriceChart4714749
total4714749
Import Srp HomeloginToHomeScreen19707320332048
openAccountMenuAfterLogin4414446
homeAfterImportWithNewWallet223514123112480
total433518744534575
Send TransactionsopenSendPageFromHome32133952
selectTokenToSendFormLoaded2132425
reviewTransactionToConfirmationPage8587863869
total91123927946
SwapopenSwapPageFromHome1079113120
fetchAndDisplaySwapQuotes4611446164616
total47091947164731
🌐 Dapp Page Load Benchmarks

Current Commit: 3f5490b | Date: 2/24/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±40ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 724ms (±38ms) 🟢 | historical mean value: 724ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±13ms) 🟢 | historical mean value: 77ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 40ms 1.01s 1.35s 1.07s 1.35s
domContentLoaded 724ms 38ms 698ms 1.02s 746ms 1.02s
firstPaint 77ms 13ms 56ms 188ms 84ms 188ms
firstContentfulPaint 77ms 13ms 56ms 188ms 84ms 188ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 1.42 KiB (0.02%)
  • common: 20 Bytes (0%)

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Feb 24, 2026

Builds ready [eb1f84f]
⚡ Performance Benchmarks (1385 ± 108 ms)
👆 Interaction Benchmarks
ActionMetricMean (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account2737279282
total2737279282
Confirm Txconfirm_tx6019760206029
total6019760206029
Bridge User Actionsbridge_load_page2038205213
bridge_load_asset_picker19757230289
bridge_search_token71311716729
total11324811511210
🔌 Startup Benchmarks
BuildMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
Chrome Browserify Startup Standard HomeuiStartup13851163190910814421560
load1180990162210112381342
domContentLoaded1174966161110012341321
domInteractive2817118202383
firstPaint155671320135204256
backgroundConnect20719025411211230
firstReactRender19134242025
initialActions105123
loadScripts98377914069910371132
setupStore1463861723
numNetworkReqs312295202286
Chrome Browserify Startup Power User HomeuiStartup203213928212100618993807
load11541036214215411491450
domContentLoaded11381029202314411391430
domInteractive3318136183555
firstPaint188702044202246295
backgroundConnect45025544866233071056
firstReactRender2415121122438
initialActions109112
loadScripts93182317931409371215
setupStore1665181833
numNetworkReqs64351562769128
Chrome Webpack Startup Standard HomeuiStartup85968411721009351021
load742602102198819898
domContentLoaded736599101497811888
domInteractive2815113222388
firstPaint1076341661120221
backgroundConnect29196093446
firstReactRender18124262131
initialActions104112
loadScripts733597100796808885
setupStore1263651219
numNetworkReqs312298202589
Chrome Webpack Startup Power User HomeuiStartup1190877196417212381540
load6946081335113683965
domContentLoaded6856021325113673955
domInteractive33181602632101
firstPaint1456251987181297
backgroundConnect18614535049196300
firstReactRender22173642429
initialActions103011
loadScripts6836001318112671945
setupStore1244781330
numNetworkReqs1043926952137190
Firefox Browserify Startup Standard HomeuiStartup16791414268121517042032
load14101171238317914431617
domContentLoaded14081170238318014421617
domInteractive873498310098156
firstPaint------
backgroundConnect63283583966111
firstReactRender14121911416
initialActions103112
loadScripts13801147236017314161558
setupStore218188311655
numNetworkReqs321996202791
Firefox Browserify Startup Power User HomeuiStartup26752030410237328433298
load15401285314727116591998
domContentLoaded15391285314627116591998
domInteractive156371718197135480
firstPaint------
backgroundConnect2761071119234281899
firstReactRender18146381825
initialActions103122
loadScripts15051264308426316171940
setupStore1728792215198685
numNetworkReqs70301863691142
Firefox Webpack Startup Standard HomeuiStartup17411454324628017422071
load14501226273220414761611
domContentLoaded14491226273220414751610
domInteractive1023037753132168
firstPaint------
backgroundConnect8029142114366161
firstReactRender17126861625
initialActions103122
loadScripts14221208270620214441533
setupStore227155271564
numNetworkReqs312096182778
Firefox Webpack Startup Power User HomeuiStartup27732234877970028793571
load16171302737962816392155
domContentLoaded16171301737962816392155
domInteractive15132867171129597
firstPaint------
backgroundConnect3021241477251303935
firstReactRender22165452431
initialActions203123
loadScripts15771276734862416032086
setupStore1528791196165603
numNetworkReqs69302444380148
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2170217217
srpButtonToSrpForm9129393
confirmSrpToPwForm2102122
pwFormToMetricsScreen1501515
metricsToWalletReadyScreen1601616
doneButtonToHomeScreen82726810921208
openAccountMenuToAccountListLoaded735833576727830
total86896886998778
Onboarding New WalletcreateWalletToSocialScreen2181219219
srpButtonToPwForm1030103103
createPwToRecoveryScreen8088
skipBackupToMetricsScreen3513536
agreeButtonToOnboardingSuccess1501515
doneButtonToAssetList62090703721
total10018610831101
Asset DetailsassetClickToPriceChart4144246
total4144246
Solana Asset DetailsassetClickToPriceChart4704748
total4704748
Import Srp HomeloginToHomeScreen200310821302130
openAccountMenuAfterLogin4495059
homeAfterImportWithNewWallet20583621062106
total40191640394039
Send TransactionsopenSendPageFromHome31113940
selectTokenToSendFormLoaded2002020
reviewTransactionToConfirmationPage8483849851
total9137914924
SwapopenSwapPageFromHome12112126138
fetchAndDisplaySwapQuotes46578747444780
total47789648674918
🌐 Dapp Page Load Benchmarks

Current Commit: eb1f84f | Date: 2/24/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.05s (±82ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 733ms (±80ms) 🟢 | historical mean value: 724ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 83ms (±59ms) 🟢 | historical mean value: 77ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.05s 82ms 1.01s 1.82s 1.07s 1.82s
domContentLoaded 733ms 80ms 705ms 1.49s 751ms 1.49s
firstPaint 83ms 59ms 64ms 664ms 88ms 664ms
firstContentfulPaint 83ms 59ms 64ms 664ms 88ms 664ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 1.42 KiB (0.02%)
  • common: 20 Bytes (0%)

@sonarqubecloud
Copy link

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Feb 25, 2026

Builds ready [f04f27d]
⚡ Performance Benchmarks (1410 ± 105 ms)
👆 Interaction Benchmarks
ActionMetricMean (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account2689272282
total2689272282
Confirm Txconfirm_tx60261960336061
total60261960336061
Bridge User Actionsbridge_load_page20011210215
bridge_load_asset_picker23841265292
bridge_search_token72120740744
total11586412091215
🔌 Startup Benchmarks
BuildMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
Chrome Browserify Startup Standard HomeuiStartup14101198183010514521588
load1190986163010312351355
domContentLoaded118398215909912301345
domInteractive2817101182479
firstPaint169701597163217285
backgroundConnect20819125814209239
firstReactRender19103842126
initialActions105124
loadScripts99178913789810461155
setupStore1363351621
numNetworkReqs312291192283
Chrome Browserify Startup Power User HomeuiStartup16821408211310717281855
load11131007156111911041487
domContentLoaded1100993154711610911427
domInteractive3318126183481
firstPaint177751438144227287
backgroundConnect28225338820290314
firstReactRender24164982743
initialActions104112
loadScripts89778613461138851225
setupStore1574261730
numNetworkReqs58371732456115
Chrome Webpack Startup Standard HomeuiStartup87270812511079481050
load746607103197811906
domContentLoaded740603102396806898
domInteractive2915149232477
firstPaint13064761119131331
backgroundConnect291991103247
firstReactRender18124062131
initialActions103112
loadScripts737601101595804896
setupStore1162431218
numNetworkReqs312294202589
Chrome Webpack Startup Power User HomeuiStartup1218969194017413001585
load69761212551206831005
domContentLoaded6886041248119676975
domInteractive35171983131107
firstPaint1405750082174275
backgroundConnect18114737244189280
firstReactRender23173542530
initialActions103111
loadScripts6866011239117674966
setupStore1254461323
numNetworkReqs1073926553136250
Firefox Browserify Startup Standard HomeuiStartup16211360293321416681954
load13671152269219514081570
domContentLoaded13651151269119514041570
domInteractive8934127912690147
firstPaint------
backgroundConnect56281432158111
firstReactRender13112021416
initialActions103012
loadScripts13391129266719113831540
setupStore208174281561
numNetworkReqs3120100212592
Firefox Browserify Startup Power User HomeuiStartup26821946618464928173438
load15881214489655216742195
domContentLoaded15881214489055216732194
domInteractive12634760140114463
firstPaint------
backgroundConnect3001031089260339861
firstReactRender17136581720
initialActions107122
loadScripts15481164486454816272142
setupStore1304728176180475
numNetworkReqs63291743779143
Firefox Webpack Startup Standard HomeuiStartup16141327206613616591883
load1351116216018914011507
domContentLoaded1350116216018913981507
domInteractive852924442121146
firstPaint------
backgroundConnect58232093460117
firstReactRender15122731523
initialActions103112
loadScripts1328114015768613731482
setupStore2471613018113
numNetworkReqs312093192785
Firefox Webpack Startup Power User HomeuiStartup26211921401541727963391
load15221263240326516182101
domContentLoaded15211263240326516172101
domInteractive11335606109108375
firstPaint------
backgroundConnect3101021179266292877
firstReactRender21165962328
initialActions103122
loadScripts14791242236124315862015
setupStore1548731201187678
numNetworkReqs61271603690136
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2171217219
srpButtonToSrpForm8929193
confirmSrpToPwForm2102121
pwFormToMetricsScreen1501515
metricsToWalletReadyScreen1501516
doneButtonToHomeScreen121812912361407
openAccountMenuToAccountListLoaded710041974397620
total857552890309165
Onboarding New WalletcreateWalletToSocialScreen2181219219
srpButtonToPwForm1041105105
createPwToRecoveryScreen8088
skipBackupToMetricsScreen3503636
agreeButtonToOnboardingSuccess1601616
doneButtonToAssetList617116602802
total9971199921186
Asset DetailsassetClickToPriceChart3924042
total3924042
Solana Asset DetailsassetClickToPriceChart4824951
total4824951
Import Srp HomeloginToHomeScreen18993219201939
openAccountMenuAfterLogin3803839
homeAfterImportWithNewWallet233316724792581
total437022045394629
Send TransactionsopenSendPageFromHome2693141
selectTokenToSendFormLoaded1901919
reviewTransactionToConfirmationPage8534854859
total89613892918
SwapopenSwapPageFromHome1214121127
fetchAndDisplaySwapQuotes569078463586390
total579978064796517
🌐 Dapp Page Load Benchmarks

Current Commit: f04f27d | Date: 2/25/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±39ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 718ms (±37ms) 🟢 | historical mean value: 725ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±11ms) 🟢 | historical mean value: 77ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 39ms 1.00s 1.33s 1.05s 1.33s
domContentLoaded 718ms 37ms 694ms 998ms 736ms 998ms
firstPaint 76ms 11ms 60ms 168ms 88ms 168ms
firstContentfulPaint 76ms 11ms 60ms 168ms 88ms 168ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 1.42 KiB (0.02%)
  • common: 20 Bytes (0%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size-M team-core-extension-ux Core Extension UX team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant