Skip to content
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 dependencies #26675

Merged
merged 11 commits into from
Aug 29, 2024
Merged

chore: Bump Snaps dependencies #26675

merged 11 commits into from
Aug 29, 2024

Conversation

FrederikBolding
Copy link
Member

@FrederikBolding FrederikBolding commented Aug 27, 2024

Description

Bump snaps packages to latest and handle breaking changes.

Summary of changes in the snaps deps:

  • Add Selector component
  • Add Icon component
  • Add color prop to Text component
  • Button children are now allowed to be Image and Icon

Closes MetaMask/snaps#2640
Closes https://github.com/MetaMask/MetaMask-planning/issues/1615
Closes MetaMask/snaps#2658
Closes MetaMask/snaps#2639

Open in GitHub Codespaces

@FrederikBolding FrederikBolding added the team-snaps-platform Snaps Platform team label Aug 27, 2024
Copy link

socket-security bot commented Aug 27, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@metamask/json-rpc-engine@7.3.3 None 0 96.9 kB metamaskbot
npm/@metamask/json-rpc-middleware-stream@6.0.2 None 0 27 kB metamaskbot

🚮 Removed packages: npm/@metamask/snaps-sdk@6.2.1)

View full report↗︎

@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Aug 27, 2024
Copy link
Contributor

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.

Copy link

codecov bot commented Aug 28, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 70.08%. Comparing base (f354888) to head (cba4c93).
Report is 77 commits behind head on develop.

Files with missing lines Patch % Lines
...sk-template-renderer/metamask-template-renderer.js 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #26675      +/-   ##
===========================================
- Coverage    70.08%   70.08%   -0.00%     
===========================================
  Files         1414     1414              
  Lines        49328    49330       +2     
  Branches     13781    13783       +2     
===========================================
  Hits         34568    34568              
- Misses       14760    14762       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@metamaskbot
Copy link
Collaborator

Builds ready [5258ea3]
Page Load Metrics (84 ± 10 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint761621122713
domContentLoaded51141812211
load58145842210
domInteractive206331136
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 107 Bytes (0.00%)
  • ui: 8.96 KiB (0.13%)
  • common: 8.04 KiB (0.09%)

FrederikBolding and others added 11 commits August 29, 2024 12:05
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**

<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/26570?quickstart=1)

## **Related issues**

Fixes:

## **Manual testing steps**

1. Go to this page...
2.
3.

## **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.
Added `color` prop to Snaps text component
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**

Adds a Snap UI component - an Icon

<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/26709?quickstart=1)

## **Related issues**

fixes MetaMask/MetaMask-planning#1615

## **Manual testing steps**

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<img width="472" alt="image"
src="https://github.com/user-attachments/assets/f6713b7a-d682-49f1-bdc2-c98d96028919">
<!-- [screenshots/recordings] -->

### **After**

<img width="472" alt="image"
src="https://github.com/user-attachments/assets/f2d3af6a-42cf-48b7-a9e6-33d2a8f3c342">

<!-- [screenshots/recordings] -->

## **Pre-merge author checklist**

- [x] 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).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] 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.
@FrederikBolding FrederikBolding marked this pull request as ready for review August 29, 2024 10:05
@FrederikBolding FrederikBolding requested review from a team as code owners August 29, 2024 10:05
Copy link

@metamaskbot
Copy link
Collaborator

Builds ready [cba4c93]
Page Load Metrics (1590 ± 65 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint21221171525331159
domContentLoaded14572107157113565
load14652119159013565
domInteractive1810236209
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 107 Bytes (0.00%)
  • ui: 8.96 KiB (0.13%)
  • common: 8.04 KiB (0.10%)

@bowensanders
Copy link
Contributor

QA Passes ✅

@FrederikBolding FrederikBolding merged commit e177ba0 into develop Aug 29, 2024
78 checks passed
@FrederikBolding FrederikBolding deleted the fb/snaps-bump-v63 branch August 29, 2024 20:35
@github-actions github-actions bot locked and limited conversation to collaborators Aug 29, 2024
@metamaskbot metamaskbot added the release-12.5.0 Issue or pull request that will be included in release 12.5.0 label Aug 29, 2024
@gauthierpetetin gauthierpetetin added release-12.4.0 Issue or pull request that will be included in release 12.4.0 and removed release-12.5.0 Issue or pull request that will be included in release 12.5.0 labels Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
INVALID-PR-TEMPLATE PR's body doesn't match template release-12.4.0 Issue or pull request that will be included in release 12.4.0 team-snaps-platform Snaps Platform team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose a color prop for Text Add Selector component Allow Button to wrap more elements
7 participants