Skip to content

Conversation

@micaelae
Copy link
Member

@micaelae micaelae commented Nov 28, 2025

Description

This cleans up bridge redux state, selectors and actions to prepare for the AssetPicker refactor

  • remove destination exchange rate management since the data now comes from the bridge-controller
    • toTokenExchangeRate and toTokenUsdExchangeRate from state
    • update useBridgeExchangeRates to only fetch source exchange rates
  • remove unused selectors: getAllBridgeableNetworks, getToTokenConversionRate, getIsBridgeTx
  • tighten selector parameter/return types
  • replace NetworkConfiguration type references with BridgeNetwork (minimal network object required by swaps) for better type safety
  • use typed state overrides in unit test mock data builder (many unit test mock data was updated as a result)

Open in GitHub Codespaces

Changelog

CHANGELOG entry: refactor: remove unused swap selectors and fix types

Related issues

Fixes: N/A

Manual testing steps

No user-facing changes

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

Cleans up bridge state and selectors by dropping destination exchange-rate handling, tightening types (incl. BridgeNetwork), simplifying actions/hooks, and updating tests/stories accordingly.

  • State/Actions:
    • Remove toTokenExchangeRate and toTokenUsdExchangeRate from bridge state and related actions/thunks.
    • Simplify setFromChain to accept chainId (Hex/CAIP) and derive network client id; auto-select native token for non‑EVM.
    • Keep only source exchange-rate fetching via setSrcTokenExchangeRates.
  • Selectors:
    • Replace getAllBridgeableNetworks with record-based lookup from multichainNetworkConfigurationsByChainId.
    • Remove unused selectors (getToTokenConversionRate, getIsBridgeTx).
    • Tighten types and memoization; add BridgeNetwork type; refine balances and validation logic; expose price impact thresholds and no-fee assets via feature flags.
  • Hooks/Utils:
    • useBridgeExchangeRates now fetches only source token rates and uses cache.
    • useBridgeQueryParams updated to work with new types and chain selection flow.
    • Remove unused useSolanaBridgeTransactionMapping hook.
    • Improve isQuoteExpiredOrInvalid, isNetworkAdded, and image/balance handling; add safeAmountForCalc.
  • UI:
    • Prepare page and quote card wired to new selector/state shape; switch‑tokens enablement uses updated network checks.
  • Tests/Stories:
    • Update mocks to typed featureFlagOverrides: { bridgeConfig } and BridgeControllerState fields; adjust snapshots and fixtures to new shapes.
  • Constants:
    • Mark ALLOWED_BRIDGE_CHAIN_IDS as const; add SLIP44_ASSET_NAMESPACE.

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

@metamaskbot
Copy link
Collaborator

metamaskbot commented Dec 1, 2025

✨ Files requiring CODEOWNER review ✨

🕵️ @MetaMask/extension-privacy-reviewers (1 files, +0 -2)
  • 📁 test/
    • 📁 e2e/
      • 📁 tests/
        • 📁 settings/
          • 📄 state-logs.json +0 -2

🧪 @MetaMask/qa (1 files, +0 -2)
  • 📁 test/
    • 📁 e2e/
      • 📁 tests/
        • 📁 settings/
          • 📄 state-logs.json +0 -2

🔄 @MetaMask/swaps-engineers (26 files, +354 -1605)
  • 📁 test/
    • 📁 data/
      • 📁 bridge/
        • 📄 mock-bridge-store.ts +6 -11
  • 📁 ui/
    • 📁 ducks/
      • 📁 bridge/
        • 📄 actions.ts +19 -50
        • 📄 bridge.test.ts +0 -113
        • 📄 bridge.ts +0 -25
        • 📄 selectors.test.ts +44 -490
        • 📄 selectors.ts +126 -249
        • 📄 types.ts +9 -5
        • 📄 utils.ts +3 -13
    • 📁 hooks/
      • 📁 bridge/
        • 📁 __snapshots__/
          • 📄 useBridgeQueryParams.test.ts.snap +0 -7
          • 📄 useBridgeExchangeRates.ts +21 -97
          • 📄 useBridgeQueryParams.ts +5 -15
          • 📄 useCountdownTimer.test.ts +1 -1
          • 📄 useSolanaBridgeTransactionMapping.ts +0 -389
          • 📄 useTokenAlerts.test.ts +1 -1
          • 📄 useTokensWithFiltering.ts +1 -1
    • 📁 pages/
      • 📁 bridge/
        • 📁 hooks/
          • 📄 useDestinationAccount.test.tsx +7 -1
        • 📁 prepare/
          • 📄 bridge-cta-button.test.tsx +15 -14
          • 📄 bridge-transaction-settings-modal.stories.tsx +0 -2
          • 📄 prepare-bridge-page.stories.tsx +8 -41
          • 📄 prepare-bridge-page.test.tsx +4 -12
          • 📄 prepare-bridge-page.tsx +23 -14
        • 📁 quotes/
          • 📁 __snapshots__/
            • 📄 multichain-bridge-quote-card.test.tsx.snap +5 -5
            • 📄 bridge-quotes-modal.stories.tsx +10 -8
            • 📄 bridge-quotes-modal.test.tsx +4 -4
            • 📄 multichain-bridge-quote-card.test.tsx +41 -36
          • 📄 index.test.tsx +1 -1

@metamaskbot
Copy link
Collaborator

Builds ready [31288a4]
UI Startup Metrics (1248 ± 120 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12481034162312013271458
load103586112739911081227
domContentLoaded102885612669810901218
domInteractive261592202187
firstPaint691139124441110531208
backgroundConnect21418726615224241
firstReactRender312064103451
getState3515124174155
initialActions107113
loadScripts821654106294885999
setupStore1264161426
numNetworkReqs1257821574
BrowserifyPower User HomeuiStartup20871778310426922652583
load1033894147313010311371
domContentLoaded1018878146513110191365
domInteractive36161773036107
firstPaint54310914814089601336
backgroundConnect256206733101236518
firstReactRender5743100106185
getState17913426929188242
initialActions104112
loadScripts80867812501308041150
setupStore2196492637
numNetworkReqs103642755197250
WebpackStandard HomeuiStartup8317101123888561044
load64557494879668819
domContentLoaded64056694479662813
domInteractive2716106222393
firstPaint24774869182233690
backgroundConnect1057271218
firstReactRender3020227213340
getState281282123749
initialActions105113
loadScripts63756494077660804
setupStore1163751223
numNetworkReqs1257720572
WebpackPower User HomeuiStartup17011266262228519652196
load6705881247107674911
domContentLoaded6605811241107663905
domInteractive35171993133122
firstPaint3191201014214442707
backgroundConnect68859414519450
firstReactRender6543102117187
getState19914469786197234
initialActions103112
loadScripts6575791230105661895
setupStore21675132051
numNetworkReqs1547042678205338
FirefoxBrowserifyStandard HomeuiStartup12891086172713213731541
load106893112858211321203
domContentLoaded106793112858211301202
domInteractive65321893889160
firstPaint------
backgroundConnect46221382657100
firstReactRender22174752433
getState126143161027
initialActions109122
loadScripts104191412617410921179
setupStore156236271343
numNetworkReqs1256417662
BrowserifyPower User HomeuiStartup25841879467256725974105
load1183905248930712172096
domContentLoaded1183905248930712172095
domInteractive1143145297110400
firstPaint------
backgroundConnect126201049162118485
firstReactRender58341221862102
getState272641077218351783
initialActions2029322
loadScripts1132884236824611701501
setupStore1746771205223675
numNetworkReqs1026324953124242
WebpackStandard HomeuiStartup15251285213516216251912
load12621078160710413481445
domContentLoaded12611078160710413481444
domInteractive66272364087131
firstPaint------
backgroundConnect54222943859122
firstReactRender27216262936
getState176158211651
initialActions103122
loadScripts1228106215539713021383
setupStore205286411485
numNetworkReqs1156716760
WebpackPower User HomeuiStartup29872268597979830184846
load14811226310741914172704
domContentLoaded14811225310641914172704
domInteractive11328507104107411
firstPaint------
backgroundConnect1643314192321381002
firstReactRender69402793470152
getState315501300273440900
initialActions217123
loadScripts13981175294331113721839
setupStore1305760170121598
numNetworkReqs101592445885239
📊 Page Load Benchmark Results

Current Commit: 31288a4 | Date: 12/1/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

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

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 37ms 1.01s 1.30s 1.07s 1.30s
domContentLoaded 718ms 35ms 701ms 972ms 754ms 972ms
firstPaint 77ms 11ms 68ms 176ms 88ms 176ms
firstContentfulPaint 77ms 11ms 68ms 176ms 88ms 176ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: -4.16 KiB (-0.05%)
  • common: 20 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [bd81e44]
UI Startup Metrics (1452 ± 153 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup14521136184115315591743
load1202959155813612991464
domContentLoaded1193956151113312851453
domInteractive32151292526106
firstPaint76078153648712221404
backgroundConnect27821036734304339
firstReactRender3819189224163
getState44141242249101
initialActions1011214
loadScripts923707120611710151143
setupStore1576071726
numNetworkReqs1257821576
BrowserifyPower User HomeuiStartup20841755296628622682667
load1015884149613110101375
domContentLoaded100187614841319931365
domInteractive34171642732100
firstPaint53810815023929571381
backgroundConnect24820470594229531
firstReactRender5642119125980
getState19214169575198242
initialActions102112
loadScripts79367512471257911153
setupStore2064572336
numNetworkReqs1676542177207373
WebpackStandard HomeuiStartup8307091198848591008
load64356785270684807
domContentLoaded63855884570678801
domInteractive2716111222193
firstPaint230102816167213682
backgroundConnect135341341126
firstReactRender28195473239
getState261362113349
initialActions102112
loadScripts63555583568676796
setupStore1063131317
numNetworkReqs1257620571
WebpackPower User HomeuiStartup16501303227927019082219
load6855971068102686959
domContentLoaded6755871061103672954
domInteractive39181953336123
firstPaint272951018179256676
backgroundConnect80861217319570
firstReactRender624710096779
getState17413023220185211
initialActions103112
loadScripts6725851053101670945
setupStore1975592339
numNetworkReqs1716643987215415
FirefoxBrowserifyStandard HomeuiStartup13211110187614513991643
load108593112778211411241
domContentLoaded108493112778211411240
domInteractive59311853381133
firstPaint------
backgroundConnect51212383957137
firstReactRender23184552335
getState13779131139
initialActions102012
loadScripts105291512026811031168
setupStore146244271325
numNetworkReqs1156816661
BrowserifyPower User HomeuiStartup26471912557268226384599
load1215966282837811442478
domContentLoaded1215966282837811432478
domInteractive11035493106104468
firstPaint------
backgroundConnect123271218145132362
firstReactRender60351452160107
getState298611259240425804
initialActions2036423
loadScripts1153950252629611111920
setupStore1757774191207673
numNetworkReqs102623186282240
WebpackStandard HomeuiStartup16831383300523217842082
load13671182280618214171592
domContentLoaded13671182280618214161591
domInteractive72302343787127
firstPaint------
backgroundConnect58223354752158
firstReactRender30218983141
getState2172193614130
initialActions102122
loadScripts13361156276817713741551
setupStore2061442615106
numNetworkReqs1256617763
WebpackPower User HomeuiStartup30002224501069230904830
load14961203295540514912716
domContentLoaded14961202295540514912716
domInteractive125251117153104487
firstPaint------
backgroundConnect174401320239143999
firstReactRender69402172970132
getState317691752289417862
initialActions2032327
loadScripts14131123285430014212115
setupStore15671073208157692
numNetworkReqs102623396479243
📊 Page Load Benchmark Results

Current Commit: bd81e44 | Date: 12/1/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±46ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 726ms (±69ms) 🟢 | historical mean value: 725ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 81ms (±49ms) 🟢 | historical mean value: 80ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 46ms 1.01s 1.42s 1.06s 1.42s
domContentLoaded 726ms 69ms 699ms 1.37s 745ms 1.37s
firstPaint 81ms 49ms 64ms 564ms 84ms 564ms
firstContentfulPaint 81ms 49ms 64ms 564ms 84ms 564ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: -4.56 KiB (-0.06%)
  • common: 20 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [a51b7d8]
UI Startup Metrics (1227 ± 113 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12271010150111313041441
load1030849126310311071224
domContentLoaded1024844125510210931216
domInteractive2715149222283
firstPaint5058012583919641162
backgroundConnect21719726513224247
firstReactRender301969103455
getState3614128174156
initialActions105113
loadScripts8136511047998871005
setupStore1273851322
numNetworkReqs1257720573
BrowserifyPower User HomeuiStartup21641841290223522552674
load1081954151212810801411
domContentLoaded1065933150412910561393
domInteractive38171653035125
firstPaint57498152843010211381
backgroundConnect273221802107249590
firstReactRender63421341768100
getState18713426329206245
initialActions105112
loadScripts84271412871288331172
setupStore20114362431
numNetworkReqs103662825195252
WebpackStandard HomeuiStartup8427121080858811014
load65857388881697851
domContentLoaded65356688280692845
domInteractive2816108222491
firstPaint22985889173209709
backgroundConnect1053451217
firstReactRender28204563239
getState261375113547
initialActions104112
loadScripts65156387379690836
setupStore1173041319
numNetworkReqs1257520573
WebpackPower User HomeuiStartup16551284266727919332126
load6815851305105695915
domContentLoaded6715781296105680908
domInteractive35181512831115
firstPaint31090949225403849
backgroundConnect79763516620559
firstReactRender61468586776
getState17813769154182207
initialActions104112
loadScripts6685761287104678898
setupStore231058132554
numNetworkReqs1667042980216377
FirefoxBrowserifyStandard HomeuiStartup12921061171312813691564
load107691415249511361232
domContentLoaded107591315249511351232
domInteractive5732262328094
firstPaint------
backgroundConnect45221552843112
firstReactRender22185552327
getState97283915
initialActions106112
loadScripts104990014248411061184
setupStore155158221059
numNetworkReqs1156915653
BrowserifyPower User HomeuiStartup25711958521646226683369
load1174989257419011841472
domContentLoaded1174989257418911831472
domInteractive1133955094111348
firstPaint------
backgroundConnect1032748976116247
firstReactRender5836149176294
getState26367860206256829
initialActions2042426
loadScripts1139964246117911471418
setupStore1969815218256752
numNetworkReqs100533236082235
WebpackStandard HomeuiStartup16211356231717417351944
load1313113816709813871482
domContentLoaded1313113816709813871482
domInteractive68291973686132
firstPaint------
backgroundConnect59222044266172
firstReactRender30214653340
getState167143201554
initialActions103123
loadScripts1283112316329113371444
setupStore2261653015110
numNetworkReqs1256517764
WebpackPower User HomeuiStartup31002318534976232995020
load15531204310647215162879
domContentLoaded15521204310547215162878
domInteractive11730512112106454
firstPaint------
backgroundConnect1722812182341461023
firstReactRender73423424970124
getState320891384259430858
initialActions2139423
loadScripts14591181301835214752075
setupStore1349762175134599
numNetworkReqs102582506278242
📊 Page Load Benchmark Results

Current Commit: a51b7d8 | Date: 12/1/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.08s (±43ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 730ms (±40ms) 🟢 | historical mean value: 730ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 83ms (±13ms) 🟢 | historical mean value: 80ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.08s 43ms 1.05s 1.39s 1.11s 1.39s
domContentLoaded 730ms 40ms 701ms 1.02s 752ms 1.02s
firstPaint 83ms 13ms 68ms 200ms 96ms 200ms
firstContentfulPaint 83ms 13ms 68ms 200ms 96ms 200ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: -4.56 KiB (-0.06%)
  • common: 20 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [ae45132]
UI Startup Metrics (1277 ± 115 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12771106179411513361491
load1062894150910511101261
domContentLoaded1056890148710311071250
domInteractive2815108222390
firstPaint57685151743010591233
backgroundConnect23020729416237263
firstReactRender3219139163359
getState3816121174675
initialActions104112
loadScripts8326821244988741035
setupStore1263451422
numNetworkReqs1257420571
BrowserifyPower User HomeuiStartup20431729271315721002396
load1057912145811010631333
domContentLoaded1041900145011010481323
domInteractive40182653934134
firstPaint5749314634009991316
backgroundConnect25421463678242532
firstReactRender5842107136394
getState19114271157204239
initialActions104113
loadScripts82269412101078221110
setupStore22105492542
numNetworkReqs95672052497144
WebpackStandard HomeuiStartup8567241109878941055
load66957591285706851
domContentLoaded66456989985702844
domInteractive2916129252498
firstPaint23877912179209743
backgroundConnect1059191018
firstReactRender28214263238
getState271461123453
initialActions104112
loadScripts66156889083700841
setupStore1172941319
numNetworkReqs1257319571
WebpackPower User HomeuiStartup15741248217620516582071
load674587109188687873
domContentLoaded664580108689677866
domInteractive32171332429100
firstPaint287102901202262694
backgroundConnect101967417996553
firstReactRender59449886471
getState17012767555174221
initialActions104112
loadScripts661578107587675855
setupStore201064122254
numNetworkReqs956627632100165
FirefoxBrowserifyStandard HomeuiStartup12641057193816814021599
load1048905136510311111276
domContentLoaded1047904136510311111276
domInteractive55312323276109
firstPaint------
backgroundConnect43182003142107
firstReactRender22183742334
getState146218241026
initialActions102122
loadScripts102188913449210841206
setupStore146237261135
numNetworkReqs1256516660
BrowserifyPower User HomeuiStartup27442011514763327954354
load12221011297528312331548
domContentLoaded12221011297528312331548
domInteractive1083340573111304
firstPaint------
backgroundConnect146271146162135452
firstReactRender60361972261102
getState310611135233404817
initialActions2136423
loadScripts1168979278422911691473
setupStore162131066228123762
numNetworkReqs91543034979241
WebpackStandard HomeuiStartup15831329213716716541902
load12961117176411513391565
domContentLoaded12961116176411513381565
domInteractive63281653483131
firstPaint------
backgroundConnect56222744261153
firstReactRender28197073039
getState177130221469
initialActions204123
loadScripts12641076170310813141534
setupStore166186211545
numNetworkReqs1256417762
WebpackPower User HomeuiStartup30032111552886128915010
load15451174309948116502883
domContentLoaded15441174309848116502883
domInteractive12327461104110413
firstPaint------
backgroundConnect161371151218130821
firstReactRender69393675162153
getState286621236234339764
initialActions207123
loadScripts14671156293038616222595
setupStore17961277237212735
numNetworkReqs91572554480228
📊 Page Load Benchmark Results

Current Commit: ae45132 | Date: 12/1/2025

📄 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: 725ms (±36ms) 🟢 | historical mean value: 732ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±9ms) 🟢 | historical mean value: 81ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 40ms 1.02s 1.37s 1.06s 1.37s
domContentLoaded 725ms 36ms 700ms 1.01s 749ms 1.01s
firstPaint 77ms 9ms 56ms 144ms 88ms 144ms
firstContentfulPaint 77ms 9ms 56ms 144ms 88ms 144ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: -7.78 KiB (-0.15%)
  • ui: -4.93 KiB (-0.06%)
  • common: 40.96 KiB (0.46%)

@metamaskbot
Copy link
Collaborator

Builds ready [de91a29]
UI Startup Metrics (1313 ± 126 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup13131047177012613951498
load1097899143810911781293
domContentLoaded1091892142810811721285
domInteractive2916172252494
firstPaint51190132242210381240
backgroundConnect22920527313236254
firstReactRender352277114060
getState4218118185174
initialActions106114
loadScripts86868212131059481058
setupStore1465161625
numNetworkReqs1257719571
BrowserifyPower User HomeuiStartup19511536235719121282318
load96784013291119741287
domContentLoaded95382913011129631273
domInteractive3216118233098
firstPaint4828713353639041215
backgroundConnect22719554960223354
firstReactRender5437190185683
getState18211264369189234
initialActions103112
loadScripts75264111021087561063
setupStore18103562230
numNetworkReqs1456933059202261
WebpackStandard HomeuiStartup8287101079838641024
load64156787673678808
domContentLoaded63656287172674802
domInteractive2615119222289
firstPaint24284821186218703
backgroundConnect1067581118
firstReactRender3019240233339
getState261264103442
initialActions103111
loadScripts63356086171672794
setupStore1143041319
numNetworkReqs1257420572
WebpackPower User HomeuiStartup15601280214019615861991
load68158798785701879
domContentLoaded67157998186691874
domInteractive36171792835107
firstPaint265105715161273669
backgroundConnect46859911718471
firstReactRender57427576369
getState1748723419183211
initialActions104113
loadScripts66857797084689865
setupStore23756132950
numNetworkReqs1656939965217291
FirefoxBrowserifyStandard HomeuiStartup13211083182716114191660
load1099940147910811511321
domContentLoaded1098939147910811511321
domInteractive58311893083119
firstPaint------
backgroundConnect47221713148125
firstReactRender22183742332
getState167218301089
initialActions102112
loadScripts106992214179711131278
setupStore12585131038
numNetworkReqs1156516657
BrowserifyPower User HomeuiStartup26211859464255326564244
load1254944258336213272385
domContentLoaded1254944258236213272384
domInteractive1203344496130390
firstPaint------
backgroundConnect164241178214153751
firstReactRender5535135165988
getState24565978205232745
initialActions207122
loadScripts1190929248629312832046
setupStore1355716173134634
numNetworkReqs94633264698184
WebpackStandard HomeuiStartup14991230207715115861780
load1232106014959613151405
domContentLoaded1231106014959613151405
domInteractive58262203781129
firstPaint------
backgroundConnect46191542748122
firstReactRender27196972936
getState13779111238
initialActions103123
loadScripts1209104414329112931359
setupStore14697141146
numNetworkReqs1256617762
WebpackPower User HomeuiStartup29552153584679528594952
load15171190320047215682756
domContentLoaded15161190320047215682756
domInteractive123301084133121368
firstPaint------
backgroundConnect178341588246165560
firstReactRender68402153367144
getState285631050251322863
initialActions207123
loadScripts14411155301339715252617
setupStore102678015391451
numNetworkReqs91622434383218
📊 Page Load Benchmark Results

Current Commit: de91a29 | Date: 12/1/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±132ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 724ms (±130ms) 🟢 | historical mean value: 732ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 85ms (±110ms) 🟢 | historical mean value: 81ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 132ms 1.00s 2.33s 1.04s 2.33s
domContentLoaded 724ms 130ms 696ms 2.00s 726ms 2.00s
firstPaint 85ms 110ms 56ms 1.18s 84ms 1.18s
firstContentfulPaint 85ms 110ms 56ms 1.18s 84ms 1.18s
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: -7.78 KiB (-0.15%)
  • ui: -4.93 KiB (-0.06%)
  • common: 40.96 KiB (0.46%)

@micaelae micaelae marked this pull request as ready for review December 1, 2025 22:53
@micaelae micaelae requested review from a team as code owners December 1, 2025 22:53
@metamaskbot
Copy link
Collaborator

Builds ready [b4a84dc]
UI Startup Metrics (1247 ± 101 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12471023146510113201417
load103886212698710921191
domContentLoaded103285912628610861182
domInteractive261698202284
firstPaint54984127241910471189
backgroundConnect21719725313224240
firstReactRender3520220223960
getState3716122164469
initialActions108113
loadScripts822658104484865975
setupStore1373751626
numNetworkReqs1257720570
BrowserifyPower User HomeuiStartup20521654257019321592433
load1027888148912210461360
domContentLoaded1012883147912310251351
domInteractive35171712834106
firstPaint54911315093989741325
backgroundConnect25220475998234490
firstReactRender5840112146389
getState19013869056203238
initialActions107112
loadScripts80268012551218121144
setupStore2310105142546
numNetworkReqs1637036858208270
WebpackStandard HomeuiStartup8457151131838761019
load65157794371687805
domContentLoaded64757093671683798
domInteractive2915137252397
firstPaint24375942190205718
backgroundConnect12676111327
firstReactRender28216573239
getState271469113546
initialActions102111
loadScripts64456892669681789
setupStore1162841318
numNetworkReqs1257620571
WebpackPower User HomeuiStartup15481273225118716162006
load68859597494696932
domContentLoaded67858996895686921
domInteractive37171613134122
firstPaint32290984235361917
backgroundConnect36759410017102
firstReactRender58467976573
getState1799970356183205
initialActions102012
loadScripts67558795993684913
setupStore22660112448
numNetworkReqs1646832261217290
FirefoxBrowserifyStandard HomeuiStartup13331041175616214271680
load1100896146010511671285
domContentLoaded1100895146010511631284
domInteractive62311582885108
firstPaint------
backgroundConnect50191853169105
firstReactRender22185252333
getState176211291094
initialActions102122
loadScripts107088114059711271247
setupStore12688121029
numNetworkReqs1156716661
BrowserifyPower User HomeuiStartup26642151481947827413799
load12321022267625012411581
domContentLoaded12321022267625012411581
domInteractive12335461103117427
firstPaint------
backgroundConnect13832592118133471
firstReactRender5839149156185
getState28763889215376773
initialActions3042627
loadScripts1193971254123511981551
setupStore1548792176178648
numNetworkReqs91612504481232
WebpackStandard HomeuiStartup15011245202415815981817
load12361045154510613011424
domContentLoaded12361045154410613011424
domInteractive57261823180116
firstPaint------
backgroundConnect49182153452130
firstReactRender26194352836
getState147132171243
initialActions204123
loadScripts12101031152110012761393
setupStore165218301141
numNetworkReqs1257017765
WebpackPower User HomeuiStartup28812165530465329154479
load14721187293038514742593
domContentLoaded14711186292938514742593
domInteractive1133144490113378
firstPaint------
backgroundConnect165291470253128877
firstReactRender66412643564180
getState27175903226364762
initialActions7010217359
loadScripts14001144290332114152369
setupStore1208804160110547
numNetworkReqs91613274491205
📊 Page Load Benchmark Results

Current Commit: b4a84dc | Date: 12/2/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±39ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 723ms (±35ms) 🟢 | historical mean value: 732ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±12ms) 🟢 | historical mean value: 81ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 39ms 1.01s 1.31s 1.07s 1.31s
domContentLoaded 723ms 35ms 703ms 982ms 747ms 982ms
firstPaint 77ms 12ms 60ms 180ms 84ms 180ms
firstContentfulPaint 77ms 12ms 60ms 180ms 84ms 180ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: -7.78 KiB (-0.15%)
  • ui: -4.77 KiB (-0.06%)
  • common: 40.96 KiB (0.46%)

@metamaskbot
Copy link
Collaborator

Builds ready [d884a21]
UI Startup Metrics (1250 ± 123 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12501017166312313361443
load1040875138311011081263
domContentLoaded1034870137610911031257
domInteractive261496192282
firstPaint4998212523949651172
backgroundConnect21720026211224237
firstReactRender29207293145
getState39161162244100
initialActions106113
loadScripts82266811461058911049
setupStore1163351222
numNetworkReqs1257720571
BrowserifyPower User HomeuiStartup20221702245614020812347
load1033898130710710451301
domContentLoaded1019889129910910371292
domInteractive3418136223396
firstPaint53811213163879731203
backgroundConnect265205753105237559
firstReactRender5740114156195
getState19110868857205256
initialActions104112
loadScripts80668410941088231081
setupStore22976112543
numNetworkReqs94681982298142
WebpackStandard HomeuiStartup784675101182805982
load61553386177636802
domContentLoaded61052785477631794
domInteractive2614130232083
firstPaint27593788198327707
backgroundConnect962941017
firstReactRender27198383236
getState22115392541
initialActions102112
loadScripts60852584775629785
setupStore1062641121
numNetworkReqs1257520571
WebpackPower User HomeuiStartup15541268221521315931998
load673578101586684902
domContentLoaded663571100887667895
domInteractive36181963032112
firstPaint2891021014202283741
backgroundConnect3576279619112
firstReactRender59459696376
getState18010469574183203
initialActions102012
loadScripts66057099785665893
setupStore19849102343
numNetworkReqs1626938565219303
FirefoxBrowserifyStandard HomeuiStartup13941106210518314841791
load1139944156811712091363
domContentLoaded1138944156711712091362
domInteractive64321633185128
firstPaint------
backgroundConnect61223454773130
firstReactRender24195452437
getState187269351197
initialActions103122
loadScripts110092614699911561285
setupStore186268361165
numNetworkReqs1256617664
BrowserifyPower User HomeuiStartup26161935469959626174198
load12451007275537112322468
domContentLoaded12451007275537112312467
domInteractive1123242980118326
firstPaint------
backgroundConnect171301216237150996
firstReactRender60351241863103
getState29266971244407844
initialActions2037423
loadScripts1186976257129911971837
setupStore13371227192126578
numNetworkReqs90552454289219
WebpackStandard HomeuiStartup15071277205516315591847
load12491063153410213031458
domContentLoaded12491063153410213031458
domInteractive56281493080112
firstPaint------
backgroundConnect54202463863148
firstReactRender25196562735
getState126118131223
initialActions104123
loadScripts1219104215149312731377
setupStore135103161043
numNetworkReqs1156716759
WebpackPower User HomeuiStartup30062332552376729784615
load15221175374348115422760
domContentLoaded15211175374348215412760
domInteractive11732993126109336
firstPaint------
backgroundConnect163261165224136834
firstReactRender64382303062144
getState278511304260306841
initialActions218123
loadScripts14391105362939715012505
setupStore1496786182209618
numNetworkReqs946022737110175
📊 Page Load Benchmark Results

Current Commit: d884a21 | Date: 12/2/2025

📄 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: 726ms (±37ms) 🟢 | historical mean value: 732ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 78ms (±10ms) 🟢 | historical mean value: 81ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 40ms 1.01s 1.33s 1.08s 1.33s
domContentLoaded 726ms 37ms 703ms 1.00s 752ms 1.00s
firstPaint 78ms 10ms 60ms 160ms 88ms 160ms
firstContentfulPaint 78ms 10ms 60ms 160ms 88ms 160ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: -4.41 KiB (-0.06%)
  • common: 20 Bytes (0%)

@micaelae micaelae enabled auto-merge December 2, 2025 04:12
@metamaskbot
Copy link
Collaborator

Builds ready [e4d03e8]
UI Startup Metrics (1283 ± 105 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12831060164910513421457
load106990413878911251221
domContentLoaded106289413798811201214
domInteractive261594192385
firstPaint53082138941010091194
backgroundConnect22520526111232249
firstReactRender30205183447
getState3516113194181
initialActions107113
loadScripts8446791153878961003
setupStore1366371329
numNetworkReqs1257720572
BrowserifyPower User HomeuiStartup20811728270620021842507
load1030907139011210421338
domContentLoaded1017902137911310251329
domInteractive3618106223796
firstPaint53410114123979871291
backgroundConnect266205723112243560
firstReactRender5738107136289
getState19713673579206247
initialActions1013113
loadScripts80269511621108081103
setupStore20104682441
numNetworkReqs1656932759210268
WebpackStandard HomeuiStartup793677103078821969
load61454780668647788
domContentLoaded60954580168642783
domInteractive251498202085
firstPaint24575770167236638
backgroundConnect953351020
firstReactRender28204573543
getState24125893042
initialActions104112
loadScripts60754379367640775
setupStore1062541218
numNetworkReqs1257520572
WebpackPower User HomeuiStartup15731277215921116462032
load65757393584669893
domContentLoaded64756692884654885
domInteractive35171362734120
firstPaint30890933218356790
backgroundConnect65764415319545
firstReactRender61438896777
getState20513971396201249
initialActions102012
loadScripts64456491983652876
setupStore20753122051
numNetworkReqs1607138864218289
FirefoxBrowserifyStandard HomeuiStartup12851051192514813831548
load107690713479711391256
domContentLoaded107690613479711391256
domInteractive57301543082118
firstPaint------
backgroundConnect44212143046105
firstReactRender21173742230
getState146205251072
initialActions102012
loadScripts104688913328510921200
setupStore14527630941
numNetworkReqs1156516659
BrowserifyPower User HomeuiStartup25611915479547526663879
load1198964298329711911510
domContentLoaded1197964298329711901509
domInteractive12834983122124373
firstPaint------
backgroundConnect142261031156139464
firstReactRender5536108145985
getState32158964264505911
initialActions2032323
loadScripts1163950280028411641474
setupStore1436819189140603
numNetworkReqs93613044589213
WebpackStandard HomeuiStartup14991232202816615851867
load1241105914719913171433
domContentLoaded1241105914709913171433
domInteractive51261433073115
firstPaint------
backgroundConnect45191392447102
firstReactRender26196472838
getState13776121228
initialActions205124
loadScripts1215104514259412941388
setupStore165102191463
numNetworkReqs1257217761
WebpackPower User HomeuiStartup29632123550274429144858
load14871197310339715052664
domContentLoaded14871197310339715052664
domInteractive11631491102111403
firstPaint------
backgroundConnect163251037187164620
firstReactRender68422773864122
getState27362966225346844
initialActions207123
loadScripts14241182292432014712366
setupStore1087128918976570
numNetworkReqs91592374193189
📊 Page Load Benchmark Results

Current Commit: e4d03e8 | Date: 12/2/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±39ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 728ms (±37ms) 🟢 | historical mean value: 732ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±10ms) 🟢 | historical mean value: 81ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 39ms 1.02s 1.33s 1.07s 1.33s
domContentLoaded 728ms 37ms 703ms 995ms 744ms 995ms
firstPaint 77ms 10ms 60ms 148ms 88ms 148ms
firstContentfulPaint 77ms 10ms 60ms 148ms 88ms 148ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: -4.41 KiB (-0.06%)
  • common: 20 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [ecbf219]
UI Startup Metrics (1260 ± 112 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12601044160211213301451
load105186913629511151203
domContentLoaded104586613549511111199
domInteractive2615105202382
firstPaint54081136641110231207
backgroundConnect21919326912226244
firstReactRender28205783149
getState341492144165
initialActions105113
loadScripts833666115092888981
setupStore1153051321
numNetworkReqs1257620573
BrowserifyPower User HomeuiStartup------
load------
domContentLoaded------
domInteractive------
firstPaint------
backgroundConnect------
firstReactRender------
getState------
initialActions------
loadScripts------
setupStore------
numNetworkReqs------
WebpackStandard HomeuiStartup8176921080888451022
load63656593978653790
domContentLoaded63155893577650785
domInteractive27141102422101
firstPaint23084785165214623
backgroundConnect1055161218
firstReactRender27193953137
getState261379133444
initialActions103111
loadScripts62855693376648781
setupStore126147141320
numNetworkReqs1257520571
WebpackPower User HomeuiStartup15031220213320515561967
load647562103089656873
domContentLoaded637555102489649857
domInteractive34161582731112
firstPaint33792887232594837
backgroundConnect47756712617509
firstReactRender57448076273
getState17914323618187217
initialActions103012
loadScripts635553101587647849
setupStore18959101943
numNetworkReqs1627231160213290
FirefoxBrowserifyStandard HomeuiStartup12831057190712913731486
load105591313358511011227
domContentLoaded105491213348511001227
domInteractive5631137268396
firstPaint------
backgroundConnect48203214045121
firstReactRender23184752335
getState12691121024
initialActions102112
loadScripts102889812087410761165
setupStore1163971129
numNetworkReqs1256617761
BrowserifyPower User HomeuiStartup25921975434842926993716
load1168963252420411851493
domContentLoaded1167963252420411851493
domInteractive1133250193111378
firstPaint------
backgroundConnect124261154140116488
firstReactRender61351792263105
getState28872917223389828
initialActions217123
loadScripts1123937186914811341441
setupStore1458761181151615
numNetworkReqs92583535282232
WebpackStandard HomeuiStartup15751329212913916591797
load1301112115569113531485
domContentLoaded1301112015559113531485
domInteractive71281483587134
firstPaint------
backgroundConnect4820233295299
firstReactRender28207582941
getState1275581224
initialActions104122
loadScripts1273108914858413261422
setupStore166237271242
numNetworkReqs1256716761
WebpackPower User HomeuiStartup29752139543573829394882
load14781198305540315112644
domContentLoaded14781192305540315102644
domInteractive1073147986109325
firstPaint------
backgroundConnect205311483269182943
firstReactRender68422072967134
getState314811768275470783
initialActions206123
loadScripts13891147287631014292052
setupStore1176772167109597
numNetworkReqs92562493997176
📊 Page Load Benchmark Results

Current Commit: ecbf219 | Date: 12/2/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.02s (±40ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 708ms (±37ms) 🟢 | historical mean value: 722ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 75ms (±12ms) 🟢 | historical mean value: 79ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.02s 40ms 995ms 1.30s 1.04s 1.30s
domContentLoaded 708ms 37ms 686ms 973ms 736ms 973ms
firstPaint 75ms 12ms 56ms 180ms 80ms 180ms
firstContentfulPaint 75ms 12ms 56ms 180ms 80ms 180ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: -4.76 KiB (-0.06%)
  • common: 20 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [ecbf219]
UI Startup Metrics (1260 ± 112 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12601044160211213301451
load105186913629511151203
domContentLoaded104586613549511111199
domInteractive2615105202382
firstPaint54081136641110231207
backgroundConnect21919326912226244
firstReactRender28205783149
getState341492144165
initialActions105113
loadScripts833666115092888981
setupStore1153051321
numNetworkReqs1257620573
BrowserifyPower User HomeuiStartup19891633240616120692382
load1021889135611010661272
domContentLoaded1007877135011010451266
domInteractive3317130213190
firstPaint53910713243909631210
backgroundConnect263204783119233537
firstReactRender5839105146390
getState18213430428198231
initialActions106113
loadScripts79867811261078371062
setupStore20104782237
numNetworkReqs926620622103138
WebpackStandard HomeuiStartup8176921080888451022
load63656593978653790
domContentLoaded63155893577650785
domInteractive27141102422101
firstPaint23084785165214623
backgroundConnect1055161218
firstReactRender27193953137
getState261379133444
initialActions103111
loadScripts62855693376648781
setupStore126147141320
numNetworkReqs1257520571
WebpackPower User HomeuiStartup15031220213320515561967
load647562103089656873
domContentLoaded637555102489649857
domInteractive34161582731112
firstPaint33792887232594837
backgroundConnect47756712617509
firstReactRender57448076273
getState17914323618187217
initialActions103012
loadScripts635553101587647849
setupStore18959101943
numNetworkReqs1627231160213290
FirefoxBrowserifyStandard HomeuiStartup12831057190712913731486
load105591313358511011227
domContentLoaded105491213348511001227
domInteractive5631137268396
firstPaint------
backgroundConnect48203214045121
firstReactRender23184752335
getState12691121024
initialActions102112
loadScripts102889812087410761165
setupStore1163971129
numNetworkReqs1256617761
BrowserifyPower User HomeuiStartup25921975434842926993716
load1168963252420411851493
domContentLoaded1167963252420411851493
domInteractive1133250193111378
firstPaint------
backgroundConnect124261154140116488
firstReactRender61351792263105
getState28872917223389828
initialActions217123
loadScripts1123937186914811341441
setupStore1458761181151615
numNetworkReqs92583535282232
WebpackStandard HomeuiStartup15751329212913916591797
load1301112115569113531485
domContentLoaded1301112015559113531485
domInteractive71281483587134
firstPaint------
backgroundConnect4820233295299
firstReactRender28207582941
getState1275581224
initialActions104122
loadScripts1273108914858413261422
setupStore166237271242
numNetworkReqs1256716761
WebpackPower User HomeuiStartup29752139543573829394882
load14781198305540315112644
domContentLoaded14781192305540315102644
domInteractive1073147986109325
firstPaint------
backgroundConnect205311483269182943
firstReactRender68422072967134
getState314811768275470783
initialActions206123
loadScripts13891147287631014292052
setupStore1176772167109597
numNetworkReqs92562493997176
📊 Page Load Benchmark Results

Current Commit: ecbf219 | Date: 12/2/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.02s (±40ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 708ms (±37ms) 🟢 | historical mean value: 722ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 75ms (±12ms) 🟢 | historical mean value: 79ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.02s 40ms 995ms 1.30s 1.04s 1.30s
domContentLoaded 708ms 37ms 686ms 973ms 736ms 973ms
firstPaint 75ms 12ms 56ms 180ms 80ms 180ms
firstContentfulPaint 75ms 12ms 56ms 180ms 80ms 180ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: -4.76 KiB (-0.06%)
  • common: 20 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [1450d09]
UI Startup Metrics (1277 ± 120 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12771047159712013611487
load1073879135310511441267
domContentLoaded1066869134510311371261
domInteractive2716118212388
firstPaint49996125341310331231
backgroundConnect22320027913232246
firstReactRender312066103551
getState3714119194277
initialActions108112
loadScripts84966011181019011035
setupStore1254651318
numNetworkReqs1257620571
BrowserifyPower User HomeuiStartup20301657264120421502451
load1006884137211110301336
domContentLoaded992877136311110111329
domInteractive3418138223493
firstPaint52410213613959621263
backgroundConnect247204780103231517
firstReactRender5638103125986
getState20213370292203275
initialActions1012112
loadScripts78567411541088001113
setupStore21105082442
numNetworkReqs1587132756206249
WebpackStandard HomeuiStartup808689117277838966
load63756594976670792
domContentLoaded63356094576667787
domInteractive2615109232197
firstPaint22998787160211634
backgroundConnect1056981225
firstReactRender26195263036
getState251369103243
initialActions102111
loadScripts63055893574665779
setupStore1062231117
numNetworkReqs1257419569
WebpackPower User HomeuiStartup16621300232823418722091
load686592110495690929
domContentLoaded676586109595678921
domInteractive36182073234116
firstPaint27590945198254715
backgroundConnect58764013819533
firstReactRender604698106583
getState200129724102194234
initialActions104112
loadScripts673584108693676911
setupStore20963112344
numNetworkReqs1666739965218290
FirefoxBrowserifyStandard HomeuiStartup13251100165513814321575
load110195413489211491268
domContentLoaded110095413489211491268
domInteractive69351683598137
firstPaint------
backgroundConnect48211723156120
firstReactRender23184252435
getState136203211024
initialActions103122
loadScripts107093913298311181230
setupStore13678131342
numNetworkReqs1256918665
BrowserifyPower User HomeuiStartup26581976516262026804330
load1261965298338612712582
domContentLoaded1261964298238612712581
domInteractive1193248393125350
firstPaint------
backgroundConnect146261002165153412
firstReactRender57371411958107
getState22857921183241714
initialActions2032323
loadScripts1211948280133412432211
setupStore1847826223220748
numNetworkReqs925932643100190
WebpackStandard HomeuiStartup15841332195013716591881
load1302113415238513531483
domContentLoaded1301113415238513531483
domInteractive75281452987129
firstPaint------
backgroundConnect52192073648124
firstReactRender292185113140
getState147162161329
initialActions102122
loadScripts1272110514527913261416
setupStore157158201343
numNetworkReqs1256516760
WebpackPower User HomeuiStartup29212240554265029364864
load14921172301336115172589
domContentLoaded14911171301236015172589
domInteractive1153146686111322
firstPaint------
backgroundConnect1874313372541531011
firstReactRender65402342965100
getState295691117239395798
initialActions301011027
loadScripts14161153247723814771867
setupStore1327751178111621
numNetworkReqs926231742103190
📊 Page Load Benchmark Results

Current Commit: 1450d09 | Date: 12/2/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±38ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 727ms (±35ms) 🟢 | historical mean value: 722ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±13ms) 🟢 | historical mean value: 79ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 38ms 1.02s 1.31s 1.07s 1.31s
domContentLoaded 727ms 35ms 701ms 967ms 752ms 967ms
firstPaint 76ms 13ms 60ms 192ms 84ms 192ms
firstContentfulPaint 76ms 13ms 60ms 192ms 84ms 192ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: -4.91 KiB (-0.06%)
  • common: 20 Bytes (0%)

*/
export type BridgeNetwork = {
name: string;
nativeCurrency: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

is the value of nativeCurrency the ticker of the gas token of the network?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea, it's the gas token ticker

symbol: assetMetadataById[caipAssetId]?.symbol ?? '',
assetId: caipAssetId,
address: assetReference,
isNative: assetNamespace === 'slip44',
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it worth saving slip44 in a variable in case we need to use it in other places as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call - added one

@metamaskbot
Copy link
Collaborator

Builds ready [92155e9]
UI Startup Metrics (1390 ± 138 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup13901096176313814771598
load1166925145811612481353
domContentLoaded1159920145411512421338
domInteractive3118225292690
firstPaint61198144947911661352
backgroundConnect23921429116250269
firstReactRender352172114359
getState4418143215182
initialActions1010114
loadScripts927706121011110081116
setupStore1485171627
numNetworkReqs1257820572
BrowserifyPower User HomeuiStartup20661586265621622612442
load1012882163713110091330
domContentLoaded99887416181319951323
domInteractive3318121223494
firstPaint4798816493859391337
backgroundConnect252200801106234507
firstReactRender544196115781
getState18612766254192232
initialActions103112
loadScripts79067314051297761120
setupStore20104682341
numNetworkReqs1446228963205276
WebpackStandard HomeuiStartup813697101972847971
load64056982570675806
domContentLoaded63556382070672801
domInteractive2615106222292
firstPaint22486749169219645
backgroundConnect1052651125
firstReactRender2720132123036
getState241350103341
initialActions103112
loadScripts63356181168670792
setupStore1063551218
numNetworkReqs1257520572
WebpackPower User HomeuiStartup16581255245025918482231
load67758994689678897
domContentLoaded66758193789673890
domInteractive34181352830119
firstPaint28799936197308687
backgroundConnect115861019878563
firstReactRender594599106581
getState16711326324180218
initialActions103112
loadScripts66557993588671881
setupStore201060112247
numNetworkReqs92601842998156
FirefoxBrowserifyStandard HomeuiStartup13241111182015314161670
load1103963158010911611330
domContentLoaded1103962157910911611330
domInteractive63301863384133
firstPaint------
backgroundConnect50242103753132
firstReactRender22183732228
getState12694141033
initialActions102012
loadScripts107294814589211261244
setupStore136196211053
numNetworkReqs1156916658
BrowserifyPower User HomeuiStartup27441960520565827704286
load12591008276938812442433
domContentLoaded12591008276838812442433
domInteractive1143548587119341
firstPaint------
backgroundConnect162321172193162622
firstReactRender5736144155987
getState28361857217385749
initialActions2031323
loadScripts1207991261033011922251
setupStore1256744165134542
numNetworkReqs91622444493218
WebpackStandard HomeuiStartup20061338317631421052665
load16501158266124017352078
domContentLoaded16501158266124017342078
domInteractive923019943124172
firstPaint------
backgroundConnect70282394788183
firstReactRender31227073546
getState178141181644
initialActions207123
loadScripts16121140247422216872046
setupStore2061442714104
numNetworkReqs1256817764
WebpackPower User HomeuiStartup30532359971899230844779
load15441186649865115172846
domContentLoaded15441186649765115172846
domInteractive155304422439108401
firstPaint------
backgroundConnect1913412922661601017
firstReactRender66392993964154
getState296671575261409822
initialActions207123
loadScripts14561167647557514972215
setupStore1514803205158703
numNetworkReqs924823941113184
📊 Page Load Benchmark Results

Current Commit: 92155e9 | Date: 12/2/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±37ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 725ms (±34ms) 🟢 | historical mean value: 722ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 78ms (±10ms) 🟢 | historical mean value: 79ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 37ms 1.01s 1.31s 1.09s 1.31s
domContentLoaded 725ms 34ms 699ms 974ms 759ms 974ms
firstPaint 78ms 10ms 64ms 164ms 88ms 164ms
firstContentfulPaint 78ms 10ms 64ms 164ms 88ms 164ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: -4.89 KiB (-0.06%)
  • common: 79 Bytes (0%)

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants