Elliot Winkler
9b0a6ecc90
NetworkController: Use messenger for events ( #18041 )
...
Currently, the network controller notifies consumers about events by
emitting them directly from the controller. In order to migrate the
controller to the core repo, where controllers use the BaseControllerV2
interface, events should be emitted via a messenger object.
This commit updates the network controller to use a messenger, and then
updates all of the controllers that listen for network events to use the
messenger as well.
2023-03-30 12:39:36 -06:00
Jyoti Puri
b3e45ea4bc
Adding terms of use link for opensea ( #18381 )
2023-03-30 22:25:02 +04:00
David Walsh
6f7e382777
UX: Multichain: Improve accessibility of accounts menu ( #18309 )
...
* UX: Multichain: Improve accessibility of accounts menu
* Use button instead of a
* Pass color instead of using CSS
2023-03-30 13:12:45 -05:00
David Walsh
ba307d7258
UX: Multichain: Account Picker ( #18177 )
...
* UX: Multichain: Account Picker
* Update ui/components/multichain/account-picker/index.js
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
* Update ui/components/multichain/account-picker/index.js
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
* Update ui/components/multichain/account-picker/index.js
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
* Update ui/components/multichain/account-picker/index.js
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
* Cleanup
* Move file names to DS standard
* Add index for export
* Add MULTICHAIN flag
* Fix hover color
* Fix lint
* Use BackgroundColor instead of Color
* Add comments for propTypes
* Provide args properly
* Implement onClick arg
* Fix alignment
* Update ui/components/multichain/account-picker/account-picker.js
* Update ui/components/multichain/account-picker/account-picker.js
* Update ui/components/multichain/account-picker/account-picker.js
* Update ui/components/multichain/account-picker/account-picker.js
* Update ui/components/multichain/account-picker/account-picker.js
* Only use account name and address, account for blockies or jazzicons
* Add test
* Fix jest change
* Fix CSS locations
* Update ui/components/multichain/account-picker/account-picker.js
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
* Update ui/components/multichain/account-picker/account-picker.js
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
* Update ui/components/multichain/account-picker/account-picker.js
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
* Update snapshot
* Update border radius
* Fix jest
* Switch to using Button
---------
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
2023-03-30 13:11:13 -05:00
Pedro Figueiredo
05f0006684
Fix aria label error on the console ( #18370 )
...
* fix aria label bug
* improve solution
* improve solution
* improve solution
* update snapshot
2023-03-30 18:33:42 +01:00
Alex Donesky
da06901f79
Fix #18199 : Add fallbacks for confirmation title on NFT transfers ( #18269 )
...
* add fallbacks for confirmation title on nft transfers
* Add token name and id
* fix
* fix test
---------
Co-authored-by: David Walsh <davidwalsh83@gmail.com>
2023-03-30 14:07:29 -02:30
António Regadas
9f89d71c6f
[MMI] compliance settings component ( #18274 )
...
* MMI-2657 adds the compliance settings screen
* MMI-2657 adds stories file
* review fixes
* review fixes
* lint fix
* clean up
* Update ui/components/institutional/compliance-settings/compliance-settings.stories.js
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* lint fix
* snaps update
* Button update
---------
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
2023-03-30 12:40:37 +02:00
Albert Olivé
b5184db620
[MMI] Added code fencing in keyring-label component ( #17993 )
...
* Added code fencing in keyring-label component
* Updated tests
2023-03-30 09:42:59 +02:00
Albert Olivé
f7aea9dc34
[MMI] Created institutional-entity-done-page component ( #18096 )
...
* Created institutional-entity-done-page component
* Added index file
* Added css file and Boxes
* Fixing prettier formatter
* Fixed prettier format
* Fixing prettier issues
* Fixed prettier
* Adding Text component
* Removed styles and added story
* Moving component to pages and improving styles
---------
Co-authored-by: António Regadas <apregadas@gmail.com>
2023-03-30 08:33:12 +02:00
Dan J Miller
06fba70888
Merge pull request #18366 from MetaMask/master-sync
...
Master sync for v10.27
2023-03-29 12:39:30 -07:00
Hassan Malik
c2b2f2685e
[FLASK] Redesign key management modal ( #18263 )
...
* added the rest of the sev1 warnings to getSnapInstallWarnings
* added and updated translations
* Updated getSnapInstallWarnings to include warnings for all weight-1 permissions
* Updated snap install warning and css according to designs
* fix snaps tests
* fixed alignment/spacing
* updated e2e tests to click through the newly displayed public key access warning
* lint fix
* fixed update snap test
* refactored getSnapInstallWarnings, moved logic to PERMISSION_DESCRIPTIONS
* fix logic to account for objects & arrays
* update function description
* add missing properties to ethereum provider description
* moved id and message to baseDescription to fix error
* add optional chaining to fix undefined error
* more optional chaining
* more optional chaining
2023-03-29 15:17:57 -04:00
Pedro Figueiredo
27f3af80bd
Revert "Fix(18190): add tabs to permission when initializing app ( #18218 )" ( #18336 )
...
This reverts commit 1eb102fd96
.
2023-03-29 20:11:08 +01:00
Ariella Vu
058c571fab
Fix Sign-in With Ethereum (SIWE) metametric, add tests, and clean RPC method middleware event logic ( #18008 )
...
* rpc middleware: update comment
* rpc middleware: use errorCodes const
* rpc middleware: only create event props once
* rpc middleware: rn properties -> eventProperties
* rpc middleware: use TransactionStatus const
* rpc middleware: use const for ui_customizations
* rpc middleware: no need to push null eventProp
- also removes === null check which makes this logic a bit more robust
* rpc middleware: rn METRIC..OPTIONS -> METRIC..OPT
* clean: add consistency
* rpc middleware: refactor let msgParams
* lint: rm unused METAMETRIC_KEY
* fix test: do not pass ui_customizations: null
* rpc middleware test: consolidate tests
* rpc middleware: fix siwe event
.push returns length of mutated array
* rpc middleware test: add siwe test
* rpc middleware test: rm redudant set
2023-03-29 15:25:01 -03:00
Peter
3c22a3b8a7
Merge branch 'develop' into master-sync
2023-03-29 18:46:02 +01:00
David Walsh
6052841381
Fix breaking jest test for MMI ( #18365 )
...
* Fix breaking jest test for MMI
* Bump coverage threshold
---------
Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
Co-authored-by: PeterYinusa <peter.yinusa@consensys.net>
2023-03-29 13:44:04 -04:00
David Walsh
efc34b9420
UX: Multichain: Address Copy Button ( #18153 )
2023-03-29 11:14:38 -05:00
PeterYinusa
0fde32c1f5
Conflict cleanup 10.27.0 master-sync
2023-03-29 16:32:59 +01:00
PeterYinusa
04e5b76348
Merge remote-tracking branch 'origin/develop' into master-sync
2023-03-29 16:27:25 +01:00
Matthew Walsh
ff20873c65
Add documentation for creating new confirmations ( #18317 )
2023-03-29 16:01:05 +01:00
António Regadas
8fbd1e30e8
[MMI] compliance feature page ( #18320 )
...
* MMI-2657 adds the compliance settings screen
* MMI-2657 adds stories file
* wip compliance feature page
* adds stories and fixes imports
* adds storybook and tests
* lint fix
2023-03-29 14:49:45 +01:00
Matthew Walsh
12bd9b0b94
Fix missing transaction notifications ( #18323 )
2023-03-29 12:19:50 +01:00
OGPoyraz
f32d71ba1a
Merge pull request #18102 from MetaMask/fix/599-fix-theme-issues-of-desktop-pairing-page-in-the-extension-ui
...
fix: fix theme issues of desktop pairing page
2023-03-29 10:58:17 +02:00
Thomas Huang
8f65c268b4
Welcome onboarding unit test ( #18248 )
2023-03-29 14:00:34 +08:00
Youmna Jaza
6be18552ab
Updating Typography to Text ( #17681 )
...
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-03-28 15:04:22 -07:00
David Walsh
870415f111
UX: Multichain: Global Action Menu ( #18158 )
2023-03-28 14:59:18 -05:00
David Walsh
8cba64b993
Remove isEIP1559Account usage ( #18064 )
2023-03-28 09:50:02 -05:00
seaona
d4f04815c2
Remove timeouts without effect ( #18342 )
2023-03-28 14:59:41 +02:00
Goktug Poyraz
c640e769b2
Update snapshot
2023-03-28 10:36:53 +02:00
Goktug Poyraz
3a1bcf1446
Adds desktop pairing page story and fix suggestions
2023-03-28 10:35:30 +02:00
Goktug Poyraz
c1b607bdba
Fix: add tests
2023-03-28 10:35:30 +02:00
Goktug Poyraz
d2b44a338d
fix: download link
2023-03-28 10:35:30 +02:00
“Goktug
d2098e26ac
fix: fix theme issues of desktop pairing page
2023-03-28 10:35:30 +02:00
aleksandar-mihajlovic
0f1b86a037
Removed advanced gas controls from the settings ( #18138 )
2023-03-27 08:45:17 +02:00
Frederik Bolding
4179ce634c
[FLASK] Update snap authorship component ( #18262 )
...
* Create new snap authorship component
* Add icons and fix overflow issues
* Add empty state + more fixes
* Fix overflow
* Move some code to SnapAvatar
* Fix lint
* Change component name
* Delete forgotten file
2023-03-24 17:16:46 +01:00
Dan J Miller
d8591d48c6
Merge pull request #18267 from MetaMask/Version-v10.27.0
...
Version v10.27.0 RC
2023-03-24 05:05:34 -07:00
Garrett Bear
79b2deb194
update text component color to use box color ( #18246 )
...
snapshot updates
fix snapshots
add background colors
fix snapshots
2023-03-23 13:00:37 -07:00
Victorien Gauch
3e2361a3fc
fix: update zkevm feature toggle date ( #18307 )
2023-03-23 17:27:21 -02:30
Victorien Gauch
fcdc5c9c14
fix: update zkevm feature toggle date ( #18307 )
2023-03-23 17:26:07 -02:30
Ariella Vu
0d2c54e808
Fix Signature Request scroll ( #18305 )
...
* signature-req: fix scroll
* signature-req: fix scroll allow items to shrink
2023-03-23 16:04:24 -03:00
Jyoti Puri
5dee7904d6
Extracting out title component from confirm-transaction-base ( #17991 )
2023-03-23 22:21:33 +04:00
Dan J Miller
129535095a
Fix error in code written to handle merge conflicts in 3552941323
2023-03-23 15:00:19 -02:30
micaelae
2fc0d93789
Disable Bridge button on unsupported networks ( #18268 )
2023-03-23 14:54:10 -02:30
Filip Sekulic
0351309227
OpenSea security provider metrics ( #17688 )
...
* Added metrics for the OpenSea security provider
* Fixed tests
* Fixed a test
* Fixed metrics
* Code refactor
* Lint fixed
* Removed unnecessary code
* Fix build
* Fix e2e
* Cleanup
* Fix e2e
* Code refactor
* Removed unnecessary code
* rpc middleware: catch securityProviderCheck errors
to not block dapp rpc requests
* Fixed an issue
* Added aditional test
* Applied some changes
* Fixed a test
* Fixed a test
* Code refactor
* Covered more code with tests
* Updated a test
* Fixed an issue
---------
Co-authored-by: Jyoti Puri <jyotipuri@gmail.com>
Co-authored-by: digiwand <20778143+digiwand@users.noreply.github.com>
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2023-03-23 14:01:51 -03:00
Ariella Vu
196b8408d0
PermissionsConnectHeader: unlock SiteOrigin title ( #18270 )
...
* PermissionsConnectHeader: unlock SiteOrigin title
* SignatureRequestOriginal: unlock SiteOrigin title
* signature-req: update snapshots
2023-03-23 13:32:54 -03:00
Dan Miller
50d6e0abc0
Update changelog for v10.27.0
2023-03-23 13:49:24 -02:30
Dan J Miller
1dc09c027c
Fixes to the Linea Goerli implementation ( #18290 )
...
* Ensure that NonInfuraDefaultNetworks are only selected in the dropdown if they are the currently selected network
* Ensure Linea Goerli network appears in network settings tab if added manually
2023-03-23 13:48:12 -02:30
Albert Olivé
c89b93dc1d
adding code fence in extension file ( #17874 )
2023-03-23 11:09:09 -05:00
Dan J Miller
270ff26561
Fixes to the Linea Goerli implementation ( #18290 )
...
* Ensure that NonInfuraDefaultNetworks are only selected in the dropdown if they are the currently selected network
* Ensure Linea Goerli network appears in network settings tab if added manually
2023-03-23 13:37:28 -02:30
Frederik Bolding
048c3e3258
[FLASK] Update iframe-execution-environment ( #18299 )
2023-03-23 16:52:01 +01:00
Garrett Bear
ed5b78d61b
Feat/add header base component ( #18043 )
...
* add header base component
* fix resizing issue
* add center
* add demo
* header base using flexbox
* fix button issue
* header base clean up
* update tests
* add readme description
* add docs
* update snapshot
* add more to readme
* convert to TS
* fix file name
* fix types and colors
* fix classname error
* fix boxprops import
* fix boxprops
* prop fix
* fix errors
* Update ui/components/component-library/header-base/header-base.stories.tsx
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/component-library/header-base/header-base.types.ts
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/component-library/header-base/header-base.types.ts
Co-authored-by: George Marshall <george.marshall@consensys.net>
* headerbase fixes
* fix export
* remove Math.max
* change order for index on storybook to prep build
* revert back to order
* remove type from export
* add type to export
* change export of headerbase function
* export update
* revert back to normal
* add type to export
* Removing interface export from index
---------
Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-03-23 08:24:23 -07:00