micaelae
a69cb0284d
Wrap balance and portfolio button ( #18109 )
2023-03-13 10:50:12 -05:00
George Marshall
5d5fa242c3
Updating AvatarAccount objects to enums ( #17727 )
...
* Updating object to enums
* lint fix
* Improving test coverage
* Updating filename to .types.ts
2023-03-10 12:12:55 -08:00
witmicko
fde18dec0c
link component ( #17897 )
...
Added externlalLink to ButtonLink
Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-03-10 17:47:01 +00:00
Alex Donesky
23ca4460cf
Migrate network configurations (previously frequentRpcListDetail
) from PreferencesController
to NetworkController
( #17421 )
2023-03-09 15:00:28 -06:00
David Walsh
423e0854d3
Fix #17848 - Ensure NFT collections toggle appropriately ( #17972 )
2023-03-09 12:10:37 -06:00
Thomas Huang
766c8a3e53
Force update mock state and render nfts item test fix ( #18044 )
2023-03-09 22:06:12 +05:30
Alex Donesky
1121e3a848
fix network dropdown bug ( #18079 )
2023-03-09 10:11:38 -06:00
Nidhi Kumari
bf06598d6e
UX Icon: Updated Icon for Disclosure ( #17877 )
...
* updated fa-add
* updated summary icon
* updated styles for disclosure
* updated margin value
2023-03-09 10:48:44 +05:30
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
Garrett Bear
2c2505be06
add banner-tip component ( #17814 )
...
* add banner-tip component
* set fixed width
* add banner tip props to logo
* fix logo type naming
* update test
* reduce png sizes
* upate type name and add image element test
* updates
* Update ui/components/component-library/banner-tip/banner-tip.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* update BannerTip
* fix text case banner tip
---------
Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-03-08 13:27:24 -08:00
George Marshall
ed519d8b60
Updating AvatarWithBage to BadgeWrapper ( #17851 )
2023-03-08 13:18:55 -08:00
David Walsh
de83546d6d
Fix #17932 - Ensure NFT last sold price is formatted correctly ( #17983 )
...
* Fix #17932 - Ensure NFT last sold price is formatted correctly
* Fix storybook
* Update snapshot to include pricing
2023-03-08 14:39:12 -06:00
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
George Marshall
848b699f68
Adding types file to Box component ( #18009 )
2023-03-08 09:35:16 -08: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
Thomas Huang
786a74dbbc
Fix nft test state ( #17981 )
2023-03-07 08:46:02 -06:00
George Marshall
abff49561d
Fixing FormTextField props and test ( #17939 )
2023-03-06 15:45:23 -08:00
Matthew Walsh
d0417da3d0
Move desktop code to flask build type ( #17960 )
2023-03-06 19:35:00 +00:00
micaelae
e77e20d8c4
Bridge tokens by redirecting to Portfolio from wallet overview page ( #17952 )
...
* Add Bridge button
* Add newline to the end of bridge svg
* Move Portfolio button
* Vertically center Portfolio button
* Use IconButton for Portfolio button
* Change portfolio button size
* Lowering coverage to get this in for release by a very small amount
* Add unit tests for Portfolio button
---------
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-03-06 11:34:06 -08:00
David Walsh
13d03abe9b
UX: Icon: Update README with new variable names ( #17920 )
...
* UX: Icon: Update README with new variable names
* Update ui/components/component-library/text-field/README.mdx
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
---------
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
2023-03-06 11:30:43 -08:00
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
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
Filip Sekulic
426e3c37a4
Fixed accounts auto scrolling ( #17075 )
...
* Fixed a bug
* Fixed additional bug
2023-02-28 08:23:24 -06:00
David Walsh
eb380f92ef
UX: Icon: Remove unwanted aria label ( #17903 )
2023-02-27 10:43:06 -06:00
David Walsh
5561987fed
UX: Icon: Stop using fa-times ( #17811 )
2023-02-27 10:42:02 -06:00
Frederik Bolding
64bfe6f307
Fix a bug where non-address types would be rendered as addresses in EIP-712 ( #17846 )
...
* Fix EIP-712 rendering logic
* Fix tests
* Fix tests and story
* Fix lint
* Fix import
* Fix stories
2023-02-27 17:32:51 +01: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
Niranjana Binoy
bc19856d5d
Transaction-list-item-details pop up to display the correct token information on token approve item ( #17422 )
2023-02-24 14:21:55 -05:00
Nidhi Kumari
9f17e2f94b
UX Icon: updated fa-exclamation-circle ( #17879 )
2023-02-24 12:52:11 -06: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
09a170bfe2
UX: Icons: Remove icon-import ( #17816 )
...
* UX: Icons: Remove icon-import
* Add new icon
2023-02-23 15:19:23 -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
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
Filip Sekulic
2acd51af2e
Open sea security provider warning message ( #17662 )
...
* Warning message for the OpenSea security provider
* Updated snapshots
* Removed flask usage
* Covered more test cases
* Code refactor
* Fixed errors
* Code refactor
* Fixed few issues
* Covered more code with tests
2023-02-23 08:38:09 -03:00
Nidhi Kumari
6892ab2bff
updated Proptypes for IconButton ( #17797 )
2023-02-22 16:55:32 -06:00
Nidhi Kumari
3437d7161f
UX Icon: updated fas-question icon ( #17828 )
...
* updated fas-question icon
* removed as property from Box
* fallback prop for heading
2023-02-22 16:45:07 -06:00
George Marshall
72af5626de
Updating Icon html element to span ( #17790 )
2023-02-22 14:42:50 -08:00
Garrett Bear
d22522ed5d
update to add end icon support ( #17776 )
2023-02-22 09:42:06 -08:00
Garrett Bear
9df5f910a7
set default html elements ( #17762 )
2023-02-22 09:41:46 -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
David Walsh
f57d10d857
UX: Icons: Remove unused overview icons ( #17671 )
...
* UX: Icons: Remove unused overview icons
* Add args
2023-02-22 11:13:48 -06: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