Skip to content

chore: Expose dismissSidePanelMigrationToast through PrefController messenger - #47553

Merged
mcmire merged 1 commit into
mainfrom
expose-more-pref-controller-methods
Nov 4, 2026
Merged

mcmire merged 1 commit into
mainfrom
expose-more-pref-controller-methods

Conversation

@mcmire

@mcmire mcmire commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Description

Expose the dismissSidePanelMigrationToast method through the PreferencesController messenger so that we can access it through the root messenger instead of directly calling it. This will allow us to remove it as a method from MetamaskController.getApi.

Changelog

CHANGELOG entry: null

Related issues

https://consensyssoftware.atlassian.net/browse/WPC-1557

Manual testing steps

This PR should have no functional changes. All flows should work like they do today, and the changes here should be covered by tests.

Screenshots/Recordings

(N/A)

Before

After

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

Low Risk
Messenger wiring and tests only; no change to dismissal logic or persisted preference behavior.

Overview
Registers dismissSidePanelMigrationToast on the PreferencesController messenger (PreferencesController:dismissSidePanelMigrationToast) by adding it to MESSENGER_EXPOSED_METHODS and the generated method-action types union.

Callers can dismiss the side-panel migration toast through the root messenger instead of going through MetamaskController.getApi. Behavior is unchanged: showSidePanelMigrationToast is still set to false.

Adds unit tests for direct invocation and messenger.call('PreferencesController:dismissSidePanelMigrationToast').

Reviewed by Cursor Bugbot for commit fe1ffcc. Bugbot is set up for automated code reviews on this repo. Configure here.

Expose the `dismissSidePanelMigrationToast` method through the
PreferencesController messenger so that we can access it through the
root messenger instead of directly calling it. This will allow us to
remove it as a method from `MetamaskController.getApi`.
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
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.

@github-actions github-actions Bot added the size-S label Nov 2, 2026
@metamask-ci metamask-ci Bot added the team-core-platform Core Platform team label Nov 2, 2026
@mcmire mcmire changed the title Expose dismissSidePanelMigrationToast through PrefController messenger chore: Expose dismissSidePanelMigrationToast through PrefController messenger Nov 2, 2026
@metamask-ci

metamask-ci Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor
Builds ready [fe1ffcc]
⚡ Performance Benchmarks (Total: 🟢 9 pass · 🟡 1 warn · 🔴 3 fail)

Baseline (latest main): 171ed20 | Date: 7/28/2026 | Pipeline: 41541506523 | Baseline logs

Metricschrome-webpackfirefox-webpack
loadNewAccount
[Sentry log · main/release]
🔴 load_new_account(p95) [CI log]🔴 load_new_account(p95) [CI log]
onboardingImportWallet
[Sentry log · main/release]
🟢 [CI log]🔴 [CI log]

Regressions (🔴 3 failures)

Interaction Benchmarks · Samples: 5 🔴 2
Benchmarkchrome-webpackfirefox-webpack
loadNewAccount
[Sentry log · main/release]
🔴 [CI log]
🔴 load_new_account
🔴 [CI log]
🔴 load_new_account
confirmTx
[Sentry log · main/release]
🟢 [CI log]🟡 [CI log]
bridgeUserActions
[Sentry log · main/release]
🟢 [CI log]🟢 [CI log]

📈 Results compared to the previous 5 runs on main

  • ↑ loadNewAccount/load_new_account: +414%
  • ↑ loadNewAccount/total: +414%
  • ↓ loadNewAccount/inp: -24%
  • ↓ loadNewAccount/fcp: -11%
  • ↓ loadNewAccount/lcp: -15%
  • ↑ loadNewAccount/cls: +1195%
  • ↑ confirmTx/longTaskTotalDuration: +34%
  • ↑ confirmTx/longTaskMaxDuration: +56%
  • ↑ confirmTx/tbt: +59%
  • ↓ confirmTx/inp: -32%
  • ↓ confirmTx/fcp: -14%
  • ↑ bridgeUserActions/bridge_load_page: +28%
  • ↑ bridgeUserActions/bridge_load_asset_picker: +65%
  • ↑ bridgeUserActions/longTaskCount: +67%
  • ↑ bridgeUserActions/longTaskTotalDuration: +49%
  • ↓ bridgeUserActions/longTaskMaxDuration: -15%
  • ↑ bridgeUserActions/tbt: +16%
  • ↓ bridgeUserActions/fcp: -16%
  • ↓ bridgeUserActions/lcp: -13%
  • ↑ bridgeUserActions/cls: +1181%
  • ↑ loadNewAccount/load_new_account: +421%
  • ↑ loadNewAccount/total: +421%
  • ↓ loadNewAccount/inp: -24%
  • ↓ loadNewAccount/fcp: -31%
  • ↑ loadNewAccount/lcp: +1292%
  • ↓ confirmTx/longTaskCount: -100%
  • ↓ confirmTx/longTaskTotalDuration: -100%
  • ↓ confirmTx/longTaskMaxDuration: -100%
  • ↓ confirmTx/tbt: -100%
  • ↓ confirmTx/inp: -17%
  • ↑ confirmTx/fcp: +23%
  • ↑ confirmTx/lcp: +1334%
  • ↑ bridgeUserActions/bridge_load_page: +409%
  • ↑ bridgeUserActions/bridge_load_asset_picker: +159%
  • ↑ bridgeUserActions/bridge_search_token: +47%
  • ↓ bridgeUserActions/longTaskCount: -100%
  • ↓ bridgeUserActions/longTaskTotalDuration: -100%
  • ↓ bridgeUserActions/longTaskMaxDuration: -100%
  • ↓ bridgeUserActions/tbt: -100%
  • ↑ bridgeUserActions/total: +83%
  • ↑ bridgeUserActions/inp: +62%
  • ↓ bridgeUserActions/fcp: -36%
  • ↑ bridgeUserActions/lcp: +1281%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🟡 confirmTx/FCP: p75 2.1s
Startup Benchmarks · Samples: 100
Benchmarkchrome-webpackfirefox-webpack
startupStandardHome
[Sentry log · main/release]
🟢 [CI log]🟢 [CI log]

📈 Results compared to the previous 5 runs on main

  • ↑ startupStandardHome/uiStartup: +11%
  • ↑ startupStandardHome/domInteractive: +20%
  • ↓ startupStandardHome/firstReactRender: -99%
  • ↓ startupStandardHome/initialActions: -33%
  • ↑ startupStandardHome/setupStore: +127%
  • ↓ startupStandardHome/longTaskCount: -33%
  • ↑ startupStandardHome/lcp: +15%
  • ↓ startupStandardHome/uiStartup: -34%
  • ↓ startupStandardHome/load: -30%
  • ↓ startupStandardHome/domContentLoaded: -32%
  • ↓ startupStandardHome/domInteractive: -44%
  • ↓ startupStandardHome/backgroundConnect: -24%
  • ↓ startupStandardHome/firstReactRender: -99%
  • ↓ startupStandardHome/initialActions: -50%
  • ↓ startupStandardHome/loadScripts: -30%
  • ↑ startupStandardHome/setupStore: +45%
  • ↓ startupStandardHome/fcp: -27%
  • ↓ startupStandardHome/lcp: -28%
User Journey Benchmarks · Samples: 5 · mock API 🔴 1
Benchmarkchrome-webpackfirefox-webpack
onboardingImportWallet
[Sentry log · main/release]
🟢 [CI log]🔴 [CI log]
🔴 total
onboardingNewWallet
[Sentry log · main/release]
🟢 [CI log]🟢 [CI log]

📈 Results compared to the previous 5 runs on main

  • ↑ onboardingImportWallet/srpButtonToSrpForm: +46%
  • ↑ onboardingImportWallet/confirmSrpToPwForm: +39%
  • ↑ onboardingImportWallet/pwFormToMetricsScreen: +34%
  • ↑ onboardingImportWallet/metricsToWalletReadyScreen: +50%
  • ↓ onboardingImportWallet/doneButtonToHomeScreen: -94%
  • ↓ onboardingImportWallet/openAccountMenuToAccountListLoaded: -75%
  • ↓ onboardingImportWallet/longTaskCount: -86%
  • ↓ onboardingImportWallet/longTaskTotalDuration: -96%
  • ↓ onboardingImportWallet/longTaskMaxDuration: -92%
  • ↓ onboardingImportWallet/tbt: -100%
  • ↓ onboardingImportWallet/total: -88%
  • ↑ onboardingNewWallet/createPwToRecoveryScreen: +12%
  • ↓ onboardingNewWallet/doneButtonToAssetList: -84%
  • ↓ onboardingNewWallet/longTaskCount: -100%
  • ↓ onboardingNewWallet/longTaskTotalDuration: -100%
  • ↓ onboardingNewWallet/longTaskMaxDuration: -100%
  • ↓ onboardingNewWallet/tbt: -100%
  • ↓ onboardingNewWallet/total: -80%
Dapp Page Load Benchmarks · Samples: 100
Benchmarkchrome-webpack
dappPageLoad
[Sentry log · main/release]
🟢 [CI log]

📈 Results compared to the previous 5 runs on main

  • ↓ dappPageLoad/pageLoadTime: -55%
  • ↓ dappPageLoad/firstPaint: -37%
  • ↓ dappPageLoad/firstContentfulPaint: -37%
Bundle Size Diffs [🚨 Warning! Bundle size has increased!]
Status Bundle Total Diff Change
🚨 background 15.26 MiB +2.64 KiB +0.02%
🚨 ui 19.33 MiB +2.57 KiB +0.01%
✅ common 0 Bytes 0 Bytes 0.00%
✅ other 4.44 MiB +12 Bytes 0.00%
✅ content scripts 3.23 MiB +24 Bytes 0.00%
🚨 unzipped 79.89 MiB +5.26 KiB +0.01%
🚨 zip 24.07 MiB +1.42 KiB +0.01%

@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
3.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@mcmire
mcmire marked this pull request as ready for review November 4, 2026 14:03
@mcmire
mcmire enabled auto-merge November 4, 2026 14:10
@mcmire
mcmire added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit 2dca406 Nov 4, 2026
160 of 163 checks passed
@mcmire
mcmire deleted the expose-more-pref-controller-methods branch November 4, 2026 14:44
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 4, 2026

This branch had an error being deployed

1 failed and 1 inactive deployments
segment-schema — fe1ffcc7 Deployed Nov 4, 2026 by mcmire via propose #3070
pr-comment — fe1ffcc7 Deployed Nov 4, 2026 by mcmire via identify-codeowners #88463
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants