Dhruv
ba31f87014
fix/TagUrl to TS ( #20519 )
2023-08-18 17:59:02 -07:00
Dhruv
07abc53cce
fix/BannerBase to TS ( #20421 )
...
* BannerBase to TS
* snapshot updates
* more snapshot updates
* addressing type definition error
* updating eth-sign-modal snapshot
* Updates to stories, types and adding data-testid
* Updating snapshots
* updating snapshot of blockaid-banner-alert and adding unit test for childrenWrapperProps
* BannerBase updates to stories, adding locale for close button, removing static data-testid in favor of using it at the instance, updating snapshots associated with those changes
* Removing incorrect arg from storybook file
* Updating html element in security provider e2e test to match BannerBase. Also updating snapshot of ConfirmTransaction page
* Fixing e2e tests
---------
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-08-18 14:52:40 -07:00
Albert Olivé
60f149178c
[MMI] Set approved status in tx controller in MMI logic ( #20507 )
...
* fix(custodial-signing): set approved status in tx controller in MMI logic
* Fixed the issue that was not showing custody-confirm-link
---------
Co-authored-by: Shane Terence Odlum <shane.odlum@consensys.net>
2023-08-18 14:38:51 +02:00
Ariella Vu
8807d06535
Security Alert Blockaid: fix propType and add instance to ConfirmApprove page ( #20494 )
...
* fix: SecurityProviderBannerAlert propTypes
* feat: add ConfirmApprove BlockaidBannerAlert
2023-08-18 14:06:46 +02:00
Albert Olivé
486ade85f3
[MMI] Fixed connect mmi button several issues ( #20455 )
...
* fixed connect mmi button several issues
* Fixed snapshot
* Improved multiple things
* running yarn dedupe
* Update LavaMoat policies
* For some reason, this.mmiConfigurationController.store.mmiConfiguration?.portfolio sometimes is undefined, added [] if null.
Moved the || {} outside the find method
* minor improvements
---------
Co-authored-by: MetaMask Bot <metamaskbot@users.noreply.github.com>
2023-08-17 14:50:40 +02:00
Unik0rnMaggie
5cbfa82018
Fix Typo in en.json ( #20429 )
...
* Fix Typo in en.json
There is a typo in "smart contact"
* updated snapshot
---------
Co-authored-by: Howard Braham <howrad@gmail.com>
2023-08-16 15:36:33 -02:30
Pritam Dhara
6512cacec8
Replaced ActionableMessage in confirm-page-container-content ( #20417 )
...
* Replaced ActionableMessage in confirm-page-container-content
* Updated Snapshot of confirm-transaction-base
* Updated BannerAlert className
* Using component API and replacing ErrorMessage
* Update snapshot
---------
Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-08-15 14:59:29 -07:00
Harsh Shukla
b8475f85d4
Part of #17670 for: privacy-settings.js ( #20288 )
...
* Update privacy-settings.js
* Update ui/pages/onboarding-flow/privacy-settings/privacy-settings.js
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
* Update ui/pages/onboarding-flow/privacy-settings/privacy-settings.js
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
* Update ui/pages/onboarding-flow/privacy-settings/privacy-settings.js
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
* Update ui/pages/onboarding-flow/privacy-settings/privacy-settings.js
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
* Update ui/pages/onboarding-flow/privacy-settings/privacy-settings.js
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
* Update privacy-settings.js
* Update index.scss
* Update to html nesting and semantic fix
* lint fix
---------
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-08-15 14:05:04 -07:00
Bhavya gor
b0fcb12b99
Update BannerAlert icon to match Figma Issue#20355 ( #20407 )
...
* changed warning --> danger
* snapshot updates
* Adding comment
* Updating snapshot
---------
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-08-15 08:20:02 -07:00
David Walsh
712a62ed74
UX: Remove unwanted extra spacing on home screen ( #20441 )
...
Co-authored-by: Victor Thomas <10986371+vthomas13@users.noreply.github.com>
2023-08-14 11:53:11 -05:00
David Walsh
ee4bf2d264
Fix #19829 : UX: Multichain: Move "Import Tokens" to Modal ( #19553 )
...
* Move Import Tokens to Modal
* Better dimensions for long token name
* Add padding above tabs
2023-08-14 11:08:59 -05:00
Garrett Bear
70a13296c9
Feat/18889/update buttonlink ts ( #20372 )
...
* fix buttonlink alignment
* ButtonLink TS migration
* fix lint
* remove ButtonBase loading error feat
* move padding 0 to ButtonBase
* fix color issue
* fix test file
* fix snapshot
* Update ui/components/component-library/button-link/README.mdx
Co-authored-by: George Marshall <george.marshall@consensys.net>
* readme fix
* Update ui/components/component-library/button-link/button-link.stories.tsx
Co-authored-by: George Marshall <george.marshall@consensys.net>
---------
Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-08-04 14:00:05 -07:00
Dominik Rudzki
29ad914dc9
Fix #19882 - MetaMask support link alignment v2 ( #20354 )
...
* Fix support link alignment
* Fix lint issues
* Fix workflows
---------
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
Co-authored-by: David Walsh <davidwalsh83@gmail.com>
2023-08-04 13:26:50 -05:00
Victor Thomas
2ff289e271
Add Opt-out Settings toggle for 4byte contract method names resolution ( #20098 )
...
* Adding 4byte toggle to settings UI and preferences
* Adding 4byte toggle to advanced settings tab
* adding use4ByteResolution privacy logic to getContractMethodData & getMethodDataAsync, removing unused useMethodData hook, adding clearKnownMethodData
* add 4byte setting to onboarding advanced option
* more test changes
* adding e2e for 4byte setting toggle
* test and copy changes, snap updates
* removing 4byte from advanced section
* adding settings constant and fixing refs
* removing clearKnownMethodData, adding flag to selector, test fixes
* e2e refactor, selectors refactor
* adding tests
* Fix jest tests, remove unwanted forceUpdateMetamaskState
* Fix jest tests
* lint:fix
* settingsRefs fixes
---------
Co-authored-by: David Walsh <davidwalsh83@gmail.com>
2023-08-04 13:28:37 -04:00
Danica Shen
a85a4cf97e
feat(878): add new incomingTxn component and change styles of settings ( #20374 )
...
* feat(878): add new incomingTxn component and change styles of settings
* feat(878): relocate openSea tab from rebase regression
* feat(878): make UI and test modifications
* feat(878): transfer to ts
* feat(878): rename network-toggle.tsx
2023-08-04 12:33:47 +01:00
jainex
52c44924e3
Part #19737 - Replace deprecated FormField component with TextField, Label, HelpText ( #19859 )
...
* Replacing deprecated components for component library components
* Update
* Lint fix
---------
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-08-03 15:30:41 -07:00
Daniel
066c568aca
Improvements to Swaps quote auto-selection logic, fix and edge case with zero-balance tokens ( #20388 )
...
* Add Token To into assets again (reverting commit 51f46eb65f48bdf4980f400a589bf1ac63a65222 )
* Update cleanup for an unswapped Token To from the Tokens list
* Call "setLatestAddedTokenTo" conditionally
* Update an E2E test for insufficient balance notification
2023-08-03 18:19:50 -02:30
Monalisha Mishra
b46501cc0d
migration of button icon to use TS box version ( #20227 )
...
* migration of button icon to use TS box version
* fixed lint issues
* Some convention and linting updates
* README fixes
* Updating snapshot
* snapshot updates
---------
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-08-03 12:23:47 -07:00
Nidhi Kumari
6c1b71b584
Updated copy changes for display NFT Media ( #20380 )
...
* updated copy changes
* updated snapshots
* lint fix
* updated test
2023-08-03 23:49:30 +05:30
Alex Donesky
6594f7074e
adapt to use networksMetadata state instead of single networkStatus and networksDetails state ( #20219 )
2023-08-03 12:31:35 -05:00
David Walsh
840eb632c6
Fix #19647 - Allow importing multiple tokens ( #20224 )
2023-08-03 09:20:34 -05:00
Jyoti Puri
8c46f85764
Confirmation page alerts ( #20125 )
2023-08-03 16:24:54 +05:30
Nidhi Kumari
d4e33b0d44
close popover on backgroiund click ( #20359 )
2023-08-03 10:14:26 +05:30
Victor Thomas
97073e1907
Move "Enable Opensea API" and "NFT Autodetect" into Security & Privacy settings ( #20278 )
...
* move opensea api and nft settings to security tab
* DS techdebt; experimental tab
* rerouting the NFT tab enable autodetect to setting
* reverting vscode settings and preferences.js
* Rerouting NFT tab autodetect setting banner link
* resolving settingsRef collision
2023-08-02 18:46:36 -04:00
infiniteflower
1099a3763b
Feat/swaps link buy gas ( #20241 )
...
* Add link to buy more ETH if insufficient gas
* Fix lint error
* Use native currency per network
* Use localized msg for buy more gas
* Add the word "more"
* Fix smart tx not showing msg
* Pull out not enough balance into own component
* Add story for not enough balance
* Fix btn text not being aligned with rest of text
* Move inline style to class, remove empty classname
* Update ui/pages/swaps/prepare-swap-page/not-enough-balance.stories.tsx
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
* Update ui/pages/swaps/prepare-swap-page/index.scss
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* Remove line
* Move BannerAlert back into review-quote and use BannerAlert props
* Remove unused CSS
---------
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
2023-08-02 14:58:12 -04:00
Nidhi Kumari
f91d4fb858
Updated copy change for the IPFS toggle ( #20358 )
...
* updated ipfs toggle copy
* removed unused entries
2023-08-02 10:27:32 -07:00
Ariella Vu
446c7bb3fe
Security Alert Settings: update copy to match figma ( #20300 )
...
* securityAlert: fix settings copy
* securityAlert: fix settings copy - update snapshop
2023-08-02 11:29:18 +02:00
Dhruv
d375dc550d
Part of #18714 : Replacing deprecated constants ( #19843 )
...
* replacing constants
* updating ButtonLink component
* Updates to responsive typography
* lint fixes
* snapshot updates
---------
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-08-01 14:37:16 -07:00
Nidhi Kumari
4c37448c97
Added IPFS toggle ( #20172 )
...
* added ipfs toggle
* added placeholder valur
* fixed snapshot
* updated tests
* updated spec file
* hide input if toggle is disabled
* updated e2e tests for nft image
* fixed view-ercc-1155 spec
* updated e2e tests for nfts
* added ipfs toggle modal
* updated UI for ipfs
* updated tests
* updated classname
* added placeholder image
* lint fix
* removed prop ipfsEnabled and used with selector
* fixed ui for ipfs toggle
* updated test
* updated test to handle cases
* nit fix
* ensure default image height match nft image
2023-08-01 23:51:51 +05:30
David Walsh
e27a9e4344
UX: Update Batch Account Setting Description ( #20269 )
2023-08-01 13:17:58 -05:00
Daniel
24ca518315
Reset price ack if price diff in % changed, insufficient gas event, log a page load event once ( #19961 )
2023-08-01 18:18:14 +02:00
infiniteflower
10ffc1ec84
Chore/refactor smart swap modal ( #20239 )
...
* Add story for smart tx popover
* Use tsx for smart tx popover story and add btn to open it
* Refactor smart tx popover component to tsx and style
* Fix modal not triggering
* Remove bold from bullet points
* Adjust margins
2023-08-01 15:31:53 +02:00
Daniel
2ad2827bab
Redirect to homepage from Swaps asap without waiting for state cleanup ( #20236 )
2023-08-01 15:28:11 +02:00
David Walsh
99c709ff8f
Allow user to turn off ENS DNS resolution ( #20102 )
...
* Allow user to turn off IPFS gateway resolution
* Add end to end test for toggle on and off
* Fix jest tests and snapshots
* Change variable name
* Implement provided content
* Use MetaMask eth instead
* Allow searching for ENS setting
* Fix jest
---------
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2023-07-28 11:21:43 -05:00
Nicholas Ellul
90827c54a1
Add improved downloading logic when exporting state logs ( #19872 )
...
* Add improved downloading logic when exporting state logs
* Make test for state logs download only apply to firefox
* Remove eslint override
* Add file extension to test
* Move make jest global.Blob accessible to window
2023-07-27 13:33:36 -04:00
Albert Olivé
68f5c578a2
Fixed issue generating the pipeline ( #20231 )
2023-07-27 14:36:19 +02:00
Ujwal Kumar
4b2c777862
Replacing deprecated components and code for import tokens ( #19559 )
...
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-07-26 08:48:31 -07:00
Daniel
0f582af3e3
Remove console errors ( #20209 )
2023-07-26 17:32:15 +02:00
Albert Olivé
9797d9a634
[MMI] Fix element UI in MMI ( #20176 )
...
* Added support for dark mode in metafox logo and removed unused compliance images
* Fixed text elements with wrong alignment and color
* Changed needHelp in mmi
* Updated code
* Improved code
* Updated copies
* Changed logic to fix code fences issues
* Renamed component
2023-07-26 11:51:11 +02:00
ryanml
d262acb3a4
Fixing Dapp link on NFT import screen ( #19799 )
2023-07-26 13:58:16 +05:30
Pritam Dhara
a942459b36
replaced actionablemessage in Import-Token.js ( #20147 )
...
* replaced actionablemessage in Import-Token.js
---------
Co-authored-by: MetaMask Bot <metamaskbot@users.noreply.github.com>
* Use single controller method to add transactions (#20007 )
* fix: remove unused useMethodData code (#20146 )
* Remove Snaps execution environment override (#20173 )
* Used Box from component-library
---------
Co-authored-by: António Regadas <apregadas@gmail.com>
Co-authored-by: MetaMask Bot <metamaskbot@users.noreply.github.com>
Co-authored-by: Matthew Walsh <matthew.walsh@consensys.net>
Co-authored-by: Pedro Figueiredo <pedro.figueiredo@consensys.net>
Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
2023-07-25 15:11:23 -07:00
Dhruv
a10fb75f35
replacing deprecated components and consts ( #19563 )
...
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-07-25 13:22:26 -07:00
David Walsh
bab1670432
Restructure CurrencyDisplay to use Design System ( #19171 )
...
* Restructure CurrencyDisplay to use Design System
* Add storybook, remove CSS
* Update ui/components/ui/currency-display/currency-display.component.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/ui/currency-display/currency-display.component.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/ui/currency-display/currency-display.stories.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/ui/currency-display/currency-display.component.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/ui/currency-display/currency-display.stories.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/ui/currency-display/currency-display.stories.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Remove deprecated imports, import EtherDenomination
* Update jest
* Use TextVariant: Inherit to keep correct font-size
* Snapshots
* Switch from boxProps to props
---------
Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-07-25 14:32:21 -05:00
George Marshall
25247d0300
Updating Icon types and component to use TS Box component ( #19990 )
2023-07-25 09:05:37 -07:00
António Regadas
4b9a4d330c
[MMI] Allows the mmi build to be generated using the dist command ( #20148 )
...
* adds listeners for signatureControll and adds the handleSigningEvents method
* clean up
* updates signature request containers files
* adds necessary methods
* wip
* signing flow with core methods
* yarn lint
* updates logic to fit latest signatureCOntroller
* updates mmi extension package
* updates signature-controller and message-manager packages
* checkout develop lock file and run yarn
* checkout develop lock file and package.json to test circleci
* test fix
* adds signature-controller new version
* updates mmi extension package
* tx-list update and runs lavamoat auto
* lint fix
* runs lavamoat auto
* resets lavamoat/build-system/policy.jsono to develop
* Update LavaMoat policies
* adds back the dispatch
* lint
* changes needed to generate a mmi build
* adds metametricsId in url param
* adds necessary fence
---------
Co-authored-by: MetaMask Bot <metamaskbot@users.noreply.github.com>
2023-07-25 10:31:52 +02:00
Harsh Shukla
84ff66c373
Part of #17670 for ui\components\app\transaction-detail-item\transaction-detail-item.component.js ( #19980 )
...
* Part of #17670 for ui\components\app\transaction-detail-item\transaction-detail-item.component.js
* Update transaction-detail-item.component.js
---------
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-07-24 21:09:56 -07:00
Dhruv
edbc728014
Migrate component to TS: Tag ( #20086 )
...
* migrating Tag to TS
---------
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
2023-07-24 13:42:10 -07:00
Harsh Shukla
a01e4fa00a
Updating SignatureRequestData components ( #19994 )
...
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-07-24 13:40:41 -07:00
Danica Shen
74a645e957
feat(874): add tooltip to connect hardwallet and style refactor ( #20121 )
2023-07-24 19:00:34 +01:00
David Walsh
23c30d9ae1
UX: Fix display block value ( #20131 )
2023-07-24 10:36:03 -05:00