Skip to content

chore: update basic functionality modal components and wording#40954

Merged
ameliejyc merged 3 commits intomainfrom
update-basic-functionality-modal
Mar 18, 2026
Merged

chore: update basic functionality modal components and wording#40954
ameliejyc merged 3 commits intomainfrom
update-basic-functionality-modal

Conversation

@ameliejyc
Copy link
Contributor

@ameliejyc ameliejyc commented Mar 17, 2026

Description

Brings the Basic functionality modal up to date using the design system components, alters wording slightly and updates e2e tests accordingly.

Changelog

CHANGELOG entry: updates wording and styles in basic functionality modal

Related issues

Fixes:

Manual testing steps

  1. On Settings > Security & Privacy toggle Basic Functionality off
  2. See the modal with updated styles and wording
  3. Check that the functionality (checkbox, enabled button) works the same

Screenshots/Recordings

Before

image

After

image

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

Medium Risk
Refactors a settings-critical modal that toggles external services and metrics flags; while behavior appears equivalent, UI/component API changes and i18n key changes could cause regressions in enabling/disabling flows and tests.

Overview
Updates the “Basic functionality” disable/enable modal UI and copy. The modal is refactored to use @metamask/design-system-react components (new Checkbox/Text/button props), extracting toggle/checkbox handlers and switching the “turn off” disclaimer text to new i18n keys (basicConfigurationModalDisclaimerOffPart1/Part2).

Aligns tests and selectors with the new UI. E2E page objects now target data-testid selectors for the agreement checkbox and modal toggle button, and the modal unit test asserts via role-based checkbox querying and simplified click behavior.

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

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

@metamaskbot metamaskbot added the team-core-extension-ux Core Extension UX team label Mar 17, 2026
@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Mar 17, 2026

Builds ready [3de9328]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account29527831817302318
total29527831817302318
Confirm Txconfirm_tx6018597060412760396041
total6018597060412760396041
Bridge User Actionsbridge_load_page22220024920245249
bridge_load_asset_picker26619332249306322
bridge_search_token7547437658758765
total1265123512831912781283
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14431197178412714931698
load1195981155710612551373
domContentLoaded1188973150610312481362
domInteractive2917104202584
firstPaint1566850879205288
backgroundConnect21019327714211245
firstReactRender20126672130
initialActions107124
loadScripts994790129310110541171
setupStore1375261522
numNetworkReqs393188164079
Power User HomeuiStartup61862294179043022666812705
load13081123200914213461612
domContentLoaded12861120195413013161545
domInteractive39202223335118
firstPaint221931260137274359
backgroundConnect275932014264294634539794
firstReactRender24164152639
initialActions104113
loadScripts1064906171712310931307
setupStore1675371730
numNetworkReqs21012335349229309
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2192172212220221
srpButtonToSrpForm92899529395
confirmSrpToPwForm22222202222
pwFormToMetricsScreen15151501515
metricsToWalletReadyScreen16151701617
doneButtonToHomeScreen62857567440659674
openAccountMenuToAccountListLoaded2935289629642829592964
total37893520394517839283945
Onboarding New WalletcreateWalletToSocialScreen2202192211220221
srpButtonToPwForm1081051143107114
createPwToRecoveryScreen888088
skipBackupToMetricsScreen39374224042
agreeButtonToOnboardingSuccess16161701617
doneButtonToAssetList4884834955491495
total88787290914890909
Asset DetailsassetClickToPriceChart564578135578
total564578135578
Solana Asset DetailsassetClickToPriceChart1496821761191217
total1496821761191217
Import Srp HomeloginToHomeScreen234423332352723502352
openAccountMenuAfterLogin643291258891
homeAfterImportWithNewWallet23432215250710823592507
total47524599488810547934888
Send TransactionsopenSendPageFromHome412765175965
selectTokenToSendFormLoaded31283433434
reviewTransactionToConfirmationPage1066684142926511901429
total1138743152227712691522
SwapopenSwapPageFromHome1321231407137140
fetchAndDisplaySwapQuotes269626872705727002705
total283028212842728302842
🌐 Dapp Page Load Benchmarks

Current Commit: 3de9328 | Date: 3/17/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±42ms) 🟡 | historical mean value: 1.03s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 734ms (±60ms) 🟢 | historical mean value: 726ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 92ms (±126ms) 🟢 | historical mean value: 89ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 42ms 1.01s 1.38s 1.05s 1.38s
domContentLoaded 734ms 60ms 708ms 1.28s 739ms 1.28s
firstPaint 92ms 126ms 64ms 1.35s 88ms 1.35s
firstContentfulPaint 92ms 126ms 64ms 1.35s 88ms 1.35s
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 19.75 KiB (0.23%)
  • common: 1.3 KiB (0.01%)

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Mar 17, 2026

✨ Files requiring CODEOWNER review ✨

🧪 @MetaMask/qa (1 files, +3 -5)
  • 📁 test/
    • 📁 e2e/
      • 📁 page-objects/
        • 📁 pages/
          • 📁 onboarding/
            • 📄 onboarding-privacy-settings-page.ts +3 -5

@ameliejyc ameliejyc changed the title chore: update basic functionality modal chore: update basic functionality modal components and wording Mar 17, 2026
@sonarqubecloud
Copy link

@ameliejyc ameliejyc marked this pull request as ready for review March 17, 2026 12:09
@ameliejyc ameliejyc requested a review from a team as a code owner March 17, 2026 12:09
@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Mar 17, 2026

Builds ready [8939e4a]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account29527132921292329
total29527132921292329
Confirm Txconfirm_tx6002598260171360166017
total6002598260171360166017
Bridge User Actionsbridge_load_page21219422814222228
bridge_load_asset_picker25122527718266277
bridge_search_token74972877817756778
total1225120212491812421249
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14921230180211315691688
load1228102214429812811413
domContentLoaded1221101714359512751391
domInteractive3018101192682
firstPaint175701211166213344
backgroundConnect22019728715225252
firstReactRender20144662133
initialActions402442425
loadScripts101981712379310691188
setupStore1465161723
numNetworkReqs393184154077
Power User HomeuiStartup59542261181402817660511349
load13481172198814313791685
domContentLoaded13281165193513713511673
domInteractive43224154934128
firstPaint235961618171291386
backgroundConnect240031114027254432586263
firstReactRender25163942732
initialActions104112
loadScripts1104948163812911301431
setupStore1664881832
numNetworkReqs24210635764296341
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2172152181218218
srpButtonToSrpForm93929319393
confirmSrpToPwForm21212102121
pwFormToMetricsScreen15151501515
metricsToWalletReadyScreen17151911719
doneButtonToHomeScreen63958876367661763
openAccountMenuToAccountListLoaded2910288629271529202927
total39543863415111340104151
Onboarding New WalletcreateWalletToSocialScreen2202192232221223
srpButtonToPwForm1131091204115120
createPwToRecoveryScreen989099
skipBackupToMetricsScreen41384424244
agreeButtonToOnboardingSuccess17171701717
doneButtonToAssetList50549051710508517
total90689092914907929
Asset DetailsassetClickToPriceChart755686118686
total755686118686
Solana Asset DetailsassetClickToPriceChart903516247120162
total903516247120162
Import Srp HomeloginToHomeScreen2348228423903723692390
openAccountMenuAfterLogin85591362895136
homeAfterImportWithNewWallet1696459279896923162798
total41292893522996247455229
Send TransactionsopenSendPageFromHome481778226778
selectTokenToSendFormLoaded23192832628
reviewTransactionToConfirmationPage1350130414014113801401
total1385124015009314701500
SwapopenSwapPageFromHome101881089108108
fetchAndDisplaySwapQuotes2705268827221327162722
total2810279728231128232823
🌐 Dapp Page Load Benchmarks

Current Commit: 8939e4a | Date: 3/17/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.06s (±43ms) 🟡 | historical mean value: 1.03s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 743ms (±41ms) 🟢 | historical mean value: 730ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 82ms (±11ms) 🟢 | historical mean value: 88ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.06s 43ms 1.03s 1.38s 1.08s 1.38s
domContentLoaded 743ms 41ms 714ms 1.05s 764ms 1.05s
firstPaint 82ms 11ms 68ms 172ms 92ms 172ms
firstContentfulPaint 82ms 11ms 68ms 172ms 92ms 172ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 255 Bytes (0%)
  • ui: 25.27 KiB (0.3%)
  • common: 1.81 KiB (0.02%)

Copy link
Member

@seaona seaona left a comment

Choose a reason for hiding this comment

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

e2e LGTM

@ameliejyc ameliejyc enabled auto-merge March 18, 2026 13:08
@ameliejyc ameliejyc added this pull request to the merge queue Mar 18, 2026
Merged via the queue into main with commit 7f02641 Mar 18, 2026
194 of 196 checks passed
@ameliejyc ameliejyc deleted the update-basic-functionality-modal branch March 18, 2026 15:34
@github-actions github-actions bot locked and limited conversation to collaborators Mar 18, 2026
@metamaskbot metamaskbot added the release-13.24.0 Issue or pull request that will be included in release 13.24.0 label Mar 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.24.0 Issue or pull request that will be included in release 13.24.0 size-M team-core-extension-ux Core Extension UX team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants