woocommerce-ios
woocommerce-ios copied to clipboard
[Woo POS] Use POS styles in reader connection modals
Part of: #13731 Merge after: #12771
Description
This is part of a series of PRs to improve the card reader connnection screens. You may want to test at the end of the series, as it could get quite repetitive, but doing it all in one was quite big. Up to you! The last one is #13775
This PR updates the POS card reader connection modals to use POS buttons and on the Multiple readers view, font styles. Other views previously had the correct font styles applied.
Steps to reproduce
- Launch the app
- Enter the POS
- Tap
Connect your reader - Wait for the
Do you want to connectscreen – if it just auto-connects, tapReader connectedthenDisconnect readerand try again - Observe that the buttons use the new style
- Tap
Keep searching - Turn on another reader
- Observe that the multiple readers screen shows and uses POS fonts (except the connect buttons – handled later)
- Tap connect on a reader, but turn it off at the same time
- The error screen will show shortly after that – observe that it uses the new buttons.
Address issues:
First, delete the first line of your store address in WP-admin > Woocommerce > Settings
- Launch the app
- Enter the POS
- Tap
Connect your reader - The error screen will show shortly after that – observe that it uses the new buttons.
Testing information
I have tested these on an iPad running iOS 16. No unit tests as it's UI only.
Screenshots
Note that this video is from this branch – if you test later on, the rest of the modal UI will look a bit different.
https://github.com/user-attachments/assets/b384cced-0888-49de-8535-372b64fe5427
- [x] I have considered if this change warrants user-facing release notes and have added them to
RELEASE-NOTES.txtif necessary.
Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement:
- [ ] The PR is small and has a clear, single focus, or a valid explanation is provided in the description. If needed, please request to split it into smaller PRs.
- [ ] Ensure Adequate Unit Test Coverage: The changes are reasonably covered by unit tests or an explanation is provided in the PR description.
- [ ] Manual Testing: The author listed all the tests they ran, including smoke tests when needed (e.g., for refactorings). The reviewer confirmed that the PR works as expected on all devices (phone/tablet) and no regressions are added.
| 1 Warning | |
|---|---|
| :warning: | View files have been modified, but no screenshot or video is included in the pull request. Consider adding some for clarity. |
| 1 Message | |
|---|---|
| :book: | This PR is still a Draft: some checks will be skipped. |
Generated by :no_entry_sign: Danger
📲 You can test the changes from this Pull Request in WooCommerce iOS by scanning the QR code below to install the corresponding build.
| App Name | ||
| Build Number | pr13772-d8098b8 | |
| Version | 20.1 | |
| Bundle ID | com.automattic.alpha.woocommerce | |
| Commit | d8098b802f6d3597e8904e49eee5200a3120a3d7 | |
| App Center Build | WooCommerce - Prototype Builds #10623 |
I think is not from this PR, but I found the alert for the
foundReadercase seems to cut the name of the reader off, it could be from updating the font sizes without multiline/wrapping:The rest tests well! 🎉
Thanks! That's fixed in #13773 because the string gets made much shorter.