Skip to content

Conversation

@salimtb
Copy link
Contributor

@salimtb salimtb commented Dec 1, 2025

Description

when Network manager selection is Solana and a new popular network is added, the defi and NFTs tabs are missing

Open in GitHub Codespaces

Changelog

CHANGELOG entry: when Network manager selection is Solana and a new popular network is added, the defi and NFTs tabs are missing

Related issues

Fixes: #36845

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Screen.Recording.2025-12-01.at.12.49.02.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.

Note

Non‑EVM account overview now shows NFTs and DeFi tabs only when any EVM network is enabled (and DeFi flag), powered by a new selector and comprehensive tests.

  • UI (Account Overview):
    • AccountOverviewNonEvm uses getHasAnyEvmNetworkEnabled and getIsDefiPositionsEnabled to set showNfts and showDefi in AccountOverviewLayout.
  • Selectors:
    • Add getHasAnyEvmNetworkEnabled to detect if any EVM network is enabled via enabledNetworkMap.
  • Tests:
    • Expand account-overview-non-evm.test.tsx to cover cases with no EVM networks, with EVM networks (DeFi on/off), single EVM network, and switching to non‑EVM (Solana).
    • Add unit tests for getHasAnyEvmNetworkEnabled in selectors.test.js.

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

…rk is added, the DeFi and NFTs tabs are missing
@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

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

@metamaskbot
Copy link
Collaborator

✨ Files requiring CODEOWNER review ✨

🔑 @MetaMask/accounts-engineers (2 files, +138 -16)
  • 📁 ui/
    • 📁 components/
      • 📁 multichain/
        • 📁 account-overview/
          • 📄 account-overview-non-evm.test.tsx +128 -15
          • 📄 account-overview-non-evm.tsx +10 -1

👨‍🔧 @MetaMask/core-extension-ux (2 files, +138 -16)
  • 📁 ui/
    • 📁 components/
      • 📁 multichain/
        • 📁 account-overview/
          • 📄 account-overview-non-evm.test.tsx +128 -15
          • 📄 account-overview-non-evm.tsx +10 -1

@github-actions github-actions bot added the size-M label Dec 1, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [1ad6e12]
UI Startup Metrics (1211 ± 96 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1211100714189612851364
load101386112428810591182
domContentLoaded100785712348710561175
domInteractive2514133212188
firstPaint55696119440310121144
backgroundConnect21019324411216234
firstReactRender29195583450
getState3416122173957
initialActions105112
loadScripts802658103284843955
setupStore1165361319
numNetworkReqs1257820573
BrowserifyPower User HomeuiStartup20111637338427520862604
load97985117721549851343
domContentLoaded96384417621539631325
domInteractive3217134243091
firstPaint63511214433689211166
backgroundConnect249187722117222526
firstReactRender61381151664100
getState18414630929202233
initialActions108113
loadScripts77565915301487691132
setupStore1996392239
numNetworkReqs103652955795279
WebpackStandard HomeuiStartup8437161079808801013
load65457887878674841
domContentLoaded64957187177671835
domInteractive2815128242295
firstPaint239107877177212664
backgroundConnect11683101017
firstReactRender29207293342
getState271258113549
initialActions105112
loadScripts64656686275669824
setupStore1163851322
numNetworkReqs1257720573
WebpackPower User HomeuiStartup15901256233125917242111
load6785781080101675933
domContentLoaded6685721072101660928
domInteractive35181482831112
firstPaint303881079218305834
backgroundConnect3675959317283
firstReactRender59457776471
getState17714023318186220
initialActions104112
loadScripts6655701062100658920
setupStore20959122349
numNetworkReqs1716743083220397
FirefoxBrowserifyStandard HomeuiStartup12491085164911913301455
load104592713148210991202
domContentLoaded104492713148110991202
domInteractive56302013280133
firstPaint------
backgroundConnect3818156243889
firstReactRender22185352336
getState13620523922
initialActions102012
loadScripts102091012847510651158
setupStore125155181027
numNetworkReqs1156516660
BrowserifyPower User HomeuiStartup26461920458155127344115
load1178930272925811651558
domContentLoaded1178930272925811651558
domInteractive1073254890108336
firstPaint------
backgroundConnect118261014141113266
firstReactRender62382232363109
getState279641012210360747
initialActions301021024
loadScripts1146910256723911331522
setupStore1826798215231692
numNetworkReqs100612495879235
WebpackStandard HomeuiStartup14941263207015315831817
load12411080151810313051447
domContentLoaded12401080151810313041447
domInteractive52251473177108
firstPaint------
backgroundConnect48201913344122
firstReactRender24204042531
getState137124131327
initialActions102012
loadScripts1212105014449212801367
setupStore146192211337
numNetworkReqs1256918767
WebpackPower User HomeuiStartup29612055548375930774690
load14681143302741514982739
domContentLoaded14681142302641514982738
domInteractive10527637103101344
firstPaint------
backgroundConnect160351220214150500
firstReactRender64381852363110
getState294731243239362757
initialActions2137423
loadScripts14011117287235214562448
setupStore1556846198175724
numNetworkReqs1015724955112243
📊 Page Load Benchmark Results

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

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±41ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 720ms (±39ms) 🟢 | historical mean value: 724ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±15ms) 🟢 | historical mean value: 81ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 41ms 1.01s 1.34s 1.07s 1.34s
domContentLoaded 720ms 39ms 697ms 1.01s 745ms 1.01s
firstPaint 77ms 15ms 56ms 216ms 84ms 216ms
firstContentfulPaint 77ms 15ms 56ms 216ms 84ms 216ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 896 Bytes (0.02%)
  • ui: 3.23 KiB (0.04%)
  • common: 1.15 KiB (0.01%)

@salimtb salimtb changed the title fix: when Network manager selection is Solana and a new popular netwo… fix: when Network manager selection is Solana and a new popular network is added, the defi and NFTs tabs are missing Dec 1, 2025
@salimtb salimtb marked this pull request as ready for review December 1, 2025 11:50
…on-is-solana-and-a-new-popular-network-is-added-the-de-fi-and-nf-ts-tabs-are-missing
@salimtb salimtb requested review from a team as code owners December 1, 2025 11:50
@metamaskbot
Copy link
Collaborator

Builds ready [f468f23]
UI Startup Metrics (1181 ± 112 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1181992158211212441392
load98482012859510271159
domContentLoaded97781612799410231153
domInteractive2314100181974
firstPaint4897511603739521086
backgroundConnect19517623211201221
firstReactRender31186293748
getState3714161234396
initialActions106112
loadScripts789636108791830970
setupStore1263961427
numNetworkReqs1257721577
BrowserifyPower User HomeuiStartup20431672277323920822613
load1033904152413310511377
domContentLoaded1018893151413510311373
domInteractive35181522633112
firstPaint55010415284049711338
backgroundConnect259200753108231522
firstReactRender5842119136193
getState18813864452199230
initialActions104112
loadScripts81170113041348121169
setupStore1994572336
numNetworkReqs104672825497271
WebpackStandard HomeuiStartup825711107180857998
load63956584469651823
domContentLoaded63456183868648817
domInteractive2615100212289
firstPaint251100830182236655
backgroundConnect962941018
firstReactRender28209893238
getState281358113748
initialActions104111
loadScripts63155982867646809
setupStore1153341319
numNetworkReqs1257720571
WebpackPower User HomeuiStartup17101312251929419912259
load69860012481157081003
domContentLoaded6885931239116697995
domInteractive39181933833149
firstPaint3471081247267625950
backgroundConnect42859811218411
firstReactRender64489196981
getState205140747114190660
initialActions102112
loadScripts6855911230114695986
setupStore23964132554
numNetworkReqs1776644084218412
FirefoxBrowserifyStandard HomeuiStartup13261107184216014131651
load1095958163511411501293
domContentLoaded1095958163511411501293
domInteractive57311582980124
firstPaint------
backgroundConnect46221442754113
firstReactRender23196062437
getState176220321156
initialActions102112
loadScripts106494215299811161274
setupStore1155071027
numNetworkReqs1256617663
BrowserifyPower User HomeuiStartup26721903517964428284409
load1218987273235112172542
domContentLoaded1217987273235112172542
domInteractive1103447196102387
firstPaint------
backgroundConnect130341065162115383
firstReactRender6035370356095
getState28269956227348841
initialActions203122
loadScripts1178960257832111832168
setupStore1846813221166703
numNetworkReqs101622475887241
WebpackStandard HomeuiStartup14971272215215615821777
load12361091149510312921465
domContentLoaded12351091149510312921465
domInteractive55271673282118
firstPaint------
backgroundConnect48202033445127
firstReactRender26203942735
getState156166231223
initialActions103122
loadScripts1211107514449612691411
setupStore13673121144
numNetworkReqs1257116762
WebpackPower User HomeuiStartup28692087489361829144486
load14661173286640514932619
domContentLoaded14661172286640514932618
domInteractive119281029134106385
firstPaint------
backgroundConnect141311268174148318
firstReactRender6341190186595
getState28467950208400777
initialActions2131323
loadScripts14031130255532814672448
setupStore1456702183133598
numNetworkReqs103612506182244
📊 Page Load Benchmark Results

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

📄 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: 716ms (±37ms) 🟢 | historical mean value: 723ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 74ms (±11ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 39ms 1.01s 1.32s 1.07s 1.32s
domContentLoaded 716ms 37ms 695ms 999ms 744ms 999ms
firstPaint 74ms 11ms 60ms 168ms 84ms 168ms
firstContentfulPaint 74ms 11ms 60ms 168ms 84ms 168ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 250 Bytes (0%)
  • common: 171 Bytes (0%)

Copy link
Contributor

@ccharly ccharly left a comment

Choose a reason for hiding this comment

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

LGTM (not tested)

@salimtb salimtb added this pull request to the merge queue Dec 1, 2025
Merged via the queue into main with commit df8313f Dec 1, 2025
185 checks passed
@salimtb salimtb deleted the ASSETS-1573-bug-when-network-manager-selection-is-solana-and-a-new-popular-network-is-added-the-de-fi-and-nf-ts-tabs-are-missing branch December 1, 2025 13:23
@github-actions github-actions bot locked and limited conversation to collaborators Dec 1, 2025
@metamaskbot metamaskbot added the release-13.13.0 Issue or pull request that will be included in release 13.13.0 label Dec 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.13.0 Issue or pull request that will be included in release 13.13.0 size-M team-assets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: When Network manager selection is Solana and a new popular network is added, the DeFi and NFTs tabs are missing

5 participants