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: replace current QR Code generation libraries #1438

Closed
wants to merge 4 commits into from

Conversation

J0
Copy link
Contributor

@J0 J0 commented Feb 19, 2024

What kind of change does this PR introduce?

Currently, the generated QR Code can't be detected by providers such as 1Password on certain occasions.

Additionally, it uses an external library when there really isn't a need for one.

We use our own QR Code generation and use barcode instead of a wrapper library

We need to check a few invariants hold before proceeding:

  • Size of QR code
  • Offset of QR Code on canvas
  • Size of squares

Of course, we should also check that it works with 1Password

@J0 J0 force-pushed the j0/replace_existing_qr_code_library branch from e6dccfe to 4f6e477 Compare February 19, 2024 09:44
@J0 J0 changed the title fix: replace current QR Code generation libraries feat: replace current QR Code generation libraries Feb 19, 2024
J0 added a commit that referenced this pull request Feb 26, 2024
…Password (#1455)

## What kind of change does this PR introduce?

Reduced version of #1438. This increases the [error correction
level](https://pkg.go.dev/github.com/boombuler/barcode@v1.0.1/qr#ErrorCorrectionLevel)
which should make the QR Code easier to scan

Other aspects such as visibility of QR code and potentially size
adjustments will be handled for later. Want to get the minimal possible
change out that might fix the issue

Works with 1Password locally, will test against Supabase setup once
merged
J0 added a commit that referenced this pull request Feb 27, 2024
…Password (#1455)

## What kind of change does this PR introduce?

Reduced version of #1438. This increases the [error correction
level](https://pkg.go.dev/github.com/boombuler/barcode@v1.0.1/qr#ErrorCorrectionLevel)
which should make the QR Code easier to scan

Other aspects such as visibility of QR code and potentially size
adjustments will be handled for later. Want to get the minimal possible
change out that might fix the issue

Works with 1Password locally, will test against Supabase setup once
merged
J0 added a commit that referenced this pull request Mar 1, 2024
…Password (#1455)

## What kind of change does this PR introduce?

Reduced version of #1438. This increases the [error correction
level](https://pkg.go.dev/github.com/boombuler/barcode@v1.0.1/qr#ErrorCorrectionLevel)
which should make the QR Code easier to scan

Other aspects such as visibility of QR code and potentially size
adjustments will be handled for later. Want to get the minimal possible
change out that might fix the issue

Works with 1Password locally, will test against Supabase setup once
merged
@J0
Copy link
Contributor Author

J0 commented Mar 5, 2024

Closing this PR, since it was split into two issues:

  1. Issue with 1Password on Desktop which is being looked into by the 1Password Team via a ticket
  2. Increase the QR Code error correction which went in here

We still hope to remove the QR Code dependency at a slightly later date

@J0 J0 closed this Mar 5, 2024
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.

None yet

1 participant