Shane T
16dabdf802
[MMI] Adds a warning if message signing account mismatches selected account ( #18659 )
...
* [MMI] Adds a warning if message signing account mismatches selected account
* chore: fix code fencing
* chore: remove render method to simplify
* chore: remove renderMethods
2023-04-25 12:47:12 +02:00
legobeat
64d4bfbbe9
Use SIWE origin validation logic from @metamask/controller-utils ( #18518 )
...
* feat: use SIWE origin domain validation from @metamask/controller-utils
* deps: @metamask/controller-utils@3.2.0->3.3.0
2023-04-25 17:25:58 +09:00
Thomas Huang
e65b955b19
Unit tests for various modals ( #18115 )
...
* Unit tests for Hide Token Confirmation modal
* Unit test for Export Private Key modal
* Unit test for Customize Nonce modal
* Bump coverage targets
---------
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2023-04-24 09:55:32 -07:00
Harsh Shukla
9fcbc554b0
Some linting issues in the file custom spending cap tooltip.js ( #18687 )
...
Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-04-24 10:52:57 -05:00
Garrett Bear
3e520214c9
update icons to ts enum version ( #18698 )
...
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
Co-authored-by: George Marshall <george.marshall@consensys.net>
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-04-24 09:19:19 -05:00
David Drazic
05dcff85a6
[FLASK] Fix text selection bug in snap ui ( #18719 )
...
* Fix text selection bug in snap ui
* Fix template mapping calls in other places
* Fix template mapping calls in snap-prompt
2023-04-24 12:56:44 +02:00
David Drazic
ff96836871
[FLASK] Add updated version of the Snaps settings UI ( #18438 )
...
* Add updated version of the Snaps list UI
Add more changes to match the designs of snaps list
Add next design iteration for snaps list
Update icons, sizes and pointer behaviour
Add redesign for snap settings page
Refactor and improve designs
Fix unit tests and refactor code
Fix e2e test
Fix lint
Update margin values
Add CSS override for connected sites list and update margins
Update paddings as requested
Fix vertical alignment of links
Fix tooltip position on the enable button
Add usage of getSnapName function for displaying snap names
Fix e2e tests and update date format for snap install date
Improve unit test for snap-settings-card
Change installation info logic
Update mocked state for snap
Add tests for ViewSnap component, refactor and update mocked state
Add check for version info
Change Snaps icon in Settings
Refactor Snaps list to use selector
Add handling in case of missing version history
* Fix icon ref
* Remove console logs
* Remove onClick from selector
* Add code fencing for imports in selectors.js
2023-04-24 12:21:37 +02:00
Ananyamadhu08
b53d335b2c
Part of 17670: Replace Typography with Text in detected-token-address.js ( #18435 )
...
* feat: replaced typography with text comp
* fix: changed h7 to h6
---------
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-04-24 14:49:35 +05:30
Ariella Vu
8bfcd5b11e
Sign-in With Ethereum SIWE cleanup ( #18230 )
...
* signature-req: replace Typography w/ Text
- this does update styles slightly
* siwe: extract showSecurityProviderBanner
* siwe: rn -> hasAgreedToDomainWarning
* siwe: update snapshot for updated Text usage
2023-04-21 16:36:27 -03:00
Albert Olivé
4f64e3d6c3
[MMI] Add-compliance-details component ( #18575 )
...
Co-authored-by: Antonio Regadas <antonio.regadas@consensys.net>
Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com>
2023-04-21 13:28:26 -05:00
George Marshall
d2779c9ef1
Updating Avatar components to forward refs ( #18678 )
...
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2023-04-21 08:51:34 -07:00
Nidhi Kumari
0efd00b755
UX Multichain: Added product tour component ( #18571 )
...
* adding product tour component
* updated control for prevIcon
* updated app-header and product tour
* updated css
* updated message strings
* updated tests
* removed console statement
* added selector for product tour
* updated test
* updated test
* updated state with steps
* Update ui/components/multichain/product-tour-popover/product-tour-popover.js
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
* Update ui/components/multichain/product-tour-popover/product-tour-popover.js
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
* Update ui/components/multichain/product-tour-popover/product-tour-popover.js
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
* Update ui/components/multichain/product-tour-popover/product-tour-popover.js
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
* Update ui/components/multichain/product-tour-popover/product-tour-popover.js
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
* Update ui/components/multichain/product-tour-popover/product-tour-popover.js
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
* Update ui/components/multichain/product-tour-popover/product-tour-popover.js
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
* Update ui/components/multichain/product-tour-popover/product-tour-popover.js
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
* Update ui/components/multichain/product-tour-popover/product-tour-popover.js
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
* Update ui/components/multichain/product-tour-popover/product-tour-popover.scss
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
* fixed lint errors
* updated lint error
* added changes for rtl support
* added changes for rtl support
* fixed lint errors
* Some suggestions (#18676 )
* updated messages and indentation
* fixed popup close on my final step
* updated rtl classname condition
---------
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-04-21 20:58:18 +05:30
Albert Olivé
48a61610af
[MMI] Add transaction-failed functional component ( #18623 )
...
* Finished component
* Fixed test mock variable
* Using design system colors
* Using design system icons
* removed uneeded css
2023-04-21 15:53:02 +02:00
David Walsh
4e3c08aba4
UX: Multichain: Network Menu: Set Focus on Selected Network ( #18706 )
2023-04-21 08:37:51 -05:00
António Regadas
4f4e9fb29c
[MMI] update eth overview component ( #18625 )
...
* wip
* adds mmi stake button and portfolio
* removes unnecessary js icon
* prettier
2023-04-21 12:16:09 +01:00
António Regadas
290353da9b
[MMI] interactive replacement token notification ( #18620 )
...
* adds the component and styles
* adds tests
* story file update
* clean up
* lint and prettier
* lint & prettier fix
* adds review changes
* adds necessary dependencies
* runs lint and prettier
2023-04-21 09:58:03 +01:00
flexa-rob
3c01011ffe
17873 ledger instruction banner ( #17937 )
...
* switched to use banner alert and added story
* enabled dismiss functionality
* remove close button
* bump global branches coverage target
* replace Typography with Text and (link) Button with ButtonLink
* unit test for component rendering
* left-align button links to match text
* update copy to reflect figma mock ups
* update unit test snapshot
* bump coverage threshold
* update snapshot to reflect button component changes
* update snapshot to reflect box changes
2023-04-21 13:21:31 +10:00
micaelae
a144b75fe8
Show Bridge button in TokenOverview component ( #18630 )
...
* Show Bridge button in TokenOverview component
* Hide Swap button in token overview page when network is not supported
2023-04-20 23:57:18 -02:30
George Marshall
c38cd21629
Adding deprecation notice to javascript version of Icon ( #18680 )
...
* Adding deprecation notice to javascript version of Icon
* Fixing lint issue
2023-04-20 11:09:55 -07:00
Thomas Huang
9b724d1032
Create New Vault test improvements ( #18259 )
...
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2023-04-20 06:36:03 -07:00
George Marshall
e96c0b6963
Update to component-library readme ( #18501 )
...
* Update to component-library readme
* Update ui/components/component-library/README.md
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
---------
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-04-19 19:30:29 -07:00
Monte Lai
fa6e26744d
18566 firefox ledger u2f message ( #18570 )
...
* check for user agent
* fix regex
* fix lint
* update link
* add test
* update message
* update coverage
* fix test names
* update text
* add whats new notification for firefox and ledger users
* update action button link
* update notification text
* update viewed notification
* update coverage
* update coverage
2023-04-19 19:23:07 -02:30
Garrett Bear
34c1e5a2a1
Fix/18492/update icon ts app folder ( #18645 )
2023-04-19 14:16:49 -07:00
Garrett Bear
4e1a96b4ef
Feat/18308/ds popover header component ( #18489 )
...
* add popover component
popperjs init
popperjs hook init
popper arrow styles
fix popover story
add popover positions constant
story testing
popover structure
popper placement
make forwardref
fix popover with TS updates
modifiers
createPortal
add useClickAway hook
newer popover component build
simplifed popperjs with toggle to show/hide
toggle popover
modal version
popover progress 65%
add hover functionality
hide folder
storybook demo
add close button props
working popover with arrow
title prop breaking
popover TS conversion
TS updates
update test
add test
add arrow test
add stories
remove unused hook
fix docs
add popoverheader
types fix
Fix typo: detetcted-tokens-link -> detected-tokens-link (#18408 )
Typography to text (#18382 )
* Typography to text
* Update README.md
* Update README.md
* minor changes in custom file
* minor change
* Resolved Conflict issues
---------
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
fix: Pass correct optimism chain id to gas estimation (#18478 )
removes unnecessary images (#18484 )
Fix firsttimeloaded logic (#18344 )
* use session storage, instead of chrome.runtime.onStartup and globalThis, for firstTimeLoaded architecture
* Ensure account tracker accounts remain defined upon service worker restart
* lint fix
* Simplify code
* Only call browser.storage.session in mv3
* Only call browser.storage.session.set after resetStates in mv3
* fix metamask controller reset states unit tests
* fix test
* fix test
* Actually fix tests
* lint fix
[FLASK] More Snaps E2E Optimization and Delay Reductions (#18245 )
* bip32 delay reduction
* asserts changed to waitFors in 32/44
* scrollTo change
* replaced delay for firefox flake
* more reduced delays
* more delay reductions and changes
* raise paralellism to 4 for snaps tests
* additional delay changes
* fixed update code
* removed comment
* removed another comment
Fix switch-ethereum-chain handler by passing configuration id to setA… (#18483 )
* Fix switch-ethereum-chain handler by passing configuration id to setActiveNetwork
* fix e2e test
* Fix e2e tests
* Update test/e2e/tests/switch-custom-network.spec.js
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
* Revert "Update test/e2e/tests/switch-custom-network.spec.js"
This reverts commit be533ff7f25e1fd42e951d9b817b8438035ae256.
---------
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
Bumping notification id's to 18 & 19 (#18460 )
* Popover header update with TS ButtonIcon
* update PopoverHeader types
* update using new Text enums
* readme fix
* direct file import
* remove forwardRef and add action argtypes
* remove console.logs
* add arg types and fix TS on HeaderBase
* george nits
* popover header snapshot update
---------
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-04-19 10:36:01 -07:00
Nidhi Kumari
cb6223b75f
removed portfolio icon from eth overview ( #18662 )
2023-04-19 22:22:53 +05:30
Nidhi Kumari
d362dbfacb
UX Multichain: updated ethereum logo icon ( #18528 )
...
* updated ethereum logo icon
* Updating eth logo (#18631 )
* Updating eth logo
* Removing border from eth logo identicon
* Removing old eth logo
* updated snapshot and lint errors
* updated eth logo from svg to png
---------
Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-04-19 20:55:19 +05:30
Jyoti Puri
5892acab81
Update gas limit on token allowance change ( #18524 )
...
* Update gas limit on token allowance change
* Fix unit test case
* lint: remove unused var txParams
* fix
* fix
* fix e2e
* fix e2e
* fix e2e
* fix e2e
* fix e2e
* fix build
* fix build
* fix build
* fix
* fix
* fix
* fix
* fix
---------
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
Co-authored-by: legobt <6wbvkn0j@anonaddy.me>
2023-04-18 20:53:45 -02:30
Garrett Bear
13f4295287
update Icon to TS version in UI Folder ( #18551 )
...
* update Icon to TS version and using proper Enums
* Update ui/components/ui/menu/menu.stories.js
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* Update ui/components/ui/nickname-popover/nickname-popover.component.js
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
---------
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
2023-04-18 09:48:34 -07:00
Jyoti Puri
c6aa4f38c5
Fix approve all warning modal ( #18613 )
...
* Fix approve all warning modal
* fix
* fix
* fix
2023-04-18 13:22:16 -02:30
Guillaume Roux
76d79d9cce
[FLASK] Redesign dropdown-tab
( #18546 )
2023-04-18 12:46:38 +02:00
Garrett Bear
81393e1b5d
update to enum DS Text component ( #18584 )
...
* update to enum DS Text component
* Update ui/components/component-library/text/README.mdx
Co-authored-by: Danica Shen <zhaodanica@gmail.com>
* Update ui/components/component-library/text/README.mdx
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* Update ui/components/component-library/text/README.mdx
Co-authored-by: Danica Shen <zhaodanica@gmail.com>
* Update ui/components/component-library/text/README.mdx
Co-authored-by: Danica Shen <zhaodanica@gmail.com>
* Update ui/components/component-library/text/README.mdx
---------
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
Co-authored-by: Danica Shen <zhaodanica@gmail.com>
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
2023-04-17 10:17:28 -07:00
Albert Olivé
c3cb464229
[MMI] Added custody-labels and account-list components ( #18197 )
...
* Added custody-labels and account-list components
* Modified link
* Renamed custody labels and improved code
* Added snapshot
* Fixed snapshot
* Finished connect-custody account-list
* Fixing css prettier
* Fixed comments of the PR
* Fixed code
---------
Co-authored-by: António Regadas <apregadas@gmail.com>
2023-04-17 17:06:41 +02:00
Niranjana Binoy
fedd6d4970
New reusable gas-display component ( #17976 )
2023-04-17 10:34:26 -04:00
Ariella Vu
1406885115
siwe: add ledger instructions ( #18589 )
2023-04-14 21:10:27 -03:00
vthomas13
40e4a3653f
Updating Terms of Use, Adding popover and onboarding flow check ( #18221 )
...
* WIP commit
* Moving copy out of messages.json, styling changes
* handling scroll button click and disable logic
* moving scrollButton up to popover component, adding logic for accepting terms of use in popover and onboarding flows
* adding terms of use to e2e wallet creation/import
* adjusting failing unit test
* fixing QR code e2e
* updating welcome test
* setting app state in fixtures
* Update app/scripts/controllers/app-state.js
removing console log
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* Update ui/components/app/terms-of-use-popup/terms-of-use-popup.stories.js
adding args to ToU popup storybook
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* Update ui/components/app/terms-of-use-popup/terms-of-use-popup.js
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* updating DS components in terms of use
* popover styling changes
* adding metametrics tracking
* editing scrollbutton behavior
* adding unit test
* code fencing
---------
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
2023-04-14 12:51:13 -04:00
António Regadas
8fdbd07c91
[MMI] Interactive replacement token modal ( #18523 )
...
* updates styles for confirm-add-institutional-feature
* initial component
* adds tests and storybook file
* clean up styles and adds MM design system
* prettier
* locale update
* lint
* snapshot update
---------
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-04-14 11:35:58 +01:00
David Drazic
3eefe874a8
[FLASK] Revert changes made to stable permission display (UI design) ( #18470 )
...
* Revert changes made to stable permission display (UI design)
* Add test for new component
* Update paddings for install flow
* Fix missing icons on snap installation flow
* Update storybook path
* Add targetSubjectMetadata param
---------
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2023-04-14 12:04:23 +02:00
Garrett Bear
e09028b4e5
Update multichain Icon imports ( #18536 )
...
* Update multichain Icon imports
* replace ButtonIcon with updated version
* Buttons with Icon TODO added
* update header to use TS version Icon
2023-04-13 15:24:47 -07:00
Nidhi Kumari
8becb57d9e
updated copy Address ( #18557 )
...
Co-authored-by: Danica Shen <zhaodanica@gmail.com>
2023-04-13 23:07:33 +05:30
Jyoti Puri
a2bec15c68
Improvement on approval pages ( #18545 )
2023-04-13 22:54:33 +05:30
David Walsh
eb51460cae
UX: Multichain: App header ( #18363 )
...
* UX: Multichain: App header
* Export app header, provide required information, put feature flag in place
* Provide available data
* Implement account picker -- centered and opens account popover
* Remove backgrounds, use isUnlocked
* Fix placement of the global menu
* Show logo when unlocked
* Add selector for getting current network, provide props to AvatarNetwork and PickerNetwork
* Wire up the network menu to the header
* fixed ui for all the screens
* updated story for header
* fixed import and header settings
* updated lint error
* fixed tests
* updated header
* removed test
* updated snapshot test
* updated network menu
* updated changes
* removed comment from menu bar
* updated css
* updated test for network list menu
* updated stylesheet
* updated ButtonIcon import
---------
Co-authored-by: NidhiKJha <menidhikjha@gmail.com>
2023-04-13 22:24:03 +05:30
Niranjana Binoy
643a89f24d
Disabling network and account changes after the send flow is initiated ( #18086 )
2023-04-13 12:51:20 -04:00
António Regadas
300bfd6e69
[MMI] 2642 compliance modal component ( #18410 )
...
* adds component, styles and storybook file
* wip
* prettier and adds test
* prettier
* lint
* review fix
* lint
* updates to IconSize, IconName
2023-04-13 11:14:44 +01:00
Garrett Bear
065c499753
update ButtonIcon to TS ( #18448 )
...
* update ButtonIcon to TS
lint updates
fix lint issues
add ref
fix as prop
test updates
* box and icon updates for support
* Update ui/components/component-library/text-field/README.mdx
Co-authored-by: George Marshall <george.marshall@consensys.net>
* fix disabled
* update types for as
* update readme
* fix storybook
* george changes to button icon
* revert headerbase
* box prop back to HTMLElementTagNameMap
---------
Co-authored-by: George Marshall <george.marshall@consensys.net>
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-04-12 08:55:24 -07:00
Filip Sekulic
54aeb1b791
Replace contract with third party within the token allowance flow ( #18101 )
2023-04-11 08:49:42 +05:30
dswilson4
826ac55c32
initial changes to support controls over knobs in storybook ( #18502 )
...
* initial changes to support controls over knobs in storybook
* fix linting issue
2023-04-10 13:37:07 +05:30
George Marshall
f31596af24
Fix hold to reveal button ( #18496 )
2023-04-10 11:27:56 +05:30
Nidhi Kumari
b452f40e2f
Update new send icon ( #18411 )
...
* updated send icon
* optimised svg
* updated enum
2023-04-06 17:43:15 -07:00
vthomas13
c6cd3c9ff2
Bumping notification id's to 18 & 19 ( #18460 )
...
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
Co-authored-by: Dan J Miller <danjm.com@gmail.com>
2023-04-06 12:38:11 -02:30
Danica Shen
f92e463a0f
fix: Pass correct optimism chain id to gas estimation ( #18478 )
2023-04-06 12:50:52 +01:00