Thomas Huang
0bbcbe6e90
Continue converting tests from enzyme to @testing-library/react ( #15956 )
...
* Update mock state data
* Convert App Header test to tlr.
* Convert Gas Timing test to tlr.
* Convert Account Details Modal to tlr.
* Update Sig Req test to match mock state changes.
* Add test-ids to Editable Label for Account Details Modal
* Adjust selectors test for the mock state update.
* Add back gasIsLoading for selectors test.
2022-09-27 08:03:26 -07:00
Nicolas Ferro
3f801e377d
Ability to buy tokens with Moonpay ( #15924 )
...
* Ability to buy tokens with Moonpay
* fix for test cases failing
* updated description for MoonPayChainSettings type
* removed test results
2022-09-23 09:38:40 -07:00
Frederik Bolding
4eb8e50800
[FLASK] snaps-skunkworks@0.21.0
( #15889 )
...
* snaps-skunkworks@0.21.0
* Update policy files
* Regen policies again
* Fix tests
* Simplify selector
* Fix flaky test
* Update iframe execution env
* Move snap install warnings to util
* Add basic copy for snap_getBip32PublicKey
* Update permission icon
* Update E2Es
* Fix lint
* Fix locale strings
2022-09-23 12:39:54 +02:00
Guillaume Roux
c9dc59ea2a
[FLASK] Snaps Insight ( #15814 )
...
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
Co-authored-by: Hassan Malik <41640681+hmalik88@users.noreply.github.com>
2022-09-20 19:00:07 +02:00
Frederik Bolding
d054175b2e
[FLASK] Fix an issue with installing and updating snaps with 0 permissions ( #15796 )
...
* Fix an issue with installing snaps with 0 permissions
* Fix some issues
* Fix lint
* Fix code fencing
* UI improvements for no permission use-case
* Fix redirect
* Delay BIP44 test slightly
* Add more delay
* Fix update UI
2022-09-20 14:46:25 +02:00
Dan J Miller
5b917444d4
Revert "Ensure that 'tokens found in this account' message is only shown when token detection activated ( #15823 )" ( #15879 )
...
This reverts commit b359844dc5
.
2022-09-19 15:41:48 -02:30
Dan J Miller
17b7b72886
Ensure the seed phrase reminder is displayed with precedence over the network deprecation warning ( #15869 )
...
* Ensure the seed phrase reminder is displayed with precedence over the network deprecation message
* Prevent error when attempting to get balance before account info has been fully sete
* Fix implementation of seedphrase-reminder-display-fix
* Prioritize seed phrase reminder notification over portfolio tooltip, and that tooltip over testnet deprecation
2022-09-19 15:10:30 -02:30
Nicolas Ferro
1b563188bf
Ability to buy tokens with Coinbase Pay and Transak ( #15551 )
...
Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com>
Co-authored-by: Brad Decker <git@braddecker.dev>
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2022-09-19 10:00:57 -05:00
Filip Sekulic
6e13524bcd
Remove related UI code from the app dir ( #15384 )
...
Co-authored-by: metamaskbot <metamaskbot@users.noreply.github.com>
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
Co-authored-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
2022-09-16 14:05:21 -05:00
Dan J Miller
3a25733fa6
Add notification about the merge ( #15846 )
2022-09-15 12:51:01 -02:30
Dan J Miller
e5da67515c
Ensure network info popup only displays on networks where the user has no balances ( #15821 )
2022-09-14 10:35:59 -05:00
Dan J Miller
b359844dc5
Ensure that 'tokens found in this account' message is only shown when token detection activated ( #15823 )
2022-09-14 10:35:14 -05:00
Brad Decker
c87980bbfe
migrate network constants to typescript ( #15610 )
2022-09-14 09:55:31 -05:00
Olusegun Akintayo
453340d12a
Show 3box deprecation message in whats new ( #15763 )
...
* Show 3box deprecation message in whats new
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* Add . after message
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* Change deprecation notification message and remove date
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
2022-09-13 22:51:46 +04:00
Matthew Epps
dcfe80c255
Add entry point for metalabs dapp into metamask home page ( #15407 )
...
Co-authored-by: Dan Miller <danjm.com@gmail.com>
2022-09-13 08:41:58 -05:00
Filip Sekulic
365bf11fdd
New network info popup ( #13319 )
2022-08-23 10:04:07 -05:00
Niranjana Binoy
6e5c2f03bf
Token detection V2 Flag Removal and Re-introducing the use of legacy token list when token detection is OFF ( #15138 )
...
* addding the legacy tokenlist, tuning token detection OFF by default, adding new message while importing tokens
updating the controller version and calling detectNewToken on network change
fixing rebase error
Run yarn lavamoat:auto for updating policies
updating lavamoat
Deleted node modules and run again lavamoat auto
fixing rebase issues
updating lavamoat policies
updating lavamoat after rebasing
policies
updating custom token warning and blocking detectedtoken link when tpken detection is off for supported networks
to update the token in fetchTosync
updating the contract map object
Revert build-system lavamoat policy changes
Move token list selection logic from components to getTokenList selector
updating the tokenList
Update lavamoat
Fix error
updating lavamoat
lint fix
fix unit test fail
fix unit test fail
lint fix
fixing rebase locale error
rebase fix
Revert build-system policy changes
temp
addressing review comments
* rebase fix
2022-08-09 22:56:25 -02:30
Hassan Malik
a7179a6b88
[FLASK] Add update snap UI ( #15143 )
...
* added snap-update folder
* addded update route, snap update component, updated permissions connect components
* added actions and selectors
* updated permissions selectors and updated permissions connect container to have update snap logic
* updated translations, added selector, updated request object
* updated translations, added update snap permission list component
* more fixes
* added CSS, redid some HTML
* lint fixes
* Add missing grantPermissions action
* updated button padding
* fixes
* removed prop type
* fix Update & Install wrapping
* made changes for forthcoming snap controller PR
* removed ununsed imports
* updated css
* re-added padding rule and removed unused translation messages
* addressed comments
* add subtext for new permissions
* lint fix
* removed unused translations
* some more changes
* fix e2e tests
* lint fix
* added in delay for e2e tests
* Revert "added in delay for e2e tests"
This reverts commit 095962a2c0c9de0b0b343d3134bb0787044dd8ce.
* fixed routing logic
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
Co-authored-by: Guillaume Roux <guillaumeroux123@gmail.com>
2022-08-03 12:02:44 -04:00
Alex Donesky
713399cb88
add access protection to the getNativeCurrencyImage selector in case it is the source of a mysterious bug on firefox ( #15425 )
2022-08-02 20:06:11 -05:00
Filip Sekulic
ea247d4e4a
Fix 'block link explorer on custom networks' ( #13870 )
...
* Created a logic for the 'Add a block explorer URL'
Removed unused message
Message logic rollback
Modified history push operation
WIP: Pushing before rebasing
Applied requested changes
Removed unintenionally added code
* Lint fix
* Metrics fixed
2022-08-02 16:56:02 -05:00
Brad Decker
c72199a1a6
update prettier ( #15360 )
2022-07-31 13:26:40 -05:00
Brad Decker
652d631cda
remove exclusions for mismatched object jsdoc type casing ( #15351 )
2022-07-27 08:28:05 -05:00
Brad Decker
1db0ee87ec
Update Eslint and deps ( #15293 )
2022-07-26 13:10:51 -05:00
ryanml
e38cc863a4
Remove dark mode and transaction insights announcements ( #15279 )
2022-07-18 16:41:10 -07:00
ryanml
9e63a9a449
Adding "What's New" Notification for Add Popular networks ( #15121 )
...
* Adding "What's New" Notification for Add Popular networks
* Adding action text to notification
* Addressing review feedback
* Flag removal
2022-07-14 11:08:32 -07:00
Brad Decker
94967072f7
Remove global transaction state from send flow ( #14777 )
...
* remove global transaction state from send slice
* fixup new test
2022-07-01 08:58:35 -05:00
Filip Sekulic
43f7a44c25
Adding popular custom network integration ( #14557 )
...
* Initial push
* Refactored the code
* Additional code
* Removed the unused message
* Added a tooltip
* Fixed tests
* Lint fix
* Added style to a tooltip
* Fix e2e test failure
* Lint fix and code revert
* Fix e2e test
* Fixed paddings
* Fixed paddings
* CSS fix
* Minified svg files
* Applied requested changes
* Fixed theme issue
* Code revert
* Added back overridden code
* Icon problem fixed
* Lint fix
* Replaced H3 with H4
* Added unit test
* Added breadcrumbs
* Added const props for networks
* Lint fix
* Lint fix
* Added toggle button for showing the custom network list and resolved few issues
* Fixed routes
* Refactored a piece of code
* Enabled searching for the newly created option
* Fixed unit test
* Updated theme
2022-06-30 13:49:07 -02:30
VSaric
136218893b
Fix contact address pet name ( #14613 )
...
* The contact pet name isn't replaced by the recipients address
* Create getEnsResolutionByAddress selector and use it in the codebase
* Modified the getRecipient selector such that it returns an ens resolution as the nickname if a nickname isn't present but a ens resolution is.
* Update ui/ducks/send/send.js
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
* Checked if ens resolution is present in the getRecipient selector
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2022-06-13 11:18:33 -05:00
Guillaume Roux
b599035a12
Snap notifications integration ( #14605 )
...
* begin controller implentation
* add NotificationController
* create selectors and actions
* update actions tu use forceUpdateMetamaskState
* Basic notification UI
* fix typo and remove console.log
* lint
* more css
* add notifications scroll
* add translations and fix some css
* Fix rebase and edit colors
* add flask tags
* add flask tag to routes component
* add missing flask tags
* add tests
* fix tests
* store notification expiration delay in constant
* address requested changes
* rename to unreadNotificationsCount
* add missing flask tag
2022-06-01 19:09:13 +02:00
benlwyre
f6643e853c
Add fiat onboarding for AVAX and MATIC through Wyre ( #14683 )
2022-05-27 11:04:26 -05:00
dragana8
a0c4febfce
"Cancel/reject all" for signature requests #13201 ( #13786 )
2022-05-16 13:36:19 -05:00
Lachlan Tweedie
eee4cc3100
Add Coinbase Pay as fiat onramp option ( #14648 )
2022-05-12 18:27:49 -05:00
Erik Marks
4b2cd0ef7a
Fix Snaps view search ( #14693 )
...
Closes #14687
Snap IDs were not properly encoded (and decoded) as URI components in the Snaps view search implementation. This ensures that they are.
2022-05-11 13:14:53 -07:00
Niranjana Binoy
0a10b425ea
Add New Tokens Found page ( #14366 )
2022-05-09 13:47:06 -04:00
Daniel
2bd7127433
Swaps / STX improvements ( #14622 )
2022-05-09 18:48:14 +02:00
Frederik Bolding
27ad7279cd
Rename NotificationController to AnnouncementController ( #14389 )
...
* Rename NotificationController to AnnouncementController
* Fix test
* Add test for missing NotificationController state
* Bump controllers
* Move test to correct file
* Rename config key
* Add migration 71 to list of migrations
* Fix selector after migration
2022-04-27 10:36:32 +02:00
Brad Decker
f567a3fe86
Do not show failed off-chain transactions details when grouped with another valid transaction of same nonce ( #14497 )
...
* fix failed off chain tx mismatch with next confirmed transaction
* dont drop failed txs when tx in confirmed
* add comment for reassigning logic
* resolve change requests
2022-04-25 14:39:34 -05:00
Brad Decker
8f47c19b9d
increase test coverage of nonce sorted transaction selector ( #14486 )
2022-04-21 12:33:44 -05:00
Dan J Miller
b1df04c253
Disable swaps whenever the environment is not development or testing, so that behaviour follows production for QA purposes ( #14499 )
2022-04-21 09:19:34 -07:00
Brad Decker
488d64ae8b
increase test coverage of nonce sorted transaction selector ( #14479 )
2022-04-21 09:45:31 -05:00
Hassan Malik
308c6e4fe3
Add snaps view search ( #14419 )
...
* add snaps view search
* add snaps view search
* fix to add in settings constants
* removed spread
* remove unused import
* add fencing
* more fencing
* ternary refactor, updated settings tests
* refactor
2022-04-19 11:08:09 -04:00
Daniel
9403ee9c7a
Disable Swaps on Rinkeby for production ( #14372 )
...
* Disable Swaps in Rinkeby for production
* Use arrays instead of objects for allowed chain ids
* Trigger Build
2022-04-14 17:02:38 +02:00
Niranjana Binoy
455d4a9825
Update DetectTokenController for token detection V2 ( #14216 )
2022-04-13 12:23:41 -04:00
David Walsh
af963d7f7b
Dark Mode: What's New Announcement ( #14346 )
2022-04-05 14:55:00 -05:00
Niranjana Binoy
9f7c4eb658
Enable Token search functionality on supported networks ( #14034 )
2022-03-31 09:48:05 -04:00
Niranjana Binoy
4e6d61abcb
Update What's new screen with Token Detection information ( #14124 )
2022-03-29 17:41:58 -04:00
Dan J Miller
09512c7148
Improvements for multi-layer fee UX ( #13547 )
...
* Show fiat on confirm screen on multilayer-fee network
* Disable gas editing on optimism
* Fix send max mode on optimism
* Represent layer 2 gas fee as a single value
* Hide gas fee edit UI on optimism
* Improvement multilayer-fee-message styling
* Lint fix
* Fix locales
* Remove unnecessary code change
Co-authored-by: David Walsh <davidwalsh83@gmail.com>
2022-03-29 16:51:45 -02:30
Daniel
95f830438a
Add a new fiat onboarding option via MoonPay ( #13934 )
2022-03-21 10:26:52 +01:00
Ariella Vu
fa15b32fab
ConfirmAddSuggestToken: replace mapDispatchToProps & mapStateToProps; Add Tests ( #13526 )
...
* ConfirmAddSuggestedToken: component.js -> .js
* replace mapStateToProps w/ useSelector
ConfirmAddSuggestedToken
* replace mapDispatchToProps w/ useDispatch
ConfirmAddSuggestedToken
* ConfirmAddSuggestedToken: useHistory
* ConfirmAddSuggestedToken: revert scss
reuse ConfirmImportToken styles for now
* ConfirmAddSuggestToken: add tests
* ConfirmAddSuggestedToken: rm unused controls
* ConfirmAddSuggestedToken: rm snapshot
* use `metamark.svg` instead of `metamask.svg`
* ConfirmAddSuggestedToken: update useSelectors
* Revert "ConfirmAddSuggestedToken: revert scss"
This reverts commit 07aed4576caaf247cb38ad481d79a339ba3d3947.
* ConfirmAddSuggestedToken: === undefined
w/ strict mode
* ConfirmAddSuggestedToken: use useNewMetricEvent
* ConfirmAddSuggestedToken: run useEffect once
* ConfirmAddSuggestedToken: rm unused async
* ConfirmAddSuggestedToken: rm mock redux store
* ConfirmAddSuggestedToken: duplicate ConfirmImportToken styles
* ConfirmAddSuggestedToken: update metrics logic
* ConfirmAddSuggestedToken: metricEvent-> trackEvent
* ConfirmAddSuggestedToken:clean useEffect w/ new fn
- PR suggestion: https://github.com/MetaMask/metamask-extension/pull/13526#discussion_r818007393
* ConfirmAddSuggestedToken: rm unused .token-balance styles
2022-03-10 23:40:06 -03:00
Brad Decker
9cea401022
extract determineTransactionType from tx controller ( #13737 )
2022-03-07 12:54:36 -06:00