1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Adding notification for updated seed phrase wording (#11131)

* Adding notification for updated seed phrase wording

* Updating e2e notification state

* Always displaying image for swaps notification
This commit is contained in:
ryanml 2021-05-18 15:00:34 -07:00 committed by Dan Miller
parent ec01218a73
commit 3d13b85213
13 changed files with 42 additions and 18 deletions

View File

@ -1288,6 +1288,10 @@
"message": "Swap on Binance Smart Chain",
"description": "Title for a notification in the 'See What's New' popup. Encourages users to do swaps on Binance Smart Chain."
},
"notifications5Description": {
"message": "Your \"Seed Phrase\" is now called your \"Secret Recovery Phrase.\"",
"description": "Description of a notification in the 'See What's New' popup. Describes the seed phrase wording update."
},
"notifications6DescriptionOne": {
"message": "As of Chrome version 91, the API that enabled our Ledger support (U2F) no longer supports hardware wallets. MetaMask has implemented a new Ledger Live support that allows you to continue to connect to your Ledger device via the Ledger Live desktop app.",
"description": "Description of a notification in the 'See What's New' popup. Describes the Ledger support update."

View File

@ -22,6 +22,10 @@ export const UI_NOTIFICATIONS = {
width: '100%',
},
},
5: {
id: 5,
date: '2021-05-18',
},
6: {
id: 6,
date: '2021-05-26',
@ -57,6 +61,15 @@ export const getTranslatedUINoficiations = (t, locale) => {
new Date(UI_NOTIFICATIONS[4].date),
),
},
5: {
...UI_NOTIFICATIONS[5],
title: t('walletSeed'),
description: t('notifications5Description'),
actionText: t('notifications3ActionText'),
date: new Intl.DateTimeFormat(formattedLocale).format(
new Date(UI_NOTIFICATIONS[5].date),
),
},
6: {
...UI_NOTIFICATIONS[6],
title: t('notifications6Title'),

View File

@ -55,10 +55,10 @@
"1": {
"isShown": true
},
"2": {
"3": {
"isShown": true
},
"3": {
"5": {
"isShown": true
},
"6": {

View File

@ -45,10 +45,10 @@
"1": {
"isShown": true
},
"2": {
"3": {
"isShown": true
},
"3": {
"5": {
"isShown": true
},
"6": {

View File

@ -41,10 +41,10 @@
"1": {
"isShown": true
},
"2": {
"3": {
"isShown": true
},
"3": {
"5": {
"isShown": true
}
}

View File

@ -96,10 +96,10 @@
"1": {
"isShown": true
},
"2": {
"3": {
"isShown": true
},
"3": {
"5": {
"isShown": true
},
"6": {

View File

@ -41,10 +41,10 @@
"1": {
"isShown": true
},
"2": {
"3": {
"isShown": true
},
"3": {
"5": {
"isShown": true
},
"6": {

View File

@ -41,10 +41,10 @@
"1": {
"isShown": true
},
"2": {
"3": {
"isShown": true
},
"3": {
"5": {
"isShown": true
},
"6": {

View File

@ -45,10 +45,10 @@
"1": {
"isShown": true
},
"2": {
"3": {
"isShown": true
},
"3": {
"5": {
"isShown": true
},
"6": {

View File

@ -42,10 +42,10 @@
"1": {
"isShown": true
},
"2": {
"3": {
"isShown": true
},
"3": {
"5": {
"isShown": true
},
"6": {

View File

@ -52,10 +52,10 @@
"1": {
"isShown": true
},
"2": {
"3": {
"isShown": true
},
"3": {
"5": {
"isShown": true
},
"6": {

View File

@ -32,6 +32,12 @@ function getActionFunctionById(id, history) {
updateViewedNotifications({ 4: true });
history.push(BUILD_QUOTE_ROUTE);
},
5: () => {
updateViewedNotifications({ 5: true });
global.platform.openTab({
url: 'https://metamask.zendesk.com/hc/en-us/articles/360060826432',
});
},
};
return actionFunctions[id];

View File

@ -528,6 +528,7 @@ function getAllowedNotificationIds(state) {
2: true,
3: true,
4: getCurrentChainId(state) === BSC_CHAIN_ID,
5: true,
6: true,
};
}