diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index ff7fd8750..e824d05ad 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -2344,6 +2344,16 @@ "notifications13Title": { "message": "Add Popular Networks" }, + "notifications14ActionText": { + "message": "Show backup settings" + }, + "notifications14Description": { + "message": "We're deprecating our 3Box data feature in early October. To backup and restore your wallet manually, use the \"Backup now\" button in Advanced Settings.", + "description": "Description of a notification in the 'See What's New' popup. Describes 3box deprecation." + }, + "notifications14Title": { + "message": "3Box Deprecation" + }, "notifications1Description": { "message": "MetaMask Mobile users can now swap tokens inside their mobile wallet. Scan the QR code to get the mobile app and start swapping.", "description": "Description of a notification in the 'See What's New' popup. Describes the swapping on mobile feature." diff --git a/shared/notifications/index.js b/shared/notifications/index.js index 389533366..4d4325e1d 100644 --- a/shared/notifications/index.js +++ b/shared/notifications/index.js @@ -70,6 +70,10 @@ export const UI_NOTIFICATIONS = { id: 13, date: '2022-09-15', }, + 14: { + id: 14, + date: null, + }, }; export const getTranslatedUINotifications = (t, locale) => { @@ -195,5 +199,16 @@ export const getTranslatedUINotifications = (t, locale) => { new Date(UI_NOTIFICATIONS[13].date), ), }, + 14: { + ...UI_NOTIFICATIONS[14], + title: t('notifications14Title'), + description: t('notifications14Description'), + actionText: t('notifications14ActionText'), + date: UI_NOTIFICATIONS[14].date + ? new Intl.DateTimeFormat(formattedLocale).format( + new Date(UI_NOTIFICATIONS[14].date), + ) + : '', + }, }; }; diff --git a/test/e2e/fixtures/address-entry/state.json b/test/e2e/fixtures/address-entry/state.json index ee8e87503..b8ffe62a8 100644 --- a/test/e2e/fixtures/address-entry/state.json +++ b/test/e2e/fixtures/address-entry/state.json @@ -79,6 +79,9 @@ }, "13": { "isShown": true + }, + "14": { + "isShown": true } } }, diff --git a/test/e2e/fixtures/connected-state/state.json b/test/e2e/fixtures/connected-state/state.json index 4d7b3b9cf..db2128510 100644 --- a/test/e2e/fixtures/connected-state/state.json +++ b/test/e2e/fixtures/connected-state/state.json @@ -69,6 +69,9 @@ }, "13": { "isShown": true + }, + "14": { + "isShown": true } } }, diff --git a/test/e2e/fixtures/custom-rpc/state.json b/test/e2e/fixtures/custom-rpc/state.json index 52c765397..ac5fac76d 100644 --- a/test/e2e/fixtures/custom-rpc/state.json +++ b/test/e2e/fixtures/custom-rpc/state.json @@ -65,6 +65,9 @@ }, "13": { "isShown": true + }, + "14": { + "isShown": true } } }, diff --git a/test/e2e/fixtures/custom-token/state.json b/test/e2e/fixtures/custom-token/state.json index 2ae8e876b..6705b8016 100644 --- a/test/e2e/fixtures/custom-token/state.json +++ b/test/e2e/fixtures/custom-token/state.json @@ -83,6 +83,9 @@ }, "13": { "isShown": true + }, + "14": { + "isShown": true } } }, diff --git a/test/e2e/fixtures/eip-1559-v2-dapp/state.json b/test/e2e/fixtures/eip-1559-v2-dapp/state.json index d6e8e116e..7387fbf9b 100644 --- a/test/e2e/fixtures/eip-1559-v2-dapp/state.json +++ b/test/e2e/fixtures/eip-1559-v2-dapp/state.json @@ -66,6 +66,9 @@ }, "13": { "isShown": true + }, + "14": { + "isShown": true } } }, diff --git a/test/e2e/fixtures/eip-1559-v2/state.json b/test/e2e/fixtures/eip-1559-v2/state.json index 1c77ce95d..cefe48954 100644 --- a/test/e2e/fixtures/eip-1559-v2/state.json +++ b/test/e2e/fixtures/eip-1559-v2/state.json @@ -66,6 +66,9 @@ }, "13": { "isShown": true + }, + "14": { + "isShown": true } } }, diff --git a/test/e2e/fixtures/import-ui/state.json b/test/e2e/fixtures/import-ui/state.json index eecdb45ed..6c9b44b14 100644 --- a/test/e2e/fixtures/import-ui/state.json +++ b/test/e2e/fixtures/import-ui/state.json @@ -119,6 +119,9 @@ }, "13": { "isShown": true + }, + "14": { + "isShown": true } } }, diff --git a/test/e2e/fixtures/imported-account/state.json b/test/e2e/fixtures/imported-account/state.json index 5dfea2b0f..98332f9fe 100644 --- a/test/e2e/fixtures/imported-account/state.json +++ b/test/e2e/fixtures/imported-account/state.json @@ -65,6 +65,9 @@ }, "13": { "isShown": true + }, + "14": { + "isShown": true } } }, diff --git a/test/e2e/fixtures/localization/state.json b/test/e2e/fixtures/localization/state.json index d53df2904..5a12dd1cd 100644 --- a/test/e2e/fixtures/localization/state.json +++ b/test/e2e/fixtures/localization/state.json @@ -65,6 +65,9 @@ }, "13": { "isShown": true + }, + "14": { + "isShown": true } } }, diff --git a/test/e2e/fixtures/metrics-enabled/state.json b/test/e2e/fixtures/metrics-enabled/state.json index 5b3924103..1e6ed79a1 100644 --- a/test/e2e/fixtures/metrics-enabled/state.json +++ b/test/e2e/fixtures/metrics-enabled/state.json @@ -69,6 +69,9 @@ }, "13": { "isShown": true + }, + "14": { + "isShown": true } } }, diff --git a/test/e2e/fixtures/navigate-transactions/state.json b/test/e2e/fixtures/navigate-transactions/state.json index 86f4563f1..96294a2c6 100644 --- a/test/e2e/fixtures/navigate-transactions/state.json +++ b/test/e2e/fixtures/navigate-transactions/state.json @@ -65,6 +65,9 @@ }, "13": { "isShown": true + }, + "14": { + "isShown": true } } }, diff --git a/test/e2e/fixtures/onboarding/state.json b/test/e2e/fixtures/onboarding/state.json index a616fc720..32d270bd3 100644 --- a/test/e2e/fixtures/onboarding/state.json +++ b/test/e2e/fixtures/onboarding/state.json @@ -39,6 +39,9 @@ }, "13": { "isShown": true + }, + "14": { + "isShown": true } } }, diff --git a/test/e2e/fixtures/send-edit-v2/state.json b/test/e2e/fixtures/send-edit-v2/state.json index cc30d04aa..a83611d6e 100644 --- a/test/e2e/fixtures/send-edit-v2/state.json +++ b/test/e2e/fixtures/send-edit-v2/state.json @@ -66,6 +66,9 @@ }, "13": { "isShown": true + }, + "14": { + "isShown": true } } }, diff --git a/test/e2e/fixtures/send-edit/state.json b/test/e2e/fixtures/send-edit/state.json index b9168e40d..1003d595b 100644 --- a/test/e2e/fixtures/send-edit/state.json +++ b/test/e2e/fixtures/send-edit/state.json @@ -66,6 +66,9 @@ }, "13": { "isShown": true + }, + "14": { + "isShown": true } } }, diff --git a/test/e2e/fixtures/special-settings/state.json b/test/e2e/fixtures/special-settings/state.json index 4a1102d2b..2547aa7dd 100644 --- a/test/e2e/fixtures/special-settings/state.json +++ b/test/e2e/fixtures/special-settings/state.json @@ -59,6 +59,9 @@ }, "13": { "isShown": true + }, + "14": { + "isShown": true } } }, diff --git a/test/e2e/fixtures/threebox-enabled/state.json b/test/e2e/fixtures/threebox-enabled/state.json index 37e3490bb..46c0d69d6 100644 --- a/test/e2e/fixtures/threebox-enabled/state.json +++ b/test/e2e/fixtures/threebox-enabled/state.json @@ -76,6 +76,9 @@ }, "13": { "isShown": true + }, + "14": { + "isShown": true } } }, diff --git a/ui/components/app/whats-new-popup/whats-new-popup.js b/ui/components/app/whats-new-popup/whats-new-popup.js index fe1eb1d4b..a0b950eab 100644 --- a/ui/components/app/whats-new-popup/whats-new-popup.js +++ b/ui/components/app/whats-new-popup/whats-new-popup.js @@ -58,6 +58,10 @@ function getActionFunctionById(id, history) { updateViewedNotifications({ 13: true }); history.push(`${EXPERIMENTAL_ROUTE}#show-custom-network`); }, + 14: () => { + updateViewedNotifications({ 14: true }); + history.push(`${ADVANCED_ROUTE}#backup-userdata`); + }, }; return actionFunctions[id]; diff --git a/ui/selectors/selectors.js b/ui/selectors/selectors.js index 59e4dd70d..c04475956 100644 --- a/ui/selectors/selectors.js +++ b/ui/selectors/selectors.js @@ -817,6 +817,7 @@ function getAllowedAnnouncementIds(state) { const supportsWebHid = window.navigator.hid !== undefined; const currentlyUsingLedgerLive = getLedgerTransportType(state) === LEDGER_TRANSPORT_TYPES.LIVE; + const { threeBoxSyncingAllowed } = state.metamask; return { 1: false, @@ -832,6 +833,7 @@ function getAllowedAnnouncementIds(state) { 11: true, 12: false, 13: true, + 14: threeBoxSyncingAllowed, }; }