Skip to content

Conversation

@ghgoodreau
Copy link
Contributor

@ghgoodreau ghgoodreau commented Jun 5, 2025

Description

Adds support for unified UI (swapping and bridging on a singular page). When isUnifiedUIEnabled is true, we provide swapping and bridging all within the prepare-bridge-page. When it is false, care was taken to ensure that functionality remains backwards-compatible.

Open in GitHub Codespaces

Related issues

Closes: https://consensyssoftware.atlassian.net/browse/MMS-2553

Manual testing steps

  1. Go to this page...

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.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 5, 2025

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 Jun 5, 2025
@metamaskbot
Copy link
Collaborator

metamaskbot commented Jun 5, 2025

✨ Files requiring CODEOWNER review ✨

🔄 @MetaMask/swaps-engineers (3 files, +127 -59)
  • 📁 ui/
    • 📁 hooks/
      • 📁 bridge/
        • 📄 useTokensWithFiltering.ts +7 -2
    • 📁 pages/
      • 📁 bridge/
        • 📁 hooks/
          • 📄 useDestinationAccount.ts +26 -20
        • 📁 prepare/
          • 📄 prepare-bridge-page.tsx +94 -37

@metamaskbot
Copy link
Collaborator

Builds ready [27b891d]
UI Startup Metrics (1231 ± 76 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1231110414397612841354
load106693412677211211201
domContentLoaded106093012597211141196
domInteractive16133131626
firstPaint766136122941211001174
backgroundConnect84324820
firstReactRender21164652234
getState1454982030
initialActions001001
loadScripts813694101271865953
setupStore85212812
WebpackHomeuiStartup20871644258323822602471
load16301273203519117601919
domContentLoaded16241269203118917561908
domInteractive161187131344
firstPaint1606335557180298
backgroundConnect23124972737
firstReactRender14343366109288340
getState134323321120
initialActions512832834
loadScripts16211267202218817551897
setupStore206307411742
FirefoxBrowserifyHomeuiStartup13551157169612414221596
load12021017157011312721443
domContentLoaded12011017156911312721443
domInteractive993833140102163
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect19135552027
firstReactRender23203222428
getState12418528811
initialActions005101
loadScripts11851003155511312551423
setupStore74729612
WebpackHomeuiStartup16061337219317017011986
load13951155196315415011744
domContentLoaded13941154196215415011744
domInteractive80402432488108
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2415259242242
firstReactRender42285454550
getState13424326930
initialActions102111
loadScripts13741137194315214801723
setupStore85667815
Benchmark value 1202 exceeds gate value 1190 for chrome browserify home p95 load
Benchmark value 1197 exceeds gate value 1180 for chrome browserify home p95 domContentLoaded
Benchmark value 21 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 953 exceeds gate value 940 for chrome browserify home p95 loadScripts
Benchmark value 2471 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 12 exceeds gate value 11 for firefox browserify home mean getState
Benchmark value 1395 exceeds gate value 1380 for firefox webpack home mean load
Benchmark value 1395 exceeds gate value 1380 for firefox webpack home mean domContentLoaded
Benchmark value 42 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 1375 exceeds gate value 1360 for firefox webpack home mean loadScripts
Benchmark value 1986 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 1744 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1744 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 1723 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Sum of mean exceeds: 50ms | Sum of p95 exceeds: 374ms
Sum of all benchmark exceeds: 424ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 984 Bytes (0.02%)
  • ui: 1.28 KiB (0.02%)
  • common: -112 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [d51cba9]
UI Startup Metrics (1235 ± 66 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1235110915286612671343
load106794913336310961179
domContentLoaded105994013096310881173
domInteractive1914198191730
firstPaint76573121341010851151
backgroundConnect85295924
firstReactRender22164762238
getState1563682132
initialActions003000
loadScripts813698105862848924
setupStore85273814
WebpackHomeuiStartup28132025346425029843204
load22741562306030324542820
domContentLoaded22641556305330224442810
domInteractive211478111951
firstPaint2067648575245362
backgroundConnect721255110461329
firstReactRender1095043177151294
getState3053435724229
initialActions318237
loadScripts22571555303929824392767
setupStore4683748227252
FirefoxBrowserifyHomeuiStartup1321115816849813691554
load1169103613818412231356
domContentLoaded1169103613818412221356
domInteractive923220728102140
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2313183202146
firstReactRender22205432224
getState12432632836
initialActions001001
loadScripts1149100713688212001327
setupStore8411313612
WebpackHomeuiStartup15531357201214316421851
load13421163167912614381584
domContentLoaded13421162167912714381584
domInteractive80341952286131
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect22158792241
firstReactRender41304834347
getState11521721929
initialActions101011
loadScripts13231144165612614231565
setupStore85687812
cc: @HowardBraham
Benchmark value 1235 exceeds gate value 1234 for chrome browserify home mean uiStartup
Benchmark value 24 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 2814 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 2275 exceeds gate value 1711 for chrome webpack home mean load
Benchmark value 2264 exceeds gate value 1704 for chrome webpack home mean domContentLoaded
Benchmark value 207 exceeds gate value 199 for chrome webpack home mean firstPaint
Benchmark value 73 exceeds gate value 40 for chrome webpack home mean backgroundConnect
Benchmark value 30 exceeds gate value 29 for chrome webpack home mean getState
Benchmark value 2258 exceeds gate value 1699 for chrome webpack home mean loadScripts
Benchmark value 47 exceeds gate value 32 for chrome webpack home mean setupStore
Benchmark value 3205 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 2820 exceeds gate value 2030 for chrome webpack home p95 load
Benchmark value 2811 exceeds gate value 2005 for chrome webpack home p95 domContentLoaded
Benchmark value 362 exceeds gate value 334 for chrome webpack home p95 firstPaint
Benchmark value 330 exceeds gate value 90 for chrome webpack home p95 backgroundConnect
Benchmark value 229 exceeds gate value 195 for chrome webpack home p95 getState
Benchmark value 2768 exceeds gate value 1970 for chrome webpack home p95 loadScripts
Benchmark value 252 exceeds gate value 65 for chrome webpack home p95 setupStore
Benchmark value 12 exceeds gate value 11 for firefox browserify home mean getState
Benchmark value 36 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 42 exceeds gate value 38 for firefox webpack home mean firstReactRender
Sum of mean exceeds: 2368ms | Sum of p95 exceeds: 3652ms
Sum of all benchmark exceeds: 6020ms

Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 531 Bytes (0.01%)
  • common: 0 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [d68ca52]
UI Startup Metrics (1232 ± 67 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1232109914246712741364
load106794412156011031167
domContentLoaded106093812096110961158
domInteractive17149891629
firstPaint74582116642110941150
backgroundConnect94305823
firstReactRender20164532024
getState1364581929
initialActions001001
loadScripts81470195759853909
setupStore85142813
WebpackHomeuiStartup20371562273524222002445
load15841234205618617101860
domContentLoaded15791230204918517061838
domInteractive15117591338
firstPaint1625938368208333
backgroundConnect2412362352334
firstReactRender12643353103109345
getState145310301220
initialActions613053034
loadScripts15761228203818317041834
setupStore4473338717303
FirefoxBrowserifyHomeuiStartup13431150197613013721614
load1175102614978812101380
domContentLoaded1174102614968812101379
domInteractive973646944102134
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2213108132151
firstReactRender24205252430
getState184227418162
initialActions001001
loadScripts1155101214788811911355
setupStore9417018615
WebpackHomeuiStartup15101342196412315621799
load13061163174111013731523
domContentLoaded13061163174111013731523
domInteractive7432278297598
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect21166262227
firstReactRender40306344246
getState11519619929
initialActions001011
loadScripts12871142172411113541505
setupStore10525825819
Benchmark value 24 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 45 exceeds gate value 32 for chrome webpack home mean setupStore
Benchmark value 303 exceeds gate value 65 for chrome webpack home p95 setupStore
Benchmark value 18 exceeds gate value 11 for firefox browserify home mean getState
Benchmark value 162 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 41 exceeds gate value 38 for firefox webpack home mean firstReactRender
Sum of mean exceeds: 23ms | Sum of p95 exceeds: 382ms
Sum of all benchmark exceeds: 405ms

Bundle size diffs [🚀 Bundle size reduced!]
  • background: -23.64 KiB (-0.45%)
  • ui: 631 Bytes (0.01%)
  • common: 7.32 KiB (0.09%)

@ghgoodreau ghgoodreau changed the title (DRAFT) feat: MMS-2553 unified UI for swaps and bridges feat: MMS-2553 unified UI for swaps and bridges Jun 11, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [c8c7a3f]
UI Startup Metrics (1217 ± 65 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1217110414746512491334
load104894912875910791150
domContentLoaded104293512745910741144
domInteractive17135251631
firstPaint70678117441010541133
backgroundConnect74253814
firstReactRender20164142028
getState1463682031
initialActions001001
loadScripts797700100357830900
setupStore85162814
WebpackHomeuiStartup21441638253319522792506
load16621277195916217731912
domContentLoaded16561273195516117691904
domInteractive15115281343
firstPaint1576163576174275
backgroundConnect21114162435
firstReactRender1254437098119344
getState244318601532
initialActions315134
loadScripts16521271195316017671893
setupStore5163179520311
FirefoxBrowserifyHomeuiStartup1307116615447913531458
load1166104213827412061322
domContentLoaded1166104113827412051322
domInteractive1013425135111178
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect19137282035
firstReactRender23205142327
getState74364810
initialActions001001
loadScripts1149102813567411871306
setupStore63213610
WebpackHomeuiStartup15351357205313916181781
load13341162184713914281580
domContentLoaded13341162184713914281579
domInteractive7630444397897
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect20153242227
firstReactRender41284934446
getState95376930
initialActions002111
loadScripts13161146183013914101560
setupStore85353811
Benchmark value 52 exceeds gate value 32 for chrome webpack home mean setupStore
Benchmark value 2506 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 311 exceeds gate value 65 for chrome webpack home p95 setupStore
Benchmark value 42 exceeds gate value 38 for firefox webpack home mean firstReactRender
Sum of mean exceeds: 24ms | Sum of p95 exceeds: 298ms
Sum of all benchmark exceeds: 322ms

Bundle size diffs [🚀 Bundle size reduced!]
  • background: -20.51 KiB (-0.39%)
  • ui: -30.55 KiB (-0.42%)
  • common: 10.15 KiB (0.12%)

@ghgoodreau ghgoodreau marked this pull request as ready for review June 12, 2025 15:29
@ghgoodreau ghgoodreau requested a review from a team as a code owner June 12, 2025 15:29
@metamaskbot
Copy link
Collaborator

Builds ready [0187eda]
UI Startup Metrics (1207 ± 68 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1207110315016812511313
load105095613286611001162
domContentLoaded104493813236610911157
domInteractive17133541730
firstPaint77571119639910711158
backgroundConnect7430479
firstReactRender21155162039
getState1463071928
initialActions001001
loadScripts798690107064845915
setupStore75162813
WebpackHomeuiStartup19971530245021921352361
load15501198195817516871844
domContentLoaded15451194195417516831835
domInteractive151157101244
firstPaint1515929946180252
backgroundConnect2313367352231
firstReactRender1264536510797355
getState154307401017
initialActions215134
loadScripts15421193195217416801824
setupStore4573489416309
FirefoxBrowserifyHomeuiStartup1328117715537113681457
load1182104813897212261325
domContentLoaded1181104713897212261325
domInteractive1013518729117157
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect19134942026
firstReactRender23206052327
getState85404810
initialActions002001
loadScripts1164103713737112061306
setupStore74365611
WebpackHomeuiStartup1486134317249615401681
load1296115415379913481508
domContentLoaded1295115415369913481508
domInteractive77321231484108
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect20164352131
firstReactRender40304634245
getState75202810
initialActions001011
loadScripts1277113915199913311488
setupStore85445811
Benchmark value 46 exceeds gate value 32 for chrome webpack home mean setupStore
Benchmark value 309 exceeds gate value 65 for chrome webpack home p95 setupStore
Benchmark value 40 exceeds gate value 38 for firefox webpack home mean firstReactRender
Sum of mean exceeds: 16ms | Sum of p95 exceeds: 244ms
Sum of all benchmark exceeds: 260ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 51.34 KiB (0.98%)
  • ui: -29.3 KiB (-0.41%)
  • common: 79.14 KiB (0.96%)

// Yield topTokens from selected chain
for (const token_ of topTokens) {
const matchedToken = tokenList?.[token_.address];
const matchedToken = tokenList?.[token_.address.toLowerCase()];
Copy link
Member

Choose a reason for hiding this comment

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

I think this breaks the Solana topTokens ordering bc those addresses are case-sensitive

@metamaskbot
Copy link
Collaborator

Builds ready [b438604]
UI Startup Metrics (1214 ± 77 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1214109414227712591364
load105795212546811041180
domContentLoaded105093212446910981173
domInteractive16133541727
firstPaint733123125442010781167
backgroundConnect74265724
firstReactRender19162422023
getState1363671929
initialActions001001
loadScripts80668999569854925
setupStore74132712
WebpackHomeuiStartup21051599259521922172506
load16471270200818517741966
domContentLoaded16411265199418517691956
domInteractive171179131348
firstPaint1536334250169266
backgroundConnect239338322334
firstReactRender1264635396109341
getState1142541318
initialActions316134
loadScripts16381263198318317671944
setupStore5473219722312
FirefoxBrowserifyHomeuiStartup14731289176810415261677
load13061131159610313561509
domContentLoaded13051131159610313561509
domInteractive1063718225117155
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2516149162534
firstReactRender26226642629
getState84283912
initialActions001001
loadScripts12821115157910313371478
setupStore75202712
WebpackHomeuiStartup15171368178910215831725
load1319118915859913681529
domContentLoaded1318118915859913681528
domInteractive7740171158298
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect21165152227
firstReactRender41306654448
getState85293910
initialActions102111
loadScripts12991171156610013511508
setupStore8521289
Benchmark value 24 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 54 exceeds gate value 32 for chrome webpack home mean setupStore
Benchmark value 2506 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 312 exceeds gate value 65 for chrome webpack home p95 setupStore
Benchmark value 1473 exceeds gate value 1405 for firefox browserify home mean uiStartup
Benchmark value 1306 exceeds gate value 1245 for firefox browserify home mean load
Benchmark value 1306 exceeds gate value 1239 for firefox browserify home mean domContentLoaded
Benchmark value 26 exceeds gate value 25 for firefox browserify home mean backgroundConnect
Benchmark value 26 exceeds gate value 25 for firefox browserify home mean firstReactRender
Benchmark value 1283 exceeds gate value 1230 for firefox browserify home mean loadScripts
Benchmark value 1677 exceeds gate value 1660 for firefox browserify home p95 uiStartup
Benchmark value 1509 exceeds gate value 1495 for firefox browserify home p95 load
Benchmark value 1509 exceeds gate value 1495 for firefox browserify home p95 domContentLoaded
Benchmark value 1478 exceeds gate value 1475 for firefox browserify home p95 loadScripts
Benchmark value 42 exceeds gate value 38 for firefox webpack home mean firstReactRender
Sum of mean exceeds: 277ms | Sum of p95 exceeds: 353ms
Sum of all benchmark exceeds: 630ms

Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 431 Bytes (0.01%)
  • common: 0 Bytes (0%)

Comment on lines 261 to 262
: fromToken.address?.toLowerCase(),
// Ensure chainId is in CAIP format for proper comparison
Copy link
Member

@micaelae micaelae Jun 12, 2025

Choose a reason for hiding this comment

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

Non-evm addresses can be case-sensitive so I'd suggest avoiding case-insensitive comparisons and not using toLowerCase unless necessary. Maybe you can remove the lowercase operations on lines 200-201 as well if this is not lowecased?

@metamaskbot
Copy link
Collaborator

Builds ready [1c83dfd]
UI Startup Metrics (1222 ± 67 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1222110714926712631338
load106195712356111031159
domContentLoaded105595312266110981150
domInteractive1814107101732
firstPaint714127123642310901151
backgroundConnect74274711
firstReactRender20165852125
getState1363372027
initialActions001001
loadScripts80670796459848900
setupStore85152813
WebpackHomeuiStartup21051619254522422492486
load16301220194117817451915
domContentLoaded16241214193217717371905
domInteractive161154101348
firstPaint1566433750193247
backgroundConnect2410370352433
firstReactRender16346396121315351
getState1142241320
initialActions512892934
loadScripts16211210192717517351893
setupStore4773199219306
FirefoxBrowserifyHomeuiStartup1346118316649114001544
load1200103315069012471395
domContentLoaded1199103315059112461395
domInteractive1053522333125161
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2213118132233
firstReactRender23195652426
getState7411189
initialActions001001
loadScripts1180101914798812161379
setupStore74354711
WebpackHomeuiStartup1494134217929515351716
load1300116516069713341532
domContentLoaded1300116516069713331532
domInteractive78521201486110
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect21154852228
firstReactRender40304734245
getState95326929
initialActions001011
loadScripts1281115015869713161515
setupStore85294820
Benchmark value 47 exceeds gate value 32 for chrome webpack home mean setupStore
Benchmark value 2486 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 306 exceeds gate value 65 for chrome webpack home p95 setupStore
Benchmark value 41 exceeds gate value 38 for firefox webpack home mean firstReactRender
Sum of mean exceeds: 18ms | Sum of p95 exceeds: 273ms
Sum of all benchmark exceeds: 291ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: -1 Bytes (0%)
  • ui: 335 Bytes (0%)
  • common: 72 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [863fe7d]
UI Startup Metrics (1218 ± 63 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1218110413656312521353
load105795412096010981179
domContentLoaded105194912036010921174
domInteractive16143231725
firstPaint75678118740810741163
backgroundConnect74264710
firstReactRender20165962036
getState1463371926
initialActions001000
loadScripts80470694758847928
setupStore85232813
WebpackHomeuiStartup20831592251521322272464
load16131243191716417321876
domContentLoaded16071239190816317261867
domInteractive161255101346
firstPaint1546345861172259
backgroundConnect20104472237
firstReactRender12946363101128333
getState1152741321
initialActions316134
loadScripts16041237189716217251857
setupStore66732111320315
FirefoxBrowserifyHomeuiStartup1315118915217613521476
load1170106013937512101346
domContentLoaded1169106013937512091345
domInteractive993518128106159
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect20135062029
firstReactRender24216162329
getState7438389
initialActions001001
loadScripts1152104213647411931329
setupStore64384611
WebpackHomeuiStartup1474131717099815251669
load1286114415369913391490
domContentLoaded12861143153610013391490
domInteractive78521571584112
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect19164142024
firstReactRender39264534144
getState84294811
initialActions002111
loadScripts12691128151810013211475
setupStore85446723
Benchmark value 67 exceeds gate value 32 for chrome webpack home mean setupStore
Benchmark value 2464 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 315 exceeds gate value 65 for chrome webpack home p95 setupStore
Benchmark value 39 exceeds gate value 38 for firefox webpack home mean firstReactRender
Sum of mean exceeds: 36ms | Sum of p95 exceeds: 260ms
Sum of all benchmark exceeds: 296ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 7 Bytes (0%)
  • ui: 496 Bytes (0.01%)
  • common: 72 Bytes (0%)

@ghgoodreau ghgoodreau enabled auto-merge June 12, 2025 21:46
GustavoRSSilva
GustavoRSSilva previously approved these changes Jun 12, 2025
Co-authored-by: Micaela Estabillo <100321200+micaelae@users.noreply.github.com>
@metamaskbot
Copy link
Collaborator

Builds ready [b497908]
UI Startup Metrics (1186 ± 46 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1186108513584612131276
load102893211854810541112
domContentLoaded102292611814810491105
domInteractive16133241631
firstPaint727127115639810491079
backgroundConnect64273710
firstReactRender21179282137
getState1566692128
initialActions001001
loadScripts77768193147805854
setupStore85253813
WebpackHomeuiStartup21471642260421622932488
load16711270209718317731939
domContentLoaded16651264209318217661935
domInteractive171278131350
firstPaint1596250767175292
backgroundConnect2711426452436
firstReactRender15347364117313356
getState1142741321
initialActions316134
loadScripts16621261208318117651933
setupStore5063199520311
FirefoxBrowserifyHomeuiStartup1332116314997413881469
load1183103413447312221326
domContentLoaded1182103413437312221326
domInteractive1013629535111167
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect20144962230
firstReactRender24206362427
getState85404810
initialActions002001
loadScripts1165102413307212031309
setupStore74597611
WebpackHomeuiStartup15611367189012616501780
load13551173168912314401598
domContentLoaded13541173168812314401598
domInteractive78311601887106
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect21163032328
firstReactRender43306754653
getState95326929
initialActions102111
loadScripts13351155167012314241577
setupStore85283811
Benchmark value 50 exceeds gate value 32 for chrome webpack home mean setupStore
Benchmark value 2489 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 311 exceeds gate value 65 for chrome webpack home p95 setupStore
Benchmark value 44 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 53 exceeds gate value 50 for firefox webpack home p95 firstReactRender
Sum of mean exceeds: 24ms | Sum of p95 exceeds: 284ms
Sum of all benchmark exceeds: 308ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 7 Bytes (0%)
  • ui: 494 Bytes (0.01%)
  • common: 72 Bytes (0%)

@ghgoodreau ghgoodreau added this pull request to the merge queue Jun 13, 2025
Merged via the queue into main with commit 05853aa Jun 13, 2025
145 checks passed
@ghgoodreau ghgoodreau deleted the mms-2553-swaps-unified-ui branch June 13, 2025 08:59
@github-actions github-actions bot locked and limited conversation to collaborators Jun 13, 2025
@metamaskbot metamaskbot added the release-12.22.0 Issue or pull request that will be included in release 12.22.0 label Jun 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants