Skip to content

Commit

Permalink
Implement asset page (#8696)
Browse files Browse the repository at this point in the history
A new page has been created for viewing assets. This replaces the old
`selectedToken` state, which previously would augment the home page
to show token-specific information.

The new asset page shows the standard token overview as seen previously
on the home page, plus a history filtered to show just transactions
relevant to that token.

The actions that were available in the old token list menu have been
moved to a "Token Options" menu that mirrors the "Account Options"
menu.

The `selectedTokenAddress` state has been removed, as it is no longer
being used for anything.

`getMetaMetricState` has been renamed to `getBackgroundMetaMetricState`
because its sole purpose is extracting data from the background state
to send metrics from the background. It's not really a selector, but
it was convenient for it to use the same selectors the UI uses to
extract background data, so I left it there for now.

A new Redux store has been added to track state related to browser history.
The most recent "overview" page (i.e. the home page or the asset page) is
currently being tracked, so that actions taken from the asset page can return
the user back to the asset page when the action has finished.
  • Loading branch information
Gudahtt authored Jun 1, 2020
1 parent ec2e5c8 commit df85ab6
Show file tree
Hide file tree
Showing 132 changed files with 583 additions and 555 deletions.
3 changes: 0 additions & 3 deletions app/_locales/am/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -519,9 +519,6 @@
"hide": {
"message": "ደብቅ"
},
"hideToken": {
"message": "ተለዋጭ ስም ደብቅ"
},
"hideTokenPrompt": {
"message": "ተለዋጭ ስም ይደበቅ?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/ar/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,6 @@
"hide": {
"message": "إخفاء"
},
"hideToken": {
"message": "إخفاء الرمز"
},
"hideTokenPrompt": {
"message": "أتريد إخفاء العملة الرمزية؟"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/bg/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,6 @@
"hide": {
"message": "Скриване"
},
"hideToken": {
"message": "Скриване на жетон"
},
"hideTokenPrompt": {
"message": "Скриване на жетон?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/bn/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -519,9 +519,6 @@
"hide": {
"message": "লুকান"
},
"hideToken": {
"message": "টোকেন লুকান"
},
"hideTokenPrompt": {
"message": "টোকেন লুকাবেন?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/ca/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,6 @@
"hide": {
"message": "Amaga"
},
"hideToken": {
"message": "Amagar Fitxa"
},
"hideTokenPrompt": {
"message": "Amagar fitxa?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/cs/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,6 @@
"hide": {
"message": "Skrýt"
},
"hideToken": {
"message": "Skrýt token"
},
"hideTokenPrompt": {
"message": "Skrýt token?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/da/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,6 @@
"hide": {
"message": "Skjul"
},
"hideToken": {
"message": "Skjul token"
},
"hideTokenPrompt": {
"message": "Skjul Token?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,6 @@
"hide": {
"message": "Ausblenden"
},
"hideToken": {
"message": "Token ausblenden"
},
"hideTokenPrompt": {
"message": "Token ausblenden?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/el/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,9 +516,6 @@
"hide": {
"message": "Απόκρυψη"
},
"hideToken": {
"message": "Απόκρυψη Token"
},
"hideTokenPrompt": {
"message": "Απόκρυψη του Token;"
},
Expand Down
8 changes: 6 additions & 2 deletions app/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -759,8 +759,9 @@
"hide": {
"message": "Hide"
},
"hideToken": {
"message": "Hide Token"
"hideTokenSymbol": {
"message": "Hide $1",
"description": "$1 is the symbol for a token (e.g. 'DAI')"
},
"hideTokenPrompt": {
"message": "Hide Token?"
Expand Down Expand Up @@ -1544,6 +1545,9 @@
"tokenContractAddress": {
"message": "Token Contract Address"
},
"tokenOptions": {
"message": "Token options"
},
"tokenSymbol": {
"message": "Token Symbol"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/es/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,6 @@
"hide": {
"message": "Ocultar"
},
"hideToken": {
"message": "Ocultar token"
},
"hideTokenPrompt": {
"message": "¿Ocultar token?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/es_419/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,6 @@
"hide": {
"message": "Ocultar"
},
"hideToken": {
"message": "Ocultar token"
},
"hideTokenPrompt": {
"message": "¿Ocultar token?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/et/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,6 @@
"hide": {
"message": "Peida"
},
"hideToken": {
"message": "Peida luba"
},
"hideTokenPrompt": {
"message": "Peida luba?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/fa/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -519,9 +519,6 @@
"hide": {
"message": "عدم نمایش"
},
"hideToken": {
"message": "مخفی سازی رمزیاب"
},
"hideTokenPrompt": {
"message": "آیا رمزیاب مخفی شود؟"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/fi/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,9 +516,6 @@
"hide": {
"message": "Piilota"
},
"hideToken": {
"message": "Piilota tietue"
},
"hideTokenPrompt": {
"message": "Piilotetaanko tietue?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/fil/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,6 @@
"hide": {
"message": "Itago"
},
"hideToken": {
"message": "Itago ang Token"
},
"hideTokenPrompt": {
"message": "Itago ang Token?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,6 @@
"hide": {
"message": "Cacher"
},
"hideToken": {
"message": "Masquer le jeton"
},
"hideTokenPrompt": {
"message": "Masquer le jeton?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/he/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -519,9 +519,6 @@
"hide": {
"message": "הסתר"
},
"hideToken": {
"message": "הסתר טוקן"
},
"hideTokenPrompt": {
"message": "להסתיר טוקן?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/hi/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -519,9 +519,6 @@
"hide": {
"message": "छुपाएं"
},
"hideToken": {
"message": "टोकन छिपाएँ?"
},
"hideTokenPrompt": {
"message": "टोकन छिपाएँ?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/hn/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,6 @@
"hide": {
"message": "छुपाएं"
},
"hideToken": {
"message": "टोकन छिपाएं"
},
"hideTokenPrompt": {
"message": "टोकन छिपाएंn?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/hr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,6 @@
"hide": {
"message": "Sakrij preglednik"
},
"hideToken": {
"message": "Sakrij token"
},
"hideTokenPrompt": {
"message": "Sakriti token?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/ht/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,6 @@
"hide": {
"message": "Kache"
},
"hideToken": {
"message": "Kache Token"
},
"hideTokenPrompt": {
"message": "Kache Token?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/hu/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,6 @@
"hide": {
"message": "Elrejtés"
},
"hideToken": {
"message": "Token elrejtése"
},
"hideTokenPrompt": {
"message": "Elrejted a tokent?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/id/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,6 @@
"hide": {
"message": "Sembunyikan"
},
"hideToken": {
"message": "Sembunyikan Token"
},
"hideTokenPrompt": {
"message": "Sembunyikan Token?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/it/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -633,9 +633,6 @@
"hide": {
"message": "Nascondi"
},
"hideToken": {
"message": "Nascondi Token"
},
"hideTokenPrompt": {
"message": "Nascondi Token?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/ja/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,6 @@
"hide": {
"message": "隠す"
},
"hideToken": {
"message": "トークンを隠す"
},
"hideTokenPrompt": {
"message": "トークンを隠しますか?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/kn/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -519,9 +519,6 @@
"hide": {
"message": "ಮರೆಮಾಡಿ"
},
"hideToken": {
"message": "ಟೋಕನ್ ಮರೆಮಾಡಿ"
},
"hideTokenPrompt": {
"message": "ಟೋಕನ್ ಮರೆಮಾಡುವುದೇ?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/ko/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -513,9 +513,6 @@
"hide": {
"message": "숨기기"
},
"hideToken": {
"message": "토큰 숨기기"
},
"hideTokenPrompt": {
"message": "토큰 숨기기?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/lt/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -519,9 +519,6 @@
"hide": {
"message": "Slėpti"
},
"hideToken": {
"message": "Slėpti prieigos raktą"
},
"hideTokenPrompt": {
"message": "Slėpti prieigos raktą?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/lv/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,6 @@
"hide": {
"message": "Slēpt"
},
"hideToken": {
"message": "Paslēpt marķieri"
},
"hideTokenPrompt": {
"message": "Paslēpt žetonu?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/ms/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,6 @@
"hide": {
"message": "Sembunyikan"
},
"hideToken": {
"message": "Sembunyikan Token"
},
"hideTokenPrompt": {
"message": "Sembunyikan Token?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/nl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,6 @@
"hide": {
"message": "Verbergen"
},
"hideToken": {
"message": "Token verbergen"
},
"hideTokenPrompt": {
"message": "Token verbergen?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/no/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,6 @@
"hide": {
"message": "Skjul"
},
"hideToken": {
"message": "Skjul tokenet"
},
"hideTokenPrompt": {
"message": "Skjul sjetonger?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/ph/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@
"hide": {
"message": "Itago"
},
"hideToken": {
"message": "Itago ang Token"
},
"hideTokenPrompt": {
"message": "Itago ang Token?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/pl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,9 +516,6 @@
"hide": {
"message": "Schowaj"
},
"hideToken": {
"message": "Schowaj token"
},
"hideTokenPrompt": {
"message": "Schować token?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/pt/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,6 @@
"hide": {
"message": "Ocultar"
},
"hideToken": {
"message": "Ocultar Token"
},
"hideTokenPrompt": {
"message": "Ocultar Token?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/pt_BR/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -513,9 +513,6 @@
"hide": {
"message": "Ocultar"
},
"hideToken": {
"message": "Ocultar Token"
},
"hideTokenPrompt": {
"message": "Esconder token?"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/ro/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,6 @@
"hide": {
"message": "Ascunde"
},
"hideToken": {
"message": "Ascunde tokenul"
},
"hideTokenPrompt": {
"message": "Ascunde simbol?"
},
Expand Down
Loading

0 comments on commit df85ab6

Please sign in to comment.