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

frontend: move activeScanQR into ReceiverAddressInput sub-component #2871

Conversation

NicolaLS
Copy link
Contributor

After #2870

In case #2870 is merged we can remove a lot of complexity from the open/closed state management of the scan QR dialog.

@NicolaLS NicolaLS changed the title Move active scan qr in receiver address input frontend: move activeScanQR into ReceiverAddressInput sub-component Aug 27, 2024
@NicolaLS NicolaLS marked this pull request as draft August 27, 2024 18:05
@NicolaLS NicolaLS marked this pull request as ready for review September 2, 2024 15:18
@NicolaLS NicolaLS force-pushed the move-active-scan-qr-in-receiver-address-input branch from 5c240d6 to adf548c Compare September 2, 2024 15:53
@NicolaLS
Copy link
Contributor Author

NicolaLS commented Sep 2, 2024

rebased / also amended the commit message to explain the change from #2870

@NicolaLS NicolaLS force-pushed the move-active-scan-qr-in-receiver-address-input branch 2 times, most recently from a20ddcc to 53627c2 Compare September 9, 2024 14:36
@NicolaLS NicolaLS force-pushed the move-active-scan-qr-in-receiver-address-input branch from 53627c2 to b0d5cfc Compare September 9, 2024 15:47
Move the `activeScanQR` state used to control the QR scanner dialog
(open/closed) into the `ReceiverAddressInput` to simplify the component.

We can remove the `activeScanQR` from the back button disabled property
because a) navigation with ESC allows the user to go back anyways and b)
the back button itself is not clickable when there is an active overlay.
@NicolaLS NicolaLS force-pushed the move-active-scan-qr-in-receiver-address-input branch from b0d5cfc to 75a7808 Compare September 9, 2024 15:49
@NicolaLS
Copy link
Contributor Author

NicolaLS commented Sep 9, 2024

@thisconnect tested webdev and anroid, CI lint fail is unrelated could you please run CI again ?

@thisconnect
Copy link
Collaborator

@NicolaLS CI passed 🎉

@thisconnect thisconnect self-requested a review September 12, 2024 18:09
Copy link
Collaborator

@thisconnect thisconnect left a comment

Choose a reason for hiding this comment

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

tested LGTM

@thisconnect thisconnect merged commit 53ee124 into BitBoxSwiss:master Sep 13, 2024
7 checks passed
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