Skip to content

chore: remove deprecated gas fee components (speedup/cancel)#40911

Open
vinistevam wants to merge 4 commits intovs/enhance-speed-up-cancel-logicfrom
vs/remove-dead-code-speedup-cancel
Open

chore: remove deprecated gas fee components (speedup/cancel)#40911
vinistevam wants to merge 4 commits intovs/enhance-speed-up-cancel-logicfrom
vs/remove-dead-code-speedup-cancel

Conversation

@vinistevam
Copy link
Contributor

@vinistevam vinistevam commented Mar 16, 2026

Description

Removes dead code left after the cancel/speed-up refactor (PRs #39918, #40734). The activity list now uses the new CancelSpeedup modal for EIP-1559 and EditGasPopover for legacy; the old popover and its dependencies are unused.

Changes

Deleted components and hooks

  • cancel-speedup-popover/ – Old popover; no production imports.
  • gas-details-item/ – Only used by the removed cancel-speedup popover.
  • fee-details-component/ – No production imports.
  • edit-gas-fee-icon/ – Only used by removed GasDetailsItem and top-level EditGasFeePopover.
  • edit-gas-fee-button/ – Only used by TransactionDetail; edit-gas block removed from TransactionDetail in this PR.
  • edit-gas-fee-popover (top-level only) – Component, test, and stories; subfolders (e.g. network-statistics, edit-gas-tooltip) kept for EstimatesModal.
  • advanced-gas-fee-popover (top-level only) – Component and test; subfolders (e.g. advanced-gas-fee-inputs) kept for AdvancedEIP1559Modal.
  • useDraftTransactionWithTxParams.js – Deprecated hook that always returned {}.

Updated files

  • gas-timing.component.js – Removed useDraftTransactionWithTxParams import and usage; estimateToUse now uses userFeeLevelOverride ?? estimateUsed ?? 'medium'.
  • transaction-detail.component.js – Removed EditGasFeeButton import and the EIP-1559 edit-gas block (button was only used here; legacy “edit” link unchanged).
  • edit-gas-fee-popover/index.js and advanced-gas-fee-popover/index.js – Removed default export; added comment and export {} so they remain valid modules.
  • app-components.scss – Removed @import 'cancel-speedup-popover/index'.
  • confirmations/components/index.scss – Removed @import 'edit-gas-fee-button/index' and @import 'gas-details-item/index'.
  • console-baseline-unit.json – Removed entries for deleted test files.
  • files-to-convert.json – Removed entries for deleted files.
  • transaction-detail.component.test.js – Adjusted test that asserted on the removed edit gas button.

Open in GitHub Codespaces

Changelog

CHANGELOG entry: null

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/7111

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

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
Low risk because this PR primarily deletes unused UI components, styles, tests, and i18n strings after prior refactors; main risk is accidental removal of a still-referenced translation/module causing missing labels at runtime.

Overview
Removes multiple deprecated gas fee UI surfaces (old cancel/speed-up popover, top-level advanced/edit gas fee popovers, edit-gas button/icon, and related fee/gas detail components) along with their stories, styles, and unit tests.

Cleans up references by dropping associated SCSS imports and ts-migration/test baselines, and prunes now-unused locale strings (e.g. cancelSpeedUpLabel, dappSuggestedTooltip, maxPriorityFee, networkIsBusy) across many languages; the advanced-gas-fee-popover index is converted to an empty module to reflect direct sub-component imports.

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

@vinistevam vinistevam added the team-confirmations Push issues to confirmations team label Mar 16, 2026
@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.

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Mar 16, 2026

✨ Files requiring CODEOWNER review ✨

@MetaMask/confirmations (2 files, +0 -177)
  • 📁 ui/
    • 📁 pages/
      • 📁 confirmations/
        • 📁 components/
          • 📁 advanced-gas-fee-popover/
            • 📄 advanced-gas-fee-popover.js +0 -49
            • 📄 advanced-gas-fee-popover.test.js +0 -128

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Mar 16, 2026

Builds ready [bcdfa94]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account27426429412270294
total27426429412270294
Confirm Txconfirm_tx6061603560811660726081
total6061603560811660726081
Bridge User Actionsbridge_load_page24621130534258305
bridge_load_asset_picker22417928339254283
bridge_search_token7507427587758758
total1231121212431412431243
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14561197183712015301670
load12181007145010212801398
domContentLoaded12111003144310012751381
domInteractive301999192684
firstPaint1536640678217262
backgroundConnect21919741826221260
firstReactRender20144562233
initialActions209125
loadScripts101180112419710721184
setupStore1363851520
numNetworkReqs312288192283
Power User HomeuiStartup21571709296818322402463
load12021053186416111871610
domContentLoaded11871046184915511771593
domInteractive3620150253498
firstPaint1807848097250402
backgroundConnect34628267969344504
firstReactRender25165482643
initialActions106113
loadScripts95783616201509381357
setupStore1674861824
numNetworkReqs70331744558170
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2212192231222223
srpButtonToSrpForm97959819898
confirmSrpToPwForm23222302323
pwFormToMetricsScreen16161601616
metricsToWalletReadyScreen17171801818
doneButtonToHomeScreen6226206252625625
openAccountMenuToAccountListLoaded2922291029351029302935
total391139043917539143917
Onboarding New WalletcreateWalletToSocialScreen2202192211221221
srpButtonToPwForm1081031154111115
createPwToRecoveryScreen888088
skipBackupToMetricsScreen33333403334
agreeButtonToOnboardingSuccess16151601616
doneButtonToAssetList56849763158618631
total95487710186010011018
Asset DetailsassetClickToPriceChart1541531551155155
total1541531551155155
Solana Asset DetailsassetClickToPriceChart79768227982
total79768227982
Import Srp HomeloginToHomeScreen19731847214111020642141
openAccountMenuAfterLogin46415344553
homeAfterImportWithNewWallet2429234925085924552508
total45124355471113946394711
Send TransactionsopenSendPageFromHome18161911819
selectTokenToSendFormLoaded21172422224
reviewTransactionToConfirmationPage8478468481847848
total8858808894888889
SwapopenSwapPageFromHome17161811818
fetchAndDisplaySwapQuotes268926832695426912695
total270727022712427092712
🌐 Dapp Page Load Benchmarks

Current Commit: bcdfa94 | Date: 3/16/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.08s (±78ms) 🟡 | historical mean value: 1.06s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 750ms (±87ms) 🟢 | historical mean value: 746ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 95ms (±130ms) 🟢 | historical mean value: 85ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.08s 78ms 1.03s 1.49s 1.29s 1.49s
domContentLoaded 750ms 87ms 705ms 1.32s 955ms 1.32s
firstPaint 95ms 130ms 68ms 1.39s 96ms 1.39s
firstContentfulPaint 95ms 130ms 68ms 1.39s 96ms 1.39s
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 5.15 MiB (100%)
  • ui: 8.2 MiB (100%)
  • common: 10.99 MiB (100%)

@sonarqubecloud
Copy link

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Mar 16, 2026

Builds ready [8fb85b4]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account27526231423262314
total27526231423262314
Confirm Txconfirm_tx6027599960542060316054
total6027599960542060316054
Bridge User Actionsbridge_load_page2352222479236247
bridge_load_asset_picker1951941961196196
bridge_search_token71069672312721723
total1156110012124411981212
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14561222199111315071636
load12101012168610712721390
domContentLoaded12031005165310512671370
domInteractive3018144232584
firstPaint157681050120200368
backgroundConnect21519525812222238
firstReactRender20133552130
initialActions106124
loadScripts1003811145610310611174
setupStore1363951522
numNetworkReqs393183163982
Power User HomeuiStartup5925229115275238467299643
load13821171240616514151688
domContentLoaded13611155239516113881650
domInteractive43211863836157
firstPaint229901368197272467
backgroundConnect169831411885221319576164
firstReactRender25186362736
initialActions106123
loadScripts1124928207414911391394
setupStore18766111935
numNetworkReqs26512839862311348
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2202172222221222
srpButtonToSrpForm93929419394
confirmSrpToPwForm22212202222
pwFormToMetricsScreen15151601516
metricsToWalletReadyScreen15151601616
doneButtonToHomeScreen62658866226628662
openAccountMenuToAccountListLoaded2942291829732229532973
total391139083915339153915
Onboarding New WalletcreateWalletToSocialScreen2202182232220223
srpButtonToPwForm1131081225116122
createPwToRecoveryScreen888088
skipBackupToMetricsScreen39394004040
agreeButtonToOnboardingSuccess16151711717
doneButtonToAssetList50348851911505519
total8968958971897897
Asset DetailsassetClickToPriceChart82818418484
total82818418484
Solana Asset DetailsassetClickToPriceChart92909319393
total92909319393
Import Srp HomeloginToHomeScreen2295221023555023212355
openAccountMenuAfterLogin57555815858
homeAfterImportWithNewWallet2285222623214223212321
total47334577499016547644990
Send TransactionsopenSendPageFromHome422560145760
selectTokenToSendFormLoaded28263222832
reviewTransactionToConfirmationPage1179930138115813001381
total1253986146117013891461
SwapopenSwapPageFromHome1054317848128178
fetchAndDisplaySwapQuotes269326822703726992703
total2798274528774928192877
🌐 Dapp Page Load Benchmarks

Current Commit: 8fb85b4 | Date: 3/16/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 979ms (±45ms) 🟢 | historical mean value: 1.06s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 687ms (±56ms) 🟢 | historical mean value: 747ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 88ms (±118ms) 🟢 | historical mean value: 85ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 979ms 45ms 955ms 1.35s 1.02s 1.35s
domContentLoaded 687ms 56ms 664ms 1.20s 712ms 1.20s
firstPaint 88ms 118ms 64ms 1.26s 88ms 1.26s
firstContentfulPaint 88ms 118ms 64ms 1.26s 88ms 1.26s
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 5.16 MiB (100%)
  • ui: 8.26 MiB (100%)
  • common: 10.99 MiB (100%)

@vinistevam vinistevam marked this pull request as ready for review March 16, 2026 14:15
@vinistevam vinistevam requested a review from a team as a code owner March 16, 2026 14:15
@vinistevam vinistevam changed the title chore: remove deprecated gas fee components and related tests chore: remove deprecated gas fee components (speedup/cancel) Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size-XL team-confirmations Push issues to confirmations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant