1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts/controllers
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
..
ens colocate tests in flat structure (#10655) 2021-03-16 16:00:08 -05:00
network eth-block-tracker@5.0.1 (#10737) 2021-03-26 10:03:44 -07:00
permissions Fix _getPermittedAccounts type safety (#10819) 2021-04-05 11:32:46 -07:00
transactions Refactor Tx State Manager (#10672) 2021-03-30 09:54:05 -05:00
alert.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
app-state.js cancel unapproved confirmations on network change (#10357) 2021-02-08 17:22:30 -06:00
cached-balances.js cache balances by chain id (#10545) 2021-03-02 16:53:07 -06:00
cached-balances.test.js colocate tests in flat structure (#10655) 2021-03-16 16:00:08 -05:00
detect-tokens.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
detect-tokens.test.js colocate tests in flat structure (#10655) 2021-03-16 16:00:08 -05:00
incoming-transactions.js refactor incoming tx controller (#10639) 2021-03-19 16:54:30 -05:00
incoming-transactions.test.js refactor incoming tx controller (#10639) 2021-03-19 16:54:30 -05:00
metametrics.js add Custom Network Added event (#10484) 2021-02-23 09:58:35 -06:00
metametrics.test.js colocate tests in flat structure (#10655) 2021-03-16 16:00:08 -05:00
onboarding.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
preferences.js Allow 11 characters in symbol for RPC (#10670) 2021-03-26 10:40:17 -02:30
preferences.test.js Allow 11 characters in symbol for RPC (#10670) 2021-03-26 10:40:17 -02:30
swaps.js Reduce calls of the /featureFlag API (#10859) 2021-04-14 04:46:27 -02:30
swaps.test.js Reduce calls of the /featureFlag API (#10859) 2021-04-14 04:46:27 -02:30
threebox.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
token-rates-controller.test.js colocate tests in flat structure (#10655) 2021-03-16 16:00:08 -05:00
token-rates.js fix contract exchange rate race condition (#10414) 2021-02-12 11:41:53 -06:00