Skip to content

feat: hide accounts #33790

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open

feat: hide accounts #33790

wants to merge 29 commits into from

Conversation

gantunesr
Copy link
Member

@gantunesr gantunesr commented Jun 20, 2025

Description

Adds support for "hidden account" in the new multichain accounts menu

Open in GitHub Codespaces

Related issues

Fixes: https://consensyssoftware.atlassian.net/browse/MUL-249

Manual testing steps

  1. Enable multichain accounts state 1
  2. Go to the accounts menu
  3. Hide/show accounts

Screenshots/Recordings

Before

Not applicable

After

Screen.Recording.2025-06-19.at.11.44.46.PM.mov

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.

david0xd and others added 20 commits June 13, 2025 16:26
Add some UI updates

Update account list menu UI

Fix import issue

Remove old account selector files

Add small refactoring changes

Add MultichainAccountsTree component

Add use of MultichainAccountsTree inside MultichainAccountListMenu

Refactor location for multichain accounts components

Add some refactoring for Multichain Accounts Tree

Refactor some things in Multichain Accounts Menu after moving files

Add some refactoring for the menu

Add some preparations for connections
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.

@metamaskbot
Copy link
Collaborator

metamaskbot commented Jun 20, 2025

✨ Files requiring CODEOWNER review ✨

🔑 @MetaMask/accounts-engineers (3 files, +81 -48)
  • 📁 ui/
    • 📁 components/
      • 📁 multichain/
        • 📁 account-list-menu/
          • 📄 hidden-account-list.js +1 -1
      • 📁 multichain-accounts/
        • 📁 multichain-accounts-tree/
          • 📄 multichain-accounts-tree.tsx +50 -31
    • 📁 selectors/
      • 📁 multichain-accounts/
        • 📄 account-tree.ts +30 -16

🖥️ @MetaMask/wallet-ux (1 files, +1 -1)
  • 📁 ui/
    • 📁 components/
      • 📁 multichain/
        • 📁 account-list-menu/
          • 📄 hidden-account-list.js +1 -1

@metamaskbot
Copy link
Collaborator

❌ test-e2e-chrome-api-specs failed. View the html report here.

@metamaskbot
Copy link
Collaborator

Builds ready [67d6732]
UI Startup Metrics (1214 ± 59 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1214109314605912431320
load105293812695710841146
domContentLoaded104593212655710761139
domInteractive17134261638
firstPaint69582118841910621127
backgroundConnect7429389
firstReactRender22164152335
getState1363071826
initialActions001001
loadScripts800696100755828885
setupStore95314816
WebpackHomeuiStartup21721698269721922972616
load16621256207120017721988
domContentLoaded16541252206519817641984
domInteractive171170121454
firstPaint187631981198187333
backgroundConnect2510295382336
firstReactRender21388413115362405
getState144319311228
initialActions217134
loadScripts16511250205519717611975
setupStore237323511831
FirefoxBrowserifyHomeuiStartup13241172174310913561580
load1161103714927812081297
domContentLoaded1160103714917812071297
domInteractive1063433057106277
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect221388132152
firstReactRender24215542428
getState10412115829
initialActions002001
loadScripts1143102414497611871277
setupStore9475101026
WebpackHomeuiStartup15631329213918316422066
load13541142184715714491747
domContentLoaded13541142184715714481747
domInteractive97304566890273
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect21155162236
firstReactRender40325244245
getState1165591030
initialActions102111
loadScripts13361125182715614321728
setupStore9510311826
Benchmark value 2617 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 405 exceeds gate value 370 for chrome webpack home p95 firstReactRender
Benchmark value 1975 exceeds gate value 1970 for chrome webpack home p95 loadScripts
Benchmark value 277 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 29 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 40 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 2066 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 1747 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1747 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 273 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 1728 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Sum of mean exceeds: 2ms | Sum of p95 exceeds: 810ms
Sum of all benchmark exceeds: 812ms

Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 1.16 KiB (0.02%)
  • common: 0 Bytes (0%)

@gantunesr gantunesr marked this pull request as ready for review June 20, 2025 03:48
@gantunesr gantunesr requested a review from a team as a code owner June 20, 2025 03:48
@gantunesr gantunesr requested a review from a team as a code owner June 20, 2025 03:48
@metamaskbot
Copy link
Collaborator

Builds ready [2b14a9f]
UI Startup Metrics (1205 ± 51 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1205111713565112401295
load104295411864710661126
domContentLoaded103694611574610601119
domInteractive17145771637
firstPaint72289120241410601127
backgroundConnect74344713
firstReactRender20164732123
getState1363171929
initialActions001001
loadScripts79069591445813873
setupStore84182814
WebpackHomeuiStartup22121697293321623042650
load16831292209716917591979
domContentLoaded16741289208516717521966
domInteractive171272131455
firstPaint1686658381203290
backgroundConnect2610303382337
firstReactRender23589485116364412
getState1143361325
initialActions913054235
loadScripts16711287207616617501964
setupStore217316421929
FirefoxBrowserifyHomeuiStartup13491204169110513951599
load1187104314688312351344
domContentLoaded1187104214688312351343
domInteractive1113537052120208
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect21138392137
firstReactRender24215752429
getState1048211926
initialActions001001
loadScripts1169102714418312121329
setupStore84779720
WebpackHomeuiStartup15811391230417816602031
load13611194206215314611651
domContentLoaded13601194206215214611651
domInteractive96314917489296
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect22164552332
firstReactRender42325244448
getState126114131034
initialActions002111
loadScripts13411178203815214451629
setupStore11510315834
Benchmark value 2213 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 236 exceeds gate value 235 for chrome webpack home mean firstReactRender
Benchmark value 9 exceeds gate value 7 for chrome webpack home mean initialActions
Benchmark value 2650 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 412 exceeds gate value 370 for chrome webpack home p95 firstReactRender
Benchmark value 112 exceeds gate value 110 for firefox browserify home mean domInteractive
Benchmark value 208 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 26 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 42 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 2031 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 296 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 34 exceeds gate value 32 for firefox webpack home p95 getState
Benchmark value 34 exceeds gate value 28 for firefox webpack home p95 setupStore
Sum of mean exceeds: 30ms | Sum of p95 exceeds: 497ms
Sum of all benchmark exceeds: 527ms

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

@gantunesr gantunesr self-assigned this Jun 20, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [b5c3ad8]
UI Startup Metrics (1233 ± 60 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1233111013966012731336
load106696012275711091147
domContentLoaded105995412155611021140
domInteractive18144471740
firstPaint744165119040510771137
backgroundConnect74152810
firstReactRender20165042124
getState1463172026
initialActions001001
loadScripts81070495955852889
setupStore85203814
WebpackHomeuiStartup22281706292722523432660
load16951259226619017911985
domContentLoaded16891255225518817831973
domInteractive1911179221469
firstPaint1716660280185323
backgroundConnect21104162434
firstReactRender24892425116380406
getState1244171430
initialActions316134
loadScripts16861254224318717821962
setupStore237282451929
FirefoxBrowserifyHomeuiStartup13491195182711113941617
load1183104915607912381310
domContentLoaded1183104915607912381310
domInteractive1143538961121306
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect20135572133
firstReactRender24215032428
getState1056911938
initialActions001001
loadScripts1165103515457812211295
setupStore948112728
WebpackHomeuiStartup15791380212716716601976
load13641189183213714551640
domContentLoaded13641189183213714551640
domInteractive95323175991283
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect21145062236
firstReactRender40315034346
getState1264281033
initialActions002111
loadScripts13451168181213814371623
setupStore95628828
Benchmark value 2229 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 248 exceeds gate value 235 for chrome webpack home mean firstReactRender
Benchmark value 2660 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 69 exceeds gate value 57 for chrome webpack home p95 domInteractive
Benchmark value 406 exceeds gate value 370 for chrome webpack home p95 firstReactRender
Benchmark value 114 exceeds gate value 110 for firefox browserify home mean domInteractive
Benchmark value 10 exceeds gate value 9 for firefox browserify home mean setupStore
Benchmark value 306 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 38 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 28 exceeds gate value 27 for firefox browserify home p95 setupStore
Benchmark value 41 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 1976 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 283 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 33 exceeds gate value 32 for firefox webpack home p95 getState
Sum of mean exceeds: 58ms | Sum of p95 exceeds: 549ms
Sum of all benchmark exceeds: 607ms

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

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

Successfully merging this pull request may close these issues.

4 participants