1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/app/components/ui
Dan J Miller b73f543b23
Whats new popup (#10583)
* Add 'What's New' notification popup

* Move selectors from shared/notifications into ui/ directory

* Use keys for localized message in whats new notifications objects, to ensure notifications will be translated.

* Remove unused swaps intro popup locale messages

* Fix keys of whats new notification locales

* Remove notifications messages and descriptions from comment in shared/notifications

* Move notifcationActionFunctions to shared/notifications and make it stateless

* Get notification data from constants instead of state in whats-new-popup

* Code cleanup

* Fix build quote reference to swapsEthToken, broken during rebase

* Rename notificationFilters to notificationToExclude to clarify its purpose

* Documentation for getSortedNotificationsToShow

* Move notification action functions from shared/ to whats-new-popup.js

* Stop setting swapsWelcomeMessageHasBeenShown to state in app-state controller

* Update e2e tests for whats new popup changes

* Updating migration files

* Addressing feedback part 1

* Addressing feedback part 2

* Remove unnecessary div in whats-new-popup

* Change getNotificationsToExclude to getNotificationsToInclude for use in the getSortedNotificationsToShow selector

* Delete intro-popup directory and test files

* Lint fix

* Add notifiction state to address-entry fixture

* Use two separate functions for rendering first and subsequent notifications in the whats-new-popup

* Ensure that string literals are passed to t for whats new popup text

* Update import-ui fixtures to include notificaiton controller state

* Remove unnecessary, accidental change confirm-approve

* Remove swaps notification in favour of mobile swaps as first notifcation and TBD 3rd notification

* Update whats-new-popup to use intersection observer api to detect if notification has been seen

* Add notifications to send-edit and threebox e2e test fixtures

* Update ui/app/selectors/selectors.js

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Update ui/app/selectors/selectors.js

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Clean up locale code for whats-new-popup notifications

* Disconnect observers in whats-new-popup when their callback is first called

* Add test case for migration 58 for when the AppStateController does not exist

* Rename popover components containerRef to popoverWrapRef

* Fix messages.json

* Update notification messages and images

* Rename popoverWrapRef -> popoverRef in whats-new-popup and popover.component

* Only create one observer, and only after images have loaded, in whats-new-popup

* Set width and height on whats-new-popup image, instead of setting state on img load

* Update ui/app/components/app/whats-new-popup/whats-new-popup.js

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Code clean up in whats new popup re: notification rendering and action functions

* Code cleanup in render notification functions of whats-new-popup

* Update ui/app/components/app/whats-new-popup/whats-new-popup.js

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* lint fix

* Update and localize  notification dates

* Clean up date code in shred/notifications/index.js

Co-authored-by: ryanml <ryanlanese@gmail.com>
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2021-04-28 14:21:41 -02:30
..
account-mismatch-warning Use jest to run ui/**/*.test.js (#10885) 2021-04-15 11:01:46 -07:00
alert Use jest to run ui/**/*.test.js (#10885) 2021-04-15 11:01:46 -07:00
alert-circle-icon @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
box Adding option to set Custom Nonce to Confirm Approve Page (#10595) 2021-04-16 18:00:18 -04:00
breadcrumbs Use jest to run ui/**/*.test.js (#10885) 2021-04-15 11:01:46 -07:00
button @metamask/eslint-config*@6.0.0 (#10858) 2021-04-08 14:34:55 -07:00
button-group Use jest to run ui/**/*.test.js (#10885) 2021-04-15 11:01:46 -07:00
callout Add Custom Network UI (#10310) 2021-02-22 10:20:42 -06:00
card Use jest to run ui/**/*.test.js (#10885) 2021-04-15 11:01:46 -07:00
check-box @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
chip Add Custom Network UI (#10310) 2021-02-22 10:20:42 -06:00
circle-icon @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
color-indicator Fix color indicator size (#10421) 2021-02-11 13:08:25 -08:00
confusable Use jest to run ui/**/*.test.js (#10885) 2021-04-15 11:01:46 -07:00
currency-display Use jest to run ui/**/*.test.js (#10885) 2021-04-15 11:01:46 -07:00
currency-input Use jest to run ui/**/*.test.js (#10885) 2021-04-15 11:01:46 -07:00
definition-list @metamask/eslint-config*@6.0.0 (#10858) 2021-04-08 14:34:55 -07:00
dialog @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
dropdown Remove react-select and SimpleDropdown, use Dropdown (#10468) 2021-02-19 13:03:44 -06:00
editable-label @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
error-message Use jest to run ui/**/*.test.js (#10885) 2021-04-15 11:01:46 -07:00
export-text-container @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
hex-to-decimal Use jest to run ui/**/*.test.js (#10885) 2021-04-15 11:01:46 -07:00
icon @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
icon-border @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
icon-button @metamask/eslint-config*@6.0.0 (#10858) 2021-04-08 14:34:55 -07:00
icon-with-fallback @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
icon-with-label @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
identicon upgrade ethereumjs util (#10886) 2021-04-16 10:05:13 -05:00
info-tooltip @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
jazzicon @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
list-item Use jest to run ui/**/*.test.js (#10885) 2021-04-15 11:01:46 -07:00
loading-indicator @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
loading-screen @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
lock-icon @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
mascot @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
menu @metamask/eslint-config*@6.0.0 (#10858) 2021-04-08 14:34:55 -07:00
metafox-logo Use jest to run ui/**/*.test.js (#10885) 2021-04-15 11:01:46 -07:00
page-container Use jest to run ui/**/*.test.js (#10885) 2021-04-15 11:01:46 -07:00
popover Whats new popup (#10583) 2021-04-28 14:21:41 -02:30
pulse-loader @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
qr-code @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
readonly-input @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
search-icon @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
sender-to-recipient @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
site-icon @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
snackbar @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
spinner @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
tabs @metamask/eslint-config*@6.0.0 (#10858) 2021-04-08 14:34:55 -07:00
text-field Fix 10458 - Understand where to get support (#10895) 2021-04-22 17:31:13 -05:00
toggle-button Implement Ledger Live bridge (#10293) 2021-04-26 13:05:48 -05:00
token-balance @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
token-currency-display @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
token-input Use jest to run ui/**/*.test.js (#10885) 2021-04-15 11:01:46 -07:00
tooltip Warn users when an ENS name contains 'confusable' characters (#9187) 2021-02-27 01:56:04 -03:30
truncated-definition-list @metamask/eslint-config*@6.0.0 (#10858) 2021-04-08 14:34:55 -07:00
typography @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
unit-input Use jest to run ui/**/*.test.js (#10885) 2021-04-15 11:01:46 -07:00
url-icon @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
ui-components.scss Warn users when an ENS name contains 'confusable' characters (#9187) 2021-02-27 01:56:04 -03:30