Guillaume Roux
d6f58bceb0
[FLASK] snaps-monorepo@0.31.0
( #18142 )
...
* allow SnapController to call `ApprovalController:updateRequestState` action
* combine popups
* show only autorship pill on result
* lint
* update `snaps-monorepo@0.31.0` and regen policies
* dedupe deps and fix fencing
* fix update button text
* fix fencing
* Update a bunch of e2es
* address requested changes
* update policy
* bump key-tree
* fix lint
* Update RPC E2E
* fix locales
* Remove wrong instance of window handle polling
* design changes and address pr comments
* remove unused imports
* fix lint
* fix fencing
* remove unused locales
* fence things
* re-add redirection
* bump test-snaps version
* Fix update e2e
* fix redirecting logic and address requested changes
* force update metamask state on approved
* move force update
---------
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2023-03-17 12:00:05 +01:00
Ayush
1c613a4556
Part of #17670 : Replace Typography with Text component ( #17959 )
...
* Updated confirm-page-container-summary.component.js
* Updated snap-insight.js
* Updated confirmation-warning-modal.js
* Updated create-new-vault.js
* Fixing import errors, linting errors and adding a story
* Updating storybook path
* Updating snapshot
---------
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-03-15 17:00:54 -07:00
Filip Sekulic
c477e29397
Fixed hardware wallet info popup on token allowance screen ( #17881 )
2023-03-14 12:29:31 -05:00
David Walsh
5b1b5dc03b
NFTs: Remove feature flag for release ( #17401 )
...
* NFTs: Remove feature flag for release
* Update security tab jest test
* Fix broken test
* Update snapshot
* Update test
* Fix test
* Remove last usages of flag
* Update CI jobs
* Fix jest tests
2023-03-13 14:29:37 -05:00
Suryansh Anand
a2838b0dd1
Part of 17670: Replace Typography with Text confirm-approve-content.component.js and home.component.js ( #18049 )
...
* Changed Typography to Text component in comfirm-apporve-content-component.js
* Changed Typography to Text component in home.component.js
* Changed Typography to Text component in comfirm-apporve-content-component.js
* Changed Typography to Text component in home.component.js
* Changed all h7 heading to h6 as h7 does not exist
* Fixed prettier errors on home.component.js
* Alignment fix
---------
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-03-13 12:27:24 -07:00
David Walsh
000dbb976c
Fix ThemeType casing issue ( #18039 )
2023-03-13 10:00:55 -05:00
David Walsh
d6e61e9d07
Fix #17948 - Allow editing of NFT sends ( #17970 )
2023-03-09 15:02:08 -06:00
Alex Donesky
23ca4460cf
Migrate network configurations (previously frequentRpcListDetail
) from PreferencesController
to NetworkController
( #17421 )
2023-03-09 15:00:28 -06:00
Jyoti Puri
0ac54e40ee
Extract out confirm-data and confirm-hex-data components from confirm-transaction-base.component.js ( #17822 )
2023-03-09 10:38:37 +05:30
Hassan Malik
7086494b72
[FLASK] BREAKING - snaps-monorepo@0.30.0 ( #17718 )
...
* updated snap permission to wallet_snap, updated tests and added migration
* updated snap packages
* yarn.lock fix
* fixed errors
* override policy
* update policy
* undo override
* updated localization message descriptions
* updated lavamoat policy
* more policy updates
* update permission controller version
* update policy
* update fixture builder
* updated code to include permission value to satisfy wallet_snap permission description call
* fix import issue
* update test-snaps version
* added missing actions, added snap permission dedupe function
* prettier fix
* fix fencing
* add more fencing
* prettier fix
* fix fencing (again)
* added new action and selector and updated view snap accordingly
* update test snaps website version
* unfence request variable
* add fencing
* add optional chaining to fix type error
* update migration #
* remove old migration
* prettier fix
* fix migration test
* fix fencing
* added missing fencing
* updated code to workaround fencing
* update test-snaps site version and remove snap confirm test
* update snap packages
* update policies
* fix merge marker issue
* update test
* more fixes
* fix permissions
* update test
* fixed test
* Bump test-snaps and iframe-execution-environment
* remove unused snap permission from fixture builder
* update policies
* undo comment removal, update selector implementation
* removed unnecessary function, updated migration, updated caveat action
* remove optional chaining
* fix type issue
* more type fixes
* fix migration test
* remove isFlask check, make migration logic more robust
* update coverage
* Update LavaMoat policies
* Update test/e2e/snaps/enums.js
* add extra bail condition
* Revert "add extra bail condition"
This reverts commit b45c53dcfc6e6e35a5e283d4955d6d6ea9ca5965.
* Revert "Revert "add extra bail condition""
This reverts commit cd2ded677935c9cdab0c02b6af55474c83727f60.
* fix test
* add SnapController entry to state object
* updated permission name and caveat type with hardcoded values
* add extra test for non-flask scenario
* update lavamoat policies
* fix locale messages
* change coverage target
* re-enable rpc snap test
* revert locale message change
* fix el message
* reverted changes
---------
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2023-03-08 13:29:23 -05:00
Dan J Miller
efaaf4fab2
Use tokenList to get token details, when available, in getTokenStanda… ( #17891 )
...
* Use tokenList to get token details, when available, in getTokenStandardAndDetails
Previously, every call to getTokenStandardAndDetails would fetch data via the provider.
This would result in at least 3 network requests whenever that method is called for an
ERC20 token, contributing to unneccesary loading and lagging in multiple places.
This commit takes advantage of stored data we already have available to avoid the unnecessary
loading.
* Lint fix
* Fix build-quote test
* bump coverage targets
* Pass provider to token-util, for use in ethers Contract module
* Check all possible sources of ERC20 token data before async call to assetsContractController
* Add and update tests
* Update app/scripts/metamask-controller.js
Co-authored-by: Alex Donesky <adonesky@gmail.com>
* Update app/scripts/metamask-controller.js
Co-authored-by: Alex Donesky <adonesky@gmail.com>
* Remove unnecessary this.ethQuery changes
* Use metamask-eth-abis instead of human-standard-token-abi in token-util.ts
* Add explanatory comments to getTokenStandardAndDetails
* lint fix
* Cleanup
* fix test
* Update app/scripts/metamask-controller.js
Co-authored-by: Alex Donesky <adonesky@gmail.com>
* update error message
---------
Co-authored-by: Alex Donesky <adonesky@gmail.com>
2023-03-08 14:05:45 -03:30
witmicko
75801e9502
delay chain validation ( #17413 )
2023-03-08 16:33:27 +00:00
Danica Shen
b231b091b9
fix(17542): fix fiat currency display in few txn actions ( #18011 )
...
* fix(17542): fix fiat currency display in few txn actions
* fix(17542): refactor e2e tests to change to fia via fixture builder
2023-03-08 16:05:55 +00:00
Danica Shen
87be2f4393
fix(17716): increase threshold to include all options for nonce search ( #17999 )
2023-03-08 11:04:45 +00:00
David Walsh
912f6755b1
UX: Icons: Fix Chevrons in Settings Tabs ( #17971 )
2023-03-06 14:58:01 -06:00
Matthew Walsh
d0417da3d0
Move desktop code to flask build type ( #17960 )
2023-03-06 19:35:00 +00:00
Filip Sekulic
0cc135fab3
Removed a feature flag ( #17922 )
2023-03-06 23:37:09 +05:30
HowardBraham
694773f17a
Upgrading the Import Account modal ( #17763 )
...
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
Co-authored-by: NidhiKJha <nidhi.kumari@consensys.net>
Co-authored-by: montelaidev <monte.lai@consensys.net>
2023-03-06 09:48:28 -08:00
Danica Shen
47d9964a89
fix(17857): show correctly converted account balance in sign&encrypt windows ( #17973 )
...
Co-authored-by: Dan J Miller <danjm.com@gmail.com>
2023-03-04 12:14:20 +00:00
David Walsh
5018329cd8
UX: Icon: Restore missing back chevron in settings ( #17916 )
...
* UX: Icon: Restore missing back chevron in settings
* Update ui/pages/settings/settings.component.js
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* Fixing size and alignment
---------
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
2023-03-03 15:11:20 -06:00
Olusegun Akintayo
e8c92c3d5a
Edit Token Transfer displays mixed info with regular Send Tx (ETH) ( #17507 )
2023-03-03 10:52:32 -06:00
Vinicius Stevam
e07ec9dcf3
identify desktop is paired in the metrics event ( #17892 )
2023-03-02 14:55:27 -06:00
ryanml
6b15d0bae7
Fix incorrect balance in signature request header ( #17829 )
...
* Fix incorrect balance in signature request header
* Fix unit tests
* Fix tests and increase unit test coverage
* actually fix unit tests
---------
Co-authored-by: Dan Miller <danjm.com@gmail.com>
2023-03-02 05:40:07 -07:00
Alaa Hadad
5998ae21aa
Buy crypto by redirecting to onramp experience on pdapp instead of deposit popover ( #17689 )
...
* feat: disable deposit popover and replace it with global redirect to onramp on pdapp
* feat: remove legacy code for hardcoded onramp providers
* fix: remove unused visuals and components related to legacy code of deposit popover
* fix: remove unused messages
* feat: use a custom hook for all onramps related methods and variables
* fix: modify the custom hook implementation to include test networks
* fix: remove deprecated file buy-url
* fix: remove references for deleted deposit logos
* fix: network-controller failing unit test
* fix: snapshot loading-swaps-quotes-stories-metadata.test.js.snap
* fix: storybook tests
* fix: remove unused constatns related to buyable onramp chains
* fix: remove unused variables and fix eslint
* adding unit test for useRamps custom hook
* feat: add comment on the proper usage of useRamps within confirm-page-container component
* fix: add unit tests for buy button in token-overview page
* fix: add unit test for open the buy crypto URL for a buyable chain ID in token page
* feat: add unit test coverage for eth-overview page
* fix: update locales
2023-03-01 12:45:27 +04:00
David Walsh
5561987fed
UX: Icon: Stop using fa-times ( #17811 )
2023-02-27 10:42:02 -06:00
Filip Sekulic
932282e638
What's new - OpenSea security provider ( #16831 )
2023-02-27 10:20:22 -06:00
David Walsh
e20c70efd5
UX: Update Settings Icon ( #17561 )
...
* UX: Update Settings Icon
* Remove font-awesome usage
* Remove from files to convert
* Fix lint
2023-02-26 20:42:03 -06:00
Ariella Vu
60f257fd62
ConfirmDecryptMessage: avoid mutation of state in decryptMsg/completedTx action ( #17895 )
...
* fix ConfirmEncryptionPublicKey txData
* encrypt/decrypt: fix missing txData state
* rm console.log
* ConfirmDecryptMessage: cloneDeep to avoid mutation
2023-02-25 02:02:02 +07:00
Ariella Vu
bdf3b8486b
Fix GetEncryptionKey TypeError Cannot destructure property 'msgParams' of 'txData' ( #17808 )
...
* fix ConfirmEncryptionPublicKey txData
* encrypt/decrypt: fix missing txData state
* rm console.log
2023-02-25 01:58:42 +07:00
Nidhi Kumari
9f17e2f94b
UX Icon: updated fa-exclamation-circle ( #17879 )
2023-02-24 12:52:11 -06:00
Jyoti Puri
1c0ff8a6e8
Fix state in confirm transaction ( #17838 )
2023-02-24 22:37:26 +05:30
witmicko
d7adbb6f41
window open noopener ( #17882 )
...
* window open noopener
2023-02-24 15:27:38 +00:00
David Walsh
e3380ba3ae
UX: Icon: Remove fa-exclamation-triangle usages ( #17691 )
...
* UX: Icon: WIP: Remove fa-exclamation-triangle usages
* Swap the rest of the icons
* Fix color import
* Update ui/pages/onboarding-flow/secure-your-wallet/skip-srp-backup-popover.stories.js
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* Update ui/pages/onboarding-flow/secure-your-wallet/skip-srp-backup-popover.stories.js
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* Update ui/pages/onboarding-flow/secure-your-wallet/skip-srp-backup-popover.stories.js
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* Update ui/pages/onboarding-flow/secure-your-wallet/skip-srp-backup-popover.js
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* Update ui/components/app/add-network/add-network.js
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* Update ui/components/ui/review-spending-cap/review-spending-cap.js
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* Fix lint
* Fix alignment and sizes
* Use IconColor
* Update ui/components/app/custom-spending-cap/custom-spending-cap-tooltip.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/app/confirmation-warning-modal/confirmation-warning-modal.js
Co-authored-by: Danica Shen <zhaodanica@gmail.com>
* Update ui/components/app/signature-request-original/signature-request-original-warning/signature-request-original-warning.js
Co-authored-by: Danica Shen <zhaodanica@gmail.com>
* Update ui/components/ui/review-spending-cap/review-spending-cap.js
Co-authored-by: Danica Shen <zhaodanica@gmail.com>
* Update ui/pages/onboarding-flow/secure-your-wallet/skip-srp-backup-popover.js
Co-authored-by: Danica Shen <zhaodanica@gmail.com>
* Fix imports
* Use IconColor
---------
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
Co-authored-by: George Marshall <george.marshall@consensys.net>
Co-authored-by: Danica Shen <zhaodanica@gmail.com>
2023-02-23 15:20:07 -06:00
David Walsh
6cc46454c2
UX: Remove legacy metametrics modal ( #17817 )
...
* UX: Remove legacy metametrics modal
* Remove old localizations
* Remove dead image
2023-02-23 13:58:09 -06:00
João Tavares
bde74756d3
Add extension desktop UI ( #17748 )
...
* feat: add desktop enable button component
This component will be added
to the experimental page. Users
will then be able to initialize
a desktop connection
* feat: add desktop pairing page
* feat: add desktop deep-linking shared lib
* test: add initial entries to render helper
Allow specifying initialEntries for
MemoryRouter. This change will allow
testing pages that use the useParam
hook.
* feat: add desktop error page
Error page for any desktop pairing
related issue
* feat: add desktop routes to route component
* feat: add enable desktop button to experimental tab
* feat: add desktop icon when paired in dev mode
* feat: disable ledger live control when desktop enabled
* feat: register desktop error actions on ui init
* fix: add missing code fencing
* chore: remove enable desktop rpc middleware
Now that we are adding the UI
there's no need for this rpc middleware
(as it was used to test desktop background
code)
* fix: display experimental tab for desktop
2023-02-23 16:39:48 +00:00
amerkadicE
505f1f5445
Token allowance unit tests ( #17019 )
...
* Token allowance unit tests
Fix lint
Fix test
Fix token allowance unit tests
Add txData in state for token allowance unit test
Treshold bumped
Run pipeline
Treshold bumped
Treshold bumped
Treshold bumped
* Update tests
* Update tests
2023-02-23 16:57:12 +01:00
Vladimir Saric
4c598b330e
Display the address icon for the contract requesting spending cap instead of the dapp/url icon ( #17858 )
2023-02-23 15:54:04 +01:00
David Walsh
09c60e2038
UX: Icons: Remove IconCheck and fa-check ( #17787 )
...
* UX: Icons: Remove IconCheck and fa-check
* update jest snapshots
* Update story
* Remove dead CSS
* Update ui/components/app/account-menu/account-menu.component.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/app/dropdowns/network-dropdown.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/app/modals/metametrics-opt-in-modal/metametrics-opt-in-modal.component.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/pages/settings/networks-tab/networks-list-item/networks-list-item.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/pages/settings/networks-tab/networks-list-item/networks-list-item.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/pages/permissions-connect/redirect/permissions-redirect.component.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/pages/send/send-content/add-recipient/domain-input.component.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/pages/onboarding-flow/metametrics/metametrics.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/app/modals/transaction-confirmed/transaction-confirmed.component.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/app/modals/metametrics-opt-in-modal/metametrics-opt-in-modal.component.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Fix jest snapshots
* Update sizes of network andd account menu checks
* Fix ICON_SIZES in account menu
* Improvements
* Use IconColor
* Use IconColor
* Lint
* Update snapshots
---------
Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-02-23 07:19:28 -06:00
George Marshall
72af5626de
Updating Icon html element to span ( #17790 )
2023-02-22 14:42:50 -08:00
David Walsh
eba4275467
Fix #17825 - Prevent timing conflict with NFT toast messages ( #17861 )
2023-02-22 11:14:47 -06:00
George Marshall
ae3cd97690
Fixing focus outline ( #17863 )
2023-02-22 09:14:40 -08:00
George Marshall
527387bbfe
Adding Input component and updating TextFieldBase ( #17664 )
...
* Adding Input component and updating TextField
* Exporting from index, removing as prop and updating snapshot
2023-02-21 10:35:28 -08:00
David Walsh
24e0a9030b
UX: Move Portfolio link to its own button ( #17722 )
2023-02-21 09:32:08 -06:00
ryanml
3bb36e8142
Fix currency symbol in insufficient balance warning ( #17820 )
2023-02-21 06:08:47 -07:00
ryanml
b7bb0f03d7
Do not display experiment settings tab when there are no settings to show ( #17765 )
2023-02-20 18:29:50 -07:00
Ariella Vu
7d1dc7f177
Cleanup: clearTimeout on useEffect for gas estimation and prevent state update on unmounted ConfirmTransactionBase ( #17804 )
2023-02-17 22:11:50 +07:00
David Walsh
1a330dd8c6
UX: Icons: Remove lock icon ( #17739 )
...
* UX: Icons: Remove lock icon
* set icon to auto for improved alignment
* remove unused import
---------
Co-authored-by: garrettbear <gwhisten@gmail.com>
2023-02-16 15:56:26 -08:00
George Marshall
cf487b8f97
Update HelpText component ( #17705 )
...
* Updating HelpText component
* Updating logic for html element depending on children
* Adding span to story to reflect docs
* Updating reveal seed instance
2023-02-16 12:42:15 -08:00
Nidhi Kumari
33cc8d587a
NFT: Replaced all the instances of collectibles with NFTs ( #17741 )
...
* replaced all the instances of collectibles with nfts
* updated actions
* updated e2e seeder
* updated confirm Approve test
* updated test dapp change
* updated test dapp change
* nit fix
* nit fix
* updated casing and snapshots
* updated casinG
* added migrations
* updated ,igration
* updated 078.test
* updated tests for 078 migration
* updated migration
* updated 078 index.js
2023-02-17 00:53:29 +05:30
David Walsh
cf49761d71
Fix #17669 - Revise old metrics schema for Onboarding v2 ( #17769 )
2023-02-16 10:06:56 -06:00