Add notification about the merge (#15846)

feature/default_network_editable
Dan J Miller 2 years ago committed by Dan Miller
parent 5316fc682e
commit c35b4d6ec8
  1. 7
      app/_locales/en/messages.json
  2. 16
      shared/notifications/index.js
  3. 3
      test/e2e/fixtures/address-entry/state.json
  4. 3
      test/e2e/fixtures/connected-state/state.json
  5. 3
      test/e2e/fixtures/custom-rpc/state.json
  6. 3
      test/e2e/fixtures/custom-token/state.json
  7. 3
      test/e2e/fixtures/eip-1559-v2-dapp/state.json
  8. 3
      test/e2e/fixtures/eip-1559-v2/state.json
  9. 3
      test/e2e/fixtures/import-ui/state.json
  10. 3
      test/e2e/fixtures/imported-account/state.json
  11. 3
      test/e2e/fixtures/localization/state.json
  12. 3
      test/e2e/fixtures/metrics-enabled/state.json
  13. 3
      test/e2e/fixtures/navigate-transactions/state.json
  14. 3
      test/e2e/fixtures/onboarding/state.json
  15. 3
      test/e2e/fixtures/send-edit-v2/state.json
  16. 3
      test/e2e/fixtures/send-edit/state.json
  17. 3
      test/e2e/fixtures/special-settings/state.json
  18. 3
      test/e2e/fixtures/threebox-enabled/state.json
  19. 1
      ui/selectors/selectors.js

@ -2344,6 +2344,13 @@
"notifications14Title": {
"message": "3Box Deprecation"
},
"notifications15Description": {
"message": "There's no action required from you, so keep using your wallet as usual. Be aware of potential scams around the Merge.",
"description": "Description of a notification in the 'See What's New' popup. Advises users about the ethereum merge (https://ethereum.org/en/upgrades/merge/#main-content) and potential scams."
},
"notifications15Title": {
"message": "The Ethereum Merge is here!"
},
"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."

@ -72,7 +72,11 @@ export const UI_NOTIFICATIONS = {
},
14: {
id: 14,
date: null,
date: '2022-09-15',
},
15: {
id: 15,
date: '2022-09-15',
},
};
@ -210,5 +214,15 @@ export const getTranslatedUINotifications = (t, locale) => {
)
: '',
},
15: {
...UI_NOTIFICATIONS[15],
title: t('notifications15Title'),
description: t('notifications15Description'),
date: UI_NOTIFICATIONS[15].date
? new Intl.DateTimeFormat(formattedLocale).format(
new Date(UI_NOTIFICATIONS[15].date),
)
: '',
},
};
};

@ -82,6 +82,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

@ -72,6 +72,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

@ -68,6 +68,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

@ -85,6 +85,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

@ -69,6 +69,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

@ -69,6 +69,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

@ -122,6 +122,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

@ -68,6 +68,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

@ -68,6 +68,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

@ -72,6 +72,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

@ -68,6 +68,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

@ -42,6 +42,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

@ -69,6 +69,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

@ -69,6 +69,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

@ -62,6 +62,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

@ -78,6 +78,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

@ -834,6 +834,7 @@ function getAllowedAnnouncementIds(state) {
12: false,
13: true,
14: threeBoxSyncingAllowed,
15: true,
};
}

Loading…
Cancel
Save