David Drazic
354788510e
[FLASK] Update UI (for audit) (UI facelift) ( #19388 )
...
* Update UI (for audit)
Revert yarn.lock change
Update e2e tests with new copy for a button
Make UI changes to custom Snap UI
Update UI on snap installation success page
Fix icon on installation success
Fix snap name font weight in installation page
Add UI changes for Snap installation failed page
Add new copy for snap installation screen
Update e2e tests OK button name
Update OK button names in e2e tests
Return previous functionality of update flow
Add error message handling for update screens
* Fix after rebase
* Fix messages.json update message
* Revert SCSS changes
* Refactor failed and success screen rendering
2023-06-06 12:15:20 +02:00
Nidhi Kumari
b64aa7f958
UX Multichain: Update settings title ( #19414 )
...
* update settings title
* fixed add contact button
2023-06-05 21:34:17 -07:00
Bernardo Garces Chapero
5355000202
Handle watch asset accept and reject using ApprovalController only ( #18829 )
2023-06-05 21:13:22 +01:00
Brad Decker
b5ef94b9f0
Revert "feature: Add legacy derivation path to Trezor ( #19443 )" ( #19451 )
...
This reverts commit 36de02ff69
.
2023-06-05 14:20:38 -04:00
Simon Males
36de02ff69
feature: Add legacy derivation path to Trezor ( #19443 )
2023-06-05 11:34:08 -05:00
Frederik Bolding
3b9e2eb5e5
[FLASK] Update snap tweaks ( #19410 )
...
* Sort revoked permissions before existing permissions
* Simplify update screen logic and update copy
* Remove approve and update copy
* Reduce nesting
2023-06-05 14:31:11 +02:00
David Walsh
931b126831
UX: Multichain: Make MetaFox logo more accessible ( #19395 )
...
* UX: Multichain: Make MetaFox logo more accessible
* Fix jest snapshots
2023-06-02 11:43:20 -05:00
Albert Olivé
9195057136
[MMI] Added code fencing in libs folder ( #17929 )
2023-06-02 18:40:58 +02:00
Jyoti Puri
f1de905be7
Fix details when transferring NFT not added to wallet ( #19045 )
2023-06-02 18:33:10 +05:30
Suryansh Anand
20fe6fcad4
Fix/storybook console cleanup ( #19244 )
...
* Fix: Fix storybook console error of networkList not being found when passed to createStore
* Fix: Remove unused testData imports
2023-06-01 14:40:39 -07:00
David Walsh
b89630fdd2
Release MultiChain 0.5 ( #18903 )
...
* Show portfolio icon in ETH overview
* Show new copy button in QR code modal
* Show address copy button in wallet overview
* Update connected status component
* Remove legacy MenuBar
* Remove legacy ImportTokenLink
* Remove AssetListItem
* Remove DetectedTokensLink
* Remove legacy AppHeader
* Remove MULTICHAIN flag from builds.yml
* Remove legacy AccountMenu
* FIX: Token cell snapshot
* Add data-testid for Account Picker
* Remove multichain check in LoadingNetworkScreen
* Remove MULTICHAIN check for AccountDetailsModal
* Remove MULTICHAIN check for AssetList
* Update QR dimensions
* Remove MULTICHAIN declaration from metamaskrc.dist
* Implement PickerNetwork and NetworkListMenu in onboarding
* Remove legacy NetworkDropdown and Dropdown
* Remove documentation about legacy account menu
* FIX: Fixes route tests for missing data-testid=network-display
* Fix account-menu-icon data-testid
* Fix TokenCell test
* FIX Onboarding Flow tests
* Remove unused locales from AccountMenu removal
* E2E: Fix Import Secret Recovery Phrase: logs out of the vault
* E2E: Fix Show account details: should show the QR code for the account
* E2E: Fix add-account.spec.js
* E2E: Fix state-logs.spec.js
* E2E: Fix lock-account.spec.js
* E2E: Fix settings-general.spec.js
* E2E: Fix advanced-settings.spec.js
* E2E: Fix auto-lock.spec.js
* E2E: Fix backup-restore.spec.js
* E2E: Fix clear-activity.spec.js
* E2E: Fix settings-search.spec.js
* E2E: Fix encrypt-decrypt.spec.js
* E2E: Fix dapp-interactions.spec.js
* E2E: Fix test-snap-management.spec.js
* E2E: Fix add-custom-network.spec.js
* E2E: Fix from-import-ui.spec.js
* E2E: Fix provider-api.spec.js
* E2E: Fix chain-interactions.spec.js
* E2E: Fix custom-rpc-history.spec.js
* Remove network icon from overview components
* E2E: Fix user-actions-benchmark.js
* E2E: Fix benchmark.js
* E2E: Fix add-hide-token.spec.js
* E2E: Fix address-book.spec.js
* E2E: Fix custom-token-add-approve.spec.js
* E2E: Fix incremental-security.spec.js
* E2E: Fix metamask-responsive-ui.spec.js
* E2E: Onboarding.spec.js
* E2E: Fix permissions.spec.js
* E2E: Fix send-hex-address.spec.js
* E2E: Fix send-to-contract.spec.js
* Remove dead AccountOptionsMenu test
* E2E: Fix token-details.spec.js
* E2E: Fix switch-custom-network.spec.js
* E2E: Fix metamask-ui.spec.js
* Revert "UX Multichain: updated border top for activity list (#19176 )"
This reverts commit 15598f2a23
.
* E2Es: Fix test-snap-management.spec.js and test-snap-notification.spec.js
* E2Es: Fix add-account.spec.js after flaky test fixes
* e2e flaky test
* adds back the mmi options
* scss fix
* test fix
* removes unnecessary double quotes
* Prevent double logos on login screen
* Update ui/components/ui/list-item/index.scss
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
---------
Co-authored-by: seaona <mariona@gmx.es>
Co-authored-by: Antonio Regadas <antonio.regadas@consensys.net>
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
2023-06-01 16:14:38 -05:00
Ariella Vu
d5dd4fa881
ConfirmTxPage: rm redundant unapprovedTxs const ( #19275 )
...
* fix typo: uncofirmedTransactions -> unconfirmedTransactions
* txHelper: reorganize lines and improve test
* ConfirmTx: rn unconfirmedTxs->unconfirmedTxsSorted
* ConfirmTx: rn unconfirmedMessages-> unconfirmedTxs
* ConfirmTxPage: rm redundant unapprovedTxs const
* lint: rm unused getUnapprovedTransactions
2023-06-01 18:42:19 +02:00
Ariella Vu
ea4270babf
ConfirmApprove: fix space occurring after footer ( #19276 )
2023-06-01 16:12:09 +02:00
Ariella Vu
8d79e28560
Clean ConfirmTransaction page related code ( #19208 )
...
* fix typo: uncofirmedTransactions -> unconfirmedTransactions
* txHelper: reorganize lines and improve test
* ConfirmTx: rn unconfirmedTxs->unconfirmedTxsSorted
* ConfirmTx: rn unconfirmedMessages-> unconfirmedTxs
2023-06-01 16:10:26 +02:00
OGPoyraz
d99aecc164
deep clone signature tx in order to avoid state mutation bug on development ( #19179 )
2023-06-01 11:48:07 +02:00
Mark Stacey
000c1f2ef4
Update @metamask/controller-utils
to v4 ( #19344 )
...
The package `@metamask/controller-utils` has been updated to v4. This
version was part of the core monorepo v53 release. The remaining
packages released as part of v53 will be updated in later PRs.
This release included a variety of breaking changes, but most of them
did not affect the extension's usage of this library. The one that did
have an impact was the removal of the `Json` type, which was identical
to the `Json` type in `@metamask/utils`. We're now using the
`@metamask/utils` version of this type exclusively.
Relates to #19271
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-05-31 18:33:29 -02:30
David Drazic
f788121c3b
[FLASK] Add Snaps privacy warning on snap install ( #18835 )
...
* Add Snaps privacy warning on snap install
Add snap install warning status to storage
Add storybook
Add test for snap-privacy-warning
Resolve button type issue
Fix popup display logic
Update fixture
Update popup information and read more handling
Replace deprecated button
Update unit test
* Update buttons and add cancel flow
* Refactoring (review 1)
* Add more unit tests
2023-05-31 14:43:39 +02:00
legobeat
dfafdbb6bd
Revert "[MMI] Add confirm-transaction-base code fences ( #18795 )" ( #19328 )
...
This reverts commit 97a9834182
.
Co-authored-by: António Regadas <apregadas@gmail.com>
2023-05-30 21:39:38 +09:00
Albert Olivé
97a9834182
[MMI] Add confirm-transaction-base code fences ( #18795 )
...
* Added code fences
* Continue working on this ticket
* Fixed policies
* Added compliance-row component
* Fixed tests and css
* Fixed invalid locale
* Fixing linting
* Add optional check
* Fixing issues
* Fixed storybook
* Added missing dependency
* ran lavamoat auto
* ran dedupe and lavamoat
* lint
* Removed compliance row
* Removed unneeded package
* Removed unneeded proptyes
* updates mmi packages
* updating lavamoat
* formatting main
* Fixed conflicts
* updates lock file
* Moved code fences to have them all in the same place
* Updated yarn.lock and lavamoat
* remove linebreak
* Improved logic in order to not have many code fences and improve readability
* Fixing proptypes issues with eslint
* runs lavamoat auto
* Testing fixes issue e2e tests
* Testing issues
* Reverting code fences container
* Fixing issue with binding
* Added code fences in proptypes
* Reverting code fences
---------
Co-authored-by: Antonio Regadas <antonio.regadas@consensys.net>
Co-authored-by: António Regadas <apregadas@gmail.com>
2023-05-29 16:50:56 +01:00
Daniel
e1b12279ab
Show the right "balance needed" value if we fallback from STX to regular Swaps ( #19230 )
...
* Show the right balance needed value if we fallback from STX to regular Swaps
* Fix usage of StxErrorTypes
2023-05-25 19:30:10 +02:00
Daniel
af018efcb6
Styling fix and content update for Swaps ( #19284 )
2023-05-25 18:48:11 +02:00
Albert Olivé
057188d155
[MMI] Add code fences in signature-request ( #18770 )
...
* Started adding code fences in signature-request
* Finished code fencing
* Improving code
* Fixed storybook and code fences bundle
* Added missing dependency
* Fixed yarn.lock
* Fixing policies
* Updated package.json
* updating lavamoat
* lavamoat fix
* adds missing package
* runs yarn dedupe
* updates method name
* run lavamoat:auto again
* Added more code fences
* updates snapshot
* snapshot updates
* updates mmi packages to lighter versions
* updates mmi packages
* runs lavamoat auto
* updates yarn lock and runs lavamoat auto
* updates yarn lock
* updates targets file
* Removed console log and added tests
---------
Co-authored-by: António Regadas <apregadas@gmail.com>
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
Co-authored-by: Antonio Regadas <antonio.regadas@consensys.net>
2023-05-24 13:41:21 +02:00
Monte Lai
832ce634fd
feat(accounts): import account without password ( #19132 )
...
import account without password
---------
Co-authored-by: Mike B <32695229+plasmacorral@users.noreply.github.com>
Co-authored-by: Gustavo Antunes <17601467+gantunesr@users.noreply.github.com>
Co-authored-by: Howard Braham <howrad@gmail.com>
2023-05-23 15:54:30 -07:00
Nidhi Kumari
9db971768b
UX Multichain: updated ui for settings page ( #19167 )
...
* updated ui for settings page
* lint fix
* resolved errors
* fixed search bar css
* fixed css
* lint fix
* fixed tests
* fixed indentation
* updated settings aria label
2023-05-23 23:59:00 +05:30
Hassan Malik
a9429c5c0d
[FLASK] Fix classnames for snaps components ( #19234 )
...
* renamed classnames according to BEM, removed unnecessary scss file
* remove plurality in classnames
2023-05-23 09:07:44 -04:00
Frederik Bolding
80437b9b4a
[FLASK] Fix an issue with submitting an empty Snaps UI prompt ( #19227 )
...
* Fix an issue with submitting an empty Snaps UI prompt
* Fix code fencing
* Revert accidental whitespace change
2023-05-23 11:46:45 +02:00
George Marshall
8437d0491f
Deprecated Icon and ButtonIcon clean up ( #19220 )
...
* Updating all deprecated instances of Icon and ButtonIcon
* Removing unused deprecated components and scripts
2023-05-19 10:33:02 -07:00
OGPoyraz
99bd28d1d9
fix: support alerts confirmation page without pending transactions ( #18983 )
2023-05-19 14:13:34 +02:00
Ariella Vu
813ad984ce
Fix contract interaction recipient and contract address ( #18855 )
2023-05-18 18:19:40 +01:00
Andrew Peters
67614593a8
Disable Previous Button on First Page ( #17610 )
...
* disable prev page button
* test added
* test fixes
* tests fixed
* test fix
---------
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
Co-authored-by: Mike B <32695229+plasmacorral@users.noreply.github.com>
2023-05-18 09:24:04 -04:00
legobeat
8675c7863e
devDeps: storybook@7 ( #19092 )
...
* devDeps: pin @babel/core and @babel/runtime in resulotions
Without this: misses patch, lavamoat error
* storybook 6 to 7 migration
* devDeps: add @storybook/addon-mdx-gfm
* fix lint deps
* devDeps: remove unused require-from-string
* devDeps/resolutions: @types/react@^16.9.53
* devDeps: add @storybook/cli
* storybook: new-frameworks migration
* iyarc: remove resolved dependency advisory
* deps: set globalthis@1.0.1 in resolutions
This is required since a file is copied over from a set path in the dist
package subdirectory as of d13aabde23
(#10014 ).
A future update should either vendor the shim, or update to
compatibility with a maintained upstream version.
* mdx2 migration fixes
* chore: bump ljharb packages
* devDeps: @storybook/*@^7.0.10->^7.0.11
* storybook: update preview.js to use v7 addon api
* ci/test/storybook: echo between storybook build&test
* ci/circleci: resources tweak
* info-tab: handle undefined global.platform
* update lavamoat build policy
* update lavamoat browserify policies
2023-05-18 11:07:42 +09:00
Nidhi Kumari
ac6fb3bb09
UX Multichain: updated assets to tokens in home page ( #19144 )
...
* updated assets to tokens in home page
* lint fix
* lint fix
* updated tests and spec files
* lint fix
2023-05-17 08:30:47 +05:30
Albert Olivé
a017a1bae0
[MMI] Added note to trader code fencing ( #18051 )
...
* Added note to trader code fencing
* Started adding code fences in signature-request
* Finished code fencing
* Improving code
* adds check and runs prettier
* Fixed storybook and code fences bundle
* Added missing dependency
* updates fences
* fewer lines
* undo previously merged PR
* ran lavamoat auto
* adds test
* prettier
---------
Co-authored-by: António Regadas <apregadas@gmail.com>
Co-authored-by: Antonio Regadas <antonio.regadas@consensys.net>
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2023-05-16 16:44:08 +01:00
Albert Olivé
f95320d03e
[MMI] Started adding styles imports with code fences ( #17943 )
...
* Started adding styles imports with code fences
* FIxed prettier issues
* removed fences since they dont do anything
* Update ui/components/ui/ui-components.scss
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
---------
Co-authored-by: Antonio Regadas <antonio.regadas@consensys.net>
Co-authored-by: António Regadas <apregadas@gmail.com>
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2023-05-15 12:38:54 +01:00
OGPoyraz
d37d5bf0ee
feat: Refactor Transaction Confirmation selector ( #18796 )
2023-05-11 07:56:17 +02:00
Vinicius Stevam
df3db6e559
Adopt ApprovalType from core ( #18567 )
2023-05-10 06:36:01 +01:00
Harsh Shukla
e991439718
Part of #17670 & #18714 : Replace Typography with Text component in token-details-page.js ( #18741 )
...
* Worked on issue #17670 & #18714 in file token-details-page.js in file
* Worked on issue #17670 & #18714 in file token-details-page.js in file
* Update token-details-page.js
2023-05-09 17:55:30 -07:00
Nidhi Kumari
6535e34943
Replaced all fa-icon-circle with INFO icon ( #17539 )
...
* replace all fa-icon-circle with INFO icon
* updated classnames
* updated classnames
* updated snapshots
* updated colors
* resolved errors
* fixed relative import
* fixed lint errors
* added story for alerts tab
* update snapshot
* updated info-circle
* updated enum for iconName
* removed classnames
* updated iconName in settings
* fixed lint errors and snapshots
2023-05-09 23:04:58 +05:30
Nidhi Kumari
cde449925b
UX Multichain: updated margin top for assets tab ( #19071 )
...
* updated margin top for assets tab
* remove changes from yml file
* remove changes from yml file
2023-05-09 11:32:56 -05:00
David Walsh
b981377304
UX: Multichain: Disable network and account picker when necessary ( #18909 )
2023-05-08 12:32:39 -05:00
António Regadas
7ebd561ff9
[MMI] adds mmi logic in home view ( #18960 )
...
* adds mmi logic to home container
* adds code fences to home component
* adds code fences to home component
* lint fix
* lint fix
* updates fences and runs prettier
* version bump
* clean up code fence
2023-05-08 15:09:00 +01:00
Nidhi Kumari
e8dd6a6ff1
UX Multichain: Added extra margin for native token ( #18988 )
...
* added extra margin for native token
* fixed lint errors
* added marginTop via css
* updated test
* added boxprops and margin bottom for tab component
* updated snapshot
* update asset list component
2023-05-08 19:17:45 +05:30
Monte Lai
0306422bbf
Add reveal to export private key ( #18170 )
...
Co-authored-by: George Marshall <george.marshall@consensys.net>
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
Co-authored-by: David Walsh <davidwalsh83@gmail.com>
Co-authored-by: Howard Braham <howrad@gmail.com>
* change js to tsx
* update to typescript
* add labels to circle animation
* add willHide prop to hold to reveal modal
* add test
* convert to design system
* fix lint
* fix type
* bump coverage
* rename
* remove comments
* remove ts comment and add fix exhuastive dep check
* update coverage
* add hide modal test
* use banneralert
* update label
* remove unused
* fix text
* update aria label messages
* change exportAccountAndGetPrivateKey to be async
* fix lint
* update coverage target
* update coverage
* update input component
* update coverage
* update coverage
* fix blank line
* use &&
* move plainKey to under !privateKeyInput
* update hold modal to display srp and private key message
* fix styling
* fix lint and test
* fix unused locales
* remove redundent check
* update storybook
* fix text alignment
* fix lint
* update snapshot
* fix test
* update coverage
* fix merge conflict
* refactor
* fix variant
* update snapshot
* fix test after merge
* fix test after merge conflict
* fix label text
* update to use label component
2023-05-06 17:04:20 -04:00
Harsh Shukla
944d39ed3a
Part of #17670 : Replace Typography with Text component in smart-transaction-status.js ( #18743 )
...
* Update smart-transaction-status.js
* Update smart-transaction-status.js
* Update smart-transaction-status.js again.
* Update smart-transaction-status.js
* Update smart-transaction-status.js
* Update ui/pages/swaps/smart-transaction-status/smart-transaction-status.js
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
* Update smart-transaction-status.js
---------
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
2023-05-05 12:15:39 +01:00
Harsh Shukla
9fae71505c
Part of #17670 Replace Typography with Text component for 4 files. ( #18793 )
...
* Worked on issue #17670 & #18714 for 4 other files.
* Updated snapshots.
* Update index.test.js.snap
* Update customize-nonce.test.js.snap
* Update signature-request.component.test.js.snap
---------
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-05-05 12:14:09 +01:00
Guillaume Roux
f0fd1772ee
[FLASK] Don't show the title on Install/Update when it's loading ( #19012 )
2023-05-05 10:00:14 +02:00
Jyoti Puri
9c63dfca89
Changes in blockaid texts ( #19001 )
2023-05-04 23:51:46 +05:30
Harsh Shukla
398b0cf452
Part of #17670 & #18714 : Replace Typography with Text component: token-allowance.js ( #18742 )
...
* Update token-allowance.js
* Remove fontWeight prop in: ui/pages/token-allowance/token-allowance.js
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
* Update ui/pages/token-allowance/token-allowance.js
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
* Update token-allowance.js
* Update ui/pages/token-allowance/token-allowance.js
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* Update ui/pages/token-allowance/token-allowance.js
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
---------
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
2023-05-04 22:08:43 +05:30
António Regadas
229906d09a
clean up and adds a code fence ( #19005 )
2023-05-04 15:57:12 +01:00
Nidhi Kumari
cfc653ada6
eth_sign toggle Update in advanced settings ( #18848 )
...
* added eth sign first step
* added modal
* added validation for form
* updated width with block
* added state trigger for toggle
* updated Eth sign modal text changes
* added eth sign toggle tex
* removed unnecessary code
* fixed form validation text
* updated eth toggle text
* added test
* added analytics
* updated design changes
* lint fix
* updated error text
* updated changes
2023-05-04 16:44:07 +05:30