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 #27057

Merged
merged 18 commits into from
Sep 19, 2024
Merged

chore: Bump Snaps packages #27057

merged 18 commits into from
Sep 19, 2024

Conversation

Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Sep 11, 2024

Description

This bumps Snaps packages to the latest version.

Open in GitHub Codespaces

@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Sep 11, 2024
@Mrtenz Mrtenz changed the title Bump Snaps packages chore: Bump Snaps packages Sep 11, 2024
@Mrtenz Mrtenz added the team-snaps-platform Snaps Platform team label Sep 11, 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.

@Mrtenz
Copy link
Member Author

Mrtenz commented Sep 11, 2024

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated

@Mrtenz
Copy link
Member Author

Mrtenz commented Sep 11, 2024

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated

@Mrtenz
Copy link
Member Author

Mrtenz commented Sep 17, 2024

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

No policy changes

@Mrtenz Mrtenz force-pushed the mrtenz/bump-snaps-packages branch 2 times, most recently from 5f777e1 to d60b697 Compare September 18, 2024 11:02
Copy link

sonarcloud bot commented Sep 18, 2024

@Mrtenz Mrtenz marked this pull request as ready for review September 18, 2024 12:00
@Mrtenz Mrtenz requested review from a team and kumavis as code owners September 18, 2024 12:00
@metamaskbot
Copy link
Collaborator

Builds ready [14708a8]
Page Load Metrics (1751 ± 78 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint42622021612379182
domContentLoaded15052111172315675
load15122115175116378
domInteractive12153453216
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: -37.79 KiB (-1.07%)
  • ui: 5.63 KiB (0.08%)
  • common: 38.17 KiB (0.48%)

hmalik88
hmalik88 previously approved these changes Sep 18, 2024
david0xd
david0xd previously approved these changes Sep 18, 2024
@Mrtenz Mrtenz dismissed stale reviews from david0xd and hmalik88 via 4ad5841 September 18, 2024 17:43
GuillaumeRx and others added 14 commits September 19, 2024 10:38
## **Description**
This PR adds changes required to enable customizable Input component for
Snaps custom UI.

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

## **Related issues**
Fixes: MetaMask/MetaMask-planning#3067

## **Manual testing steps**
1. Install Snap with custom UI which has customized input with all
combinations of start and end accessories.

## **Screenshots/Recordings**
### **Before**
Input with additional elements other than button was not supported
before (nothing significant to show here).

### **After**
![Screenshot 2024-09-11 at 16 55
08](https://github.com/user-attachments/assets/0bcfac8a-31e9-400b-81ed-ea330e0f090f)

## **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: Hassan Malik <41640681+hmalik88@users.noreply.github.com>
…nent (#27106)

## **Description**

This PR adds the new `center` attribute to the `Box` component. It
allows to apply `align-items: center` to it.

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

## **Related issues**


## **Manual testing steps**

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

Add support for showing CAIP-10 addresses in Snaps by introducing
`SnapUIAddress`. This component mimics the original implementation of
`ConfirmInfoRowAddress` but also adds parsing logic for CAIP-10
addresses.

CAIP-10 addresses are parsed in the component and the address part is
passed to the jazzicon or blockie implementation to render an avatar.
The blockie implementation supports arbitrary strings and did not need
to be altered. For jazzicons, this PR implements seed generation that is
compatible with any address string by seeding the PRNG used for
jazzicons with the normalized byte array of the address. Plain Ethereum
addresses are still supported and will use the regular jazzicon seed
generation logic.

This PR will also need a release of the Snaps packages to update the JSX
validation to allow passing CAIP-10 addresses.

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

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

<img width="385" alt="Screenshot 2024-09-02 at 14 35 33"
src="https://github.com/user-attachments/assets/344d849b-9121-4bcb-bf58-8cb0b1286112">

<img width="384" alt="Screenshot 2024-09-02 at 14 45 30"
src="https://github.com/user-attachments/assets/158e3421-4f9f-46e1-a4cf-93daec45db66">
…27158)

<!--
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**
This PR adds changes required to enable Snaps' footer buttons to submit
and reset forms.

<!--
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/27158?quickstart=1)

## **Related issues**

Fixes: MetaMask/snaps#2691

## **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.
Small UI adjustments made to Snaps custom UI components.

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

1. Go to test snap
2. Try an example snap that renders custom UI

![image](https://github.com/user-attachments/assets/3c7ee5c8-0327-4e0c-9cd0-a20358b49fc6)

![image](https://github.com/user-attachments/assets/0c3d9985-69dd-4ed9-9b37-bc8c548b85f3)

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

---------

Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
…27109)

## **Description**

This allows a preinstalled snap to disable the snaps branding (headers
and icon in buttons) by setting a flag on the preinstalled snap
manifest.

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

## **Related issues**

Fixes:

## **Manual testing steps**

1- Got to test-snaps
2- Use the preinstalled example snap

## **Screenshots/Recordings**

### Before


![image](https://github.com/user-attachments/assets/2902472d-a6cf-4c0c-9576-1d478da09412)

![image](https://github.com/user-attachments/assets/f85aa471-4bb3-4ff1-a8d8-38eb60fc4ddb)


### After


![image](https://github.com/user-attachments/assets/20c75391-ba3e-40ef-9c8e-60478dbe23e0)


![image](https://github.com/user-attachments/assets/bf220be9-45e9-4461-b4e0-1bbe98c5bbf8)


## **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>
Copy link

sonarcloud bot commented Sep 19, 2024

@Mrtenz Mrtenz merged commit 82b0321 into develop Sep 19, 2024
76 of 77 checks passed
@Mrtenz Mrtenz deleted the mrtenz/bump-snaps-packages branch September 19, 2024 09:09
@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2024
@metamaskbot metamaskbot added the release-12.6.0 Issue or pull request that will be included in release 12.6.0 label Sep 19, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [d3b006d]
Page Load Metrics (1663 ± 106 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint138924211666216104
domContentLoaded13822302163020096
load139024401663222106
domInteractive147036157
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: -37.79 KiB (-0.93%)
  • ui: 5.63 KiB (0.08%)
  • common: 38.17 KiB (0.47%)

@metamaskbot metamaskbot added release-12.5.0 Issue or pull request that will be included in release 12.5.0 and removed release-12.6.0 Issue or pull request that will be included in release 12.6.0 labels Sep 29, 2024
@metamaskbot
Copy link
Collaborator

Missing release label release-12.5.0 on PR. Adding release label release-12.5.0 on PR and removing other release labels(release-12.6.0), as PR was added to branch 12.5.0 when release was cut.

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

Successfully merging this pull request may close these issues.

9 participants