ryanml
730605353a
Using URL util to parse hostname for block explorer link ( #12241 )
2021-09-30 09:14:20 -07:00
Jyoti Puri
6187ab9b01
Fix gas control flicker on send screen when switching between EIP-1559 networks ( #12230 )
...
Fix gas control flicker on send screen when switching between EIP-1559 networks
2021-09-30 17:27:59 +05:30
Etienne Dusseault
bf89226ca1
Add send-header to Storybook ( #12084 )
2021-09-29 13:43:18 -05:00
Etienne Dusseault
c2bbbdd19c
Add account-list component to Storybook ( #12228 )
2021-09-29 13:42:49 -05:00
Etienne Dusseault
b5103bf317
Add select-hardware component to Storybook ( #12227 )
2021-09-29 13:42:38 -05:00
Matthew Epps
53f2c84209
Add client id to GasFeeController ( #12221 )
...
* chore: Add client id to GasFeeController
* chore: change EXTENSION_CLIENT_ID to SWAPS_CLIENT_ID in constants file
2021-09-29 10:41:19 -02:30
ryanml
f52dac290b
Using parsed seed phrase for restore vault input validation ( #12229 )
...
Fixes MetaMask/metamask-extension#12225
2021-09-28 12:21:19 -07:00
Jyoti Puri
180ead8175
Adding slider component ( #12219 )
...
Adding slider component
2021-09-28 11:20:21 +05:30
David Walsh
2e2bd0fce5
Prevent fox mesh JSON warning ( #12200 )
...
* Prevent fox mesh JSON warning
* Update ui/helpers/utils/build-types.js
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
* Fix lint
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2021-09-27 12:40:05 -10:00
Niranjana Binoy
77581256ca
Hiding refresh list on non-Mainnet networks ( #12210 )
2021-09-27 13:42:51 -04:00
Alex Donesky
14f0d8245b
fix issue where conversionRates aren't shown for tokens stored in non-checksum format ( #12206 )
2021-09-27 09:06:07 -05:00
Niranjana Binoy
c076faeb8f
adding checksum conversion ( #12209 )
2021-09-27 09:58:12 -04:00
Alex Donesky
db9253866e
fix cancel button styling bug ( #12204 )
2021-09-24 14:46:38 -05:00
Akintayo A. Olusegun
08dff86be0
Add target object word to "View on Etherscan" links ( #12100 )
...
* Add target object word to "View on Etherscan" links
Fix for: #9476
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* Fix Swap tests checking for View $1 at or View $1 on
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* Linter Fixes
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* Fix ui/hooks/useTransactionDisplayData.test.js expected result should
be May 13, 2020
Update Jest snapshot for view on etherscan test
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* Add description of the variables in messages.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* 1. localize all of the blockExplorerViewAction values
2. Apply this nit. https://github.com/MetaMask/metamask-extension/pull/12100#discussion_r708343532
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* Lint fixes.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* Fix locale value not used on GUI error lint error.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* Reverted this commit, on circle ci, the date is May 12.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* Add description to link block explore actions to where it's used.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* Fix missing messages.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
2021-09-24 21:14:07 +04:00
ryanml
30105a19d1
Fixing alignment of settings close button ( #12202 )
2021-09-24 09:28:54 -07:00
ryanml
730ff25028
Fixing accounts scrollbar for chrome ( #12205 )
2021-09-24 09:27:22 -07:00
Etienne Dusseault
a86129d23f
fee-card ( #12166 )
2021-09-24 11:47:40 -03:00
Etienne Dusseault
bf4e565497
edit-gas-display ( #12165 )
2021-09-23 22:40:03 -03:00
Jyoti Puri
adb56d8d16
Adding base to BigNumber constructor to round off value ( #12140 )
...
* Adding base to BigNumber constructor to round off value
* Numeric inputs to not allow more than 14 decimal places
2021-09-23 00:39:45 +05:30
Alex Donesky
1ca02cb633
fix issue where duplicate tokens without icons appear in swap-to token list dropdown ( #12148 )
2021-09-22 10:31:36 -05:00
ryanml
5c842107b9
Hardening property check for stopPropagation in ConfirmTxScreen ( #12158 )
2021-09-21 11:58:39 -07:00
Jyoti Puri
9e7b52b7df
Truncate extra decimal places from token amount for sending ( #12169 )
2021-09-22 00:04:52 +05:30
ryanml
aba2c71948
Fixing ledger steps display (Confirm TX) ( #12163 )
...
* Fixing ledger steps display (Confirm TX)
* Hiding step two on Firefox
2021-09-20 13:19:35 -07:00
Niranjana Binoy
9929820b88
Adding a Token detection announcement in Search tab ( #12152 )
2021-09-20 15:42:58 -04:00
Matthew Epps
3ca6202282
Add client id header for Swaps Apis ( #12137 )
2021-09-20 14:06:41 -05:00
Etienne Dusseault
6b7444c257
Add add-recipient to Storybook ( #12076 )
2021-09-20 14:05:58 -05:00
Niranjana Binoy
e03d3dd5f0
Moving UseTokenDetection toggle to new Experimental tab ( #12136 )
2021-09-20 12:22:04 -04:00
ryanml
8df521df8a
Updating swaps availability tooltip text ( #12157 )
...
* Updating swaps availability tooltip text
Fixes MetaMask/metamask-extension#12156
* text update
2021-09-20 06:51:22 -07:00
Dan J Miller
0f86f678f8
Add notification about need for ledger firmware update ( #12144 )
...
* Add notification about need for ledger firmware update
* Update messaging for ledger firmware notice
* Code cleanup
2021-09-17 14:20:16 -02:30
Jyoti Puri
ade9e4ac4b
Changing cancel button labels in send screen when in editing stage ( #12056 )
...
* Changing cancel button labels in send screen when in editing stage
* Re-route user to home page when reject is clicked on edit transaction page
2021-09-17 10:07:50 +05:30
Akintayo A. Olusegun
2929e6238c
Revisit #12019 : Show save dialog when calling a smart contract method and use the saved contact is already saved ( #12090 )
...
* Revisit showing add new address dialog.
Should not show if
Address is own adddress
send to recipient header is not shown
* Mock tests for the Confirm Page Container Container.
* Removed react-test-renderer dev-dependency
* Ran yarn setup to update lock file and remove ununsed packages.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
2021-09-16 23:28:02 +04:00
ryanml
792f9efa56
Adding "Enable smart contract data" step to Ledger Instructions (Confirmation Screen) ( #12115 )
2021-09-16 09:52:42 -07:00
Thomas Huang
2b1e05f086
Fixes tx list item test formatting, importing, and useDispatch mocking. ( #12123 )
2021-09-15 16:04:14 -07:00
Alex Donesky
2a9fbffb6c
Replace hardcoded sent ether label on confirm screen ( #11802 )
...
* Replace hardcoded sent ether label on confirm screen
* replace transaction type SENT_ETHER with network agnostic SENDING_NATIVE_ASSET
* remove sentEther translation base
* make backwards compatible with lingering transaction of legacy sentEther type
* update localalization files
* fixup legacy sentEther transaction type
* changing new transaction type away from localization string
* revert migration tests
* update fixtures and test data
* update name of new transaction type
* add migration
* remove legacy SENT_ETHER from transaction types enum object
2021-09-15 16:54:51 -05:00
Brad Decker
2100fb0ce1
fix stuck speedup problem ( #12122 )
2021-09-15 16:42:06 -05:00
Alex Donesky
9d968bae1e
Hook up shared TokenRatesController ( #12066 )
2021-09-15 14:02:28 -05:00
Alex Donesky
cf569161fb
Fix failing transaction-list-item.component test by mocking useLayoutEffect ( #12118 )
2021-09-15 14:00:56 -05:00
kumavis
f472c2615a
CI - add metamaskbot comment "highlights" section for showing relevant storybook changes ( #12095 )
...
* ci/announce/highlight - add bot announcement section for "highlights" showing off important diffs + storybook highlights
* ci/announce/highlight - fix announcement message
* Update index.js
* xxx tmp xxx
* ci/announce/highlight - fix dirty file calculation
* ci/announce/highlight - try/catch wrap highlight generation for build stability
* ui - put fox emojis in the mascot component
* ci/announce/highlight - start storybook permalinks
* ci/announce/highlight - fix storybook permalink util
* ci/announce/highlight - fix storybook permalink util
* ci/announce/highlight - small styling fix
* storybook - use any easily predictable story id
* ci/announce/highlight - revert sample commit
* ci/announce/highlight - minimal documentation
2021-09-15 08:55:48 -10:00
ryanml
7895fcb7af
Merge pull request #11976 from MetaMask/break-point-overhaul
...
Using design system breakpoint values across ui/
2021-09-15 10:41:05 -07:00
Niranjana Binoy
49ddc48592
Adding search tab in import tokens for custom networks ( #12110 )
2021-09-15 12:09:23 -04:00
Alex Donesky
74fa6fa187
Fix gas api overcalling ( #12069 )
...
* Move gasEstimation calls onto edit-gas-popover instead of transaction list item
* delete useCancelTransaction and useRetryTransaction hooks
consolidate gasFee calls into cancel button component.
* add tests
* update component name
* addressing feedback
* fix failing e2e test
* followup fix e2e tests
* change useIncrementedGasFees to accept single transaction rather than transactionGroup as argument
* remove unnecessary change to fixture
* only ever pass primary transaction to useIncrementedGasFees
* remove unnecessary optional chaining
2021-09-15 10:59:51 -05:00
Daniel
28fc2d471f
Quotes prefetching in Swaps ( #11915 )
2021-09-15 15:13:18 +02:00
ryanml
9e4b43defd
Merge pull request #12098 from MetaMask/dev_12088
...
Scroll all inputs into view when clicking Advanced options in gas edit modal
2021-09-14 19:59:08 -07:00
jpuri
191a52f0e7
Scroll all inputs into view when clicking Advanced options in gas edit modal
2021-09-14 14:32:13 +05:30
Etienne Dusseault
3e0d79d251
Add send-gas-row to Storybook ( #12083 )
2021-09-13 16:05:42 -05:00
Etienne Dusseault
aec31cc8b7
Add send-footer to Storybook ( #12082 )
2021-09-13 16:05:17 -05:00
Etienne Dusseault
d1d01f434d
Add contact-list-tab to Storybook ( #12079 )
2021-09-13 16:04:31 -05:00
Etienne Dusseault
ad182c8fa4
Add advanced-tab to Storybook ( #12077 )
2021-09-13 16:02:24 -05:00
Etienne Dusseault
68c5f23569
Add transaction-list to Storybook ( #12011 )
2021-09-13 16:01:29 -05:00
Elliot Winkler
d403644e59
Truncate long network names ( #12058 )
...
In some languages, network names are longer than the visible width of
the network dropdown. In these cases, the currently selected network will
overflow the bounds of the network dropdown container.
This commit addresses this issue so that the dropdown container will
grow and shrink appropriately, truncating the currently selected network
if needed.
2021-09-13 10:05:53 -06:00
ryanml
5c03be009a
Fixing breakpoint fallthroughs
2021-09-11 11:13:36 -07:00
ryanml
069ebaf463
Using design system breakpoint values across ui/
2021-09-11 11:00:46 -07:00
Niranjana Binoy
0c2af43d3a
changing token address to lowercase for dynamic token list ( #12071 )
2021-09-10 23:55:23 -04:00
Niranjana Binoy
05aadb38f2
Adding fake token warning and replacing Add Token
labels with Import Tokens
( #11798 )
2021-09-10 16:21:04 -04:00
Niranjana Binoy
769beb2a26
Adding Refresh list
and import tokens
link to the main page ( #11755 )
2021-09-10 14:03:42 -04:00
Niranjana Binoy
18c35ad91e
Adding Token Detection Toggle to Security & Privacy ( #11851 )
2021-09-10 14:02:30 -04:00
Alex Donesky
490d3b8d40
Integrate TokensController ( #11552 )
...
* Integrate controllers/tokensController
* address rebase issues
* small cleanup
* addressing feedback
* more feedback
2021-09-10 12:37:19 -05:00
Niranjana Binoy
eb987a47b5
Integrating the TokenListController to Extension ( #11398 )
2021-09-09 16:56:27 -04:00
Brad Decker
ec1fd38076
remove unused sidebar component ( #12048 )
2021-09-09 10:14:07 -05:00
ryanml
cd30536cb7
Merge pull request #11963 from BboyAkers/aakers/8905
...
Add scrollbar in My Accounts Menu
2021-09-09 00:05:48 -07:00
Jyoti Puri
e410cd3a82
Merge pull request #12039 from jpuri/dev_12035
...
Fix padding at bottom of custom network form in popup view
2021-09-09 10:35:05 +05:30
David Walsh
7b827ca5e7
Create MetaMask Beta build ( #10985 )
2021-09-08 15:08:23 -05:00
Daniel
6f0d6b1693
Add support for swaps via a direct contract for wrapping and unwrapping ( #11845 )
...
* Update contract address validations in swaps for different networks
* Add support for direct contract swaps for wrapping and unwrapping
* Add WETH_RINKEBY_CONTRACT_ADDRESS
2021-09-08 20:08:55 +02:00
Elliot Winkler
a35f22fcdf
Add Max Fee Per Gas to transaction breakdown ( #12042 )
...
This comes through in EIP-1559 transactions and so it is helpful to show
this to users.
2021-09-08 12:06:16 -06:00
Daniel
93cdd3c159
Use Swaps dev APIs based on an env variable ( #11924 )
2021-09-08 19:26:37 +02:00
ryanml
4cc4092e1f
Merge pull request #11964 from BboyAkers/aakers/7397
...
Disabled spell-check on ens input
2021-09-08 10:00:19 -07:00
Akintayo A. Olusegun
df69d2e5a8
Merge pull request #12019 from MetaMask/dev-olu-11148
...
Fix for: Confirmation screen should show local nicknames even when invoking a contract method
2021-09-08 20:45:04 +04:00
jpuri
ec9b94ccfe
Fix padding at bottom of custom network form in popup view
2021-09-08 21:10:15 +05:30
Etienne Dusseault
09e79f273a
fix state problems with Storybook ( #11984 )
...
* fix state problems with Storybook
* lint
* lint
* Cleanup
Co-authored-by: ryanml <ryanlanese@gmail.com>
2021-09-07 13:51:41 -10:00
Akintayo A. Olusegun
0339a8715b
Refactor contact name code using ternary operator.
...
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
2021-09-08 02:52:42 +04:00
Akintayo A. Olusegun
1ad80f0ae8
Use variable to check if should display dialog and display dialog
...
inline.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
2021-09-08 02:40:47 +04:00
ryanml
17fe978c82
Adding usage instructions for Ledger Live users to confirmation screen ( #12020 )
...
* Adding usage instructions for Ledger Live users to confirmation screen
* Using design system components
* Hiding first step on Firefox
2021-09-07 14:46:15 -07:00
Akintayo A. Olusegun
409bb00748
Separate container from component as per https://github.com/MetaMask/metamask-extension/pull/12019#discussion_r703804969
...
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
2021-09-08 01:12:56 +04:00
ryanml
449da1d095
Improving warning text for eth_sign ( #12013 )
...
* Improving warning text for eth_sign
* Copy update
2021-09-06 10:28:34 -07:00
Akintayo A. Olusegun
d78855cb3d
Fix for: Confirmation screen should show local nicknames even when invoking a contract method #11148
...
1. Display the new address detected dialog if the contract is not in the address book
2. Use the address book if exists, else use the default.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
2021-09-05 16:16:18 +00:00
Elliot Winkler
49e1abc374
Sort contacts alphabetically ( #11982 )
...
* Sort contacts alphabetically
Contacts are grouped together by letter, and the groups are listed
alphabetically, but the contacts in each group are not sorted
alphabetically themselves.
Fixes #10318 .
* Improve tests to be less brittle
* Remove this matcher
* Revert this file
* Also don't need this change anymore
* Don't need this data attribute either
2021-09-03 12:31:12 -07:00
Alex Donesky
7a8f65d642
fix import account page layout ( #11944 )
...
* fix import account page layout
* cleanup
2021-09-03 10:56:43 -05:00
Alex Donesky
dcebf49032
fix contact settings layout issues ( #11967 )
2021-09-03 10:54:20 -05:00
Alex Donesky
3358ac2c1f
send user to account page upon adding a custom network ( #11945 )
2021-09-03 10:52:37 -05:00
Alex Donesky
e8ab578ed0
bump @metamask/controllers to v15.0.2 and remove AbortController workaround in e2e tests ( #11988 )
...
* bump @metamask/controllers to v15.0.1 and remove AbortController workaround in e2e tests
* remove old abortcontroller polyfill
* bump @metamask/controllers to v15.0.2
2021-09-03 09:34:21 -05:00
ryanml
cce623f5b6
Fixing horizontal line for gas recommendations ( #11890 )
...
* Fixing horizontal line for gas recommendations
* Unify browser differences between Chrome and FF
* Remove duplicate style
* Remove browser hacks
Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
2021-09-02 10:12:47 -07:00
Akintayo A. Olusegun
aba396870a
Update copy in dapp suggested gas fee tooltip to: "Edit to use MetaMask's recommended gas fee based on the latest block." #11952 ( #11986 )
...
* Change the [domain] suggested gas fee (i) to Estimated gas fee (i)
Change that line's color from orange to black
Under that line, add Site suggested in italics in gray.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* liinter fixes.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
2021-09-01 11:02:01 -07:00
Dan J Miller
a4c0133bc5
1559 ledger ( #11951 )
...
* EIP-1559 - Provide support for Ledger
* Update ui/selectors/selectors.js
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
* Add shared constants for hw types
* bump eth-ledger-bridge-keyring to v0.7.0
Co-authored-by: David Walsh <davidwalsh83@gmail.com>
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: Alex <adonesky@gmail.com>
2021-09-01 11:25:06 -05:00
Etienne Dusseault
48c5c07ded
send-content ( #11962 )
2021-08-30 13:05:02 -10:00
Etienne Dusseault
9f0f729c5b
token-placeholder ( #11961 )
2021-08-30 13:04:24 -10:00
Etienne Dusseault
8875e9a49c
token-search ( #11960 )
2021-08-30 13:04:05 -10:00
Etienne Dusseault
1a0276fc6e
gas-fee-display ( #11959 )
2021-08-30 13:03:47 -10:00
Etienne Dusseault
1c2d9e5c9c
add-token ( #11957 )
2021-08-30 13:02:55 -10:00
Etienne Dusseault
616016a1f6
account-list-item ( #11956 )
2021-08-30 13:02:39 -10:00
Etienne Dusseault
4426104fc7
unlock-page ( #11955 )
2021-08-30 13:02:23 -10:00
Etienne Dusseault
9f10fe8c97
swaps-gas-customization ( #11938 )
2021-08-30 13:01:59 -10:00
Etienne Dusseault
8d22dc4470
import token ( #11657 )
2021-08-30 13:00:47 -10:00
Etienne Dusseault
28708e3a2e
Add first time flow components to Storybook ( #11655 )
...
* end of first time flow
* metametrics first time flow
* select-action
* welcome
2021-08-30 12:59:56 -10:00
Etienne Dusseault
0a472a440a
create-password ( #11646 )
2021-08-30 12:59:20 -10:00
Etienne Dusseault
2de9628865
Add mobile-sync component to Storybook ( #11645 )
...
* mobile sync
* lintfix
2021-08-30 12:58:58 -10:00
Etienne Dusseault
57a5e4528b
Add permissions-connect component to Storybook ( #11644 )
...
* add metadata
* fix image path for storybook
* fix lint
* separate components
2021-08-30 12:58:21 -10:00
Etienne Dusseault
2ca7f066e3
Add new-account component to Storybook ( #11638 )
...
* add action
* lintfix
2021-08-30 12:57:39 -10:00
Etienne Dusseault
7d0d6013af
Add connected-accounts component to Storybook ( #11637 )
...
* name change
* add actions
* lintfix
2021-08-30 12:56:34 -10:00
Etienne Dusseault
7b4aac7755
Add connected-sites component to Storybook ( #11415 )
...
* connectd-sites
* fix image path for storybook
* lintfixd, namechange
2021-08-30 12:56:03 -10:00
Etienne Dusseault
2996163770
Add confirm-send-token component to Storybook ( #11399 )
...
* fix image path for storybook
* confirm-send-token-component
* lintfix
2021-08-30 12:55:08 -10:00
Etienne Dusseault
cd3447995b
confirm-transaction-base ( #11396 )
...
Co-authored-by: kumavis <kumavis@users.noreply.github.com>
2021-08-30 12:54:21 -10:00
Etienne Dusseault
a77368be34
Add confirm-send-ether component to Storybook ( #11395 )
...
* confirm-send-ether
* fix conflict
* lintfix
Co-authored-by: kumavis <kumavis@users.noreply.github.com>
2021-08-30 12:53:41 -10:00
Austin Akers
6875d15e5f
disabled spell-check on ens input
2021-08-28 19:16:19 -07:00
Austin Akers
a690cd618c
fixed scrolling issue with many accounts
2021-08-28 17:46:00 -07:00
ryanml
58f9299df2
Guarding against null keyring (Hardware Wallet Selectors) ( #11893 )
2021-08-27 08:46:56 -07:00
Alex Donesky
9b6acb7370
Use higher gasfees when attempting to speedup or cancel a transaction ( #11936 )
2021-08-25 16:04:18 -07:00
ryanml
9c675ec033
Temporarily Disabling Mobile Sync ( #11931 )
2021-08-25 11:54:23 -07:00
ryanml
b20a77b255
Updating decimal precision to 9 (getRoundedGasPrice) ( #11930 )
2021-08-25 11:09:39 -07:00
ryanml
b021c35f7b
Fixing error handling for publish()
(MobileSync) ( #11909 )
2021-08-25 09:16:12 -07:00
ryanml
dc3e74a66a
Localize import account warning messages ( #11910 )
2021-08-25 09:14:42 -07:00
ryanml
472cf17bda
Adding UI helpers for URL parsing ( #11899 )
2021-08-24 15:28:16 -07:00
Elliot Winkler
0d63aa0402
Update header on Send page to be more accurate ( #11895 )
...
Change "Add Recipient" to "Send to".
2021-08-20 09:44:41 -06:00
ryanml
a4360e7201
Adding subtitles for additional languages (SRP Video) ( #11849 )
...
Adding support for: Spanish, Hindi, Indonesian, Japanese, Korean, Portuguese, Russian, Tagalog, and Vietnamese
2021-08-18 09:09:11 -07:00
Dan J Miller
05fa7961f1
Dont default gas limit in gas popover when non is available on transaction params ( #11872 )
...
* Dont default gas limit when non is available on transaction params
* Fix unit tests
2021-08-18 02:54:53 -07:00
ryanml
d1d6f0531e
Fix content cutoff issue (Mobile Sync View ( #11871 )
2021-08-18 02:12:07 -07:00
Dan Finlay
932474127e
Increase saliency of mobile sync warning ( #11862 )
...
* Increase warning saliency of qr sync
* Remove duplciate locale entries
* Revise wording per Antonela feedback
* Avoid all caps
Co-authored-by: Erik Marks <25517051+rekmarks@users.noreply.github.com>
Co-authored-by: Erik Marks <25517051+rekmarks@users.noreply.github.com>
2021-08-17 18:19:09 -07:00
Dan J Miller
29487ef277
Allow submission of transactions with dapp suggested gas fees, while estimates are loading ( #11858 )
...
* Allow submission of transactions with dapp suggested gas fees, while estimates are loading
* Allow editing of transactions with dapp suggested feeds, while estimates are still loading
* Ensure that advanced gas is always editible inline when gas is loading
* Ensure that insufficient balance error is shown when gas is loading if the user has customized the gas
* Only set gas price insufficient errors if the current network is non-eip-1559, or the txparams actually have a gas price
* Remove unnecessary param
* lint fix
* ensure insufficient balance warning is showing when loading
* Ensure that eip1559 network transactions do not combined eip1559 and non-eip1559 gas fee properties
* Lint fix
2021-08-17 17:38:13 -02:30
Dan J Miller
84036aacb6
Allow advanced inline gas editing when there is an estimates unavailable error ( #11859 )
2021-08-17 16:55:26 -02:30
Etienne Dusseault
46c4cc1966
Add confirm-add-suggested-token & confirm-add-token components to Storybook ( #11175 )
...
* add suggessted token
* lintfix
* lintfix
* silence use effect warning
* download token icons and use paths to avoid web urls
* lintifx
* Add confirm-add-token component to Storyboard (#11195 )
* create story for add token
* change code
* add confirm add token story
* lintfix
* Update confirm-add-token.component.js
* Update confirm-add-token.component.js
* different token list for confirm add token
* lintfix
* Update confirm-add-suggested-token.component.js
* remove bnb png
* remove redundant images and fix storybook image path
2021-08-17 00:33:46 -05:00
Etienne Dusseault
71a9fe2ed1
Add confirm-token-transaction-base component to Storybook ( #11414 )
...
* confirm-token-transaction-base
* Update ui/pages/confirm-token-transaction-base/confirm-token-transaction-base.stories.js
Co-authored-by: Brad Decker <git@braddecker.dev>
Co-authored-by: Brad Decker <git@braddecker.dev>
2021-08-17 00:33:32 -05:00
Etienne Dusseault
435b663f5f
awaiting signature ( #11656 )
2021-08-17 00:30:58 -05:00
Dan J Miller
ae247ea14a
Improve flashing behaviour for loading gas estimates (on confirm screen) ( #11852 )
...
* Improve flashing behaviour for loading gas estimates
* Fix typo
* renderHeartBeatIfInTest
2021-08-16 20:18:24 -02:30
Dan J Miller
b919884c6e
Allow editing custom gas while estimate is loading ( #11853 )
2021-08-16 20:15:55 -02:30
David Walsh
01fd2a609e
Gas Timing with Negative attitude should be bold with tooltip ( #11772 )
2021-08-14 17:46:55 -05:00
David Walsh
b5baa6c1d1
EIP-1559 - Update tooltip text for gas fees ( #11805 )
2021-08-13 19:13:21 -05:00
David Walsh
df84a6efa6
Keep radio group contained and equal width ( #11771 )
2021-08-13 19:13:10 -05:00
ryanml
1837397202
Fixing persisting error message from MobileSyncPage ( #11835 )
2021-08-13 12:59:06 -07:00
Alex Donesky
a073e0bb7e
Add low/medium/high gas recommendations to the speedup/cancel gas popovers ( #11818 )
2021-08-13 11:36:45 -05:00
Daniel
410c4aec9a
Fix Insufficient number of substitutions for key "swapYourTokenBalance" ( #11833 )
...
* Fix Insufficient number of substitutions for key "swapYourTokenBalance"
* Use an empty string if there is no default symbol
* Add ? after SWAPS_CHAINID_DEFAULT_TOKEN_MAP[chainId]
2021-08-13 08:26:42 -07:00
ryanml
38b581cdfa
Return an empty string when date is not provided [Date display utils] ( #11831 )
2021-08-13 08:22:12 -07:00
ryanml
428b86fcf3
Hardening clipboardData handling in EnsInput ( #11822 )
2021-08-12 15:30:07 -07:00
David Walsh
e0692db7ba
Remove unwanted console.log from codebase ( #11820 )
2021-08-12 08:13:51 -05:00
ryanml
e57a2da647
Adjusting Max Fee label in EditGasDisplay per designs ( #11796 )
2021-08-10 15:36:35 -07:00
David Walsh
00572f5910
Correct the vertical margins on the RadioGroup component ( #11769 )
2021-08-10 16:56:16 -05:00
David Walsh
da79ac382e
Autofocus the unit fiend in send screen ( #11795 )
2021-08-10 16:56:07 -05:00
ryanml
504e74fbed
Fixing EditGasDisplay console errors ( #11797 )
2021-08-10 13:45:09 -07:00
David Walsh
2bb1c1a61d
Selected radio group label should be black ( #11770 )
2021-08-10 09:25:07 -05:00
Dan J Miller
e6543a83ef
Ensure transaction activity log supports EIP-1559 ( #11794 )
...
* Ensure transaction activity log supports EIP-1559
* unit test fix
* Add estimated base fee to swaps txMeta
* fix lint and tests
* Improve activity log copy
2021-08-06 19:48:53 -02:30
Alex Donesky
1216dc95c0
Hide gasTiming on edit-gas-popover when form is in error ( #11792 )
...
* Hide gasTiming on edit-gas-popover when form is in error
* Show unknown processing error if maxFeePerGas is too low for network conditions
* remove unnecessary change
* remove unnecessary function wrapper
2021-08-06 16:37:18 -05:00
Dan J Miller
bfde5a1d77
Fixes updates on the confirm screen. ( #11788 )
...
* Fixes updates on the confirm screen.
* Better handling of internal send transactions
* maxFee -> maxFeePerGas property name fix
* Remove redundant setEstimateToUse call in onManualChange
* Fix unit tests
* rebase error fix
* Fixes to speedup loading and transaction breakdown priority fee
* Fix lint and unit tests
* Ensure gas price based transaction that have been customized (e.g. speed up and retry) are properly initialized in useGasFeeInputs
* Clean up
* Link fix
2021-08-06 14:31:30 -05:00
David Walsh
1b1d039310
EIP-1559 - Ensure form always displays when there are errors ( #11787 )
2021-08-05 20:25:23 -05:00
Alex Donesky
751534e665
fix confirm transaction details to match spec ( #11779 )
2021-08-05 20:07:04 -05:00
David Walsh
a0bd496d56
Restore heartbeat to transaction confirmation, use isGasEstimatesLoading more broadly ( #11781 )
2021-08-05 18:59:58 -05:00
Alex Donesky
804fefcd36
Separate out non blocking gas errors ( #11783 )
2021-08-05 17:53:48 -05:00
Alex Donesky
f9378b3aa2
Add fee level education button to swaps edit gas popover ( #11785 )
2021-08-05 17:10:04 -05:00
David Walsh
d5033249a2
Fix NumericInput proptype error ( #11773 )
2021-08-05 16:52:45 -05:00
Dan J Miller
e9ef3b168a
Allow max fee to be equal to max priority fee ( #11778 )
2021-08-05 14:15:02 -02:30
Dan J Miller
0cf5019486
Use bignumber for number comparisons in useGasFeeInput ( #11776 )
...
* Use bignumber for number comparisons in useGasFeeInput
* fix
2021-08-05 13:52:56 -02:30
Dan J Miller
01262d33a4
Ensure that gas fee inputs fallback to tx params values if api is down ( #11775 )
...
* Ensure that gas fee inputs fallback to tx params values if down
* ensure getGasFeeEstimate fallback is a string
2021-08-05 08:33:49 -02:30
Dan J Miller
9fcd93191b
Ensure that gas fee minimum errors show when api is down ( #11767 )
...
* Fix legacy unapproved tx handling
* clean up
2021-08-04 20:14:20 -02:30
Dan J Miller
818dc13019
Fix legacy unapproved tx handling ( #11766 )
2021-08-04 19:53:15 -02:30
Alex Donesky
4245dac8d9
tiny lost code change from 9.8.4 RC ( #11764 )
2021-08-04 17:10:29 -05:00
David Walsh
e1de6e19af
EIP-1559 - Fix mislabeled MaxPriority fee key ( #11758 )
2021-08-04 17:07:17 -05:00
Alex Donesky
d359429f04
Stop GasFeeController polling when pop closes ( #11746 )
...
* Stop GasFeeController polling when pop closes
* Stop estimate gas polling on window unload
* lint + comments
* Improve client closed logic
* lint
* Add back _beforeUnload on unmount in gas-modal-page-container
* Add full check and call onClientClosed method for notifcation environment
* Add gas pollingToken tracking to appStateController and use to disconnect polling for each environment type
* remove unused method
* move controller manipulation logic from background.js to metamask-controller, disaggregate methods
* add beforeunload handling to reset gas polling tokens from root of send page
* cleanup, lint and address feedback
* clear appState gasPollingTokens when all instances of all env types are closed, fix pollingTokenType arg from onEnvironmentTypeClosed call in metamask-controller
* mock new methods to fix tests
* final bit of cleanup + comments
Co-authored-by: Dan Miller <danjm.com@gmail.com>
2021-08-04 16:53:13 -05:00
David Walsh
96a13dddb5
Provide pointer cursor for radio group buttons ( #11763 )
2021-08-04 16:37:16 -05:00
Dan J Miller
a950111a19
Show advanced options, and hide radio buttons, for advanced gas settings users ( #11751 )
...
* Show advanced options, and hide radio buttons, for users with advanced gas settings turned on
* Improve naming and copy
* lint fix
* Lint fix
2021-08-04 19:04:42 -02:30
David Walsh
aa3d1f2341
EIP-1559 - Prevent uncaught exception when passing fees to getGasFeeTimeEstimate ( #11759 )
2021-08-04 16:17:20 -05:00
David Walsh
f0daa28fac
EIP-1559 - Temporarily remove the loading heartbeat from the transaction detail ( #11762 )
2021-08-04 16:16:18 -05:00
David Walsh
a3c7bae345
EIP-1559 - Remove unncessary props from AdvancedFormControls ( #11757 )
2021-08-04 16:00:46 -05:00
Dan J Miller
3f4c988018
Ensure gas fees update in popover on poll for new values ( #11760 )
2021-08-04 18:27:14 -02:30
Alex Donesky
4552a53724
remove unnecessary conversion call ( #11742 )
...
* remove unnecessary conversion call
* Pass args to GasTiming as decGwei
* lint
2021-08-04 10:54:40 -02:30
ryanml
7902e62d8f
Fixing errors in EditGasDisplay ( #11748 )
2021-08-04 10:54:07 -02:30
Dan J Miller
b9fb495c7b
Allow max priority fee to be below 1, and only require it to be greater than 0 ( #11749 )
2021-08-04 10:53:52 -02:30
Dan J Miller
61b965a8a2
Allows users to set a max priority fee below suggested, just showing a warning in that case ( #11750 )
2021-08-04 10:53:19 -02:30
Dan J Miller
1acbb39dff
Rename effective gas price field to total gas fee ( #11754 )
2021-08-04 10:52:54 -02:30
Alex Donesky
615380b76d
Remove estimate detail above advanced gas controls in non-1559 network ( #11744 )
...
* Remove estimate detail above advanced gas controls in non-1559 network
* lint
* remove gasEstimate localization text
2021-08-03 14:34:24 -05:00
ryanml
7f0b2a81ce
Fall back to aggregator name when icon is unavailable (Swaps Load View) ( #11718 )
2021-08-03 12:09:39 -07:00
David Walsh
24d563fc2c
EIP-1559 - Show minium native currency in banner when on testnets ( #11743 )
2021-08-03 12:51:02 -05:00
Daniel
deae2d47bf
Fix a position of a tooltip icon ( #11739 )
2021-08-03 18:10:12 +02:00
Alex Donesky
a4927a30ac
Add gasPrice to be used on non-1559 networks for transaction details on confirm screen ( #11741 )
2021-08-03 10:56:49 -05:00
David Walsh
fba662ca2b
EIP-1559 - Provide better validation for gas price and gas limit ( #11736 )
2021-08-03 10:54:49 -05:00
Dan J Miller
7ac1972371
Ensure that gas price in popover updates when api provided estimate updates ( #11727 )
2021-08-02 21:09:21 -05:00
David Walsh
cdbfe0f132
EIP-1559 - Ensure transaction detail font-size and icon colors are consistent with Figma design ( #11735 )
2021-08-02 21:08:20 -05:00
David Walsh
aa08171c72
EIP-1559 - Return null from GasTiming if on non-1559 network ( #11733 )
2021-08-02 21:08:12 -05:00
David Walsh
e2fbc7ce8e
Remove button group for non-EIP-1559 networks ( #11712 )
...
* Remove button group for non-EIP-1559 networks
* Fix tests...maybe
* Remove unnecessary props, as well as gas display
* Remove unused string
* test progress
* fix test
* fix test
* add customizes gas block to improve e2e pass rate
Co-authored-by: Alex <adonesky@gmail.com>
2021-08-02 18:53:13 -05:00
David Walsh
c8b3dfe4e9
EIP-1559 - Fall back to gasLimit and gasPrice for hardware wallets ( #11716 )
2021-08-02 17:52:18 -05:00
Dan J Miller
8481c4b6be
Show warning when network request for fee market estimates fails ( #11724 )
2021-08-02 19:19:07 -02:30
David Walsh
d34bf92fd0
Fix 11705 - Reset gas limit when radio button clicked ( #11710 )
...
* Fix 11705 - Reset gas limit when radio button clicked
* Trigger manual change when gasLimit is changed
* Coordinate gas limit with radio buttons
* Revert "Coordinate gas limit with radio buttons"
This reverts commit 910327a408e32ae989c5565a107db24ac24f2a98.
* Cleanup default gas limit
* setEstimateToUse only update gasLimit on error, add default minimum gasLimit
* add minimum gasLimit fallback
Co-authored-by: Alex <adonesky@gmail.com>
2021-08-02 17:58:30 -02:30
Alex Donesky
c43f6cab63
remove estimate detail in advanced gas controls ( #11728 )
2021-08-02 14:32:43 -05:00
kumavis
7018b43898
improve password-manager metadata attributes ( #11690 )
2021-08-02 10:40:44 -07:00
Dan J Miller
668fd2db66
Ensure that gas fee/prices params are not updated while in send edit stage/mode ( #11620 )
...
* Ensure that gas fee/prices params are not updated while in send edit stage/mode
* Allow editing of txparams gas price when not on eip1559 network, in send flow
2021-08-02 12:17:42 -02:30
David Walsh
4ce6994a6c
Fix #11695 - Prevent maxFee and maxPriorityFee imbalance ( #11700 )
2021-08-02 09:07:29 -05:00
David Walsh
38ff2c937f
Fix #11703 - Provide wiring for approval modal ( #11711 )
2021-08-02 09:07:15 -05:00
David Walsh
81f274303e
EIP-1559 - Only show advanced form toggle when radio buttons are present ( #11713 )
2021-08-01 08:09:53 -05:00
David Walsh
219b0f9bd6
Fix 11709 - Always show fiat on mainnet ( #11714 )
2021-08-01 08:09:24 -05:00
Dan J Miller
9c0e34b264
EIP-1559 - Ensure gas limit is of minimum value ( #11702 )
2021-07-31 08:02:14 -05:00
David Walsh
39823b3800
EIP-1559 - Implement speedup and cancel buttons ( #11701 )
2021-07-31 08:01:29 -05:00
Alex Donesky
8a42258e10
Remove the SHOW_EIP_1559_UI environment variable, replace with network detection where appropriate ( #11694 )
...
Fixing up tests and add back old custom gas modal for non-eip1559 compliant networks
Remove unnecessary props from send-gas-row.component
fix breaking test
Fix primary and secondary title overrides
fix rebase issue
Fix rebase conflict
Co-authored-by: David Walsh <davidwalsh83@gmail.com>
2021-07-30 22:59:21 -02:30
Brad Decker
e0953d9f68
Update send and confirm state management, and tx controller gas defaults, for EIP1559 ( #11549 )
...
wip
Documentation improvements for send slice support of EIP1559
Remove console.log in send duck
Property lookup safety improvement in selectors/confirm-transaction
Add code accidentally removed in rebase
Update addTxGasDefaults and _getDefaultGasFees to work with new estimate types, and ensure we correctly handle gas price estimates when on EIP1559 networks (#11615 )
* Fix typo
Remove console.log in send duck
* Update addTxGasDefaults and _getDefaultGasFees to work correctly with all new gas fee estimate types
* Don't show gas timing support when not on eip1559 compatible network
* Hide gas timing component on transaction screen when on a non-1559 network
* Improve comments, tests and edge case handling
* Ensure eip1559 fees are applied and updated correctly when eip1559 estimate api fails
* Lint fix
Co-authored-by: Brad Decker <git@braddecker.dev>
Remove console.log
Handle possible gasEstimateType undefined
Remove unnecessary nonce field position change in confirm-page-container-content__details
2021-07-30 22:15:18 -02:30
Dan J Miller
f1140087b7
Adds insufficient gas error to edit-gas-display ( #11524 )
2021-07-30 20:16:31 -02:30
Dan J Miller
a1f8a65519
Ensure correct conversion of data before calling getGasFeeTimeEstimate ( #11697 )
2021-07-30 19:41:55 -02:30
Daniel
fa703173a0
Fix Jest unit tests ( #11687 )
...
* Fix Jest unit tests
* Provider correct getGasFeeTimeEstimate call to Gas Timing
* Fix tests for correct getGasFeeTimeEstimate method name
* Rename instances to getGasFeeTimeEstimate
Co-authored-by: David Walsh <davidwalsh83@gmail.com>
Co-authored-by: Dan Miller <danjm.com@gmail.com>
2021-07-30 15:10:41 -02:30
Daniel
24f5cc009b
Pass "maxFeePerGas" to the <GasTiming> component from Swaps ( #11684 )
2021-07-30 15:19:30 +02:00
David Walsh
e283c03c4e
EIP-1559 - Improve gas timing logic to show more accurate verbiage ( #11668 )
2021-07-30 08:00:02 -05:00
Daniel
714170c7b8
EIP-1559 and Rinkeby Testnet support in Swaps ( #11635 )
2021-07-30 13:35:30 +02:00
David Walsh
cbfde8a080
EIP-1559 - Fix duplicated networkSupports1559 variables ( #11679 )
2021-07-30 05:11:27 -05:00
Alex Donesky
583c115663
remove estimation appearance from edit-gas-popover on non-1559 networks ( #11673 )
2021-07-29 18:29:36 -05:00
Dan J Miller
b4722ff81d
Fix to having radio buttons in advanced gas inputs pre-selected ( #11669 )
...
* Ensure fees match in use gas inputs
* Lint fix
2021-07-29 16:00:21 -02:30
David Walsh
990a278177
EIP-1559 - Only show radio group and gas timing when network supports 1559 ( #11659 )
2021-07-29 13:13:14 -05:00
David Walsh
15cbe4e9a0
EIP-1559 - Allow decimals for maxFeePerGas and maxPriorityFeePerGas ( #11664 )
2021-07-29 10:59:14 -05:00
David Walsh
0849738003
EIP-1559 - Don't hide advanced form when radio button is chosen ( #11643 )
2021-07-29 10:14:48 -05:00
David Walsh
6d1fb911dc
EIP-1559 - Fix education links ( #11650 )
2021-07-29 09:18:13 -05:00
Dan J Miller
aaa15cbe03
Add support for EIP1559 transactions to transaction breakdown ( #11622 )
...
* Add support for EIP1559 transactions to transaction breakdown
* Use userPreferencedCurrencyDisplay for effective gas price in transaction breakdown
* Hide eip1559 gas properties in transaction breakdown on non-1559 networks
* Add comment explaining gasPrice and effectiveGasPrice usage in transaction breakdown container.
2021-07-28 15:00:34 -02:30
ryanml
52bac60a22
Fixing confirmation layout when dapp has suggested a price (EIP-1559) ( #11634 )
2021-07-28 11:29:55 -05:00
Dan J Miller
9a81b826c5
Only show dapp suggested gas fee warning if user has not edited the fee ( #11621 )
2021-07-27 20:01:53 -02:30
David Walsh
604524f94d
EIP-1559 - Restore custom values in Edit Gas Popover ( #11589 )
...
* EIP-1559 - Restore custom values in Edit Gas Popover
* Provide method to tell which radio button the user may have selected
* Use lodash's findKey
* Add case for legacy gas
* Use gas instead of gasLimit
* Remove unnecessary deletion and todo
2021-07-27 17:12:56 +02:00
ryanml
813eef6080
Trimming whitespace in ENSInput ( #11631 )
2021-07-27 07:53:13 -07:00
Daniel
709369dc14
Fix default tooltip color ( #11633 )
2021-07-27 15:20:01 +02:00
Dan J Miller
f4d294714a
Ensure origin shows in gas popover dapp suggested gas fee warning ( #11618 )
2021-07-26 21:13:05 -02:30
David Walsh
fab9cfde03
EIP-1559 - Provide data wiring for Gas Timing component ( #11462 )
2021-07-26 10:35:51 -05:00
David Walsh
a2be02dfeb
EIP-1559 - Show gas estimate updating animation in transaction detail ( #11566 )
2021-07-26 10:24:44 -05:00
David Walsh
6986e76adc
EIP-1559 - Show advanced form controls by default when user has selected custom values or there are gas warnings/errors ( #11590 )
2021-07-26 09:17:23 -05:00
ryanml
d092e4bdbe
Fixing type issue with auto-filled custom token decimals value ( #11604 )
2021-07-26 07:08:10 -07:00
ryanml
d03dc311ee
Adding hex address guard to input validation for token sends ( #11608 )
2021-07-26 07:07:57 -07:00
Dan J Miller
02318df48c
Ensure that the send flow state recipient nickname gets set if recipient address is in addressBook ( #11610 )
2021-07-26 07:03:05 -07:00
Daniel
868d932165
Check for the "fromToken" existance before checking decimals ( #11606 )
2021-07-26 10:15:13 +02:00
David Walsh
5d92836c8c
EIP-1559 - Provide the nonce field in the new transaction display ( #11598 )
2021-07-25 09:56:24 -05:00
David Walsh
cd4521fb12
EIP-1559 - Allow wrapping for dapp suggested origin ( #11602 )
2021-07-24 15:40:51 -05:00
Dan J Miller
2ac7b27876
Fix sending maximum of an ERC20 token ( #11594 )
...
* Fix sending maximum of an ERC20 token
* Always update gas limit when send amount updates
2021-07-23 17:40:40 -07:00
David Walsh
4e87069af3
EIP-1559 - Prevent Max Fee and Max Amount from wrapping on confirmation screen ( #11591 )
2021-07-23 08:39:10 -05:00
ryanml
8cb1557f1c
Adding method to capture one-time Sentry exceptions ( #11553 )
2021-07-22 16:13:40 -07:00
ryanml
a96af9e5fc
No longer deconstructing account menu ref if it isn't rendered ( #11585 )
2021-07-22 11:42:44 -07:00
ryanml
68c852f7c9
Validating seed phrase in restoration flow ( #11586 )
2021-07-22 10:34:53 -07:00
Daniel
a17c4462b4
Add token decimals validation in Swaps ( #11587 )
...
* Add token decimals validation in Swaps
* Use camelCase
2021-07-22 19:29:31 +02:00
David Walsh
c1d96676b5
EIP-1559 - Implement new verbiage for transaction detail subtext ( #11569 )
2021-07-22 11:33:34 -05:00
David Walsh
286fd397f8
EIP-1559 - Maintain changed form values and unselect radio buttons when user customizes form value ( #11577 )
2021-07-22 11:32:59 -05:00
Dan J Miller
ac15b3b465
Ensure send slice gas loading state is set to false upon gas estimation error ( #11581 )
2021-07-21 16:00:00 -02:30
David Walsh
859a82d428
EIP-1559 - Ony show orange confirmation heading when fee is Dapp suggested ( #11570 )
2021-07-21 07:54:32 -05:00
David Walsh
6d92759853
EIP-1559 - Implement form validation for EIP-1559 ( #11540 )
...
* Restructure advanced gas form errors
* Use shared constant for gas errors
* Add validation for fields too low
* Add warnings for high max fee and max priority fee
* Fix lint
* Fix priority fee high warning string
2021-07-20 14:34:32 -05:00
Daniel
594025a198
Add support for Polygon ( #11545 )
...
* Fix a check for EIP presense
* Add support for Polygon
* Update default Polygon URL
* Trigger Build
* Use a more user-friendly error message for disabled Swaps API calls
2021-07-20 19:17:15 +02:00
Etienne Dusseault
96b0730a89
add confirm-encryption-public-key component to Storybook ( #11364 )
...
* confirm-encryption-public-key
* lintfix
* lintfix
2021-07-20 09:29:38 -07:00
David Walsh
e0ba3eb6fc
Fix actionable message icon size ( #11547 )
2021-07-16 21:36:35 -05:00
ryanml
e60e371105
Improve handling for block explorer url host extraction ( #11543 )
2021-07-16 11:52:41 -07:00
Dan J Miller
6f0e54aa26
Implement modern design for error messages ( #11521 )
2021-07-16 13:06:48 -05:00
David Walsh
493448c96e
EIP-1559 - Don't show submit button when in education mode, don't duplicate title ( #11541 )
2021-07-16 11:19:09 -05:00
Brad Decker
dc25a24de3
rely upon gas fee controller for gas price estimates ( #11511 )
2021-07-16 11:06:32 -05:00
David Walsh
d8984d3cf3
EIP-1559 - Provide Updated UI for Dapp-Suggested Gas fees ( #11523 )
2021-07-16 10:00:03 -05:00
Niranjana Binoy
d33b841fb8
Adding TokenListController to Metamask-Controller ( #11515 )
2021-07-15 19:08:16 -04:00
ryanml
b21b139653
Handling non-numeric input for chain id in network form ( #11537 )
2021-07-15 14:11:43 -07:00
Brad Decker
4aab4887d5
add MODIFY_IN_PLACE as mode prop on edit-gas-popover ( #11527 )
...
This is necessary for the submit method to call the right background process
2021-07-15 12:31:51 -05:00
David Walsh
8e5ebfb05a
EIP-1559 - Disable gas form submission if estimates are loading state ( #11525 )
2021-07-15 12:24:03 -05:00
David Walsh
1665617378
Create different label for Gas Price with GWEI included ( #11526 )
2021-07-15 12:23:54 -05:00
David Walsh
c241d3150c
EIP-1559 - Provide tooltip text for all advanced gas controls ( #11529 )
2021-07-15 12:23:37 -05:00
David Walsh
c1064e0c50
EIP-1559 - Only show education link if on 1559-compatible network ( #11535 )
2021-07-15 12:22:55 -05:00
David Walsh
a294f02b1d
EIP-1559 - Elevate gas properties to the Popover, disable submission if errors ( #11510 )
2021-07-14 11:45:37 -05:00
David Walsh
91e744a705
EIP-1559 - Provide edit button for transaction screens to update gas ( #11516 )
2021-07-14 08:42:10 -05:00
ryanml
bbef49158d
Various UI fixes ( #11512 )
2021-07-13 19:06:12 -07:00
David Walsh
90180627cb
Using translation for edit text ( #11514 )
2021-07-13 14:22:33 -05:00
David Walsh
97d9cdff80
Provide EIP 1559 fields in transaction history ( #11464 )
2021-07-13 08:42:36 -05:00
Brad Decker
9416d1ca71
provide skeleton for submitting gas form ( #11496 )
2021-07-12 14:35:54 -05:00
ryanml
f15a68b923
Fixing invalid prop type in ConfirmPageContainerHeader ( #11500 )
2021-07-12 10:13:09 -07:00
David Walsh
1da7beed13
Provide Estimate Data to EditGasDisplay ( #11433 )
2021-07-12 11:16:03 -05:00
Brad Decker
c3e6514c35
add useGasInputs hook ( #11480 )
2021-07-09 13:26:54 -05:00
Dan J Miller
809b93dd77
Ensure simple send gas estimation happens after the recipient is iden… ( #11485 )
...
* Ensure simple send gas estimation happens after the recipient is identified
* Update ui/ducks/send/send.test.js
Co-authored-by: Alex Donesky <adonesky@gmail.com>
* Improve test name
* Lint fix
Co-authored-by: Alex Donesky <adonesky@gmail.com>
2021-07-09 15:39:43 -02:30
Brad Decker
36ab817858
add edit button support to transaction-detail-item ( #11481 )
2021-07-09 13:08:15 -05:00
Daniel
d438439661
Swaps: Add conditional routing to new APIs based on a feature flag ( #11470 )
2021-07-09 10:24:00 -05:00
Brad Decker
f51a8451b8
add useGasEstimates hook ( #11479 )
2021-07-09 10:23:45 -05:00
Alex Donesky
2cb807dc20
fix up ens/hex address validation error handling ( #11477 )
...
* fix up ens/hex address validation error handling
* fix lint/tests
2021-07-09 09:17:02 -05:00
Brad Decker
68dfc98f40
wire up gasFeeController ( #11421 )
2021-07-08 15:23:00 -05:00
Brad Decker
64adfe7b11
update speedup and cancel to make room for EIP-1559 ( #11407 )
...
* prepare for EIP1559 gas fields in speedup/cancel
* Update ui/components/app/gas-customization/gas-modal-page-container/gas-modal-page-container.container.js
2021-07-08 13:48:23 -05:00
Alex Donesky
0ca0f1784e
Add recovery-phrase views for new onboarding flow ( #11434 )
...
* add recovery-phrase views for new onboarding flow
* black => ui-black
* minor syntax improvement
2021-07-07 19:10:12 -05:00
Alex Donesky
b1e2005a73
Add form-field component and new account view ( #11450 )
...
* add generic form-field component
* swap in new form-field component for advanced-gas-controls-row
* add new create password view for redesigned onboarding flow
* make text additions translatable
2021-07-06 17:19:11 -05:00
ryanml
68ad9c619f
Adding copy icon to home screen account address ( #11460 )
...
* Adding copy icon to home screen account address
Fixes MetaMask/metamask-extension#10145
* Using margin-inline-start
2021-07-06 11:17:13 -07:00
Brad Decker
da9fb4636b
move conversion utils to shared folder ( #11451 )
2021-07-06 12:48:49 -05:00
ryanml
a835f00ba6
Fixing leading zero when amount input is focused ( #11459 )
...
Fixes MetaMask/metamask-extension#11146
2021-07-06 10:44:46 -07:00
David Walsh
6fa3cce7ab
Create Gas Timing component for EIP-1559 ( #11405 )
2021-07-02 14:12:13 -05:00
David Walsh
afe06adb7a
Add icon to actionable message component ( #11409 )
2021-07-02 14:07:56 -05:00
David Walsh
e097a02607
Provide tooltip for 1559 Gas Price field ( #11436 )
2021-07-02 14:07:34 -05:00
Daniel
8ca0d24f82
Increase Jest unit test coverage for the Swaps feature to ~60% ( #11343 )
2021-07-02 08:48:34 -05:00
Dan J Miller
bda4d0cbca
Add list of custom networks with special gas limit buffers ( #11435 )
2021-07-01 19:18:30 -02:30
David Walsh
310531eeb6
EIP 1559 - Provide a GWEI label for advanced gas control fields ( #11419 )
2021-07-01 09:37:00 -05:00
David Walsh
64644ad380
Implement Dapp Acknowledgement screen for editing gas ( #11424 )
2021-07-01 09:36:48 -05:00
ryanml
43b7eab46a
Fixing invalid minimumGasLimit prop (AdvancedGasInputs) ( #11412 )
2021-06-30 23:41:39 -07:00
Dan J Miller
a60301686c
Ensure that eth_estimateGas is called to estimate gas limit for simple sends on custom networks ( #11418 )
...
* Ensure that eth_estimateGas is called to estimate gas limit for simple sends on custom networks
* getIsNonStandardEthChain returns false when in test
* Add comment explaining gas limit buffer multipliers in estimateGasLimitForSend
2021-06-30 23:24:47 -02:30
Dan J Miller
18464793f5
Fix gas-modal-page-container.container check for custom gas price safety ( #11426 )
...
* Fix gas-modal-page-container.container check for custom gas price safety
* Ensure gas price has been fetch before checking for price safety on testnets
2021-06-30 15:56:34 -02:30
Alex Donesky
ad6715511e
make network-display component only clickable when passed a function for onClick ( #11379 )
2021-06-30 13:21:48 -05:00
Alex Donesky
433cf6339d
refix the instance of unsafe destructuring I had introduced and fixed and then reintroduced ( #11428 )
2021-06-30 13:20:13 -05:00
David Walsh
36d3770b42
EIP-1559 - Implement TransactionDetail for confirmations ( #11404 )
2021-06-30 11:58:18 -05:00
sooyoung
9e86a03afa
add scroll function to jump to the top of screen ( #11386 )
...
* add scroll function to jump to the top of screen
* moved the scroll function from transaction-list.js to asset.js
2021-06-29 15:08:31 -05:00
Brad Decker
844a021fcd
remove ui lookup of lastGasPrice field ( #11411 )
2021-06-29 11:02:00 -05:00
Alex Donesky
352102438f
add ChipWithInput component ( #11392 )
2021-06-28 16:09:48 -05:00
David Walsh
d68f8f27c6
Implements the new EIP1559 UI components ( #11384 )
2021-06-28 09:45:08 -05:00
Brad Decker
23a859826f
add method to detect EIP 1559 support ( #11369 )
2021-06-25 11:24:00 -05:00
Daniel
a1d7271ed7
Call Wyre’s API via our backend to generate Wyre’s Checkout URL ( #11387 )
...
* Call Wyre’s API via our backend to generate Wyre’s Checkout URL
* Add back paymentMethod=debit-card, use a fallback URL if no url is returned from BE
* Fix a lint issue
* Refactor how to return Wyre’s Checkout URL
* Add 2 constants into a test file, refactoring
2021-06-25 09:52:29 -05:00
Daniel
ba3f51d6ed
Add support for fiat on-ramp via Transak ( #11376 )
2021-06-25 08:10:24 -05:00
ryanml
a69ed05141
Removing obsolete client-side transaction metrics events ( #11329 )
...
* Removing metametrics send count tracking
* Removing client side Transaction Completed and Canceled events
2021-06-24 15:37:44 -07:00
Dan J Miller
87166afb6b
Use eth_gasPrice result for setting too low warning on custom networks ( #11370 )
...
* Use eth_gasPrice result for setting too low warning on custom networks
* Assume CustomPriceSafeForCustomNetwork when there is no custom price set (it will default to recommended)
2021-06-24 14:29:47 -02:30
Alex Donesky
a6e16f458e
Adding edit navigation button flow back to send token flow ( #11335 )
2021-06-23 18:50:24 -05:00
David Walsh
6fa36cdf51
Provide New UI Components for EIP-1559 Designs ( #11357 )
2021-06-23 18:39:44 -05:00
David Walsh
85de65f470
Prevent propType errors in for TransactionIcon statuses ( #11316 )
2021-06-23 18:39:06 -05:00
Alex Donesky
a4a5580785
Update controllers with conversionRate change with minimal required changes in extension ( #11361 )
...
* updating controllers with conversionRate change with minimal required changes in extension
* swapping showFiat selector in places where possible
* adding invalid conversion protection
* lint fixes
* adjusting list-item styling logic
2021-06-23 18:28:49 -05:00
Brad Decker
c30cb7d33a
Refactor send page state management ( #10965 )
2021-06-23 16:35:25 -05:00
ryanml
a171ac7b34
Allowing custom rpc form submission when chainId is a duplicate ( #11363 )
2021-06-23 09:14:38 -07:00
Alex Donesky
e10ddbe3a3
add erc-721 token detection and flag to disable sending ( #11210 )
...
* add erc-721 token detection and flag to disable sending
* addressing feedback
* remove redundant provider instantiation
* fix issue caused by unprotected destructuring
* add tests and documentation
* move add isERC721 flag to useTokenTracker hook
* Update and unit tests
* use memoizedTokens in useTokenTracker
Co-authored-by: Dan Miller <danjm.com@gmail.com>
2021-06-22 12:39:44 -05:00
ryanml
f1f2a01c76
Using fixed positioning for home notifications ( #11356 )
2021-06-21 15:51:09 -07:00
ryanml
e144bbd356
Adding gasEstimateType to 'Changed Gas Button' metrics event ( #11352 )
...
Adding 'Changed Gas Button' metrics event
2021-06-21 12:02:51 -07:00
Alex Donesky
27389fc71e
fix unsafe destructuring instance ( #11351 )
2021-06-21 09:28:35 -05:00
ryanml
64835b1457
Fixing untranslated text in ConfirmApproveContent ( #11339 )
2021-06-17 11:40:36 -07:00
sooyoung
3c2e83dff3
fix 'confirm popup' ui ( #11331 )
2021-06-17 09:26:58 -05:00
David Walsh
a08d927681
Make MAX button accessible ( #11322 )
2021-06-16 10:00:19 -05:00