From c9acdd33e1d2170878071e9d85d3bcb766c812ce Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Mon, 6 May 2024 21:03:04 -0230 Subject: [PATCH 1/5] v11.15.3 --- CHANGELOG.md | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 492a1f7a6e1f..bcfc43aa277b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [11.15.3] + ## [11.15.2] ### Fixed - Ensure smart transaction modal is shown for users upgrading from previous versions ([#24377](https://github.com/MetaMask/metamask-extension/pull/24377)) @@ -4677,7 +4679,8 @@ Update styles and spacing on the critical error page ([#20350](https://github.c - Added the ability to restore accounts from seed words. -[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v11.15.2...HEAD +[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v11.15.3...HEAD +[11.15.3]: https://github.com/MetaMask/metamask-extension/compare/v11.15.2...v11.15.3 [11.15.2]: https://github.com/MetaMask/metamask-extension/compare/v11.15.1...v11.15.2 [11.15.1]: https://github.com/MetaMask/metamask-extension/compare/v11.15.0...v11.15.1 [11.15.0]: https://github.com/MetaMask/metamask-extension/compare/v11.14.5...v11.15.0 diff --git a/package.json b/package.json index 8a0f8df64162..e33cc9d5a061 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "metamask-crx", - "version": "11.15.2", + "version": "11.15.3", "private": true, "repository": { "type": "git", From 717756b796ff5901394b5cc52532f5aeb628b352 Mon Sep 17 00:00:00 2001 From: Derek Brans Date: Tue, 7 May 2024 04:56:22 -0400 Subject: [PATCH 2/5] cherrypick: fix: Move "SettingsUpdated" event into v11.15.3 (#24396) Cherry-pick f77eac57f9da62618c69fcf6f9cb86cbcbd0ada2 (#24394) into v11.15.3 Co-authored-by: Daniel <80175477+dan437@users.noreply.github.com> --- ui/pages/settings/advanced-tab/advanced-tab.component.js | 7 ------- ui/store/actions.ts | 9 +++++++++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/ui/pages/settings/advanced-tab/advanced-tab.component.js b/ui/pages/settings/advanced-tab/advanced-tab.component.js index 4fb87f52bae9..33e0443d4570 100644 --- a/ui/pages/settings/advanced-tab/advanced-tab.component.js +++ b/ui/pages/settings/advanced-tab/advanced-tab.component.js @@ -287,13 +287,6 @@ export default class AdvancedTab extends PureComponent { value={smartTransactionsOptInStatus} onToggle={(oldValue) => { const newValue = !oldValue; - this.context.trackEvent({ - category: MetaMetricsEventCategory.Settings, - event: MetaMetricsEventName.SettingsUpdated, - properties: { - stx_opt_in: newValue, - }, - }); setSmartTransactionsOptInStatus(newValue); }} offLabel={t('off')} diff --git a/ui/store/actions.ts b/ui/store/actions.ts index 9761f5343c7b..cae3188e3c1d 100644 --- a/ui/store/actions.ts +++ b/ui/store/actions.ts @@ -91,6 +91,8 @@ import { MetaMetricsPageOptions, MetaMetricsPagePayload, MetaMetricsReferrerObject, + MetaMetricsEventCategory, + MetaMetricsEventName, } from '../../shared/constants/metametrics'; import { parseSmartTransactionsError } from '../pages/swaps/swaps.util'; import { isEqualCaseInsensitive } from '../../shared/modules/string-utils'; @@ -3082,6 +3084,13 @@ export function setShowExtensionInFullSizeView(value: boolean) { } export function setSmartTransactionsOptInStatus(value: boolean) { + trackMetaMetricsEvent({ + category: MetaMetricsEventCategory.Settings, + event: MetaMetricsEventName.SettingsUpdated, + properties: { + stx_opt_in: value, + }, + }); return setPreference('smartTransactionsOptInStatus', value); } From 030bc87744d86c07eeb5c72e8c4eb08a22800cbc Mon Sep 17 00:00:00 2001 From: Derek Brans Date: Tue, 7 May 2024 04:56:39 -0400 Subject: [PATCH 3/5] Cherry-pick: feat: Add animation on the Smart Transaction status page (#24389) into v11.15.3 (#24397) Cherry-pick f0ac9c07b07e711f52889515385e7356298d3027, (#24389) into v11.15.3 Co-authored-by: Daniel <80175477+dan437@users.noreply.github.com> --- ...mart-transactions-status-page.test.js.snap | 56 ++++++++++++++++--- .../smart-transaction-status-page/index.scss | 29 ++++++++++ .../smart-transaction-status-page.tsx | 9 +++ 3 files changed, 87 insertions(+), 7 deletions(-) diff --git a/ui/pages/smart-transactions/smart-transaction-status-page/__snapshots__/smart-transactions-status-page.test.js.snap b/ui/pages/smart-transactions/smart-transaction-status-page/__snapshots__/smart-transactions-status-page.test.js.snap index bc3eeec5262f..e4cb60c2585b 100644 --- a/ui/pages/smart-transactions/smart-transaction-status-page/__snapshots__/smart-transactions-status-page.test.js.snap +++ b/ui/pages/smart-transactions/smart-transaction-status-page/__snapshots__/smart-transactions-status-page.test.js.snap @@ -10,8 +10,11 @@ exports[`SmartTransactionStatusPage renders the "Sorry for the wait" pending sta style="flex-grow: 1;" >
+
+