Brad Decker
469ccd20b3
Fixup prop types and use constants ( #10306 )
...
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
4 years ago
Brad Decker
3806e0a2a6
Refactor NetworkDisplay, ConnectedStatusIndicator, etc to use ColorIndicator ( #10214 )
4 years ago
Erik Marks
4fef2b7443
Add MAX_SAFE_CHAIN_ID and refactor chain ID validation ( #10224 )
...
* Add MAX_SAFE_CHAIN_ID constant
* Add isSafeChainId to shared utils module
* Move isPrefixedFormattedHexString to shared utils module
* Validate custom RPC chain IDs in network controller
* Update some network controller error messages.
* Add isSafeChainId validation to UI
4 years ago
Erik Marks
7077ee68dc
Add NETWORK_TYPE_RPC constant ( #10203 )
...
* Refactor network display props
* Add NETWORK_TYPE_RPC constant
* Consolidate network constants
4 years ago
Erik Marks
90289ec22a
Further improve organization of constants ( #10200 )
4 years ago
ivigamberdiev
869124c4c9
Fix network settings Kovan block explorer link ( #10117 )
4 years ago
Erik Marks
876ca136b3
Throw instead of log error
4 years ago
Erik Marks
a714da8069
Ensure submission state is reset on onSubmit error
4 years ago
Erik Marks
53bf9cb766
Disable save button while submitting
4 years ago
Erik Marks
4db9c8b36f
Fix chainId display in network form on save
4 years ago
Erik Marks
efd36adaac
Never disable save button if props chain ID is invalid ( #9808 )
4 years ago
David Walsh
8a3dabb230
Use optional chaining for functions
4 years ago
Erik Marks
ad838df3e6
Display decimal chain ID in network form ( #9780 )
...
* Display network form chain ID in decimal
* Hide chainId tooltip in view mode
* Display chain ID error message in entered format
* Update locale messages
* Rename on change chain ID validator
4 years ago
Brad Decker
2ebf8756a4
[RFC] add prettier to eslint ( #8595 )
4 years ago
Brad Decker
14161e37da
normalize page font styles ( #9697 )
4 years ago
Erik Marks
2393749809
Simplify routing to fix breakage in popup
4 years ago
Erik Marks
58d19745c9
Add explanatory comment
4 years ago
Erik Marks
47d94489b7
Finish network settings redesign
4 years ago
Erik Marks
c3df1aab8d
Style touchups
4 years ago
Erik Marks
64883aecb0
Improve fullscreen network form appearance
4 years ago
Erik Marks
4a219d9a10
Fix network name overflow
4 years ago
Erik Marks
4ad5e027be
Fix network list arrow styling
4 years ago
Erik Marks
1373a90e27
Hide network form buttons when form is viewOnly
4 years ago
Erik Marks
8a1820c537
Add networks settings routes
4 years ago
Erik Marks
27118fdd98
Fix popup network form appearance; code style
4 years ago
Erik Marks
5530914776
Standardize appearance of network settings
4 years ago
Erik Marks
5b8c07817a
Remove localhost provider type ( #9551 )
...
* Delete localhost provider type
* Use ganache-cli default chain ID for tests
* Delete unused test firstTimeState variable
* Migrate default ganache-cli network to frequentRpcListDetail
* Add default test provider state
* Add test functionality to createJsonRpcClient
* Lint locales
* Update test middleware creation
* fixup! Update test middleware creation
4 years ago
Erik Marks
bf1bb6ca7e
Check specified chain ID against endpoint return value ( #9491 )
...
Adds additional validation to chainId values in the network form, by comparing the specified value against the value returned by the endpoint.
4 years ago
Erik Marks
088d4c34f1
Merge pull request from GHSA-c2xw-px2x-pr65
...
* Remove network config store
* Remove inline networks variable in network controller
* Re-key network controller 'rpcTarget' to 'rpcUrl'
* Require chainId in lookupNetwork, implement eth_chainId
* Require chain ID in network form
* Add alert, migrations, and tests
* Add chainId validation to addToFrequentRpcList
* Update public config state selector to match new network controller
state
* Use network enums in networks-tab.constants
* Ensure chainId in provider config is current
* Update tests
4 years ago
Whymarrh Whitby
e2dedaacdb
Use Infura v3 API ( #9368 )
...
* Use eth-json-rpc-infura@5.0.0
* Use Infura v3 API
* Add example .metamaskrc file
4 years ago
Whymarrh Whitby
b6ccd22d6c
Update ESLint shared config to v3 ( #9274 )
...
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
4 years ago
Patryk Łucka
50c4845d05
Add lock icon to default networks ( #9269 )
...
Co-authored-by: Patryk Łucka <patryk.lucka@consensys.net>
4 years ago
Whymarrh Whitby
c1e3c229bc
Fix import/order issues ( #9239 )
...
See [`import/order`](https://eslint.org/docs/rules/import/order ) for more information.
This change enables `import/order` and fixes the issues raised by the rule.
4 years ago
Whymarrh Whitby
b7259e5d6a
Fix radix issues ( #9247 )
...
See [`radix`](https://eslint.org/docs/rules/radix ) for more information.
This change enables `radix` and fixes the issues raised by the rule.
4 years ago
Whymarrh Whitby
5d42a9b773
Fix require-unicode-regexp issues ( #9212 )
...
* Fix require-unicode-regexp issues
See [`require-unicode-regexp`](https://eslint.org/docs/rules/require-unicode-regexp ) for more information.
This change enables `require-unicode-regexp` and fixes the issues raised by the rule.
* Remove case-insensitive flag from regexps
4 years ago
Brad Decker
46ba1ef100
Update font family globally ( #9073 )
4 years ago
Mark Stacey
f46dda0195
Uncomment and fix all auto-fixable stylelint rules ( #8989 )
...
All stylelint rules that can be automatically fixed have been uncommented. The rules are:
* `at-rule-empty-line-before`
* `block-closing-brace-empty-line-before`
* `block-closing-brace-newline-before`
* `block-opening-brace-space-before`
* `color-hex-case`
* `color-hex-length`
* `comment-empty-line-before`
* `declaration-block-semicolon-newline-after`
* `declaration-block-semicolon-space-after`
* `declaration-block-trailing-semicolon`
* `declaration-colon-space-after`
* `declaration-empty-line-before`
* `function-comma-space-after`
* `function-comma-space-before`
* `indentation`
* `length-zero-no-unit`
* `no-eol-whitespace`
* `no-missing-end-of-source-newline`
* `number-leading-zero`
* `number-no-trailing-zeros`
* `rule-empty-line-before`
* `selector-list-comma-newline-after`
* `selector-pseudo-element-colon-notation`
4 years ago
Whymarrh Whitby
4f0a205369
Use eslint@6.8.0 ( #8978 )
...
* Use eslint@6.8.0
* yarn lint:fix
4 years ago
Erik Marks
5aabe2ac75
Warn users to only add custom networks that they trust ( #8789 )
...
* add warning when adding custom network
* give the settings subheader breathing space
5 years ago
Mark Stacey
9a624dd24c
Revert the revert of "LoginPerSite"
...
This reverts commit 466ece4588
, which has
the message:
"Revert "Merge pull request #7599 from MetaMask/Version-v7.7.0" (#7648 )"
This effectively re-introduces the changes from the "LoginPerSite" PR.
5 years ago
Mark Stacey
e3a62cd603
Simplify settings tab `render` functions ( #8551 )
...
These `render` functions were just calling `renderContent`. Instead the
`render` function now directly renders the content.
5 years ago
Mark Stacey
8a8c774e6d
Backport "Fix Kovan and Rinkeby chain IDs ( #7762 )" ( #8462 )
...
Backport #7762 to v7.7.9
Co-authored-by: Sirius Tsou <sirius.tsou@gmail.com>
5 years ago
Mark Stacey
ac4e1d4e26
Remove faux `<header>` elements ( #8131 )
...
We have been using the HTML `header` tag in various footers. The
`footer` tag is generally more appropriate for use in a footer.
5 years ago
Whymarrh Whitby
169ab8adc9
Remove recompose ( #8097 )
5 years ago
Whymarrh Whitby
da0300d3b1
Enable core ESLint no-mixed-operators rule
5 years ago
Whymarrh Whitby
a78cf0ef3a
Enable arrow-parens ESLint rule
5 years ago
Whymarrh Whitby
92971d3c87
Migrate codebase to use ESM ( #7730 )
...
* Update eslint-plugin-import version
* Convert JS files to use ESM
* Update ESLint rules to check imports
* Fix test:unit:global command env
* Cleanup mock-dev script
5 years ago
Sirius Tsou
9ba3774b5e
Fix Kovan and Rinkeby chain IDs ( #7762 )
5 years ago
ricky
1c4f2aab8f
React 16 upgrade ( #7476 )
...
* Use arrow property initializer functions
* Use pure components where applicable
* Add UNSAFE_ prefix for deprecated lifecycle hooks
* Add allow UNSAFE_
* Removed unused "Component"
* Replace boron with 'fade-modal'
* Upgrade react/no-deprecated to an error
* Paste react-tooltip-component source directly
* Use arrow functions to bind `this`
* Add UNSAFE_ prefix
* Update react-redux, react-router-dom
* Remove things from inlined 'fade-modal'
* Adjust mountWithRouter to get unit tests passing again
* Remove domkit
* Add Wrapper to render-helpers
* Upgrade @storybook/addon-knobs
5 years ago
Mark Stacey
466ece4588
Revert "Merge pull request #7599 from MetaMask/Version-v7.7.0" ( #7648 )
...
This reverts commit 1110287fe1
, reversing
changes made to 72eb233ee9
.
5 years ago