1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/pages/swaps
Daniel c3b79bb358
Show custom tokens in Swaps, add a custom token in Swaps (#11200)
* Show custom tokens in Swaps

* Add messages for adding a custom token in Swaps

* Add the first version of importing custom tokens in swaps

* Fix lint rules

* Create a new component: ImportToken

* Remove a pointer cursor from regular heading

* Fix a CSS issue for tokens with long names

* Update a comment

* Don’t return a custom token if it doesn’t have symbol or decimals

* Only search by contract address if nothing was found

* Track “Token Imported” event

* Fix unit tests

* Import tracking for “Token Imported”, increase token icon font size

* Disable token import for Source Token

* Update logic and content for notifications, update tests

* Do not hide a dropdown placeholder on click, so a user can click on a link

* Update a key name

* Update styling for the “danger” type notification in Swaps

* Show either a warning or danger notification based on token verification occurences

* Remove testnets from SWAPS_CHAINID_DEFAULT_BLOCK_EXPLORER_URL_MAP

* Use the “shouldSearchForImports” prop

* Create a new function for handling token import: “onOpenImportTokenModalClick”

* Filter token duplicities before iterating over tokens

* Use “address” instead of “symbol” for checking uniqueness

* Trigger Build

* Use a new API (/token) to get token data for importing in Swaps

* Temporarily decrese Jest threshold for functions
2021-06-03 13:38:37 -02:30
..
__snapshots__ remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
actionable-message Show custom tokens in Swaps, add a custom token in Swaps (#11200) 2021-06-03 13:38:37 -02:30
awaiting-signatures Swaps: Add more anonymized tracking for HW wallet and HW wallet type (#11087) 2021-05-13 14:26:08 -05:00
awaiting-swap Show custom tokens in Swaps, add a custom token in Swaps (#11200) 2021-06-03 13:38:37 -02:30
build-quote Show custom tokens in Swaps, add a custom token in Swaps (#11200) 2021-06-03 13:38:37 -02:30
countdown-timer remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
dropdown-input-pair Show custom tokens in Swaps, add a custom token in Swaps (#11200) 2021-06-03 13:38:37 -02:30
dropdown-search-list Show custom tokens in Swaps, add a custom token in Swaps (#11200) 2021-06-03 13:38:37 -02:30
exchange-rate-display remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
fee-card remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
import-token Show custom tokens in Swaps, add a custom token in Swaps (#11200) 2021-06-03 13:38:37 -02:30
loading-swaps-quotes Swaps: Add more anonymized tracking for HW wallet and HW wallet type (#11087) 2021-05-13 14:26:08 -05:00
main-quote-summary remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
searchable-item-list Show custom tokens in Swaps, add a custom token in Swaps (#11200) 2021-06-03 13:38:37 -02:30
select-quote-popover Add Approval Confirmation Screen component to Storybook (#10998) 2021-05-25 08:20:09 +08:00
slippage-buttons Show custom tokens in Swaps, add a custom token in Swaps (#11200) 2021-06-03 13:38:37 -02:30
swaps-footer remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
swaps-gas-customization-modal remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
view-quote Fixing ever-present scrollbar issue on Swaps view (#11182) 2021-05-27 10:27:18 -07:00
index.js Swaps: Add specific error content if Contract data are not enabled on Ledger (#11088) 2021-05-13 14:49:00 -05:00
index.scss Show custom tokens in Swaps, add a custom token in Swaps (#11200) 2021-06-03 13:38:37 -02:30
index.test.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
swaps-util-test-constants.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
swaps.util.js Show custom tokens in Swaps, add a custom token in Swaps (#11200) 2021-06-03 13:38:37 -02:30
swaps.util.test.js Add backwards compatibility for ETH <-> WETH contract address validation (#10962) 2021-04-30 13:48:56 -05:00