Issue/13326 hide scan on wpcom sites#13962
Conversation
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
|
You can test the changes on this Pull Request by downloading the APK here. |
ParaskP7
left a comment
There was a problem hiding this comment.
👋 @malinajirka !
I have reviewed and tested this PR as per the instruction, everything works as expected, good job! 🌟
I have left only minor (🔍) comments and some suggestions (💡) for you to consider. I am going to approve this PR anyway, since none is blocking. I am NOT going to merge this PR yet to give you some time to apply any of my suggestions. However, feel free to ignore them and merge the PR yourself.
WordPress/src/main/java/org/wordpress/android/ui/mysite/ScanAndBackupSource.kt
Outdated
Show resolved
Hide resolved
WordPress/src/test/java/org/wordpress/android/ui/mysite/ScanAndBackupSourceTest.kt
Show resolved
Hide resolved
|
Thanks for the review @ParaskP7! I've left some comments with my thoughts - I'd really like to hear your thoughts before we merge this PR. Thanks! |
|
Thanks @ParaskP7! I've extracted the shared logic into SiteUtils - I added TODOs there, so we inline the logic into the ScanAndBackupSource when the legacy MySiteFragment is removed. I also decided to use |
|
Thank YOU @malinajirka ! 🌟
I have reviewed the changes and they LGTM! 🌟 Please feel free to merge this PR when CI is complete. 🙏 |
Parent issue #13326
This PR hides Scan menu item on .com sites (even atomic). The scan feature is supported on sites with Business plan, however, it's auto-managed so the Scan feature shouldn't be visible to the users on such sites.
To test:
PR submission checklist:
RELEASE-NOTES.txtif necessary.