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

feat: Add updates to Snaps custom UI #26639

Merged
merged 6 commits into from
Sep 10, 2024
Merged

Conversation

david0xd
Copy link
Contributor

@david0xd david0xd commented Aug 23, 2024

Description

This PR adds changes to update Snaps Custom UI. Affected areas are: Snaps Home, Snap Custom Dialog, Snap components.

Open in GitHub Codespaces

Related issues

Fixes: #26436

Manual testing steps

  1. Go to test Snaps.
  2. Install Snaps with custom UI and Snap home.
  3. Check the new UI styling applied.

Screenshots/Recordings

Before

Screenshot 2024-08-26 at 17 40 00
Screenshot 2024-08-26 at 17 40 28
Screenshot 2024-08-26 at 17 40 51
Screenshot 2024-08-26 at 17 41 27

After

Screenshot 2024-09-05 at 14 01 12
Screenshot 2024-09-05 at 14 01 26
Screenshot 2024-09-05 at 14 01 45
Screenshot 2024-09-05 at 14 02 34
Screenshot 2024-09-05 at 14 03 04
Screenshot 2024-09-05 at 14 04 44
Screenshot 2024-09-05 at 14 06 34
Screenshot 2024-09-05 at 14 20 50
Screenshot 2024-09-05 at 16 42 16
Screenshot 2024-09-05 at 16 42 42
Screenshot 2024-09-09 at 18 25 45

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.

@david0xd david0xd added the team-snaps-platform Snaps Platform team label Aug 23, 2024
@david0xd david0xd self-assigned this Aug 23, 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.

@david0xd david0xd force-pushed the dd/facelift-snap-custom-ui branch from 96e71f3 to 0fa8196 Compare August 26, 2024 09:24
@metamaskbot
Copy link
Collaborator

Builds ready [e9e96d2]
Page Load Metrics (79 ± 12 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint682331103718
domContentLoaded39153732813
load46153792612
domInteractive96529136
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: -2.69 KiB (-0.04%)
  • common: 0 Bytes (0.00%)

Copy link

codecov bot commented Aug 26, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 70.17%. Comparing base (416d024) to head (eaee9c9).
Report is 2 commits behind head on develop.

Files with missing lines Patch % Lines
...i/pages/confirmations/confirmation/confirmation.js 50.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #26639   +/-   ##
========================================
  Coverage    70.17%   70.17%           
========================================
  Files         1425     1425           
  Lines        49659    49661    +2     
  Branches     13891    13891           
========================================
+ Hits         34846    34848    +2     
  Misses       14813    14813           

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

@david0xd david0xd force-pushed the dd/facelift-snap-custom-ui branch from 1512132 to d1a3ef2 Compare August 26, 2024 13:13
@metamaskbot
Copy link
Collaborator

Builds ready [d1a3ef2]
Page Load Metrics (113 ± 36 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint863841407134
domContentLoaded613041066431
load613781137636
domInteractive1898412110
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: -2.57 KiB (-0.04%)
  • common: 0 Bytes (0.00%)

@david0xd david0xd force-pushed the dd/facelift-snap-custom-ui branch from be91a43 to d0eee3e Compare August 26, 2024 15:49
@david0xd david0xd marked this pull request as ready for review August 26, 2024 15:50
@david0xd david0xd requested review from a team as code owners August 26, 2024 15:50
@metamaskbot
Copy link
Collaborator

Builds ready [d0eee3e]
Page Load Metrics (77 ± 17 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint774021126833
domContentLoaded47214733617
load53223773617
domInteractive109627178
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: -2.44 KiB (-0.03%)
  • common: 0 Bytes (0.00%)

@david0xd david0xd force-pushed the dd/facelift-snap-custom-ui branch 3 times, most recently from 13d4b3a to bd265cc Compare August 29, 2024 11:04
@metamaskbot
Copy link
Collaborator

Builds ready [bd265cc]
Page Load Metrics (1733 ± 163 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint18625761406600288
domContentLoaded146227881708314151
load147128241733339163
domInteractive20131362412
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: -2.2 KiB (-0.03%)
  • common: 0 Bytes (0.00%)

@david0xd david0xd force-pushed the dd/facelift-snap-custom-ui branch 2 times, most recently from 5d79bcb to 80f9939 Compare September 5, 2024 13:45
@metamaskbot
Copy link
Collaborator

Builds ready [80f9939]
Page Load Metrics (1515 ± 35 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1408165215217335
domContentLoaded1390164414967033
load1398165315157235
domInteractive12141302713
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: -2.38 KiB (-0.03%)
  • common: 0 Bytes (0.00%)

@david0xd david0xd force-pushed the dd/facelift-snap-custom-ui branch from 982ba4a to eaee9c9 Compare September 9, 2024 11:47
@david0xd david0xd requested a review from a team as a code owner September 9, 2024 11:47
@metamaskbot
Copy link
Collaborator

Builds ready [eaee9c9]
Page Load Metrics (1738 ± 117 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint20627171530584280
domContentLoaded150727051723246118
load155427151738244117
domInteractive128831178
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: -2.32 KiB (-0.03%)
  • common: 0 Bytes (0.00%)

Update unit test snapshots

Fix lint issue

Update background and border

Update unit test snapshot

Update file upload UI

Update and fix few more Snap custom UI things

Update unit test snapshots after snap header fix

Add background color handling adjustments

Fix and resolve conflicts after rebase

Refactor confirmation.js changes

Remove empty box

Update unit test snapshots

Fix background issue on Snap custom UI page

Update unit test snapshots after new changes
@david0xd david0xd force-pushed the dd/facelift-snap-custom-ui branch from 747fec8 to 864aa8d Compare September 10, 2024 08:04
Copy link

@metamaskbot
Copy link
Collaborator

Builds ready [864aa8d]
Page Load Metrics (1621 ± 87 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint22520911428511245
domContentLoaded13712067161017885
load13792088162118187
domInteractive13220394321
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: -2.37 KiB (-0.03%)
  • common: 0 Bytes (0.00%)

@david0xd david0xd merged commit bbbe511 into develop Sep 10, 2024
77 of 78 checks passed
@david0xd david0xd deleted the dd/facelift-snap-custom-ui branch September 10, 2024 13:39
@github-actions github-actions bot locked and limited conversation to collaborators Sep 10, 2024
@metamaskbot metamaskbot added the release-12.6.0 Issue or pull request that will be included in release 12.6.0 label Sep 10, 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
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.

Uniform snaps header & footer
9 participants