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: QR hardware signing in new designs #13261

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

feat: QR hardware signing in new designs #13261

wants to merge 14 commits into from

Conversation

jpuri
Copy link
Contributor

@jpuri jpuri commented Jan 30, 2025

Description

QR hardware signing in new designs

Related issues

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

Manual testing steps

  1. Connect to QR wallet
  2. Import QR account
  3. Sign QR sign request

Screenshots/Recordings

TODO

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.

@metamaskbot metamaskbot added the team-confirmations Push issues to confirmations team label Jan 30, 2025
@jpuri jpuri marked this pull request as ready for review January 30, 2025 13:06
@jpuri jpuri requested review from a team as code owners January 30, 2025 13:06
@jpuri jpuri added the Run Smoke E2E Triggers smoke e2e on Bitrise label Jan 30, 2025
Copy link
Contributor

github-actions bot commented Jan 30, 2025

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 86a442b
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/fdf408ba-aaee-4b48-9265-9c90872ea36f

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

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

Comment on lines 23 to 24
minHeight: '68%',
maxHeight: '68%',
Copy link
Contributor

Choose a reason for hiding this comment

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

is there a reason for the fixed height? I was able to remove this in this PR and it seems to work. This way no excess space for confirmations with less content.

I do have a PR that is open that applies the BottomSheet and scroll container here. With this, the header and footer are also fixed whilst having scrollable content. We will need to resolve the conflict in one of our PRs

#13268

Copy link
Contributor Author

Choose a reason for hiding this comment

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

min height helpe confirmation page not look too short if there is less content

yep we will need to resolve conflicts

<Title />
<View style={styles.scrollWrapper}>
<ScrollView>
<View style={styles.scrollableSection}>
Copy link
Contributor

Choose a reason for hiding this comment

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

ScrollView accepts style, contentContainerStyle, and other style props that can be used to avoid adding extra View components around or within ScrollView

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 idea, I could remove inner view, but not outer one.

@sleepytanya
Copy link
Contributor

sleepytanya commented Jan 30, 2025

@jpuri

Bitrise QA builds https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/106d1a13-fdd2-4671-9391-1ca33b3930af?tab=workflows

iPhone 15, Samsung S24+

All QR signatures work as expected on both platforms, except for the Sign Typed Data - Invalid QR Code message on the Keystone and Keyring Controller error in the test-dapp.

Android:

android.mov

iOS:

ios.mov
Screenshot 2025-01-30 at 17 28 25 Screenshot 2025-01-30 at 17 27 10

@jpuri
Copy link
Contributor Author

jpuri commented Jan 31, 2025

Hey @sleepytanya : typed sign works for me using Airgap vault:

IMG_4911

can you plz check if you notice this in old designs also, this may be a thing I need to check with hardware team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Run Smoke E2E Triggers smoke e2e on Bitrise team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants