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: Support various redesign signatures in ConfirmPage Storybook #25054

Merged
merged 9 commits into from
Jun 12, 2024

Conversation

digiwand
Copy link
Contributor

@digiwand digiwand commented Jun 5, 2024

Description

This PR adds support for various redesign signatures for the ConfirmPage storybook.
Open in GitHub Codespaces

Related issues

Fixes: #25052

Manual testing steps

  1. Run storybook: yarn storybook
  2. Go to ConfirmPage
  3. Observe storybook pages

Screenshots/Recordings

Before

CleanShot 2024-06-05 at 16 23 29@2x

After

CleanShot 2024-06-05 at 18 33 20@2x

CleanShot.2024-06-05.at.18.35.43-converted.mp4

higher quality of above:
https://github.com/MetaMask/metamask-extension/assets/20778143/342a6182-c443-4bd9-907a-3441b4b9eb81

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • 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 format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). 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.

@digiwand digiwand requested a review from a team as a code owner June 5, 2024 09:40
@digiwand digiwand added the team-confirmations Push issues to confirmations team label Jun 5, 2024
Copy link
Contributor

github-actions bot commented Jun 5, 2024

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.

jpuri
jpuri previously approved these changes Jun 5, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [9b804ae]
Page Load Metrics (368 ± 327 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint911721232311
domContentLoaded95322126
load552260368681327
domInteractive95322126
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [9b804ae]
Page Load Metrics (368 ± 327 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint911721232311
domContentLoaded95322126
load552260368681327
domInteractive95322126
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [9b804ae]
Page Load Metrics (368 ± 327 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint911721232311
domContentLoaded95322126
load552260368681327
domInteractive95322126
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link

codecov bot commented Jun 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.61%. Comparing base (2b2ee43) to head (1076e3b).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #25054   +/-   ##
========================================
  Coverage    65.61%   65.61%           
========================================
  Files         1365     1365           
  Lines        54224    54224           
  Branches     14180    14180           
========================================
  Hits         35576    35576           
  Misses       18648    18648           

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

@digiwand digiwand requested a review from pedronfigueiredo June 6, 2024 11:28
matthewwalsh0
matthewwalsh0 previously approved these changes Jun 6, 2024
const ConfirmPageStory = {
title: 'Pages/Confirm/ConfirmPage',
decorators: [(story) => <Provider store={store}>{story()}</Provider>],
decorators: [(story) => <div style={{ height: '600px' }}>{story()}</div>],
Copy link
Member

Choose a reason for hiding this comment

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

Should we also force the width so it matches the standard MetaMask popup?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question. As you might have noticed, the height resembles our popup height. I added this to view the scrollToBottom feature on some of the signature pages without needing to hardcode or add a control for this.

I left out the width so that we could easily test various widths. These decisions were subjective. Open to other suggestions

CleanShot 2024-06-07 at 21 21 04

Copy link
Member

Choose a reason for hiding this comment

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

Could we still support re-sizing to test wrapping etc, but default to the standard width?

ui/pages/confirmations/confirm/confirm.stories.tsx Outdated Show resolved Hide resolved
jpuri
jpuri previously approved these changes Jun 6, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [1076e3b]
Page Load Metrics (49 ± 4 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6410379115
domContentLoaded9211131
load40684994
domInteractive9211131
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@digiwand digiwand merged commit 9a5aeae into develop Jun 12, 2024
74 checks passed
@digiwand digiwand deleted the feat-storybook-confirm-page-signature-pages branch June 12, 2024 01:02
@github-actions github-actions bot locked and limited conversation to collaborators Jun 12, 2024
@metamaskbot metamaskbot added the release-12.1.0 Issue or pull request that will be included in release 12.1.0 label Jun 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.1.0 Issue or pull request that will be included in release 12.1.0 team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support various redesign signatures in ConfirmPage Storybook
5 participants