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

fix: Show correct origins when snaps use wallet_requestSnaps #26715

Merged
merged 18 commits into from
Sep 5, 2024

Conversation

hmalik88
Copy link
Contributor

@hmalik88 hmalik88 commented Aug 28, 2024

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? We are allowing wallet_requestSnaps to be called by other snaps and needed to update the UI to correctly show the snap origin.
  2. What is the improvement/solution? There needed to be some UI changes to accommodate the above.

Related issues

Fixes MetaMask/snaps#2611

Screenshots/Recordings

Before

image
image

After

Screen.Recording.2024-08-27.at.3.00.52.PM.mov

NOTE: The copy was updated to "Connected Snaps" and "Connected sites and Snaps".

Pre-merge author checklist

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.

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.

@hmalik88 hmalik88 added the team-snaps-platform Snaps Platform team label Aug 28, 2024
@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Aug 28, 2024
@hmalik88 hmalik88 removed the INVALID-PR-TEMPLATE PR's body doesn't match template label Aug 28, 2024
@hmalik88 hmalik88 marked this pull request as ready for review August 28, 2024 14:15
@hmalik88 hmalik88 requested review from a team as code owners August 28, 2024 14:15
@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Aug 28, 2024
@hmalik88 hmalik88 removed the INVALID-PR-TEMPLATE PR's body doesn't match template label Aug 28, 2024
@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Aug 28, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [8e9f0c5]
Page Load Metrics (69 ± 9 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6313791199
domContentLoaded3911465189
load4612169189
domInteractive98424157
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 779 Bytes (0.01%)
  • common: 104 Bytes (0.00%)

Copy link

codecov bot commented Aug 28, 2024

Codecov Report

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

Project coverage is 70.16%. Comparing base (ce04ae8) to head (ba5453a).

Files with missing lines Patch % Lines
...ected-sites-list/connected-sites-list.component.js 72.73% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #26715      +/-   ##
===========================================
+ Coverage    70.14%   70.16%   +0.02%     
===========================================
  Files         1424     1425       +1     
  Lines        49572    49580       +8     
  Branches     13868    13869       +1     
===========================================
+ Hits         34769    34787      +18     
+ Misses       14803    14793      -10     

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

@metamaskbot
Copy link
Collaborator

Builds ready [99ffde8]
Page Load Metrics (1808 ± 93 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint21122191734392188
domContentLoaded15252176176917282
load15662231180819493
domInteractive126935178
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 779 Bytes (0.01%)
  • common: 104 Bytes (0.00%)

Copy link
Member

@FrederikBolding FrederikBolding left a comment

Choose a reason for hiding this comment

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

LGTM - but please update the PR title to be more accurate to the changes in the PR!

@hmalik88 hmalik88 changed the title feat: unblock wallet_requestSnaps fix: Show correct origins when snaps use wallet_requestSnaps Aug 30, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [53f11f8]
Page Load Metrics (1718 ± 87 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint21822021582480231
domContentLoaded14922193170118489
load15002203171818287
domInteractive12203403919
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 1.37 KiB (0.02%)
  • common: 104 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [3a8b268]
Page Load Metrics (1951 ± 83 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint21222831713624299
domContentLoaded16942238193016479
load17022284195117483
domInteractive177239147
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 3.75 KiB (0.05%)
  • common: 104 Bytes (0.00%)

Copy link

sonarcloud bot commented Sep 3, 2024

@metamaskbot
Copy link
Collaborator

Builds ready [ba5453a]
Page Load Metrics (1807 ± 84 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint30120261571476229
domContentLoaded15492220178616780
load15612271180717484
domInteractive15172383316
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 3.79 KiB (0.05%)
  • common: 104 Bytes (0.00%)

@hmalik88 hmalik88 merged commit b5a7b5c into develop Sep 5, 2024
78 checks passed
@hmalik88 hmalik88 deleted the hm/unblock-request-snaps branch September 5, 2024 13:34
@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2024
@metamaskbot metamaskbot added the release-12.6.0 Issue or pull request that will be included in release 12.6.0 label Sep 5, 2024
@gauthierpetetin gauthierpetetin 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 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.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.

Unblock wallet_requestSnaps
5 participants