1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts
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
..
account-import-strategies colocate tests in flat structure (#10655) 2021-03-16 16:00:08 -05:00
constants @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
controllers Reduce calls of the /featureFlag API (#10859) 2021-04-14 04:46:27 -02:30
lib Delete setupFetchDebugging.js (#10636) 2021-03-23 18:05:49 +08:00
migrations @metamask/eslint-config*@6.0.0 (#10858) 2021-04-08 14:34:55 -07:00
platforms prefer chainId when building block explorer urls (#10587) 2021-03-09 15:37:19 -06:00
background.js Delete setupFetchDebugging.js (#10636) 2021-03-23 18:05:49 +08:00
contentscript.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
disable-console.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
first-time-state.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
initSentry.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
inpage.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
metamask-controller.js Refactor Tx State Manager (#10672) 2021-03-30 09:54:05 -05:00
metamask-controller.test.js Refactor Tx State Manager (#10672) 2021-03-30 09:54:05 -05:00
phishing-detect.js fix: replace dnode background with JSON-RPC (#10627) 2021-03-18 11:23:46 -07:00
runLockdown.js security - update SES lockdown (#10663) 2021-03-26 12:27:25 +08:00
ui.js fix: replace dnode background with JSON-RPC (#10627) 2021-03-18 11:23:46 -07:00