Alex Donesky
569672027c
Allow editing transaction amount after clicking max ( #10278 )
2021-01-27 13:13:28 -03:30
Brad Decker
a036b0ebcd
Add color indicator component ( #10209 )
...
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2021-01-22 15:45:37 -06:00
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
2021-01-20 15:37:18 -08:00
Brad Decker
e9079be2b8
add chip component ( #10199 )
2021-01-20 17:06:01 -06:00
Brad Decker
29f4c93830
add new typography component ( #10197 )
2021-01-20 16:13:33 -06:00
Erik Marks
7077ee68dc
Add NETWORK_TYPE_RPC constant ( #10203 )
...
* Refactor network display props
* Add NETWORK_TYPE_RPC constant
* Consolidate network constants
2021-01-20 08:49:05 -08:00
Erik Marks
90289ec22a
Further improve organization of constants ( #10200 )
2021-01-20 08:13:14 -08:00
Dan J Miller
9a1e83cf4b
Disable swaps based on chainId, instead of network id ( #10155 )
2021-01-07 13:29:32 -03:30
Brad Decker
b5fc1f9314
improve handling of last selected provider ( #10093 )
2021-01-06 17:31:11 -06:00
Brad Decker
ce70c86774
set last provider when switching to a customRPC ( #10084 )
2020-12-16 09:48:42 -06:00
David Walsh
9a1548368f
Use Boolean for filters ( #10066 )
2020-12-14 11:03:59 -06:00
Nicholas Rodrigues Lordello
fcf75d6438
Display boolean values when signing typed data ( #10048 )
2020-12-11 11:40:34 -06:00
Erik Marks
54e9c53b27
Add web3 shim usage notification ( #10039 )
...
* Add web3 shim usage alert background state and logic
* Cleanup alert background state, constants
* Implement web3 shim usage notification and settings
* nodeify alert controller background hooks
* Remove svg icon, again
* Tweak alert controller initialization
* Add support article URL
* Un-thunk alert UI "actions"
* Delete connect.svg file (unused)
2020-12-10 15:40:29 -08:00
Erik Marks
db004d4486
Refactor home notification ( #10046 )
...
Co-authored-by: Brad Decker <git@braddecker.dev>
2020-12-10 12:02:21 -08:00
David Walsh
07c5527b1e
Use consistent font size for modal top right Close links ( #10000 )
2020-12-10 12:02:57 -06:00
Dan J Miller
da5e5cd8b6
Reapply view quote screen designs ( #9905 )
2020-12-08 10:47:53 -06:00
David Walsh
42fd8b0ff0
Use strict equality in unit tests ( #9966 )
2020-12-03 09:46:22 -06:00
Dan J Miller
97d268c8ee
Remove use of ethgasstation; use metaswap /gasPrices api for gas price estimates ( #9867 )
...
* Remove use of ethgassthat; use metaswap /gasPrices api for gas price estimates
* Remove references to ethgasstation
* Pass base to BigNumber constructor in fetchExternalBasicGasEstimates
* Update ui/app/hooks/useTokenTracker.js
Co-authored-by: Erik Marks <25517051+rekmarks@users.noreply.github.com>
* Delete gas price chart
* Remove price chart css import
* Delete additional fee chart code
* Lint fix
* Delete more code no longer used after ethgasstation removal
Co-authored-by: Erik Marks <25517051+rekmarks@users.noreply.github.com>
2020-12-02 19:55:19 -03:30
David Walsh
673371d013
Fix #9872 - Show price difference warning on swaps price quote ( #9899 )
2020-12-02 15:27:45 -06:00
Erik Marks
9d4b8a4903
@metamask/contract-metadata ( #9968 )
2020-12-01 14:55:01 -08:00
Mark Stacey
429847a686
Update to @storybook/*@6
( #9956 )
...
Our Storybook dependencies have been updated to v6.1.9, from v5. This
was done to address a security vulnerability in a transitive dependency
of these packages (`highlight.js`).
The primary changes required by this Storybook update were the change
in import path for the `withKnobs` hook, the change in background
config format, and the webpack configuration. Storybook seems to work
correctly.
The migration was guided by the Storybook changelog[1] and the
Storybook v6 migration guide[2].
There is one Storybook error remaining; it fails to load the Euclid
font. This is a pre-existing error though, so we can fix it in a later
PR.
The `yarn.lock` file was deduplicated in this PR as well, as it was
required to fix various install warnings that were introduced with this
update.
[1]: https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md
[2]: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md
2020-11-30 16:40:46 -03:30
David Walsh
0315c6c20d
Add alt text for images in list items ( #9847 )
2020-11-20 10:57:45 -06:00
Thomas Huang
35af9ea301
Override font-weight from Paragraph and set to 900 ( #9918 )
...
* Override font-weight from Paragraph and set to 900
* Fix checkmark font-weight on swaps gas button selector
2020-11-19 12:29:35 -08:00
Dan J Miller
1e895c3110
Revert view quote design updates ( #9904 )
...
* Revert "Update fee card designs to show savings and MM fee (#9629 )"
This reverts commit d9924ca771
.
* Revert "Update main-quote-summary designs/styles (#9612 )"
This reverts commit 5456d55c88
.
2020-11-18 22:10:24 -03:30
Brad Decker
5be20d105e
show failed token balance updates ( #9896 )
2020-11-18 16:13:28 -06:00
David Walsh
e90bddf44f
Revert "Show a 'send eth' button on home screen in full screen mode" ( #9910 )
2020-11-18 16:02:57 -06:00
Nate Chastain
179dbcb41c
Remove CoinSwitch from Deposit screen( #9869 )
...
Remove all CoinSwitch references and functionality, and bump Wyre to top spot on Deposit screen unless user on test network
2020-11-16 13:57:53 -03:30
David Walsh
70a3a7b09c
Merge pull request #9881 from darkwing/prevent-send-button-jump
...
Prevent jump when hovering over asset list items
2020-11-13 13:55:36 -06:00
David Walsh
ed19ce44bd
Merge pull request #9853 from darkwing/image-updates
...
Provide alternative text for images where appropriate
2020-11-13 13:44:55 -06:00
David Walsh
587d07c730
Prevent jump when hovering over asset list items
2020-11-13 13:30:48 -06:00
David Walsh
d78e6dc821
Merge pull request #9855 from darkwing/edit-account-focus
...
Make editable action item a button, autofocus input contents
2020-11-13 13:07:40 -06:00
Mark Stacey
a75949e62c
Fix broken LoadingScreen PropType declaration ( #9877 )
...
`PropTypes.oneOf` was used accidentally instead of
`PropTypes.oneOfType`. `oneOf` expects literal values, not types.
2020-11-13 14:52:48 -03:30
David Walsh
9677d090d1
Show send text upon hover in main asset list
2020-11-13 10:52:29 -06:00
David Walsh
67303b7865
Fix BigNumber issues ( #9860 )
...
* Document where we need BigNumber-related changes
* Fix 1 unit test
* Debug progress
* Add required values for each upstream usage of getBigNumber
* Switch to base 10
* Address feedback
2020-11-13 14:08:18 +08:00
Erik Marks
0dbeae583a
Fix mock signature in test
2020-11-12 16:41:01 -08:00
Erik Marks
406f06dae8
Fix gas-modal-page-container gas price selection call
2020-11-12 16:37:16 -08:00
Erik Marks
8c6c944d14
Fix unit tests
2020-11-12 15:04:29 -08:00
Erik Marks
bb81ac7cd6
Fix setGasPrice dispatch function params
2020-11-12 14:57:29 -08:00
David Walsh
64657efdef
Merge pull request #9845 from darkwing/send-eth-button
...
Show a 'send eth' button on home screen in full screen mode
2020-11-12 13:29:47 -06:00
David Walsh
9df5be903b
Use optional chaining for functions ( #9799 )
2020-11-12 11:13:21 -06:00
David Walsh
5f949d2c4f
Show a 'send eth' button on home screen in full screen mode
2020-11-12 10:49:30 -06:00
David Walsh
56cff1a91a
Fix unnecessary keyring check
2020-11-12 10:45:54 -06:00
David Walsh
74866a6efb
Make editable actoin item a button, autofocus input contents
2020-11-11 12:00:12 -06:00
David Walsh
a05230bba7
Provide alternative text for images where appropriate
2020-11-11 09:38:15 -06:00
Dan J Miller
bcd5f2a7c1
Fix gas_fees properties collected for swaps analytics events ( #9727 )
2020-11-10 14:09:45 -03:30
David Walsh
974ba4f691
Simplify the QR code component ( #9828 )
2020-11-09 09:23:08 -06:00
Brad Decker
a49a4a066c
expand transaction constants coverage ( #9790 )
...
* expand transaction constants coverage
* touchups
* dont import inside of e2e
* Update app/scripts/controllers/transactions/tx-state-manager.js
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
* Update test/unit/app/controllers/transactions/tx-controller-test.js
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2020-11-07 01:38:12 -06:00
Patryk Łucka
ee205b893f
Create custom addHexPrefix function ( #9306 )
...
* create custom addHexPrefix function
* switch to custom addHexPrefix
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: Erik Marks <rekmarks@protonmail.com>
2020-11-06 13:18:00 -08:00
David Walsh
b1b78ff5a5
Don't use concatenized token value for ETH in asset list item ( #9809 )
2020-11-05 16:16:24 -06:00
David Walsh
cfbcc12398
Make all UI tabs accessible via keyboard ( #9518 )
2020-11-05 12:05:41 -06:00