Skip to content

feat: adds skeleton loader for quote fetching#40702

Merged
ghgoodreau merged 8 commits intomainfrom
SWAPS-4231/bridge-skeleton-loader
Mar 12, 2026
Merged

feat: adds skeleton loader for quote fetching#40702
ghgoodreau merged 8 commits intomainfrom
SWAPS-4231/bridge-skeleton-loader

Conversation

@ghgoodreau
Copy link
Copy Markdown
Contributor

@ghgoodreau ghgoodreau commented Mar 8, 2026

Description

Replaces the fox loader and 'calculating...' with skeleton loader animations.

Open in GitHub Codespaces

Changelog

CHANGELOG entry: improves the loading experience during quote fetching.

Related issues

Fixes:

Manual testing steps

  1. Go to the swaps page
  2. Fetch a quote
  3. Observe the skeleton loader

Screenshots/Recordings

Before

Screenshot 2026-03-09 at 11 53 46 AM Screenshot 2026-03-09 at 11 53 49 AM

After

Screenshot 2026-03-09 at 11 47 54 AM Screenshot 2026-03-09 at 11 47 48 AM

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-only change that alters loading states for bridge quote fetching; main risk is minor regressions in conditional rendering/tests for the initial quote-loading path.

Overview
Improves the bridge quote-fetching UX by replacing the previous “Calculating…” / fox loader indicators with skeleton loaders.

The destination amount input can now render a Skeleton while quotes are loading (via a new showAmountSkeleton prop), and the quote details area shows a new MultichainBridgeQuoteCardSkeleton during initial quote load; the footer CTA area no longer renders during that initial loading state.

Removes the bridgeCalculatingAmount i18n string from all locales and updates/extends tests to cover the new skeleton-rendering behavior.

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 8, 2026

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.

@metamaskbot metamaskbot added the team-swaps-and-bridge Swaps and Bridge team label Mar 8, 2026
@metamaskbotv2
Copy link
Copy Markdown
Contributor

metamaskbotv2 bot commented Mar 8, 2026

✨ Files requiring CODEOWNER review ✨

🔄 @MetaMask/swaps-engineers (6 files, +183 -107)
  • 📁 ui/
    • 📁 pages/
      • 📁 bridge/
        • 📁 prepare/
          • 📄 bridge-input-group.test.tsx +32 -1
          • 📄 bridge-input-group.tsx +74 -64
          • 📄 prepare-bridge-page.tsx +31 -40
        • 📁 quotes/
          • 📄 multichain-bridge-quote-card-skeleton.tsx +26 -0
          • 📄 multichain-bridge-quote-card.test.tsx +18 -2
          • 📄 multichain-bridge-quote-card.tsx +2 -0

@metamaskbotv2
Copy link
Copy Markdown
Contributor

metamaskbotv2 bot commented Mar 8, 2026

Builds ready [240ac68]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account2742672836274283
total2742672836274283
Confirm Txconfirm_tx6039600260612360546061
total6039600260612360546061
Bridge User Actionsbridge_load_page26023527315270273
bridge_load_asset_picker18710928164232281
bridge_search_token71870074820736748
total1149106912648112281264
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup13781151194612714161577
load1149956158610911821330
domContentLoaded1143951157510811761315
domInteractive2815120212483
firstPaint1696445578211336
backgroundConnect20418424211207229
firstReactRender18113852029
initialActions107124
loadScripts95576913861069851131
setupStore1263651324
numNetworkReqs312297212289
Power User HomeuiStartup20241709254514120772238
load11821044186716711591624
domContentLoaded11651036178415911511597
domInteractive3619124203889
firstPaint212751791204245424
backgroundConnect30826842231322372
firstReactRender25156892640
initialActions107113
loadScripts94481915411509241357
setupStore1573141721
numNetworkReqs69351794654171
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2202182242222224
srpButtonToSrpForm97959819898
confirmSrpToPwForm22222312223
pwFormToMetricsScreen16161601616
metricsToWalletReadyScreen17161701717
doneButtonToHomeScreen5985916024601602
openAccountMenuToAccountListLoaded2941290429862929532986
total3899386939212139163921
Onboarding New WalletcreateWalletToSocialScreen2212182242222224
srpButtonToPwForm1091081101110110
createPwToRecoveryScreen888088
skipBackupToMetricsScreen36353703637
agreeButtonToOnboardingSuccess16161701717
doneButtonToAssetList55948170585603705
total9548681094839941094
Asset DetailsassetClickToPriceChart13110116725145167
total13110116725145167
Solana Asset DetailsassetClickToPriceChart79778128081
total79778128081
Import Srp HomeloginToHomeScreen202520172031620312031
openAccountMenuAfterLogin49425555455
homeAfterImportWithNewWallet24412267263514525892635
total45194353465312146134653
Send TransactionsopenSendPageFromHome22172952329
selectTokenToSendFormLoaded27194182841
reviewTransactionToConfirmationPage928700122317810181223
total985746132419910731324
SwapopenSwapPageFromHome39354334043
fetchAndDisplaySwapQuotes268326802688326842688
total272127192724227232724
🌐 Dapp Page Load Benchmarks

Current Commit: 240ac68 | Date: 3/8/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.05s (±42ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 739ms (±61ms) 🟢 | historical mean value: 727ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 92ms (±128ms) 🟢 | historical mean value: 81ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.05s 42ms 1.02s 1.37s 1.07s 1.37s
domContentLoaded 739ms 61ms 711ms 1.29s 758ms 1.29s
firstPaint 92ms 128ms 64ms 1.36s 88ms 1.36s
firstContentfulPaint 92ms 128ms 64ms 1.36s 88ms 1.36s
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 5.15 MiB (100%)
  • ui: 8.19 MiB (100%)
  • common: 10.99 MiB (100%)

@ghgoodreau ghgoodreau marked this pull request as ready for review March 9, 2026 16:56
@ghgoodreau ghgoodreau requested a review from a team as a code owner March 9, 2026 16:56
@metamaskbotv2
Copy link
Copy Markdown
Contributor

metamaskbotv2 bot commented Mar 9, 2026

Builds ready [5f85e51]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account28025929516293295
total28025929516293295
Confirm Txconfirm_tx6065605160741060736074
total6065605160741060736074
Bridge User Actionsbridge_load_page22020623210227232
bridge_load_asset_picker20814325441239254
bridge_search_token74970482042761820
total1196108312918812651291
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup13991189166410214331609
load116898714209311991343
domContentLoaded116198414119111961335
domInteractive281796172471
firstPaint154671229129197271
backgroundConnect21119126115213244
firstReactRender20124462133
initialActions107124
loadScripts9677991217899991141
setupStore1374661624
numNetworkReqs312296202281
Power User HomeuiStartup37681683128012490444010952
load12981070260819513251638
domContentLoaded12761060259518713111611
domInteractive3821154213988
firstPaint2099053393289342
backgroundConnect166527210892223323167552
firstReactRender27177382942
initialActions105114
loadScripts1053863238818310871369
setupStore1766691932
numNetworkReqs974325043104202
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2162152181217218
srpButtonToSrpForm90909109091
confirmSrpToPwForm21202212122
pwFormToMetricsScreen14141401414
metricsToWalletReadyScreen15141501515
doneButtonToHomeScreen58356462625573626
openAccountMenuToAccountListLoaded2939291029722529722972
total38703667402312139594023
Onboarding New WalletcreateWalletToSocialScreen2182182190218219
srpButtonToPwForm1111021196116119
createPwToRecoveryScreen989099
skipBackupToMetricsScreen36343813738
agreeButtonToOnboardingSuccess16161601616
doneButtonToAssetList55048261655602616
total9418781017559811017
Asset DetailsassetClickToPriceChart12510615419131154
total12510615419131154
Solana Asset DetailsassetClickToPriceChart71687427274
total71687427274
Import Srp HomeloginToHomeScreen20551869215610521522156
openAccountMenuAfterLogin65331002582100
homeAfterImportWithNewWallet2257221823143522532314
total4434439444752844524475
Send TransactionsopenSendPageFromHome19172321923
selectTokenToSendFormLoaded21202312223
reviewTransactionToConfirmationPage8468448482848848
total8938859079899907
SwapopenSwapPageFromHome20192112121
fetchAndDisplaySwapQuotes268326812685226842685
total270327012706227032706
🌐 Dapp Page Load Benchmarks

Current Commit: 5f85e51 | Date: 3/9/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.06s (±42ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 747ms (±39ms) 🟢 | historical mean value: 734ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 82ms (±13ms) 🟢 | historical mean value: 81ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.06s 42ms 1.03s 1.36s 1.09s 1.36s
domContentLoaded 747ms 39ms 717ms 1.03s 768ms 1.03s
firstPaint 82ms 13ms 68ms 192ms 88ms 192ms
firstContentfulPaint 82ms 13ms 68ms 192ms 88ms 192ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 5.15 MiB (100%)
  • ui: 8.24 MiB (100%)
  • common: 10.99 MiB (100%)

@metamaskbotv2
Copy link
Copy Markdown
Contributor

metamaskbotv2 bot commented Mar 9, 2026

Builds ready [9df1659]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account28326231622301316
total28326231622301316
Confirm Txconfirm_tx6048601360852560566085
total6048601360852560566085
Bridge User Actionsbridge_load_page25622029025272290
bridge_load_asset_picker17714419823196198
bridge_search_token72270574314731743
total1155111612093511691209
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14471189191211315051628
load1205100114989712511395
domContentLoaded119798814879612451359
domInteractive2917107182674
firstPaint1397037366186243
backgroundConnect21719831818221245
firstReactRender20133642128
initialActions206124
loadScripts100079712889410451159
setupStore1364461624
numNetworkReqs312287192281
Power User HomeuiStartup33091750123872315368210084
load12391042170113212821506
domContentLoaded12171026166612312611482
domInteractive3418113153752
firstPaint191741545159249312
backgroundConnect1091264996817559095549
firstReactRender28176292948
initialActions107113
loadScripts999825140011610431258
setupStore1666391833
numNetworkReqs923823943104188
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2182172180218218
srpButtonToSrpForm96939929899
confirmSrpToPwForm22222302223
pwFormToMetricsScreen16151601616
metricsToWalletReadyScreen17161811818
doneButtonToHomeScreen66559376062703760
openAccountMenuToAccountListLoaded292029142932729202932
total4007390941147340604114
Onboarding New WalletcreateWalletToSocialScreen2222192252224225
srpButtonToPwForm1151141171115117
createPwToRecoveryScreen99100910
skipBackupToMetricsScreen37363913839
agreeButtonToOnboardingSuccess18171801818
doneButtonToAssetList57849367479667674
total97889010768010661076
Asset DetailsassetClickToPriceChart13910817022144170
total13910817022144170
Solana Asset DetailsassetClickToPriceChart77718158181
total77718158181
Import Srp HomeloginToHomeScreen22162057236712422992367
openAccountMenuAfterLogin653894197394
homeAfterImportWithNewWallet2389226224678024482467
total46484509480410946814804
Send TransactionsopenSendPageFromHome26212932829
selectTokenToSendFormLoaded26203563335
reviewTransactionToConfirmationPage1084850164730811881647
total1139913170631212501706
SwapopenSwapPageFromHome32253853338
fetchAndDisplaySwapQuotes268826872689126882689
total272127172725327232725
🌐 Dapp Page Load Benchmarks

Current Commit: 9df1659 | Date: 3/9/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.06s (±60ms) 🟡 | historical mean value: 1.05s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 743ms (±57ms) 🟢 | historical mean value: 738ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 83ms (±15ms) 🟢 | historical mean value: 83ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.06s 60ms 1.02s 1.37s 1.11s 1.37s
domContentLoaded 743ms 57ms 712ms 1.04s 788ms 1.04s
firstPaint 83ms 15ms 60ms 224ms 92ms 224ms
firstContentfulPaint 83ms 15ms 60ms 224ms 92ms 224ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 5.15 MiB (100%)
  • ui: 8.23 MiB (100%)
  • common: 10.98 MiB (100%)

@metamaskbotv2
Copy link
Copy Markdown
Contributor

metamaskbotv2 bot commented Mar 9, 2026

Builds ready [70a2cc3]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account27926630415276304
total27926630415276304
Confirm Txconfirm_tx607760656087860826087
total607760656087860826087
Bridge User Actionsbridge_load_page23019329443269294
bridge_load_asset_picker17213722230184222
bridge_search_token71870373613732736
total1120107411753711481175
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14121209196911114411615
load117999116019712081360
domContentLoaded117298615829612051350
domInteractive2817103182579
firstPaint160711197130206299
backgroundConnect21019425411214232
firstReactRender20134662133
initialActions106124
loadScripts97780113759510111151
setupStore1362751623
numNetworkReqs322291192582
Power User HomeuiStartup34391700129452359414710244
load13151103240220013651708
domContentLoaded12971091222618913451702
domInteractive3518128233593
firstPaint22372564110312419
backgroundConnect132227910198206218075687
firstReactRender27185482945
initialActions107114
loadScripts1069871195617711181438
setupStore1685681829
numNetworkReqs974421843109188
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2192172211220221
srpButtonToSrpForm96959819698
confirmSrpToPwForm22222202222
pwFormToMetricsScreen16161601616
metricsToWalletReadyScreen16151811618
doneButtonToHomeScreen60659663114600631
openAccountMenuToAccountListLoaded2915290329321229192932
total3890387339091438963909
Onboarding New WalletcreateWalletToSocialScreen2212182263222226
srpButtonToPwForm1131071204116120
createPwToRecoveryScreen999099
skipBackupToMetricsScreen38354123941
agreeButtonToOnboardingSuccess17161911819
doneButtonToAssetList61050369163654691
total101489811027110721102
Asset DetailsassetClickToPriceChart13210915315143153
total13210915315143153
Solana Asset DetailsassetClickToPriceChart84769258792
total84769258792
Import Srp HomeloginToHomeScreen21241971226711122302267
openAccountMenuAfterLogin60596426464
homeAfterImportWithNewWallet2797277328241928042824
total49684727518815850755188
Send TransactionsopenSendPageFromHome25193042730
selectTokenToSendFormLoaded20172641926
reviewTransactionToConfirmationPage8508458616848861
total8958908983898898
SwapopenSwapPageFromHome35224494344
fetchAndDisplaySwapQuotes2696267927181827172718
total2731270427612027462761
🌐 Dapp Page Load Benchmarks

Current Commit: 70a2cc3 | Date: 3/9/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.05s (±43ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 739ms (±39ms) 🟢 | historical mean value: 742ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 83ms (±14ms) 🟢 | historical mean value: 83ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.05s 43ms 1.03s 1.37s 1.08s 1.37s
domContentLoaded 739ms 39ms 719ms 1.03s 761ms 1.03s
firstPaint 83ms 14ms 64ms 208ms 96ms 208ms
firstContentfulPaint 83ms 14ms 64ms 208ms 96ms 208ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 5.15 MiB (100%)
  • ui: 8.23 MiB (100%)
  • common: 10.99 MiB (100%)

@metamaskbotv2
Copy link
Copy Markdown
Contributor

metamaskbotv2 bot commented Mar 9, 2026

Builds ready [33c2a22]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account27926829510284295
total27926829510284295
Confirm Txconfirm_tx6111605761925461566192
total6111605761925461566192
Bridge User Actionsbridge_load_page22019224724243247
bridge_load_asset_picker22415631768296317
bridge_search_token71770073517734735
total1182107713309612551330
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14231174184911714771629
load1193991157610512511376
domContentLoaded1186986153610312441370
domInteractive2817131182670
firstPaint164701179129209325
backgroundConnect21819245328223245
firstReactRender19125162128
initialActions104114
loadScripts986789132810010361165
setupStore1363751521
numNetworkReqs312292192282
Power User HomeuiStartup2397167212081149222124294
load12041050175217012291651
domContentLoaded11881043174516812081642
domInteractive42191913538140
firstPaint1887648588263341
backgroundConnect549264939712853321304
firstReactRender25185472641
initialActions109114
loadScripts97084115061589971395
setupStore1765481934
numNetworkReqs77362174783169
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2192182221220222
srpButtonToSrpForm93929309393
confirmSrpToPwForm21212102121
pwFormToMetricsScreen15151501515
metricsToWalletReadyScreen16161701617
doneButtonToHomeScreen734587852119824852
openAccountMenuToAccountListLoaded27532489296120929052961
total38533675412016239124120
Onboarding New WalletcreateWalletToSocialScreen2212212210221221
srpButtonToPwForm1071041092108109
createPwToRecoveryScreen888088
skipBackupToMetricsScreen35333713537
agreeButtonToOnboardingSuccess16151601616
doneButtonToAssetList54549561957610619
total9338801014609981014
Asset DetailsassetClickToPriceChart11510713210111132
total11510713210111132
Solana Asset DetailsassetClickToPriceChart81778648586
total81778648586
Import Srp HomeloginToHomeScreen21171905233617123042336
openAccountMenuAfterLogin814110926103109
homeAfterImportWithNewWallet2247220322933722932293
total43104191443510044354435
Send TransactionsopenSendPageFromHome31254582845
selectTokenToSendFormLoaded19172011920
reviewTransactionToConfirmationPage8488458534851853
total89888891611897916
SwapopenSwapPageFromHome341956144056
fetchAndDisplaySwapQuotes268226782686326832686
total2723270127552027342755
🌐 Dapp Page Load Benchmarks

Current Commit: 33c2a22 | Date: 3/9/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±43ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 736ms (±62ms) 🟢 | historical mean value: 742ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 92ms (±128ms) 🟢 | historical mean value: 83ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 43ms 1.02s 1.38s 1.07s 1.38s
domContentLoaded 736ms 62ms 711ms 1.30s 754ms 1.30s
firstPaint 92ms 128ms 64ms 1.36s 88ms 1.36s
firstContentfulPaint 92ms 128ms 64ms 1.36s 88ms 1.36s
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 5.15 MiB (100%)
  • ui: 8.23 MiB (100%)
  • common: 10.99 MiB (100%)

infiniteflower
infiniteflower previously approved these changes Mar 10, 2026
micaelae
micaelae previously approved these changes Mar 10, 2026
@micaelae micaelae added this pull request to the merge queue Mar 10, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Mar 10, 2026
Copy link
Copy Markdown

@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.

@metamaskbotv2
Copy link
Copy Markdown
Contributor

metamaskbotv2 bot commented Mar 11, 2026

Builds ready [5349745]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account28626931016288310
total28626931016288310
Confirm Txconfirm_tx6052604060681260666068
total6052604060681260666068
Bridge User Actionsbridge_load_page30025835535326355
bridge_load_asset_picker26621034949293349
bridge_search_token76370880842798808
total1322131513361013361336
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14871235197712615391709
load12471036171311213091430
domContentLoaded12391032163310613041417
domInteractive281796202482
firstPaint1746949798243357
backgroundConnect21920228816220250
firstReactRender19123852029
initialActions105123
loadScripts1036829142010411021214
setupStore1373451624
numNetworkReqs362786173679
Power User HomeuiStartup5584202614341209763307753
load13161143171211913371618
domContentLoaded12961136169511413221578
domInteractive41202703934118
firstPaint1928850790274320
backgroundConnect140430311662179411754537
firstReactRender2819217202937
initialActions104112
loadScripts1069917141610911051343
setupStore1464161724
numNetworkReqs1829930243201275
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2192182190219219
srpButtonToSrpForm91909219292
confirmSrpToPwForm21202102121
pwFormToMetricsScreen15141501515
metricsToWalletReadyScreen15151601616
doneButtonToHomeScreen73360685992810859
openAccountMenuToAccountListLoaded26342490296318227012963
total37273516392813637853928
Onboarding New WalletcreateWalletToSocialScreen2212172243223224
srpButtonToPwForm1141111162115116
createPwToRecoveryScreen999099
skipBackupToMetricsScreen37363813738
agreeButtonToOnboardingSuccess17171701717
doneButtonToAssetList51049452411512524
total91289093015919930
Asset DetailsassetClickToPriceChart74471303289130
total74471303289130
Solana Asset DetailsassetClickToPriceChart735099177299
total735099177299
Import Srp HomeloginToHomeScreen24322249258313125582583
openAccountMenuAfterLogin71697327373
homeAfterImportWithNewWallet1837663284196226162841
total43373187546890849755468
Send TransactionsopenSendPageFromHome29243333133
selectTokenToSendFormLoaded29193563435
reviewTransactionToConfirmationPage1175885149021513471490
total1233935154521814121545
SwapopenSwapPageFromHome82768858788
fetchAndDisplaySwapQuotes268826832696526902696
total277127692772127712772
🌐 Dapp Page Load Benchmarks

Current Commit: 5349745 | Date: 3/11/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±44ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 730ms (±40ms) 🟢 | historical mean value: 740ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 80ms (±11ms) 🟢 | historical mean value: 85ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 44ms 1.02s 1.36s 1.05s 1.36s
domContentLoaded 730ms 40ms 710ms 1.02s 742ms 1.02s
firstPaint 80ms 11ms 64ms 176ms 92ms 176ms
firstContentfulPaint 80ms 11ms 64ms 176ms 92ms 176ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -771 Bytes (-0.01%)
  • ui: -13.25 KiB (-0.16%)
  • common: -692 Bytes (-0.01%)

// If the old toToken's chain is disabled, it can't be set as the
// fromToken, so fall back to a supported default token.
if (
fromChains.every(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This has been moved to actions.ts as "setToToken". Can you verify if the logic is the same and update this if so?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

erroneously added during a merge conflict resolution - this should be good now

@sonarqubecloud
Copy link
Copy Markdown

@metamaskbotv2
Copy link
Copy Markdown
Contributor

metamaskbotv2 bot commented Mar 12, 2026

Builds ready [514e043]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account26725628211278282
total26725628211278282
Confirm Txconfirm_tx6019600760391360316039
total6019600760391360316039
Bridge User Actionsbridge_load_page24320231541253315
bridge_load_asset_picker16112318923180189
bridge_search_token69969271711694717
total1115108011583511551158
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup15101260179712115481773
load12571045155210913111464
domContentLoaded12491036153910713051449
domInteractive3018111202788
firstPaint1557445479218275
backgroundConnect22820628416234258
firstReactRender21124762338
initialActions108124
loadScripts1039838133310410911231
setupStore1373351621
numNetworkReqs362787163877
Power User HomeuiStartup5481205414854213863717809
load13151121203013813341621
domContentLoaded12911106201313113121589
domInteractive36201892733106
firstPaint215891318182269352
backgroundConnect183429911480197226154478
firstReactRender26184852935
initialActions106113
loadScripts1061903177712710791348
setupStore1666991728
numNetworkReqs19411433841210272
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2212172243224224
srpButtonToSrpForm94939409494
confirmSrpToPwForm21212202222
pwFormToMetricsScreen15151501515
metricsToWalletReadyScreen16151611616
doneButtonToHomeScreen60158563021630630
openAccountMenuToAccountListLoaded2932291129551829552955
total3870376639306739283930
Onboarding New WalletcreateWalletToSocialScreen2212192221221222
srpButtonToPwForm1111101111111111
createPwToRecoveryScreen989099
skipBackupToMetricsScreen35353503535
agreeButtonToOnboardingSuccess16161701617
doneButtonToAssetList4904864923492492
total8768668836878883
Asset DetailsassetClickToPriceChart645180127180
total645180127180
Solana Asset DetailsassetClickToPriceChart945012535123125
total945012535123125
Import Srp HomeloginToHomeScreen2195214622624522082262
openAccountMenuAfterLogin584172136772
homeAfterImportWithNewWallet1662546243087423622430
total40072850464275446384642
Send TransactionsopenSendPageFromHome27233342833
selectTokenToSendFormLoaded29283112931
reviewTransactionToConfirmationPage95587310196110191019
total101092510736210731073
SwapopenSwapPageFromHome942414143136141
fetchAndDisplaySwapQuotes268926822695526902695
total2791271228264328242826
🌐 Dapp Page Load Benchmarks

Current Commit: 514e043 | Date: 3/12/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±40ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 732ms (±38ms) 🟢 | historical mean value: 740ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 80ms (±14ms) 🟢 | historical mean value: 85ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 40ms 1.02s 1.35s 1.06s 1.35s
domContentLoaded 732ms 38ms 712ms 1.02s 750ms 1.02s
firstPaint 80ms 14ms 64ms 208ms 88ms 208ms
firstContentfulPaint 80ms 14ms 64ms 208ms 88ms 208ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -771 Bytes (-0.01%)
  • ui: -13.52 KiB (-0.16%)
  • common: -692 Bytes (-0.01%)

@metamaskbotv2
Copy link
Copy Markdown
Contributor

metamaskbotv2 bot commented Mar 12, 2026

Builds ready [514e043]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account26725628211278282
total26725628211278282
Confirm Txconfirm_tx6019600760391360316039
total6019600760391360316039
Bridge User Actionsbridge_load_page24320231541253315
bridge_load_asset_picker16112318923180189
bridge_search_token69969271711694717
total1115108011583511551158
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup15101260179712115481773
load12571045155210913111464
domContentLoaded12491036153910713051449
domInteractive3018111202788
firstPaint1557445479218275
backgroundConnect22820628416234258
firstReactRender21124762338
initialActions108124
loadScripts1039838133310410911231
setupStore1373351621
numNetworkReqs362787163877
Power User HomeuiStartup5481205414854213863717809
load13151121203013813341621
domContentLoaded12911106201313113121589
domInteractive36201892733106
firstPaint215891318182269352
backgroundConnect183429911480197226154478
firstReactRender26184852935
initialActions106113
loadScripts1061903177712710791348
setupStore1666991728
numNetworkReqs19411433841210272
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2212172243224224
srpButtonToSrpForm94939409494
confirmSrpToPwForm21212202222
pwFormToMetricsScreen15151501515
metricsToWalletReadyScreen16151611616
doneButtonToHomeScreen60158563021630630
openAccountMenuToAccountListLoaded2932291129551829552955
total3870376639306739283930
Onboarding New WalletcreateWalletToSocialScreen2212192221221222
srpButtonToPwForm1111101111111111
createPwToRecoveryScreen989099
skipBackupToMetricsScreen35353503535
agreeButtonToOnboardingSuccess16161701617
doneButtonToAssetList4904864923492492
total8768668836878883
Asset DetailsassetClickToPriceChart645180127180
total645180127180
Solana Asset DetailsassetClickToPriceChart945012535123125
total945012535123125
Import Srp HomeloginToHomeScreen2195214622624522082262
openAccountMenuAfterLogin584172136772
homeAfterImportWithNewWallet1662546243087423622430
total40072850464275446384642
Send TransactionsopenSendPageFromHome27233342833
selectTokenToSendFormLoaded29283112931
reviewTransactionToConfirmationPage95587310196110191019
total101092510736210731073
SwapopenSwapPageFromHome942414143136141
fetchAndDisplaySwapQuotes268926822695526902695
total2791271228264328242826
🌐 Dapp Page Load Benchmarks

Current Commit: 514e043 | Date: 3/12/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: 732ms (±38ms) 🟢 | historical mean value: 733ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 80ms (±14ms) 🟢 | historical mean value: 82ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 40ms 1.02s 1.35s 1.06s 1.35s
domContentLoaded 732ms 38ms 712ms 1.02s 750ms 1.02s
firstPaint 80ms 14ms 64ms 208ms 88ms 208ms
firstContentfulPaint 80ms 14ms 64ms 208ms 88ms 208ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -771 Bytes (-0.01%)
  • ui: -13.52 KiB (-0.16%)
  • common: -692 Bytes (-0.01%)

@ghgoodreau ghgoodreau added this pull request to the merge queue Mar 12, 2026
Merged via the queue into main with commit d2646e7 Mar 12, 2026
347 of 348 checks passed
@ghgoodreau ghgoodreau deleted the SWAPS-4231/bridge-skeleton-loader branch March 12, 2026 17:59
@github-actions github-actions bot locked and limited conversation to collaborators Mar 12, 2026
@metamaskbot metamaskbot added the release-13.23.0 Issue or pull request that will be included in release 13.23.0 label Mar 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.23.0 Issue or pull request that will be included in release 13.23.0 size-M team-swaps-and-bridge Swaps and Bridge team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants