Skip to content

Conversation

@NidhiKJha
Copy link
Member

@NidhiKJha NidhiKJha commented Jan 7, 2026

This PR ensures that not connected notification show up for sidepanel. Issue here was that the selector
selectShowConnectAccountToast used state.activeTab.origin directly instead of getOriginOfCurrentTab(state)

Changelog

CHANGELOG entry:null

Related issues

Fixes: #38804

Manual testing steps

  1. Fresh install
  2. Do not open pop-up view only side panel view
  3. Connect to a dapp with account 1
  4. Switch accounts and see the notification appear for not connected account

Screenshots/Recordings

Before

NA

After

Screenshot 2026-01-07 at 12 17 40 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

Fixes connect-account toast logic for side panel contexts.

  • Use getOriginOfCurrentTab instead of state.activeTab.origin in selectShowConnectAccountToast and selectShowConnectAccountGroupToast to correctly resolve origin in side panel
  • Explicitly coerce selector results to booleans with Boolean(...)

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

@metamaskbot metamaskbot added team-core-extension-ux Core Extension UX team INVALID-PR-TEMPLATE PR's body doesn't match template labels Jan 7, 2026
@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Jan 7, 2026

Builds ready [f4bc260]
UI Startup Metrics (1296 ± 120 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12961022155312013661501
load1091874134611211591294
domContentLoaded1085871133711111501286
domInteractive2615111212190
firstPaint147651088113186276
backgroundConnect2121962429216232
firstReactRender1492631520
getState351973113954
initialActions105112
loadScripts88066211271109461088
setupStore1253751324
numNetworkReqs181181181174
BrowserifyPower User HomeuiStartup17251339224116518002037
load1062881155512011381302
domContentLoaded1049876154211911211287
domInteractive31181472526100
firstPaint189661553206208365
backgroundConnect23719758253247278
firstReactRender14112421518
getState16712325327185219
initialActions102112
loadScripts83768013131159011064
setupStore17657101641
numNetworkReqs67532072262120
WebpackStandard HomeuiStartup78564499780835928
load63756879460678756
domContentLoaded63256378859671750
domInteractive241596182177
firstPaint1005731452108230
backgroundConnect225108222876
firstReactRender16103451730
getState3315118154256
initialActions1010113
loadScripts62956177958668741
setupStore1264461326
numNetworkReqs171176171165
WebpackPower User HomeuiStartup1163928155914012361436
load72659796794802900
domContentLoaded71959195993797889
domInteractive30161452625104
firstPaint12463889100154280
backgroundConnect63654312542458
firstReactRender16132321620
getState1368318114143171
initialActions102011
loadScripts71658995192792886
setupStore1483871435
numNetworkReqs64521211662111
FirefoxBrowserifyStandard HomeuiStartup13971095206719714761831
load1119944185215011881346
domContentLoaded1119944185215011881346
domInteractive75322554390160
firstPaint------
backgroundConnect57193605467171
firstReactRender1293931216
getState186479491238
initialActions102012
loadScripts1083931180513311431290
setupStore154155211149
numNetworkReqs19980191376
BrowserifyPower User HomeuiStartup25011460370455429373135
load1716978257555022532469
domContentLoaded1715978257455022522469
domInteractive873289510879272
firstPaint------
backgroundConnect3342113023574121109
firstReactRender19106192430
getState945814920108138
initialActions203122
loadScripts1482961239046320032272
setupStore204159261985
numNetworkReqs74511752987144
WebpackStandard HomeuiStartup16421320219118817261995
load13571150165411514101607
domContentLoaded13561150165411514101606
domInteractive852923044121147
firstPaint------
backgroundConnect62192994673146
firstReactRender16115761726
getState2161542916109
initialActions103122
loadScripts13211129159010313771545
setupStore184189231751
numNetworkReqs19986201378
WebpackPower User HomeuiStartup27011653388752630933361
load19791182276751624602662
domContentLoaded19791182276651624592662
domInteractive79294098178308
firstPaint------
backgroundConnect3192611483553621095
firstReactRender211276122553
getState119561237153107206
initialActions203123
loadScripts17221159259044721572502
setupStore445104114316186
numNetworkReqs75521593177151
📊 Page Load Benchmark Results

Current Commit: f4bc260 | Date: 1/7/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±44ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 715ms (±40ms) 🟢 | historical mean value: 729ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 75ms (±10ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 44ms 1.00s 1.32s 1.05s 1.32s
domContentLoaded 715ms 40ms 695ms 988ms 729ms 988ms
firstPaint 75ms 10ms 60ms 156ms 84ms 156ms
firstContentfulPaint 75ms 10ms 60ms 156ms 84ms 156ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: -1 Bytes (0%)
  • common: 20 Bytes (0%)

AndyMBridges
AndyMBridges previously approved these changes Jan 8, 2026
@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Jan 8, 2026

Builds ready [528b78f]
UI Startup Metrics (1305 ± 122 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup13051047160712213861518
load1091871135511111471306
domContentLoaded1085867134811011421293
domInteractive261597182376
firstPaint1456530561191251
backgroundConnect21819727314222252
firstReactRender16103141824
getState3821128144165
initialActions104111
loadScripts87467311271099391084
setupStore1262131220
numNetworkReqs171168161164
BrowserifyPower User HomeuiStartup19211465244019220462357
load1051920142511910791324
domContentLoaded1037910141111910631312
domInteractive35171222335108
firstPaint229691364219247453
backgroundConnect26220773199240543
firstReactRender22154252434
getState17214227325187215
initialActions106112
loadScripts81970111981168441104
setupStore18105981938
numNetworkReqs59371432463131
WebpackStandard HomeuiStartup795648106384844975
load64957288478711800
domContentLoaded64456788077706795
domInteractive2415100171977
firstPaint1005933654103214
backgroundConnect285135303593
firstReactRender15113951527
getState3015132164052
initialActions104111
loadScripts64156487176700793
setupStore1274471232
numNetworkReqs181181171167
WebpackPower User HomeuiStartup13991027226728115062001
load704601119593733907
domContentLoaded694595118794714901
domInteractive37181643034126
firstPaint1356738871165295
backgroundConnect82765917721617
firstReactRender23183932429
getState15113320412159170
initialActions104112
loadScripts690592117692711891
setupStore16105071741
numNetworkReqs994024446135206
FirefoxBrowserifyStandard HomeuiStartup13841080204516914581683
load1092922138610111501268
domContentLoaded1091918138610111501268
domInteractive74322504389146
firstPaint------
backgroundConnect58203055164169
firstReactRender12103831217
getState137155161127
initialActions103112
loadScripts105890812628411001222
setupStore156202251152
numNetworkReqs19981191375
BrowserifyPower User HomeuiStartup25632015537461325914069
load1284986269537812772601
domContentLoaded1284986269537812762600
domInteractive13332756124123448
firstPaint------
backgroundConnect148231205225117868
firstReactRender241587112633
getState27770896219444743
initialActions207123
loadScripts1233944267133711842079
setupStore1586791199188687
numNetworkReqs59302564848193
WebpackStandard HomeuiStartup16531348259321417982071
load13641161203213114431567
domContentLoaded13631161203213114431567
domInteractive75292304093141
firstPaint------
backgroundConnect68212335099170
firstReactRender15113031621
getState2582233718110
initialActions103122
loadScripts13221141191511413881532
setupStore215260361590
numNetworkReqs20991201479
WebpackPower User HomeuiStartup29392190649589830984740
load16301172502063616772923
domContentLoaded16301172502063616772923
domInteractive131303196320102384
firstPaint------
backgroundConnect1852319552951701067
firstReactRender2515258252535
getState26267908211381752
initialActions204123
loadScripts15291156499954215982675
setupStore956112616379495
numNetworkReqs57291893383117
📊 Page Load Benchmark Results

Current Commit: 528b78f | Date: 1/8/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

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

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 38ms 1.00s 1.30s 1.06s 1.30s
domContentLoaded 721ms 35ms 696ms 964ms 745ms 964ms
firstPaint 77ms 11ms 60ms 172ms 84ms 172ms
firstContentfulPaint 77ms 11ms 60ms 172ms 84ms 172ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 1.74 KiB (0.04%)
  • ui: -1.14 KiB (-0.01%)
  • common: 6.28 KiB (0.07%)

@NidhiKJha NidhiKJha added this pull request to the merge queue Jan 9, 2026
Merged via the queue into main with commit bfd50d7 Jan 9, 2026
176 checks passed
@NidhiKJha NidhiKJha deleted the fix-38804 branch January 9, 2026 10:03
@github-actions github-actions bot locked and limited conversation to collaborators Jan 9, 2026
@metamaskbot metamaskbot added the release-13.15.0 Issue or pull request that will be included in release 13.15.0 label Jan 9, 2026
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.15.0 Issue or pull request that will be included in release 13.15.0 size-XS team-core-extension-ux Core Extension UX team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No notice from dapp that the account isn't connected when switching accounts - in side panel view

5 participants