-
Notifications
You must be signed in to change notification settings - Fork 121
[Woo POS][Barcodes] Partial setup flow for Star BSH-20B #15893
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
[Woo POS][Barcodes] Partial setup flow for Star BSH-20B #15893
Conversation
Generated by 🚫 Danger |
|
|
|
@staskus I can break this down if you prefer, to the setup/pairing in one PR and the test/complete in another... but it's pretty straightforward all together, IMO. I'm going to change the way steps are held next, to let me change the flow (inserting an error screen if it fails.) |
staskus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 I don't have much to add, the code looks good and the flow works as expected.
| } | ||
|
|
||
| Button { | ||
| guard let targetURL = URL(string: UIApplication.openSettingsURLString) else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bit annoying because we want to open General or Bluetooth settings, but this URL opens the app's specific settings. I looked up, there's an option to use URL(string: "App-Prefs:root=General", but from some comments, it could be rejected, so maybe it's not worth risking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, that was my finding as well

Part of WOOMOB-696
Description
This PR adds the happy path for the Star scanner setup flow. You can set up, connect, and test a scanner.
Currently, the test failure result and documentation step are not implemented.
Note that images, barcodes, and strings are not confirmed yet. I've made TODO tickets for going back to each of these.
I've also not tackled transitions or the correct size of the modal. This is about the flow functionality more than how it looks.
Steps to reproduce
... > Barcode scanningStar BSH-20B, and follow the flowScreenshots
star.setup.flow.mp4
RELEASE-NOTES.txtif necessary.