Skip to content

fix: snap account card use account group name#39488

Merged
ccharly merged 17 commits intomainfrom
cc/fix/snap-use-account-group-name
Feb 3, 2026
Merged

fix: snap account card use account group name#39488
ccharly merged 17 commits intomainfrom
cc/fix/snap-use-account-group-name

Conversation

@ccharly
Copy link
Contributor

@ccharly ccharly commented Jan 23, 2026

Description

Remove the dependency to MultichainAccountListItem (since this is a state 1 component) + Re-using the proper components/style for the SnapAccountCard (displayed in the 3rd party Snap account creations).

Open in GitHub Codespaces

Changelog

CHANGELOG entry: Snap account creation now use account group names instead of old account names

Related issues

N/A

Manual testing steps

  1. Use flask
  2. Onboard your wallet
  3. Install the SSK Snap: https://metamask.github.io/snap-simple-keyring/latest/
  4. Create a Snap account using the companion dapp
  5. The account name being shown after the account creation should match the account name displayed in the account list

Screenshots/Recordings

Before

Screenshot 2026-01-23 at 22 01 37 Screenshot 2026-01-23 at 22 01 52

After

Screenshot 2026-01-23 at 21 22 48 Screenshot 2026-01-23 at 21 22 59

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

Medium Risk
Refactors the Snap account removal/creation card rendering and selector usage, which could affect displayed account name/balance and crash if expected account-group data is missing. Scope is limited to UI and story/test data updates.

Overview
Updates SnapAccountCard to stop using AccountListItem and instead render its own layout, showing the account group name (not the internal account name), checksum/shortened address, network indicator, snap labels, and a formatted group-level balance with privacy-mode hiding and loading skeleton.

Adds Storybook coverage (SnapAccountCard stories and updated RemoveSnapAccount/confirmation stories) plus a new unit test for SnapAccountCard; updates snapshots/console baselines and Storybook test state to include a representative Snap keyring/account and token balances.

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

@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Jan 23, 2026

Builds ready [3a3e29d]
UI Startup Metrics (1345 ± 109 ms)
PlatformBuildTypePageMetricTest Title (ms)Persona (ms)Mean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--13451117161010914221536
load--1130915140410712051303
domContentLoaded--1123908139710611991295
domInteractive--2816105202490
firstPaint--177671201183206250
backgroundConnect--22820528813230255
firstReactRender--1910174171934
getState--382099154274
initialActions--107114
loadScripts--90369711781069751076
setupStore--1372941420
numNetworkReqs--191387171369
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--220614917583102021244964
load--1060910138012711331345
domContentLoaded--1046904137312711151331
domInteractive--35191572533102
firstPaint--168681287133211310
backgroundConnect--35520425123512551056
firstReactRender--21145162334
getState--2071321586198195283
initialActions--102111
loadScripts--83069411471178851100
setupStore--1974482238
numNetworkReqs--69381732780130
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--814661104377858952
load--65658087969694795
domContentLoaded--65157586768685785
domInteractive--241689162169
firstPaint--1046120843135192
backgroundConnect--2851253135107
firstReactRender--16113451728
getState--3315141204261
initialActions--105112
loadScripts--64957285867683776
setupStore--1274661225
numNetworkReqs--191381171369
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--1313937212924214021820
load--694605112583713879
domContentLoaded--685601111883698863
domInteractive--36191792933109
firstPaint--1406742168180288
backgroundConnect--60656813624500
firstReactRender--22163532427
getState--14812824318150183
initialActions--102111
loadScripts--682599110481696855
setupStore--1855091842
numNetworkReqs--86392543699142
19--------
FirefoxBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--14411149199019715561805
load--1162980171513612361470
domContentLoaded--1161980171413612361470
domInteractive--71322314092140
firstPaint--------
backgroundConnect--59212264979162
firstReactRender--13103231321
getState--146194211331
initialActions--102012
loadScripts--1125964168711711891355
setupStore--134105121238
numNetworkReqs--211182181577
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--24021876460651924443756
load--1239988272131612422316
domContentLoaded--1238988272131612422316
domInteractive--12938930119132327
firstPaint--------
backgroundConnect--17625940198182703
firstReactRender--20144852227
getState--23361817200326697
initialActions--208123
loadScripts--1198970255529512112171
setupStore--1306632154156549
numNetworkReqs--60321362478106
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--15611283236518616451912
load--13351122215413713981549
domContentLoaded--13341122215413713981548
domInteractive--893022640129145
firstPaint--------
backgroundConnect--60172214766154
firstReactRender--14102631420
getState--178144241426
initialActions--102022
loadScripts--12971108212812313561446
setupStore--1751442613114
numNetworkReqs--201184161572
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--28942096766485229654764
load--16211225621463715672775
domContentLoaded--16211225621363715662775
domInteractive--135314214415110220
firstPaint--------
backgroundConnect--2092713292701991015
firstReactRender--2616259262530
getState--309861075257509814
initialActions--213123
loadScripts--15441207619358215322390
setupStore--11461597200100442
numNetworkReqs--5628147227295
19--------
📊 Page Load Benchmark Results

Current Commit: 3a3e29d | Date: 1/23/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

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

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 39ms 998ms 1.31s 1.07s 1.31s
domContentLoaded 718ms 37ms 689ms 982ms 745ms 982ms
firstPaint 76ms 12ms 56ms 176ms 84ms 176ms
firstContentfulPaint 76ms 12ms 56ms 176ms 84ms 176ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 5.04 KiB (0.06%)
  • common: 20 Bytes (0%)

@ccharly ccharly added the team-accounts-framework Accounts team label Jan 23, 2026
@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Jan 23, 2026

✨ Files requiring CODEOWNER review ✨

@MetaMask/confirmations (3 files, +42 -144)
  • 📁 ui/
    • 📁 pages/
      • 📁 confirmations/
        • 📁 confirmation/
          • 📁 stories/
            • 📄 remove-snap-account.stories.js +1 -1
            • 📄 util.js +1 -0
          • 📁 templates/
            • 📁 __snapshots__/
              • 📄 remove-snap-account.test.js.snap +40 -143

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Jan 23, 2026

Builds ready [d8b282e]
UI Startup Metrics (1295 ± 114 ms)
PlatformBuildTypePageMetricTest Title (ms)Persona (ms)Mean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--12951038157711413711493
load--1093887138310211461288
domContentLoaded--1085881137410311391283
domInteractive--2616105182178
firstPaint--171651109166187335
backgroundConnect--21919730017224248
firstReactRender--1694151826
getState--371985144271
initialActions--105113
loadScripts--87567811581039281080
setupStore--1352851423
numNetworkReqs--191382171367
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--20611450847481919852985
load--1070929155612911161308
domContentLoaded--1055918154612811031296
domInteractive--37191872836100
firstPaint--1667441476216326
backgroundConnect--3332083500359255720
firstReactRender--22154862239
getState--18713862163193306
initialActions--103111
loadScripts--83671213251218861082
setupStore--197320311930
numNetworkReqs--67382443276126
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--77563995269812914
load--62655681162645761
domContentLoaded--62155180661640755
domInteractive--2415101192177
firstPaint--1095662897114211
backgroundConnect--3751683962122
firstReactRender--15103031523
getState--2913141193454
initialActions--102111
loadScripts--61854979760638749
setupStore--1053661022
numNetworkReqs--201381181374
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--14621145227325316072047
load--78167212931007941004
domContentLoaded--7706621270100781997
domInteractive--44202463739131
firstPaint--1617059787202313
backgroundConnect--921063517725570
firstReactRender--26204242836
getState--16514321614171189
initialActions--103112
loadScripts--767659125998778993
setupStore--221176122248
numNetworkReqs--70402063478145
19--------
FirefoxBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--14831164206916915611824
load--11901016179412012401385
domContentLoaded--11901015179412012401380
domInteractive--75341543599143
firstPaint--------
backgroundConnect--58222124371150
firstReactRender--151095111438
getState--155204231325
initialActions--102012
loadScripts--11521002166910611991296
setupStore--154240251142
numNetworkReqs--211188191679
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--25701934735774326103996
load--12691064249127212652043
domContentLoaded--12691064249127212652043
domInteractive--1203341274144287
firstPaint--------
backgroundConnect--2251741794841461024
firstReactRender--23146592453
getState--314551002234465754
initialActions--203123
loadScripts--12251049225622112301883
setupStore--1269887162116529
numNetworkReqs--64311642582110
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--16571318224618717752046
load--14011163183613014761674
domContentLoaded--14001162183513114761674
domInteractive--883118040119147
firstPaint--------
backgroundConnect--702123848107158
firstReactRender--15122521519
getState--217298421670
initialActions--103122
loadScripts--13561146180911314041556
setupStore--1952483313101
numNetworkReqs--211179171577
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--28432134698580028664614
load--16101233561358716822810
domContentLoaded--16091233561358716822809
domInteractive--165323630371138381
firstPaint--------
backgroundConnect--160401185206152579
firstReactRender--2616217212749
getState--318911271257468836
initialActions--218123
loadScripts--15471216559254816222526
setupStore--12512754162148608
numNetworkReqs--60301302680109
19--------
📊 Page Load Benchmark Results

Current Commit: d8b282e | Date: 1/23/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.05s (±94ms) 🟡 | historical mean value: 1.03s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 738ms (±119ms) 🟢 | historical mean value: 721ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 86ms (±102ms) 🟢 | historical mean value: 77ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.05s 94ms 1.02s 1.94s 1.06s 1.94s
domContentLoaded 738ms 119ms 711ms 1.89s 743ms 1.89s
firstPaint 86ms 102ms 60ms 1.10s 84ms 1.10s
firstContentfulPaint 86ms 102ms 60ms 1.10s 84ms 1.10s
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 15.25 KiB (0.19%)
  • common: 1.46 KiB (0.02%)

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Jan 23, 2026

Builds ready [f7acf6a]
UI Startup Metrics (1250 ± 107 ms)
PlatformBuildTypePageMetricTest Title (ms)Persona (ms)Mean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--12501010168910713191410
load--104584313439511031189
domContentLoaded--103883713239510971182
domInteractive--241584172180
firstPaint--16560898118189294
backgroundConnect--20418027413209229
firstReactRender--1594761630
getState--3617136164068
initialActions--106111
loadScripts--842658111594902991
setupStore--1152941318
numNetworkReqs--201386191377
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--314916317665153142146507
load--1130951156013112381354
domContentLoaded--1112936154912712081327
domInteractive--35191372533105
firstPaint--190811314139236330
backgroundConnect--72020936347389462378
firstReactRender--22164642330
getState--32613515073462341270
initialActions--102111
loadScripts--88373212531149711087
setupStore--20658112442
numNetworkReqs--914221637101194
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--84367412211028871054
load--676587103884717841
domContentLoaded--671582103284713836
domInteractive--261594202185
firstPaint--1175963079138261
backgroundConnect--3051493534122
firstReactRender--1710115111823
getState--3213109173960
initialActions--106112
loadScripts--668580102983711834
setupStore--1376191540
numNetworkReqs--201380191377
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--1352958231821214711671
load--7366451370100734922
domContentLoaded--723637134598722909
domInteractive--41211802842118
firstPaint--176731360163210403
backgroundConnect--38115608622203
firstReactRender--23174242530
getState--15713433529162189
initialActions--102012
loadScripts--720634132795720900
setupStore--24672133649
numNetworkReqs--965024628102143
19--------
FirefoxBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--15701235253320517211932
load--12591039220515913221488
domContentLoaded--12591039220415913221488
domInteractive--903937360121202
firstPaint--------
backgroundConnect--732434854111174
firstReactRender--17114581741
getState--156122171332
initialActions--103122
loadScripts--12111024217214212621412
setupStore--166161211344
numNetworkReqs--221188201681
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--24211917418235526223206
load--12231012234217813011459
domContentLoaded--12231012234217813011458
domInteractive--162471284160180461
firstPaint--------
backgroundConnect--287301632301523890
firstReactRender--22145382246
getState--23662708171336601
initialActions--203123
loadScripts--1184993227417312321439
setupStore--10314738105138280
numNetworkReqs--78361782785131
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--16291320245921317701983
load--13731140219515114341628
domContentLoaded--13721140219515014331627
domInteractive--892823345123154
firstPaint--------
backgroundConnect--62171974375158
firstReactRender--14112431521
getState--2182493715101
initialActions--103122
loadScripts--13351125208513013861530
setupStore--2242663815108
numNetworkReqs--211179171675
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--299920939354110630764402
load--15861286690157616332218
domContentLoaded--15851286690057616322217
domInteractive--1443347895164356
firstPaint--------
backgroundConnect--3574056606324211015
firstReactRender--241676102653
getState--26877868202369698
initialActions--207123
loadScripts--15371246677255715691989
setupStore--10715653111127348
numNetworkReqs--75311582886145
19--------
📊 Page Load Benchmark Results

Current Commit: f7acf6a | Date: 1/23/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 989ms (±40ms) 🟢 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 684ms (±36ms) 🟢 | historical mean value: 727ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±12ms) 🟢 | historical mean value: 79ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 989ms 40ms 957ms 1.28s 1.01s 1.28s
domContentLoaded 684ms 36ms 661ms 954ms 709ms 954ms
firstPaint 77ms 12ms 60ms 184ms 84ms 184ms
firstContentfulPaint 77ms 12ms 60ms 184ms 84ms 184ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 15.86 KiB (0.19%)
  • common: 1.56 KiB (0.02%)

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Jan 29, 2026

Builds ready [2821921]
UI Startup Metrics (1343 ± 109 ms)
PlatformBuildTypePageMetricTest Title (ms)Persona (ms)Mean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--13431098159010913971537
load--1135913138710711981331
domContentLoaded--1128908137810611901325
domInteractive--271695162569
firstPaint--172631207160190309
backgroundConnect--23721132415244268
firstReactRender--16104851824
initialActions--104112
loadScripts--90568511621059681103
setupStore--1464061624
numNetworkReqs--211578161568
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--267516527873123327496107
load--1164975179414912811442
domContentLoaded--1145967178614512491411
domInteractive--38191442734123
firstPaint--213691457193253464
backgroundConnect--72728941948556283130
firstReactRender--26175893050
initialActions--109113
loadScripts--90374615281399971180
setupStore--1654171929
numNetworkReqs--1185223943140232
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--799645103994866961
load--65457596982722791
domContentLoaded--64957196081713778
domInteractive--231583151967
firstPaint--1065531950141205
backgroundConnect--41161372942105
firstReactRender--1594051728
initialActions--105112
loadScripts--64656995880711776
setupStore--1163241120
numNetworkReqs--221584181576
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--1282863207522314681617
load--73362813411137261020
domContentLoaded--72262313301137141014
domInteractive--36171442535105
firstPaint--1556752685210314
backgroundConnect--16513055382157488
firstReactRender--22153332329
initialActions--102111
loadScripts--72062113211117121006
setupStore--1145151417
numNetworkReqs--1576234157173277
19--------
FirefoxBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--14161132209817215151784
load--1149977172313512021393
domContentLoaded--1148977172313511981392
domInteractive--67332094090158
firstPaint--------
backgroundConnect--64252194682172
firstReactRender--1394061335
initialActions--102122
loadScripts--1116954169712311741295
setupStore--1259312936
numNetworkReqs--231284181877
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--290220519203111928914975
load--14021079748189813191871
domContentLoaded--14011079748189813191871
domInteractive--254426462837153462
firstPaint--------
backgroundConnect--47213032714617221221
firstReactRender--21155452330
initialActions--218123
loadScripts--13561061744989312701766
setupStore--13111944177123583
numNetworkReqs--85392274695207
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--17321404238120918852162
load--14571189186214415681705
domContentLoaded--14561189186214415681704
domInteractive--863218643126162
firstPaint--------
backgroundConnect--772720447106184
firstReactRender--16115361725
initialActions--104122
loadScripts--14161172183412715131645
setupStore--2262854113128
numNetworkReqs--241296201885
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--30932190468953934144223
load--16551287348539117392629
domContentLoaded--16551287348439117392628
domInteractive--147341346155153390
firstPaint--------
backgroundConnect--48010613723538481106
firstReactRender--22145772531
initialActions--203123
loadScripts--16011267344237816962547
setupStore--1509767182195538
numNetworkReqs--85402885092191
19--------
📊 Page Load Benchmark Results

Current Commit: 2821921 | Date: 1/29/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±37ms) 🟡 | historical mean value: 1.03s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 717ms (±35ms) 🟢 | historical mean value: 720ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±12ms) 🟢 | 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.05s 1.30s
domContentLoaded 717ms 35ms 697ms 975ms 736ms 975ms
firstPaint 76ms 12ms 60ms 180ms 84ms 180ms
firstContentfulPaint 76ms 12ms 60ms 180ms 84ms 180ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 5.1 KiB (0.06%)
  • common: 20 Bytes (0%)

snapId="npm:@metamask/test-snap-bip44"
snapName="BIP-44"
publicAddress="0xde939393DDe455081fFb3Dfd027E189919F04BD0"
onCancel={() => {}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using an address that's part of the default state (on the account-tree)

snapId="npm:@metamask/snap-simple-keyring"
snapName="Test name"
publicAddress="0x64a845a5b02460acf8a3d84503b0d68d028b4bb4"
snapId="npm:@metamask/test-snap-bip44"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using a true Snap ID that's part of the default state.

},
},
tokenList: {},
tokenBalances: testData.metamask.tokenBalances,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was missing and his now required to properly display the aggregated balance (part of the new multichain account model)

},
args: {
publicAddress: '0x64a845a5b02460acf8a3d84503b0d68d028b4bb4',
publicAddress: '0xde939393DDe455081fFb3Dfd027E189919F04BD0',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using an address that's part of the default state (on the account-tree)

@ccharly ccharly added this pull request to the merge queue Feb 2, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 2, 2026
@ccharly ccharly added this pull request to the merge queue Feb 2, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 2, 2026
@ccharly ccharly added this pull request to the merge queue Feb 3, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 3, 2026
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

jest.mock('../../selectors/assets', () => ({
...jest.requireActual('../../selectors/assets'),
selectBalanceForAllWallets: () => mockBalanceForAllWallets,
}));
Copy link

Choose a reason for hiding this comment

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

Test mock targets wrong selector and won't work

Low Severity

The test mocks selectBalanceForAllWallets but the SnapAccountCard component actually uses selectBalanceByAccountGroup. Additionally, jest.mock calls inside test functions don't work as intended—they need to be at the module level to properly intercept imports. The test passes coincidentally because it only checks if the balance element exists, not its actual value, making this test misleading about what it verifies.

Fix in Cursor Fix in Web

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Feb 3, 2026

Builds ready [5cef461]
UI Startup Metrics (1423 ± 88 ms)
PlatformBuildTypePageMetricTest Title (ms)Persona (ms)Mean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--1423124816898814831576
load--1208101614798712831328
domContentLoaded--1202101114488612721322
domInteractive--2917130212485
firstPaint--196691306221202353
backgroundConnect--24321730218248282
firstReactRender--19103762131
initialActions--108115
loadScripts--97576912018710401099
setupStore--1463661726
numNetworkReqs--221584181573
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--19881642233614720962248
load--11341002155712111341487
domContentLoaded--1119994154912211141480
domInteractive--35181662633112
firstPaint--1887241581241356
backgroundConnect--32728250140336423
firstReactRender--23163852435
initialActions--107112
loadScripts--88075812441128761218
setupStore--1674461729
numNetworkReqs--1235225053146244
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--906695113411710171090
load--7656261039113847989
domContentLoaded--7596211033113842984
domInteractive--2617104162371
firstPaint--1136280682145200
backgroundConnect--3218155203556
firstReactRender--16103751829
initialActions--104113
loadScripts--7566191031112835981
setupStore--1255161322
numNetworkReqs--211578161570
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--1248841175222814211693
load--71462311351197041042
domContentLoaded--70561711271196921036
domInteractive--36181832935107
firstPaint--155691113156145469
backgroundConnect--15513133534157230
firstReactRender--23173832430
initialActions--101011
loadScripts--70261511171176901026
setupStore--1345571327
numNetworkReqs--1255025958153254
19--------
FirefoxBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--16671329245423317842146
load--14091148200618115081773
domContentLoaded--14081148200618115021773
domInteractive--753428751112166
firstPaint--------
backgroundConnect--74282044478174
firstReactRender--13102121316
initialActions--103112
loadScripts--13681125195317014521674
setupStore--176202261463
numNetworkReqs--231284181876
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--29722216492355732084099
load--15541215255932416422472
domContentLoaded--15531215255932416422472
domInteractive--1053358690110300
firstPaint--------
backgroundConnect--3271131209278368981
firstReactRender--19146271926
initialActions--102122
loadScripts--15051194253030215632375
setupStore--126776019397670
numNetworkReqs--71391904193176
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--16901385234019217942105
load--14471185190213115271718
domContentLoaded--14461185190213115261718
domInteractive--1013024046133183
firstPaint--------
backgroundConnect--71252574788179
firstReactRender--14115651519
initialActions--102122
loadScripts--14101171188411514881592
setupStore--2153254214128
numNetworkReqs--231284171876
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--30142203573359631534223
load--16741267404940518622420
domContentLoaded--16731266404940518622420
domInteractive--11832711117120495
firstPaint--------
backgroundConnect--31211714092873021112
firstReactRender--22153442430
initialActions--217123
loadScripts--16061251390436817312225
setupStore--1726879231246769
numNetworkReqs--70352184380182
19--------
📊 Page Load Benchmark Results

Current Commit: 5cef461 | Date: 2/3/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±40ms) 🟡 | historical mean value: 1.02s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 723ms (±38ms) 🟢 | historical mean value: 712ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±12ms) 🟢 | historical mean value: 79ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 40ms 1.01s 1.33s 1.07s 1.33s
domContentLoaded 723ms 38ms 699ms 997ms 757ms 997ms
firstPaint 77ms 12ms 60ms 184ms 88ms 184ms
firstContentfulPaint 77ms 12ms 60ms 184ms 88ms 184ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 5.1 KiB (0.06%)
  • common: 20 Bytes (0%)

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Feb 3, 2026

Builds ready [27da64b]
UI Startup Metrics (1450 ± 111 ms)
PlatformBuildTypePageMetricTest Title (ms)Persona (ms)Mean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--14501202179611115211663
load--12421039158910713161441
domContentLoaded--12361034157710612981434
domInteractive--2817128202482
firstPaint--1456834563197240
backgroundConnect--24622430615252276
firstReactRender--18103042027
initialActions--103113
loadScripts--1006791132410510711192
setupStore--1475171830
numNetworkReqs--211589171570
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--266015575913109526755297
load--12151033165514612861597
domContentLoaded--11951021160514212681572
domInteractive--35181262136101
firstPaint--234791600248261455
backgroundConnect--72228630607365612689
firstReactRender--24156072736
initialActions--104112
loadScripts--955785132213110241288
setupStore--1454761624
numNetworkReqs--1284825547152221
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--87367411601169671088
load--727605107699796948
domContentLoaded--721601106598791943
domInteractive--261590172376
firstPaint--1126232656133246
backgroundConnect--37171362440103
firstReactRender--16103361731
initialActions--104112
loadScripts--718598106397784941
setupStore--1163051223
numNetworkReqs--221587191581
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--1263838217325314821692
load--7186221080103716996
domContentLoaded--7086171072104709989
domInteractive--36171942734105
firstPaint--1516755493197362
backgroundConnect--15113232925156190
firstReactRender--22174142228
initialActions--102111
loadScripts--7056151063102707981
setupStore--1142131316
numNetworkReqs--974626849106196
19--------
FirefoxBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--16481339223619117611991
load--13821159191115815001661
domContentLoaded--13811154191115815001661
domInteractive--803325548103180
firstPaint--------
backgroundConnect--75302504593177
firstReactRender--12102321316
initialActions--103122
loadScripts--13411137182314014311616
setupStore--174195241360
numNetworkReqs--231285191879
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--30252219773060731953859
load--15901242597550616132143
domContentLoaded--15901242597450616122143
domInteractive--15936641134184479
firstPaint--------
backgroundConnect--37512010552704901003
firstReactRender--18145861825
initialActions--112022
loadScripts--15411220582749115452017
setupStore--1409677177148586
numNetworkReqs--913724847105212
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--16461358206716417631947
load--14111175170611914971624
domContentLoaded--14111174170612014961623
domInteractive--972933653131196
firstPaint--------
backgroundConnect--762223148126167
firstReactRender--14106761418
initialActions--105112
loadScripts--13651162159510114441534
setupStore--1951522912107
numNetworkReqs--231286191881
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--29562071815071031623959
load--16171292612152116512313
domContentLoaded--16161292612152116512313
domInteractive--1353455692161339
firstPaint--------
backgroundConnect--43910818823526751132
firstReactRender--20156062230
initialActions--207123
loadScripts--15521268608350915712183
setupStore--12881138187124580
numNetworkReqs--89402874894212
19--------
📊 Page Load Benchmark Results

Current Commit: 27da64b | Date: 2/3/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 972ms (±42ms) 🟢 | historical mean value: 1.02s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 675ms (±37ms) 🟢 | historical mean value: 713ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 74ms (±11ms) 🟢 | historical mean value: 79ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 972ms 42ms 949ms 1.26s 993ms 1.26s
domContentLoaded 675ms 37ms 653ms 930ms 687ms 930ms
firstPaint 74ms 11ms 64ms 168ms 84ms 168ms
firstContentfulPaint 74ms 11ms 64ms 168ms 84ms 168ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 5.1 KiB (0.06%)
  • common: 20 Bytes (0%)

@ccharly ccharly added this pull request to the merge queue Feb 3, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 3, 2026
@ccharly ccharly added this pull request to the merge queue Feb 3, 2026
Merged via the queue into main with commit 3d37ac8 Feb 3, 2026
485 of 499 checks passed
@ccharly ccharly deleted the cc/fix/snap-use-account-group-name branch February 3, 2026 22:15
@metamaskbot metamaskbot added the release-13.18.0 Issue or pull request that will be included in release 13.18.0 label Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-13.18.0 Issue or pull request that will be included in release 13.18.0 size-M team-accounts-framework Accounts team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants