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: created QR modal component #1339

Merged
merged 6 commits into from
May 27, 2024
Merged

Conversation

AntonioVentilii-DFINITY
Copy link
Contributor

Motivation

For the QR code integration, a new Wizard modal was created to add a further step in the send modals that could leverage the GIX component QR Code Reader. It mostly replicates the code in nns-dapp.

Changes

  • Created component that renders QRCodeReaderModal and that uses decodeQrCode function.
  • Inside the component, there is an additional WizardStep so that the QR Code Modal can be rendered inside the current modal it is called from.

Tests

There could be no end-to-end test yet because the GIX component QRCodeReaderModal has no testId prop to call it and to trigger events. PR #426 was created and approved in gix-components repo, but we would need to wait for the next release, I imagine.

@AntonioVentilii-DFINITY AntonioVentilii-DFINITY marked this pull request as ready for review May 22, 2024 15:10
Copy link
Member

@peterpeterparker peterpeterparker left a comment

Choose a reason for hiding this comment

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

Thanks. Minor comments.

src/frontend/src/lib/components/send/QRCodeModal.svelte Outdated Show resolved Hide resolved
src/frontend/src/lib/components/send/QRCodeModal.svelte Outdated Show resolved Hide resolved
src/frontend/src/lib/components/send/QRCodeModal.svelte Outdated Show resolved Hide resolved
src/frontend/src/lib/components/send/QRCodeModal.svelte Outdated Show resolved Hide resolved
src/frontend/src/lib/i18n/en.json Outdated Show resolved Hide resolved
…ables and changed function goToStep to consider the case -1
@AntonioVentilii-DFINITY AntonioVentilii-DFINITY marked this pull request as ready for review May 24, 2024 14:53
Copy link
Member

@peterpeterparker peterpeterparker left a comment

Choose a reason for hiding this comment

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

LGTM, thx

@AntonioVentilii-DFINITY AntonioVentilii-DFINITY merged commit 18911cf into main May 27, 2024
6 checks passed
@AntonioVentilii-DFINITY AntonioVentilii-DFINITY deleted the av/feat/qr-code-modal branch May 27, 2024 06:54
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.

3 participants