-
Notifications
You must be signed in to change notification settings - Fork 130
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
[Bulk Update Orders] Enable multiple selection in Order List: Part II #13151
Conversation
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
|
This requires some refactoring on how isSearching is stored, since hiding the bottom bar has to check for both searching and selecting state.
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
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.
Before starting to review code, I want to list issues I found while testing:
- In selection mode, when tapped the create order button, the title remains "`order selected"
Video
new-order.webm
- In selection mode, when changing the orientation, the title remains "`order selected".
Video
orientation.webm
- When Talkback is enabled, we can select the order with double tap but holding the second tap. In selection mode, I am able to open an order. I think I shouldn't be able to do it, as I can't do with the product list.
Video
talkback.webm
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #13151 +/- ##
=========================================
Coverage 40.52% 40.52%
- Complexity 6357 6358 +1
=========================================
Files 1343 1343
Lines 77165 77175 +10
Branches 10592 10593 +1
=========================================
+ Hits 31269 31274 +5
- Misses 43152 43156 +4
- Partials 2744 2745 +1 ☔ View full report in Codecov by Sentry. |
Similar to implementation in product #8160
Thanks for the check @irfano !
Like in Product, the create order button should be hidden in selection mode. Added in 2976ce6
I haven't worked on persisting selection state during configuration change yet as it's a bit non-trivial. If you see there, the selected products are lost, too. I will work on this as a separate PR, the task is already tracked in #13130
I added a commit on 59aa27e to deal with this, it's a similar fix as Products in #7971 |
WooCommerce/src/main/kotlin/com/woocommerce/android/ui/orders/list/OrderListFragment.kt
Outdated
Show resolved
Hide resolved
WooCommerce/src/main/kotlin/com/woocommerce/android/ui/orders/list/OrderListFragment.kt
Outdated
Show resolved
Hide resolved
Thanks for your design reviews!
The constraint for this project is that we don't have any specific design, we just want to follow Products list. As I worked on this, though, I noticed that there are differences between the two screens, so replicating it exactly is not possible. For example, Products screen always has a thumbnail area, which gets replaced by the checkbox in selection mode. Orders screen doesn't have this, so the checkbox will disrupt the layout more in comparison. This affects smaller things like divider lines, etc, which you noticed in the review. As there's no specific design direction, I just opt to work on something that makes sense visually. I added a refactor commit bb014fd that incorporates your feedback, while also tries to make it more similar to Products. These includes:
This is how it looks like now: I think this would be a good starting point for further design discussion, so if you have more feedbacks, I'd love to hear it. Since we don't have specific design to follow, I think we can aim for something that is essentially usable and not confusing to merchants. |
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.
Thanks for explaining everything and sharing screenshots for edge cases, @hafizrahman! LGTM! I've just added a minor feedback. I believe we're good to merge after that. I’m pre-approving it. Great work! 🚀
Co-authored-by: Irfan Ömür <[email protected]>
Part of: #13130, #13150
please do not merge until target is
trunk
Description
This PR adds various UI-related updates to Orders list screen, related to the bulk update feature. Those updates are:
Steps to reproduce
Testing information
Test this both in phone and tablet (2 panel) mode, the test items should apply to both.
The tests that have been performed
I've tested the steps above both on phone and tablet simulator, API 32 and 34.
Images/gif
Screen.Recording.2024-12-18.at.11.25.24.mov
RELEASE-NOTES.txt
if necessary. Use the "[Internal]" label for non-user-facing changes.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: