-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Bump Snaps packages #26086
chore: Bump Snaps packages #26086
Conversation
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@metamask/json-rpc-engine@7.3.3, npm/@metamask/snaps-execution-environments@6.5.0, npm/@metamask/snaps-rpc-methods@9.1.4, npm/@metamask/snaps-sdk@6.0.0, npm/@metamask/snaps-utils@7.8.1 |
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
fc49361
to
83f3872
Compare
@SocketSecurity ignore npm/@metamask/snaps-utils@7.8.1 This is ours. |
b4170e0
to
8fa0ef5
Compare
@SocketSecurity ignore npm/@metamask/snaps-utils@8.0.0 Network access expected. |
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
https://github.com/SocketSecurity ignore npm/@metamask/snaps-utils@8.0.1 Network access expected. |
a1d3b3c
to
71dc9ed
Compare
Builds ready [71dc9ed]
Page Load Metrics (563 ± 420 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #26086 +/- ##
===========================================
+ Coverage 69.97% 70.03% +0.05%
===========================================
Files 1422 1426 +4
Lines 49930 50041 +111
Branches 13861 13885 +24
===========================================
+ Hits 34938 35042 +104
- Misses 14992 14999 +7 ☔ View full report in Codecov by Sentry. |
71dc9ed
to
590e7bb
Compare
### Waiting on release of: MetaMask/snaps#2592 ## **Description** This PR integrates new Radio components for Snap UI. [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/26181?quickstart=1) ## **Related issues** Fixes: MetaMask/MetaMask-planning#1571 ## **Manual testing steps** 1. Go to `Test Snaps` and install `Interactive UI Snap`. 2. Run Interactive UI Snap by creating a dialog. 3. Check that radio options are available in the UI and confirm their functionality. (Latest Test Snaps needs to be released before this is possible, use `main` branch in Snaps repo and run locally if necessary) ## **Screenshots/Recordings** ### **Before** Nothing to show. Radio options were not available before. ### **After** ![Screenshot 2024-07-29 at 11 29 00](https://github.com/user-attachments/assets/f978ffc5-9c50-4031-a001-4af46f7674fe) ![Screenshot 2024-07-29 at 11 29 17](https://github.com/user-attachments/assets/b8659e75-af9c-455f-a1f1-9fd87b59e35e) ![Screenshot 2024-07-29 at 11 29 40](https://github.com/user-attachments/assets/4d86e1d2-858d-41e8-b383-6c17b711ad1f) ## **Pre-merge author checklist** - [ ] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Extension Coding Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've completed the PR template to the best of my ability - [ ] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
## **Description** This PR adds the support for custom dialogs. Major changes: - Add support for `Footer` and `Container` custom UI components - Refactor `snap-ui-renderer` to handle display of the snap header - Add the new `snap_resolveInterface` snap RPC method - Add the new `default` dialog type [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/26304?quickstart=1) ## **Related issues** Fixes: ## **Manual testing steps** 1. Go to test-snaps 2. trigger the `custom` snap dialog ## **Screenshots/Recordings** <!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. --> ### **Before** <!-- [screenshots/recordings] --> ### **After** <!-- [screenshots/recordings] --> ## **Pre-merge author checklist** - [ ] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Extension Coding Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've completed the PR template to the best of my ability - [ ] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots. --------- Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com> Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
590e7bb
to
5bd74fd
Compare
Builds ready [5bd74fd]
Page Load Metrics (376 ± 298 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
app/_locales/en/messages.json
Outdated
"message": "Let $1 access information like your preferred language and fiat currency in your MetaMask settings. This helps $1 display content tailored to your preferences. ", | ||
"description": "An extended description for the `snap_getPreferences` permission. $1 is the snap name." | ||
}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be an unnecessary whitespace here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, fixed!
(curious how the linter doesn't complain about this)
Builds ready [8b396dd]
Page Load Metrics (193 ± 238 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Can't approve my own PR.
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving for @Mrtenz - given that I took over this PR
Stale comment - and Guillaume is OOO
Builds ready [b5a9f55]
Page Load Metrics (445 ± 363 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes in files owned by confirmations team look good 👍
Description
This bumps all Snaps packages to the latest versions and handles breaking changes. It also introduces some new components and RPC methods.
Summary of changes in the snaps deps:
snap_dialog
confirmation type that uses fully custom UIContainer
andFooter
componentRadioGroup
componentCard
componentsnap_getPreferences
to return user preferencessnap_resolveInterface
to resolve existing interfacessnap_getFile
return valuesinitialConnections
Closes https://github.com/MetaMask/MetaMask-planning/issues/1571
Closes https://github.com/MetaMask/MetaMask-planning/issues/2125
Closes MetaMask/snaps#2622
Closes https://github.com/MetaMask/MetaMask-planning/issues/1956