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 Signature Decoding Simulation #12994

Merged
merged 86 commits into from
Jan 16, 2025
Merged

Conversation

digiwand
Copy link
Contributor

@digiwand digiwand commented Jan 15, 2025

Description

Add Signature Decoding Simulation UI

This logic mirrors the extension with modifications due to mobile/extension parity differences.

In addition:

  • updated ValueDisplay value logic to no longer use useMemo

Todo in follow-up PRs:

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/3876
Related: #12994 (Replaces Ramp/Box usages with View)

Manual testing steps

  1. Set REDESIGNED_SIGNATURE_REQUEST to true in js.env
  2. Enable confirmation_redesign in Launch Darkly
  3. Turn on Improved Signatures setting
  4. Turn on Simulation setting
  5. Test various v3 and v4 signTypedData signatures

Screenshots/Recordings

Before

After

The values in this screenshot will be replaced by "Unlimited"

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.

todo:
- metrics
- precision tooltip
- tests
- styles:
  - right align row values
  - hide
todo:
- fix rerender issue
- fix removeEventListener detached console error
Copy link
Contributor

github-actions bot commented Jan 16, 2025

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: a1e4776
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/084ce93f-a42a-4152-bcc9-43e6b04b9748

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@wachunei
Copy link
Member

Now that Box is no longer used here, can we undo the noBorder and update the snapshots again? So we revert what was introduced in #12606?

@digiwand
Copy link
Contributor Author

Hi @wachunei, thank you for the catch! created a separate PR to remove the noBorder param since it was introduced separately from this PR
#13033

Copy link
Contributor

@Cal-L Cal-L left a comment

Choose a reason for hiding this comment

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

Lgtm

@digiwand digiwand added this pull request to the merge queue Jan 16, 2025
Merged via the queue into main with commit ff19ced Jan 16, 2025
42 of 43 checks passed
@digiwand digiwand deleted the feat-decoding-simulation branch January 16, 2025 15:51
@github-actions github-actions bot locked and limited conversation to collaborators Jan 16, 2025
@metamaskbot metamaskbot added the release-7.39.0 Issue or pull request that will be included in release 7.39.0 label Jan 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-7.39.0 Issue or pull request that will be included in release 7.39.0 Run Smoke E2E Triggers smoke e2e on Bitrise team-confirmations Push issues to confirmations team
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

7 participants