-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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: show loading indicator for uncached attachments #35451
Conversation
@getusha I'm stuck on testing on native devices. I don't know how to open the report with uncached image. Do you have any ideas? Thanks a lot |
@tienifr will try to find a way. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativevideo_2024-02-21_23-10-25.mp4Android: mWeb Chromevideo_2024-02-21_22-39-39.mp4iOS: NativeScreen.Recording.2024-02-21.at.11.02.59.PM.moviOS: mWeb SafariScreen.Recording.2024-02-21.at.10.26.44.PM.movMacOS: Chrome / SafariScreen.Recording.2024-02-21.at.10.13.41.PM.movMacOS: DesktopScreen.Recording.2024-02-21.at.11.08.49.PM.mov |
@tienifr i am still able to reproduce the issue,
|
@getusha fixed. Thank you |
@tienifr lets resolve merge conflicts. |
I don't think it is possible to test this on iOS Safari. @tienifr could you try if any of the answers work for you? https://stackoverflow.com/questions/9218123/how-to-disable-cache-on-ios-safari |
I can kind of reproduce the issue on android native. Screen.Recording.2024-02-18.at.6.15.03.PM.mov |
@getusha I think it's not bad. We already fixed the bug in requirement (empty state forever). The empty view is shown for around 1s because we need time to trigger onLoadStart to show the loading indicator. After that the image is loaded and shown. Pls tell me what you think Screen.Recording.2024-02-21.at.16.16.52.1.mov |
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.
LGTM!
🚀 Deployed to staging by https://github.com/yuwenmemon in version: 1.4.44-0 🚀
|
Strange, @tienifr could you take a look? |
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀
|
@tienifr could you check this #35451 (comment) |
@getusha I'm checking |
@getusha After investigating the problem, I found out that we're trying to show the cloud image while offline here. That broke our PR. What's the expectation? cc @yuwenmemon |
Details
Fixed Issues
$ #32699
PROPOSAL: #32699 (comment)
Tests
Offline tests
Same as above
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
Screen.Recording.2024-01-31.at.10.35.22.mov
MacOS: Chrome / Safari
Screen.Recording.2024-01-31.at.10.10.23.mov
MacOS: Desktop
Screen.Recording.2024-01-31.at.10.39.55.mov