Skip to content

Conversation

@NidhiKJha
Copy link
Member

@NidhiKJha NidhiKJha commented Nov 13, 2025

This PR is to add sidepanel/popup icon to the DS component library.

It also fixes an edge case with the Advanced Settings Show extension in full-size view button where users who have turned sidepanel on after enabling this will see sidepanel by default.

Changelog

CHANGELOG entry:null

Related issues

Fixes: https://consensyssoftware.atlassian.net/browse/CEUX-684
)

Manual testing steps

  1. In storybook, check sidepanel icon
  2. Go to popup view or sidepanel and check the icon in global menu

Screenshots/Recordings

Before

NA

After

Screenshot 2025-11-13 at 4 36 06 PM

Screenshot 2025-11-13 at 10 10 04 PM

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

Adds popup/sidepanel icons to the design system, uses them for the view toggle in the global menu, and enables the full-size opening behavior from sidepanel too.

  • Design System / Icons:
    • Add app/images/icons/popup.svg and app/images/icons/sidepanel.svg.
    • Expose IconName.Popup and IconName.Sidepanel in ui/components/component-library/icon/icon.types.ts.
  • Global Menu (ui/components/multichain/global-menu/global-menu.tsx):
    • Replace viewport toggle to use IconName.Popup/IconName.Sidepanel and isSidePanelDefault logic; update metrics payload and close behavior.
    • Add divider after notifications section.
  • Routing / Behavior (ui/pages/routes/routes.component.tsx):
    • Extend "Show extension in full-size view" to trigger when in ENVIRONMENT_TYPE_SIDEPANEL as well as popup.

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

@NidhiKJha NidhiKJha requested a review from a team as a code owner November 13, 2025 11:02
@metamaskbot metamaskbot added the team-core-extension-ux Core Extension UX team label Nov 13, 2025
@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Nov 13, 2025
@metamaskbot
Copy link
Collaborator

metamaskbot commented Nov 13, 2025

✨ Files requiring CODEOWNER review ✨

👨‍🔧 @MetaMask/core-extension-ux (1 files, +31 -29)
  • 📁 ui/
    • 📁 components/
      • 📁 multichain/
        • 📁 global-menu/
          • 📄 global-menu.tsx +31 -29

🎨 @MetaMask/design-system-engineers (1 files, +2 -0)
  • 📁 ui/
    • 📁 components/
      • 📁 component-library/
        • 📁 icon/
          • 📄 icon.types.ts +2 -0

@NidhiKJha NidhiKJha requested a review from a team as a code owner November 13, 2025 11:15
@metamaskbot
Copy link
Collaborator

Builds ready [3cd6ad5]
UI Startup Metrics (1226 ± 92 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1226105317089212771372
load105891815068711061180
domContentLoaded105291214938511031171
domInteractive2214110171868
firstPaint731148121940610801166
backgroundConnect2312172879235242
firstReactRender2918128123444
getState22779112650
initialActions106113
loadScripts827673125685878942
setupStore1153651222
numNetworkReqs1367619673
BrowserifyPower User HomeuiStartup17491520252426119252524
load1110950174222312891742
domContentLoaded1102944172922212861729
domInteractive43161464589146
firstPaint661190144743010391447
backgroundConnect24923032221251322
firstReactRender43384934549
getState17716022415185224
initialActions111011
loadScripts863710147621910481476
setupStore13102751327
numNetworkReqs1187125573220255
WebpackStandard HomeuiStartup8287151191908331079
load61156496880606868
domContentLoaded60455994976599849
domInteractive171164111449
firstPaint20058953199178723
backgroundConnect251371133256
firstReactRender29185273341
getState1161931315
initialActions103111
loadScripts60155793974597839
setupStore1152031315
numNetworkReqs1367519870
WebpackPower User HomeuiStartup1106899173928014421739
load67157010391467801039
domContentLoaded649559945122767945
domInteractive33121143376114
firstPaint48658949290770949
backgroundConnect51101915373191
firstReactRender41346984169
getState1409918623151186
initialActions101011
loadScripts645557935119756935
setupStore1062761127
numNetworkReqs1097022656169226
FirefoxBrowserifyStandard HomeuiStartup14721311202912315091718
load1241112514768312811420
domContentLoaded1241112514768412811420
domInteractive1073535751108226
firstPaint------
backgroundConnect4127127165068
firstReactRender25215462639
getState137199201121
initialActions113122
loadScripts1217110714518112521390
setupStore1275581131
numNetworkReqs1266716760
BrowserifyPower User HomeuiStartup23361842358349228303583
load14891217196226518571962
domContentLoaded14881217196126518571961
domInteractive22186571167407571
firstPaint------
backgroundConnect1093432494208324
firstReactRender665388127988
getState1279620729139207
initialActions41337333
loadScripts14491188189725317841897
setupStore4361655252165
numNetworkReqs1377232595217325
WebpackStandard HomeuiStartup16241460223514416201980
load13811237178110813921668
domContentLoaded13811237178010813921668
domInteractive1043336347115172
firstPaint------
backgroundConnect46251852651117
firstReactRender312479103351
getState14850101447
initialActions103122
loadScripts1353120617189813641606
setupStore15786131439
numNetworkReqs1367018867
WebpackPower User HomeuiStartup23651887344250029463442
load15471279194020017601940
domContentLoaded15471278193920017591939
domInteractive20439640182328640
firstPaint------
backgroundConnect1013131988131319
firstReactRender61507266772
getState1379321038186210
initialActions214134
loadScripts15171254191519917211915
setupStore3761544560154
numNetworkReqs13767342103244342
📊 Page Load Benchmark Results

Current Commit: 3cd6ad5 | Date: 11/13/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±40ms) 🟡 | historical mean value: 1.03s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 717ms (±36ms) 🟢 | historical mean value: 721ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±12ms) 🟢 | historical mean value: 80ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 40ms 1.01s 1.33s 1.07s 1.33s
domContentLoaded 717ms 36ms 697ms 997ms 746ms 997ms
firstPaint 76ms 12ms 60ms 184ms 84ms 184ms
firstContentfulPaint 76ms 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: 63 Bytes (0%)
  • common: 44 Bytes (0%)

AndyMBridges
AndyMBridges previously approved these changes Nov 13, 2025
Copy link

@AndyMBridges AndyMBridges left a comment

Choose a reason for hiding this comment

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

@NidhiKJha Should we also update the popup icon in this PR?

ameliejyc
ameliejyc previously approved these changes Nov 13, 2025
@NidhiKJha NidhiKJha enabled auto-merge November 13, 2025 14:50
@metamaskbot
Copy link
Collaborator

Builds ready [5af1b52]
UI Startup Metrics (1224 ± 87 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1224109015468712751401
load105594213368111051220
domContentLoaded104993713318110991209
domInteractive231487172068
firstPaint66887125440610441167
backgroundConnect2342182999237251
firstReactRender27174973045
getState2285682733
initialActions109113
loadScripts821683109680874973
setupStore1162941221
numNetworkReqs1367619671
BrowserifyPower User HomeuiStartup23851940348431324233484
load1146993143215913861432
domContentLoaded1123975141916013781419
domInteractive53181704690170
firstPaint760235143544910781435
backgroundConnect25423227610265276
firstReactRender916013725122137
getState22816734847257348
initialActions103123
loadScripts892748119715411211197
setupStore26114393243
numNetworkReqs14910328362207283
WebpackStandard HomeuiStartup8136901156968101069
load60455395285596854
domContentLoaded59654492680589825
domInteractive161168111447
firstPaint20760905202196596
backgroundConnect251173143261
firstReactRender27185173234
getState137204191316
initialActions102011
loadScripts59354191678587815
setupStore1061831216
numNetworkReqs1367519871
WebpackPower User HomeuiStartup1170936179029313181790
load70860110621488381062
domContentLoaded68758710271328101027
domInteractive45131695498169
firstPaint36013010643065941064
backgroundConnect53111844768184
firstReactRender42364944549
getState15810920625169206
initialActions101011
loadScripts68258510161297991016
setupStore97162916
numNetworkReqs1097122353166223
FirefoxBrowserifyStandard HomeuiStartup14611291202213714821760
load1228111015309212571453
domContentLoaded1227111015309212561452
domInteractive1073636955106256
firstPaint------
backgroundConnect4425142205185
firstReactRender26214952640
getState1175051117
initialActions203123
loadScripts1202109414998812271419
setupStore14771101334
numNetworkReqs1266316762
BrowserifyPower User HomeuiStartup34182660465863741124658
load15401288201223118122012
domContentLoaded15401288201223118112012
domInteractive371163832216516832
firstPaint------
backgroundConnect47714411943467001194
firstReactRender82511181595118
getState1636429151204291
initialActions218228
loadScripts14941255198123017581981
setupStore1003945097116450
numNetworkReqs1548325164222251
WebpackStandard HomeuiStartup16571455207313216961986
load13941211170910414321664
domContentLoaded13941211170910414311664
domInteractive1003637241107176
firstPaint------
backgroundConnect53241882757112
firstReactRender3324100113645
getState167184231336
initialActions203123
loadScripts1362119116839814041584
setupStore15779131450
numNetworkReqs1366717864
WebpackPower User HomeuiStartup34802895470249037274702
load16871442206218918622062
domContentLoaded16871442206118918612061
domInteractive276121652180430652
firstPaint------
backgroundConnect47411910892686551089
firstReactRender906312817105128
getState199111633121206633
initialActions514611346
loadScripts16391365201119118332011
setupStore1064726569129265
numNetworkReqs1497926561206265
📊 Page Load Benchmark Results

Current Commit: 5af1b52 | Date: 11/13/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.05s (±45ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 730ms (±42ms) 🟢 | historical mean value: 725ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 78ms (±14ms) 🟢 | historical mean value: 80ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.05s 45ms 1.02s 1.39s 1.08s 1.39s
domContentLoaded 730ms 42ms 706ms 1.06s 756ms 1.06s
firstPaint 78ms 14ms 60ms 204ms 88ms 204ms
firstContentfulPaint 78ms 14ms 60ms 204ms 88ms 204ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 3 Bytes (0%)
  • common: 44 Bytes (0%)

@NidhiKJha NidhiKJha dismissed stale reviews from AndyMBridges and ameliejyc via 4535e0a November 13, 2025 16:41
@github-actions github-actions bot added size-S and removed size-XS labels Nov 13, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [4535e0a]
UI Startup Metrics (1232 ± 89 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1232108215478912801411
load105691813178310941234
domContentLoaded104991113088110891224
domInteractive221585151964
firstPaint64691126541210471154
backgroundConnect2352202959239250
firstReactRender2718103102844
getState2385292743
initialActions104112
loadScripts820680107180859988
setupStore1152231218
numNetworkReqs1367419670
BrowserifyPower User HomeuiStartup23441864276221024062762
load1159986157121213991571
domContentLoaded1137938156221713881562
domInteractive612118855110188
firstPaint767256159447710571594
backgroundConnect25123427810256278
firstReactRender864614031113140
getState22416430839253308
initialActions103113
loadScripts908713133021411571330
setupStore291376143476
numNetworkReqs15310528064201280
WebpackStandard HomeuiStartup8757391196848851036
load63858996371638783
domContentLoaded63058394368631771
domInteractive191378131655
firstPaint21060860195210622
backgroundConnect281271133856
firstReactRender31195383639
getState1383041418
initialActions103112
loadScripts62758193265629760
setupStore1274341516
numNetworkReqs1467620672
WebpackPower User HomeuiStartup1126916177932614891779
load68857710841709401084
domContentLoaded67356710561619051056
domInteractive35121293875129
firstPaint4057010883336101088
backgroundConnect60102818050281
firstReactRender39334534145
getState1419517824153178
initialActions101011
loadScripts66956510461588941046
setupStore1462782527
numNetworkReqs1137122657170226
FirefoxBrowserifyStandard HomeuiStartup14751278201812815211715
load1239110515048712771443
domContentLoaded1239110515048712761443
domInteractive1053732549106221
firstPaint------
backgroundConnect4624135215296
firstReactRender25214952637
getState1182841221
initialActions203123
loadScripts1212108814668212451383
setupStore147243241330
numNetworkReqs1266415759
BrowserifyPower User HomeuiStartup34632727481266237894812
load15721326215525416412155
domContentLoaded15721325215525416412155
domInteractive346164865223487865
firstPaint------
backgroundConnect54613113924057311392
firstReactRender905513821105138
getState1759032749189327
initialActions213133
loadScripts15081290208824016002088
setupStore1324236996198369
numNetworkReqs1527823361227233
WebpackStandard HomeuiStartup15751422200212516051891
load1346121017299913881558
domContentLoaded1346120917279913881558
domInteractive973121435105175
firstPaint------
backgroundConnect45251602448109
firstReactRender30237583041
getState147149161249
initialActions104122
loadScripts1319119216479213651521
setupStore16697171451
numNetworkReqs1366817763
WebpackPower User HomeuiStartup38432820492957343144929
load18291494242726120232427
domContentLoaded18281493242726120232427
domInteractive346167792188573792
firstPaint------
backgroundConnect60214414023918951402
firstReactRender935513421112134
getState16613221621174216
initialActions328238
loadScripts17851467236525819582365
setupStore11921506112127506
numNetworkReqs1518227562213275
📊 Page Load Benchmark Results

Current Commit: 4535e0a | Date: 11/13/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

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

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 40ms 1.01s 1.34s 1.08s 1.34s
domContentLoaded 723ms 37ms 701ms 1.01s 755ms 1.01s
firstPaint 77ms 11ms 60ms 168ms 88ms 168ms
firstContentfulPaint 77ms 11ms 60ms 168ms 88ms 168ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 158 Bytes (0%)
  • common: 60 Bytes (0%)

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

ameliejyc
ameliejyc previously approved these changes Nov 13, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [c8dadac]
UI Startup Metrics (1228 ± 90 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1228108316449012771349
load106694114288211261206
domContentLoaded106093814068111191198
domInteractive231488162168
firstPaint63892144042310761178
backgroundConnect23422129510238247
firstReactRender26185162739
getState2088492435
initialActions104112
loadScripts832714115779894961
setupStore1072131116
numNetworkReqs1367419671
BrowserifyPower User HomeuiStartup22581545289434825382894
load1078874157220912821572
domContentLoaded1061853155521012541555
domInteractive54172335786233
firstPaint866203143633510981436
backgroundConnect22018626222242262
firstReactRender72471081888108
getState23913634659299346
initialActions102112
loadScripts858685131519710661315
setupStore2474792747
numNetworkReqs15110029372258293
WebpackStandard HomeuiStartup8226981198938281057
load60855996880605811
domContentLoaded60155495076598796
domInteractive171184131552
firstPaint20062953190169599
backgroundConnect251173152864
firstReactRender28186183336
getState1163031316
initialActions102011
loadScripts59855294074596786
setupStore1152741217
numNetworkReqs1467520871
WebpackPower User HomeuiStartup1111912199831113711998
load69458412291897751229
domContentLoaded67357011841737441184
domInteractive36131604275160
firstPaint3726211893185881189
backgroundConnect641022376156223
firstReactRender39344334143
getState1389416020150160
initialActions101011
loadScripts66956811741707341174
setupStore1462792527
numNetworkReqs1106922345146223
FirefoxBrowserifyStandard HomeuiStartup14971300198012515211775
load1263111314938213021439
domContentLoaded1263111214938213021439
domInteractive1113635750114228
firstPaint------
backgroundConnect4428117175179
firstReactRender25215242633
getState1276571119
initialActions203122
loadScripts1237109414677812731398
setupStore137111111331
numNetworkReqs1266516761
BrowserifyPower User HomeuiStartup35412814451850340524518
load15351326197922516951979
domContentLoaded15341326197922516951979
domInteractive331123840234472840
firstPaint------
backgroundConnect66911712493919931249
firstReactRender79521382285138
getState186108523109199523
initialActions41256325
loadScripts14801241194622416061946
setupStore852217540103175
numNetworkReqs1488230966210309
WebpackStandard HomeuiStartup16721481233616817022077
load14131216181712814651723
domContentLoaded14131216181612814641723
domInteractive1003231542110184
firstPaint------
backgroundConnect55272263358132
firstReactRender32258183443
getState147191191323
initialActions203123
loadScripts13801198178611514261640
setupStore188225251457
numNetworkReqs1366717766
WebpackPower User HomeuiStartup35922842462844739214628
load16891452213820219032138
domContentLoaded16891452213720219032137
domInteractive22474628187450628
firstPaint------
backgroundConnect529139996269768996
firstReactRender905111717102117
getState19011142771208427
initialActions213133
loadScripts16371416208420718762084
setupStore75271843691184
numNetworkReqs1518031771214317
📊 Page Load Benchmark Results

Current Commit: c8dadac | Date: 11/13/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±56ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 724ms (±48ms) 🟢 | historical mean value: 724ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 78ms (±10ms) 🟢 | historical mean value: 80ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 56ms 1.01s 1.31s 1.24s 1.31s
domContentLoaded 724ms 48ms 697ms 980ms 768ms 980ms
firstPaint 78ms 10ms 60ms 164ms 88ms 164ms
firstContentfulPaint 78ms 10ms 60ms 164ms 88ms 164ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 193 Bytes (0%)
  • common: 60 Bytes (0%)

@NidhiKJha NidhiKJha added this pull request to the merge queue Nov 13, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Nov 13, 2025
@ameliejyc ameliejyc enabled auto-merge November 13, 2025 19:32
@ameliejyc ameliejyc dismissed stale reviews from AndyMBridges and themself via 576d0e1 November 13, 2025 19:46
@hesterbruikman
Copy link

hesterbruikman commented Nov 13, 2025

@NidhiKJha nitpicking here, but the icons look like they have a different size compared to other icons. Could yu take a look please and ping @yanrong-chen if you need specs?

Already fixed

@metamaskbot
Copy link
Collaborator

Builds ready [576d0e1]
UI Startup Metrics (1203 ± 76 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1203108114287612351371
load104694312756910761185
domContentLoaded104093812696810681176
domInteractive2314169202072
firstPaint66985121241510451193
backgroundConnect2332212627237246
firstReactRender27185362844
getState22105492641
initialActions106112
loadScripts813713104166842942
setupStore1062431118
numNetworkReqs1367719671
BrowserifyPower User HomeuiStartup22031802275923522742759
load1165981180325513741803
domContentLoaded1144963179525813671795
domInteractive551918259133182
firstPaint57218816584889891658
backgroundConnect2542382688259268
firstReactRender72431202090120
getState27018841068339410
initialActions105115
loadScripts911729155025111301550
setupStore26856113256
numNetworkReqs1249719432163194
WebpackStandard HomeuiStartup84369712751028451126
load623557103491611883
domContentLoaded61654999788605871
domInteractive181270121555
firstPaint200621034208187851
backgroundConnect251161122956
firstReactRender30194673539
getState1272131317
initialActions104111
loadScripts61354698685603861
setupStore1264161322
numNetworkReqs1367419872
WebpackPower User HomeuiStartup1029893140518210971405
load63456686189687861
domContentLoaded61955581979678819
domInteractive291382267182
firstPaint22763622158295622
backgroundConnect52101856180185
firstReactRender38354524045
getState1356617129152171
initialActions101011
loadScripts61555380976668809
setupStore1472682526
numNetworkReqs826413226114132
FirefoxBrowserifyStandard HomeuiStartup15191355223112815761733
load1283113318549913421446
domContentLoaded1283113318549913411445
domInteractive1113640555116247
firstPaint------
backgroundConnect49271712654106
firstReactRender27228092749
getState1276871226
initialActions203122
loadScripts1253110718139313091403
setupStore145107151235
numNetworkReqs1267616757
BrowserifyPower User HomeuiStartup30862413475161133094751
load15071309230427815582304
domContentLoaded15071309230427815582304
domInteractive348147865240494865
firstPaint------
backgroundConnect45910714863827291486
firstReactRender84451192097119
getState20584525116238525
initialActions213133
loadScripts14561241220227115232202
setupStore12725518126146518
numNetworkReqs1217421952179219
WebpackStandard HomeuiStartup16741443230116717062053
load14151245179512014641676
domContentLoaded14151245179512014641676
domInteractive963351952105155
firstPaint------
backgroundConnect52261872955124
firstReactRender332497113550
getState14764111352
initialActions103122
loadScripts13831210167410814351623
setupStore177250261453
numNetworkReqs1366717766
WebpackPower User HomeuiStartup33342546461565239014615
load16921476243825518672438
domContentLoaded16921476243825518672438
domInteractive311117695196597695
firstPaint------
backgroundConnect44913912123225931212
firstReactRender915412517108125
getState199106549105208549
initialActions223033
loadScripts16391442226022617482260
setupStore12016466101153466
numNetworkReqs1287722556215225
📊 Page Load Benchmark Results

Current Commit: 576d0e1 | Date: 11/13/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±39ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 724ms (±36ms) 🟢 | historical mean value: 723ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±10ms) 🟢 | historical mean value: 80ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 39ms 1.01s 1.31s 1.09s 1.31s
domContentLoaded 724ms 36ms 699ms 982ms 764ms 982ms
firstPaint 77ms 10ms 60ms 160ms 88ms 160ms
firstContentfulPaint 77ms 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: 80 Bytes (0%)
  • common: 60 Bytes (0%)

@ameliejyc ameliejyc added this pull request to the merge queue Nov 13, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 13, 2025
@NidhiKJha NidhiKJha added this pull request to the merge queue Nov 14, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 14, 2025
@NidhiKJha NidhiKJha enabled auto-merge November 14, 2025 04:30
@metamaskbot
Copy link
Collaborator

Builds ready [592283c]
UI Startup Metrics (1254 ± 101 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12541082153810113231438
load108793713169311621252
domContentLoaded108193413059211571246
domInteractive221577152068
firstPaint54383126040910441196
backgroundConnect2342192568237251
firstReactRender29195183445
getState24877102941
initialActions103112
loadScripts8537181062909271012
setupStore1373051423
numNetworkReqs1367519671
BrowserifyPower User HomeuiStartup21541896297628322332976
load1155980184223814101842
domContentLoaded1137966182124014011821
domInteractive521915245113152
firstPaint610159144845410061448
backgroundConnect24923228513259285
firstReactRender73451182088118
getState23016335354270353
initialActions209229
loadScripts909745157623411651576
setupStore291563143363
numNetworkReqs1219118833153188
WebpackStandard HomeuiStartup7606481100867651010
load55550986374545782
domContentLoaded54850482770539770
domInteractive161166111346
firstPaint21353833212175702
backgroundConnect241267132556
firstReactRender27173563234
getState1062331216
initialActions101011
loadScripts54650282069536762
setupStore1153741215
numNetworkReqs1467620874
WebpackPower User HomeuiStartup1059901161123312581611
load67456311951748421195
domContentLoaded65555311421577781142
domInteractive49132927384292
firstPaint3476411933618001193
backgroundConnect4892416366241
firstReactRender38363913839
getState1379315120148151
initialActions001011
loadScripts65155111311537681131
setupStore1262672326
numNetworkReqs796311621113116
FirefoxBrowserifyStandard HomeuiStartup14891300201113215271784
load1251112016679112881426
domContentLoaded1250112016679112881426
domInteractive1083531150113230
firstPaint------
backgroundConnect4525149185271
firstReactRender27216272649
getState137193191220
initialActions203123
loadScripts1225110316408612661389
setupStore147217211231
numNetworkReqs1266515859
BrowserifyPower User HomeuiStartup31982482468567735584685
load15541384202319817262023
domContentLoaded15531383202219817262022
domInteractive264129653171399653
firstPaint------
backgroundConnect45012910103409141010
firstReactRender916612420113124
getState19712441586230415
initialActions214134
loadScripts15011332199920516901999
setupStore1223941892173418
numNetworkReqs1267923657203236
WebpackStandard HomeuiStartup16021460219411516171886
load1366122316449113991582
domContentLoaded1365122316449113991582
domInteractive55301582564111
firstPaint------
backgroundConnect4925217265789
firstReactRender342480143376
getState147224241122
initialActions102122
loadScripts1337119016148713731533
setupStore13774101231
numNetworkReqs1266915759
WebpackPower User HomeuiStartup32132471439260538414392
load16691419228326119252283
domContentLoaded16691419228326119252283
domInteractive333108915236597915
firstPaint------
backgroundConnect402127962292774962
firstReactRender895213321109133
getState16811327942199279
initialActions317137
loadScripts16151385218725218392187
setupStore1011640884111408
numNetworkReqs1277623057208230
📊 Page Load Benchmark Results

Current Commit: 592283c | Date: 11/14/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±39ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 718ms (±36ms) 🟢 | historical mean value: 731ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±12ms) 🟢 | historical mean value: 79ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 39ms 1.01s 1.31s 1.06s 1.31s
domContentLoaded 718ms 36ms 698ms 989ms 741ms 989ms
firstPaint 76ms 12ms 60ms 180ms 88ms 180ms
firstContentfulPaint 76ms 12ms 60ms 180ms 88ms 180ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 80 Bytes (0%)
  • common: 60 Bytes (0%)

@NidhiKJha NidhiKJha added this pull request to the merge queue Nov 14, 2025
github-merge-queue bot pushed a commit that referenced this pull request Nov 14, 2025
This PR is to add sidepanel/popup icon to the DS component library.

It also fixes an edge case with the Advanced Settings `Show extension in
full-size view` button where users who have turned sidepanel on after
enabling this will see sidepanel by default.

## **Changelog**

<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`

If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`

(This helps the Release Engineer do their job more quickly and
accurately)
-->

CHANGELOG entry:null

## **Related issues**

Fixes:
[https://consensyssoftware.atlassian.net/browse/CEUX-684](https://consensyssoftware.atlassian.net/browse/CEUX-684)
)
## **Manual testing steps**

1. In storybook, check sidepanel icon
2. Go to popup view or sidepanel and check the icon in global menu

## **Screenshots/Recordings**
### **Before**

NA

### **After**
<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->
![Screenshot 2025-11-13 at 4 36
06 PM](https://github.com/user-attachments/assets/127b771a-a5e8-4521-a508-ffa0afbf71d2)


![Screenshot 2025-11-13 at 10 10
04 PM](https://github.com/user-attachments/assets/d214efc2-2817-42ab-acf9-5e4ba1e307d7)


## **Pre-merge author checklist**

- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **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.





<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Adds popup/sidepanel icons to the design system, uses them for the
view toggle in the global menu, and enables the full-size opening
behavior from sidepanel too.
> 
> - **Design System / Icons**:
> - Add `app/images/icons/popup.svg` and
`app/images/icons/sidepanel.svg`.
> - Expose `IconName.Popup` and `IconName.Sidepanel` in
`ui/components/component-library/icon/icon.types.ts`.
> - **Global Menu**
(`ui/components/multichain/global-menu/global-menu.tsx`):
> - Replace viewport toggle to use `IconName.Popup`/`IconName.Sidepanel`
and `isSidePanelDefault` logic; update metrics payload and close
behavior.
>   - Add divider after notifications section.
> - **Routing / Behavior** (`ui/pages/routes/routes.component.tsx`):
> - Extend "Show extension in full-size view" to trigger when in
`ENVIRONMENT_TYPE_SIDEPANEL` as well as popup.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
592283c. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: ameliejyc <amelie.chan@gmail.com>
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 14, 2025
@NidhiKJha NidhiKJha added this pull request to the merge queue Nov 14, 2025
Merged via the queue into main with commit 9793ca4 Nov 14, 2025
328 of 331 checks passed
@NidhiKJha NidhiKJha deleted the sidepanel-icon branch November 14, 2025 06:04
@github-actions github-actions bot locked and limited conversation to collaborators Nov 14, 2025
@metamaskbot metamaskbot added the release-13.11.0 Issue or pull request that will be included in release 13.11.0 label Nov 14, 2025
@NidhiKJha NidhiKJha changed the title feat: added sidepanel icon feat: : cp-13.10.0 added sidepanel icon Nov 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

INVALID-PR-TEMPLATE PR's body doesn't match template release-13.11.0 Issue or pull request that will be included in release 13.11.0 size-S team-core-extension-ux Core Extension UX team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants