1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/development
Mark Stacey 53feb20803
Alert user upon switching to unconnected account (#8312)
An alert is now shown when the user switches from an account that is
connected to the active tab to an account that is not connected. The
alert prompts the user to dismiss the alert or connect the account
they're switching to.

The "loading" state is handled by disabling the buttons, and the error
state is handled by displaying a generic error message and disabling
the connect button.

The new reducer for this alert has been created with `createSlice` from
the Redux Toolkit. This utility is recommended by the Redux team, and
represents a new style of writing reducers that I hope we will use more
in the future (or at least something similar). `createSlice` constructs
a reducer, actions, and action creators automatically. The reducer is
constructed using their `createReducer` helper, which uses Immer to
allow directly mutating the state in the reducer but exposing these
changes as immutable.
2020-04-29 14:10:51 -03:00
..
build Use @fortawesome/fontawesome-free npm package (#8256) 2020-03-30 20:05:51 -03:00
states Alert user upon switching to unconnected account (#8312) 2020-04-29 14:10:51 -03:00
announcer.js Build system refactor (#8140) 2020-03-09 08:55:02 +08:00
auto-changelog.sh Add shellcheck lint (#7392) 2019-11-19 10:46:10 -05:00
backGroundConnectionModifiers.js Check for unused function arguments (#6583) 2019-05-08 15:51:33 -04:00
generate-migration.sh Add tests around migration files (#7016) 2019-12-12 20:44:29 -03:30
genStates.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
gource-viz.sh dev - move gource instructions from docs to development script 2019-09-10 22:05:16 +08:00
index.html development - fix ui dev 2017-09-29 11:50:24 -07:00
metamaskbot-build-announce.js Fix page benchmark result display (#8438) 2020-04-28 09:50:21 -03:00
mock-3box.js Prevent accidental use of globals (#8340) 2020-04-15 14:23:27 -03:00
mock-dev.js Remove unused states (#8345) 2020-04-16 12:27:25 -03:00
README.md add READMEs to folders, re #3427 2018-03-14 15:33:22 +02:00
require-react-devtools.js Add React and Redux DevTools (#6793) 2019-07-11 12:27:06 -02:30
run-ganache Replace deprecated shell-parallel with concurrently (#6807) 2019-07-09 14:09:31 -02:30
selector.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
sentry-publish.js Improve Sentry publish script (#7417) 2019-12-05 17:59:48 -04:00
sentry-upload-artifacts.sh Improve Sentry publish script (#7417) 2019-12-05 17:59:48 -04:00
shellcheck.sh Add lint:shellcheck:package (#7568) 2019-12-11 15:52:08 -05:00
show-deps-install-scripts.js Enable arrow-parens ESLint rule 2020-02-15 17:04:21 -03:30
source-map-explorer.sh ci - create source-map-explorer build-artifacts (#7141) 2019-09-11 23:35:30 +08:00
sourcemap-validator.js Enable arrow-parens ESLint rule 2020-02-15 17:04:21 -03:30
static-server.js Add support for one-click onboarding (#7017) 2019-11-22 13:03:51 -04:00
test.html tests - integration - get flat and mascara tests closer to compatible 2017-09-13 20:25:27 -07:00
verify-locale-strings.js Enable arrow-parens ESLint rule 2020-02-15 17:04:21 -03:30

Development

Several files which are needed for developing on(!) MetaMask.

Usually each files contains information about its scope / usage.