1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
Commit Graph

37 Commits

Author SHA1 Message Date
Etienne Dusseault
6b7444c257
Add add-recipient to Storybook () 2021-09-20 14:05:58 -05:00
Jyoti Puri
ade9e4ac4b
Changing cancel button labels in send screen when in editing stage ()
* 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
kumavis
f472c2615a
CI - add metamaskbot comment "highlights" section for showing relevant storybook changes ()
* 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
Etienne Dusseault
3e0d79d251
Add send-gas-row to Storybook () 2021-09-13 16:05:42 -05:00
Etienne Dusseault
aec31cc8b7
Add send-footer to Storybook () 2021-09-13 16:05:17 -05:00
Alex Donesky
490d3b8d40
Integrate TokensController ()
* Integrate controllers/tokensController

* address rebase issues

* small cleanup

* addressing feedback

* more feedback
2021-09-10 12:37:19 -05:00
ryanml
4cc4092e1f
Merge pull request from BboyAkers/aakers/7397
Disabled spell-check on ens input
2021-09-08 10:00:19 -07:00
Alex Donesky
dcebf49032
fix contact settings layout issues () 2021-09-03 10:54:20 -05:00
Etienne Dusseault
48c5c07ded
send-content () 2021-08-30 13:05:02 -10:00
Etienne Dusseault
1a0276fc6e
gas-fee-display () 2021-08-30 13:03:47 -10:00
Austin Akers
6875d15e5f disabled spell-check on ens input 2021-08-28 19:16:19 -07:00
Elliot Winkler
0d63aa0402
Update header on Send page to be more accurate ()
Change "Add Recipient" to "Send to".
2021-08-20 09:44:41 -06:00
ryanml
428b86fcf3
Hardening clipboardData handling in EnsInput () 2021-08-12 15:30:07 -07:00
Alex Donesky
d359429f04
Stop GasFeeController polling when pop closes ()
* 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
e2fbc7ce8e
Remove button group for non-EIP-1559 networks ()
* 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 () 2021-08-02 17:52:18 -05:00
Alex Donesky
8a42258e10
Remove the SHOW_EIP_1559_UI environment variable, replace with network detection where appropriate ()
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 ()
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 ()

* 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
ryanml
813eef6080
Trimming whitespace in ENSInput () 2021-07-27 07:53:13 -07:00
Brad Decker
dc25a24de3
rely upon gas fee controller for gas price estimates () 2021-07-16 11:06:32 -05:00
Alex Donesky
2cb807dc20
fix up ens/hex address validation error handling ()
* 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 () 2021-07-08 15:23:00 -05:00
Brad Decker
da9fb4636b
move conversion utils to shared folder () 2021-07-06 12:48:49 -05:00
Brad Decker
c30cb7d33a
Refactor send page state management () 2021-06-23 16:35:25 -05:00
Alex Donesky
e10ddbe3a3
add erc-721 token detection and flag to disable sending ()
* 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
e144bbd356
Adding gasEstimateType to 'Changed Gas Button' metrics event ()
Adding 'Changed Gas Button' metrics event
2021-06-21 12:02:51 -07:00
David Walsh
a08d927681
Make MAX button accessible () 2021-06-16 10:00:19 -05:00
ryanml
22c2d261b9
Fixing unlocalized strings () 2021-06-12 15:25:24 -07:00
Brad Decker
9e509d0c9d
Relocate send state into send duck from metamask duck () 2021-06-10 12:53:15 -05:00
Dan J Miller
432d6508ba
Stringify gas estimate in backend, before it is serialized and sent to ui ()
* Stringify gas estimate in backend, before it is serialized and sent to ui

* Fix send.utils.test.js
2021-06-09 22:18:05 -02:30
Brad Decker
b073b04789
move metamask state selectors out of send () 2021-06-08 11:03:59 -05:00
Brad Decker
df9bc52e9f
Add gas constants () 2021-06-08 10:25:48 -05:00
ryanml
6640973858
Fixing jest component test output errors ()
* Adding missing required props to component tests

* Removing unused IntroPopup component

* Mocking useLayoutEffect as useEffect in confirm-page-container-header.component.test.js
2021-05-20 11:28:25 -07:00
Brad Decker
d9a2165f69
use safer toChecksum utility () 2021-05-17 16:19:39 -05:00
Brad Decker
9386e3cb03
create safer isValidAddress method () 2021-05-17 14:00:59 -05:00
Dan J Miller
d62329fd0a
Use isValidAddress helper instead of ethereumJsUtil.isValidAddress, when appropriate () 2021-05-11 16:53:50 -02:30
Brad Decker
09d81ac5f2
remove the ui/app and ui/lib folders () 2021-04-28 14:53:59 -05:00