-
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
[Image Uploads Improvement] Add entry points to the error screen #13389
[Image Uploads Improvement] Add entry points to the error screen #13389
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.
|
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #13389 +/- ##
============================================
- Coverage 41.23% 41.22% -0.01%
Complexity 6548 6548
============================================
Files 1326 1326
Lines 77731 77754 +23
Branches 10706 10713 +7
============================================
+ Hits 32049 32053 +4
- Misses 42836 42855 +19
Partials 2846 2846 ☔ View full report in Codecov by Sentry. |
We now display a permanent access point to open upload errors screen
This will highlight the CTA after the user experiences some upload error
Hey @hafizrahman I've tweaked your implementation a bit. I'd appreciate if you could test out the changes and let me know what you think 🙏🏼 |
@JorgeMucientes The testing description point 12 says Otherwise, when going back from details to list when there's upload error but no new changes, then back to details again, the error will persist. Like in video below: Screen.Recording.2025-01-31.at.09.20.42.movIn other words, I think the code is correct, but the testing description need updating. Does that sound right? Overall though I think the code looks good, thanks for adding the tweaks with handling / clearing up errors. I added a commit d7c0eef to tweak button placement on product details, so they look like this now:
I think for iteration 2 we can look at improving the button design if needed, but usability-wise I think it's OK for now. |
Thanks for the careful review @hafizrahman.
Also, agree with the added UI change to the upload error CTA 👍🏼 |
enqueueUpload() function should not be responsible for clearing past errors from the upload status.
…s://github.com/woocommerce/woocommerce-android into issue/13370-pt-ii-entry-points-to-error-screen
Closes: #13419
Description
Adds a new permanent CTA when product image uploads fail, so that user can access an error screen to see the details of the failed upload an retry. The behavior of this new CTA is as follows:
Steps to reproduce
Before running the testing steps, enable API Faker to make upload media requests. Apply the following changes from More menu > Settings > Developer Options > API faker:
Testing information
With API faker is enabled:
Add photos
Choose from device
The tests that have been performed
The above
Images/gif
NewErrorScreenCTABehavior.mp4
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: