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 packages #25505

Merged
merged 9 commits into from
Jun 27, 2024
Merged

chore: Bump Snaps packages #25505

merged 9 commits into from
Jun 27, 2024

Conversation

FrederikBolding
Copy link
Member

@FrederikBolding FrederikBolding commented Jun 25, 2024

Description

Bump snaps packages to latest and handle breaking changes.

Summary of changes in the snaps deps:

  • Add Checkbox component
  • Add Tooltip component
  • Add FileInput component
  • Add alignment prop to Text
  • Support additional components inside forms
  • Support conditional children in most JSX components
  • Support parameters in setTimeout and setInterval

Closes #25385
Closes MetaMask/snaps#2500
Closes https://github.com/MetaMask/MetaMask-planning/issues/2416

Open in GitHub Codespaces

@FrederikBolding FrederikBolding added the team-snaps-platform Snaps Platform team label Jun 25, 2024
@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Jun 25, 2024
Copy link

socket-security bot commented Jun 25, 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.

@FrederikBolding FrederikBolding marked this pull request as ready for review June 26, 2024 09:14
@FrederikBolding FrederikBolding requested review from a team as code owners June 26, 2024 09:14
@metamaskbot
Copy link
Collaborator

Builds ready [54b1d65]
Page Load Metrics (49 ± 3 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint701058484
domContentLoaded8121111
load40614963
domInteractive8121111
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 67 Bytes (0.00%)
  • ui: 13.08 KiB (0.19%)
  • common: 1.97 KiB (0.03%)

Copy link

codecov bot commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.65%. Comparing base (4e2596f) to head (187a947).

Current head 187a947 differs from pull request most recent head f159706

Please upload reports for the commit f159706 to get more accurate results.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #25505      +/-   ##
===========================================
- Coverage    69.70%   69.65%   -0.04%     
===========================================
  Files         1349     1347       -2     
  Lines        47864    47808      -56     
  Branches     13205    13187      -18     
===========================================
- Hits         33359    33300      -59     
- Misses       14505    14508       +3     

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

@metamaskbot
Copy link
Collaborator

Builds ready [187a947]
Page Load Metrics (138 ± 162 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint59219974421
domContentLoaded98517199
load401603138338162
domInteractive98417199
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 401 Bytes (0.01%)
  • ui: 13.08 KiB (0.19%)
  • common: 1.97 KiB (0.03%)

FrederikBolding and others added 9 commits June 26, 2024 18:33
This adds the new `Tooltip` component to the Snap custom UI renderer.

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

Fixes: #25385

1. Go to
[tests-snaps](https://metamask.github.io/snaps/test-snaps/latest/).
2. Install the JSX example snap.
3. click `Show JSX dialog`.
4. hover on the `Count` text.
5. Observe the Tooltip

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

![image](https://github.com/MetaMask/metamask-extension/assets/13910212/9ec07473-2b58-495d-9700-9560ed378b86)

- [ ] 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.

- [ ] 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 adds a file input component for Snaps to use in custom UI.

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

## **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.

---------

Co-authored-by: Frederik Bolding <[email protected]>
Copy link
Contributor

@bowensanders bowensanders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA Passes ✅

@FrederikBolding FrederikBolding merged commit 721673e into develop Jun 27, 2024
69 of 70 checks passed
@FrederikBolding FrederikBolding deleted the fb/snaps-bump-v53 branch June 27, 2024 08:47
@github-actions github-actions bot locked and limited conversation to collaborators Jun 27, 2024
@metamaskbot metamaskbot added the release-12.1.0 Issue or pull request that will be included in release 12.1.0 label Jun 27, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [f159706]
Page Load Metrics (49 ± 3 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint70978184
domContentLoaded9161121
load42654973
domInteractive9161121
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 401 Bytes (0.01%)
  • ui: 13.08 KiB (0.19%)
  • common: 1.97 KiB (0.03%)

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.1.0 Issue or pull request that will be included in release 12.1.0 team-snaps-platform Snaps Platform team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Checkbox component Integrate Tooltip Snaps custom UI component
5 participants