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: Redesign Approve confirmation #26464

Merged
merged 7 commits into from
Aug 21, 2024
Merged

feat: Redesign Approve confirmation #26464

merged 7 commits into from
Aug 21, 2024

Conversation

pedronfigueiredo
Copy link
Contributor

@pedronfigueiredo pedronfigueiredo commented Aug 16, 2024

Description

Implements redesigned confirmation screens for tokenMethodApprove (ERC721 and ERC1155). Includes e2e and integration tests.

Open in GitHub Codespaces

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/2936

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

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.

@pedronfigueiredo pedronfigueiredo added the team-confirmations Push issues to confirmations team label Aug 16, 2024
@pedronfigueiredo pedronfigueiredo self-assigned this Aug 16, 2024
@pedronfigueiredo pedronfigueiredo requested review from a team as code owners August 16, 2024 10:32
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.

@pedronfigueiredo pedronfigueiredo force-pushed the pnf/2936 branch 4 times, most recently from a96f39f to a78699e Compare August 16, 2024 15:34
@metamaskbot
Copy link
Collaborator

Builds ready [a78699e]
Page Load Metrics (70 ± 9 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint7613597168
domContentLoaded116327147
load4410770189
domInteractive116327147
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 4.95 KiB (0.07%)
  • common: 286 Bytes (0.00%)

Copy link

codecov bot commented Aug 16, 2024

Codecov Report

Attention: Patch coverage is 74.19355% with 8 lines in your changes missing coverage. Please review.

Project coverage is 69.97%. Comparing base (81af2e8) to head (dc347b2).

Files Patch % Lines
...s/confirmations/components/confirm/title/title.tsx 0.00% 4 Missing ⚠️
...m/info/approve/approve-details/approve-details.tsx 80.00% 3 Missing ⚠️
...ges/confirmations/components/confirm/info/info.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #26464   +/-   ##
========================================
  Coverage    69.96%   69.97%           
========================================
  Files         1405     1407    +2     
  Lines        48996    49023   +27     
  Branches     13697    13705    +8     
========================================
+ Hits         34280    34299   +19     
- Misses       14716    14724    +8     

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

)}
</ConfirmInfoSection>
);
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Will be nice to have some unit test coverage also for info components.

Copy link
Contributor

@jpuri jpuri left a comment

Choose a reason for hiding this comment

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

Changes look great 👍

@metamaskbot
Copy link
Collaborator

Builds ready [bf40520]
Page Load Metrics (85 ± 9 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint711671182713
domContentLoaded43115822010
load5011585189
domInteractive115830136
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 4.95 KiB (0.07%)
  • common: 286 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [d342ee5]
Page Load Metrics (86 ± 11 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint791851152512
domContentLoaded45149832512
load52149862311
domInteractive146330126
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 4.95 KiB (0.07%)
  • common: 286 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [dc347b2]
Page Load Metrics (68 ± 5 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint7415596178
domContentLoaded499764136
load569768115
domInteractive10562494
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 5.01 KiB (0.07%)
  • common: 286 Bytes (0.00%)

Copy link

@metamaskbot
Copy link
Collaborator

Builds ready [c3c19fc]
Page Load Metrics (82 ± 9 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint791671092311
domContentLoaded45127762010
load5212882199
domInteractive115530126
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 5.01 KiB (0.07%)
  • common: 286 Bytes (0.00%)

@pedronfigueiredo pedronfigueiredo merged commit 72b9e86 into develop Aug 21, 2024
75 of 78 checks passed
@pedronfigueiredo pedronfigueiredo deleted the pnf/2936 branch August 21, 2024 13:20
@github-actions github-actions bot locked and limited conversation to collaborators Aug 21, 2024
@metamaskbot metamaskbot added the release-12.5.0 Issue or pull request that will be included in release 12.5.0 label Aug 21, 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
@digiwand digiwand added release-12.3.0 Issue or pull request that will be included in release 12.3.0 release-12.4.0 Issue or pull request that will be included in release 12.4.0 and removed release-12.4.0 Issue or pull request that will be included in release 12.4.0 release-12.3.0 Issue or pull request that will be included in release 12.3.0 labels Sep 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.4.0 Issue or pull request that will be included in release 12.4.0 team-confirmations Push issues to confirmations team
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants