Fix: show loading indicator for uncached attachments#35451
Fix: show loading indicator for uncached attachments#35451yuwenmemon merged 4 commits intoExpensify:mainfrom
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 |
|
🚀 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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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