-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix #9730: Improve failed media error in Aztec #9834
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
Fix #9730: Improve failed media error in Aztec #9834
Conversation
I would keep the overlay, unless I'm missing something. It makes the text/icon readable over pretty much any background. The alpha of the overlay looks about right, but can you confirm what the alpha is at? I think our standard is 40%.
We have the following options on Aztec iOS: |
Seems to be 31% alpha black here:
black 40% alpha is: |
|
Ah ok. We should probably do an audit of what we're using for shading across the app at some point, but for now let's just err on the side of consistency, and use what we're using primarily across the app. If this is an outlier, then let's adjust to whatever is most common for consistency. |
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.
The implementation looks sound to me.
I believe we should also hide the error message when the user has already tapped on the refresh/retry button.
| Before | After |
|---|---|
![]() |
![]() |
What do you think, @maxme and @iamthomasbishop?
libs/editor/WordPressEditor/src/main/java/org/wordpress/android/editor/TextDrawable.java
Show resolved
Hide resolved
@shiki What happens when the user continues tapping If the image has been successfully added, then yes we should hide the overlay completely. Maybe I'm missing something 🤔 |
Yes, this is what I was trying to get at. My apologies. 😅
This is what happens when I tap on the image again after tapping on retry. It shows an abort confirmation dialog. In the end, you can see that the image was successfully uploaded and the overlay, button, and message have disappeared. |
|
Had a look at color usage in wpandroid WordPress-Android/WordPress/src/main/res/values/colors.xml Lines 296 to 298 in d65fe5b
|
Yep +1 |
@shiki ready for another pass |
shiki
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.
Retested and LGTM! 🎉




Fix #9730: Improve failed media error in Aztec
To test:
(I made sure the text size was changing after changing the device text/display size in accessibility options)
Design
I wanted to remove the overlay completely but the error text won't be visible if the user uploads an image with a white background. If we really want to remove the overlay, we'll need some to check the contrast ratio or only add a contract box around the error message.
cc @iamthomasbishop and @marecar3 that might be something to fix in Gutenberg Mobile - here is a demo with a white background image.
Last note: IMO, the current experience in Aztec is not great, it's a only a "tap to retry" action, I much prefer the Gutenberg way, it opens a dialog with different options:
We can open a new ticket if we think Aztec needs it.
Implementation
I took a
TextDrawableimplementation from here and modified it to support multiline strings and xy shifts.It feels a bit hacky, but I think this is a less invasive approach. Another option would be adding support for text overlays in Aztec.
Update release notes:
RELEASE-NOTES.txt.