1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/app/pages/swaps
Daniel e7d7d24d83
Reduce calls of the /featureFlag API (#10859)
* Remove periodic calls to the /featureFlag API

* Always show the Swap button on the main page

* Check if the Swaps feature is enabled, show loading animation while waiting

* Reuse an existing useEffect call

* Use ‘isFeatureFlagLoaded’ in React’s state, resolve lint issues

* Add a watch mode for Jest testing

* Add unit tests for Swaps: fetchSwapsLiveness, add /ducks/swaps into Jest testing

* Remove Swaps Jest tests from Mocha’s ESLint rules

* Ignore Swaps Jest tests while running Mocha, update paths

* Increase test coverage to the current max

* Fix ESLint issues for Swaps

* Enable the Swaps feature by default and after state reset, remove loading screen before seeing Swaps

* Update Jest config, fix tests

* Update Jest coverage threshold to the current maximum

* Update ESLint rule in jest.config.js

* Disable the “Review Swap” button if the feature flag hasn’t loaded yet

* Update jest threshold
2021-04-14 04:46:27 -02:30
..
actionable-message Make action elements in actionable message component accessible (#10386) 2021-02-05 14:57:48 -03:30
awaiting-swap Use correct block explorer name and link in swaps when on custom network (#10743) 2021-03-29 10:24:27 -02:30
build-quote Reduce calls of the /featureFlag API (#10859) 2021-04-14 04:46:27 -02:30
countdown-timer @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
dropdown-input-pair @metamask/eslint-config*@6.0.0 (#10858) 2021-04-08 14:34:55 -07:00
dropdown-search-list Remove react-select and SimpleDropdown, use Dropdown (#10468) 2021-02-19 13:03:44 -06:00
exchange-rate-display @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
fee-card @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
intro-popup Swaps support for local testnet (#10658) 2021-03-18 07:50:06 -02:30
loading-swaps-quotes Eliminate artificial delay in swaps loading screen after request loading is complete (#10496) 2021-02-23 13:21:19 -03:30
main-quote-summary @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
searchable-item-list upgrade eslint deps (#10789) 2021-04-01 13:44:42 -05:00
select-quote-popover @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
slippage-buttons Increase default slippage from 2% to 3%, show Advanced Options by default (#10842) 2021-04-08 16:28:19 -02:30
swaps-footer @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
swaps-gas-customization-modal Ensure that the correct default currency symbols are used for fees on the view quote screen (#10753) 2021-03-29 17:00:06 -02:30
view-quote Jest config (#10855) 2021-04-09 10:20:32 -07:00
index.js Reduce calls of the /featureFlag API (#10859) 2021-04-14 04:46:27 -02:30
index.scss Reapply view quote screen designs (#9905) 2020-12-08 10:47:53 -06:00
swaps-util-test-constants.js Add validation for the fee property from the /trades API response (#10836) 2021-04-06 21:49:55 -02:30
swaps.util.js Change caching for Swaps APIs from 1 hour to 5 minutes (#10871) 2021-04-09 22:29:52 -02:30
swaps.util.test.js Jest config (#10855) 2021-04-09 10:20:32 -07:00