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(ui): allow variable-length PINs #4083

Merged
merged 2 commits into from
Oct 12, 2023

Conversation

eventualbuddha
Copy link
Collaborator

Overview

VxSuite PINs are still always 6 digits. RAVE PINs are variable, and this is ported from RAVE since it may be useful in the future here and will make RAVE rebases easier.

Demo Video or Screenshot

Fixed Length Variable Length
image image

Testing Plan

  • New automated tests
  • New Storybook story
  • Manually tested in VxMark

@eventualbuddha eventualbuddha requested a review from a team as a code owner October 11, 2023 21:55
@eventualbuddha eventualbuddha requested review from kshen0 and removed request for a team October 11, 2023 21:55
VxSuite PINs are still always 6 digits. RAVE PINs are variable, and this is ported from RAVE since it may be useful in the future here and will make RAVE rebases easier.
@eventualbuddha eventualbuddha force-pushed the brian/feat/ui/variable-pin-length branch from 113bd5c to 2bae652 Compare October 11, 2023 22:10
private readonly maximum: number
) {
assert(minimum > 0, 'min must be > 0');
assert(minimum <= maximum, 'min must be <= max');
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 maximum where the UI breaks down?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm guessing it wouldn't make sense beyond ~20 depending on the container width, but I'm inclined to leave that to be unrestricted here.

libs/ui/src/utils/pin_length.test.ts Show resolved Hide resolved
@eventualbuddha eventualbuddha enabled auto-merge (squash) October 11, 2023 23:57
@eventualbuddha eventualbuddha merged commit 99d51df into main Oct 12, 2023
@eventualbuddha eventualbuddha deleted the brian/feat/ui/variable-pin-length branch October 12, 2023 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants