You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2022-04-13] When clicking on chat open Image viewer. It does not show a loading indicator - reported by @mdneyazahmad #7905
There should be loading indicator while image is opening
Actual Result:
There is no loading indicator while image is opening
Workaround:
unknown
Platform:
Where is this issue occurring?
Web
iOS
Android
Desktop App
Mobile Web
Version Number: 1.1.38-0 Reproducible in staging?: Y Reproducible in production?: Y Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation
There are 2 issues logged before which may be related or fix this issue. #7584 #7463
Edit: Please, ignore this proposal, updated here#7905 (comment)
Proposal
Proposing early as I reported this issue
Create a flag isLoading to store the state of the loading action. Add onLoadEnd listener on Image and when fired set the isLoading to false.
Conditionally render ActivityIndicator. Applying styles.dNode because the Image component has to be mounted on the dom in order to load and fire the onLoadEnd event on Image.
@rushatgabhane We are not showing the thumbnail images from chat. Once we open the modal it downloads and only when we open it second time it shows the thumbnail.
I think it makes sense to show the thumbnail instead of nothing in case the enlarged thumbnail quality won't be too bad. If you know what I mean. For phone or smaller screens where the max size of the image shown is actually not much larger than the thumbnail in the chat, this could certainly be a way to go, however, we would need to see how the enlarged thumbnail looks on large desktop.
If it would be too blurry I think the effect on UX would be bad instead of beneficial.
I too agree with showing thumbnail on mobile and also on desktop. May be, we start with thumbnail and show a loading indicator on top of it. We can prevent it stretching to whole screen on desktop, at least we show something.
We can prevent it stretching to whole screen on desktop, at least we show something
I don't think showing a smaller picture then jumping to a larger one once loaded would be nice. Either we would stretch the thumbnail to the full size and add a spinner over it and then just swap the images once loaded or have nothing as we have now in case the quality of the thumbnail stretched would be too bad.
However, we can focus on that later on. Let's get what we have now right with no regressions and we can then explore how it will look like with the thumbnail and maybe have some poll in Slack to decide what people think is better. But let's keep this one in the boundaries of what has already been planned 👍
changed the title [-]When clicking on chat open Image viewer. It does not show a loading indicator - reported by @mdneyazahmad[/-][+][HOLD for payment 2022-04-13] When clicking on chat open Image viewer. It does not show a loading indicator - reported by @mdneyazahmad[/+]on Apr 6, 2022
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.51-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
Activity
MelvinBot commentedon Feb 25, 2022
Triggered auto assignment to @sakluger (
AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.mdneyazahmad commentedon Feb 25, 2022
Edit: Please, ignore this proposal, updated here #7905 (comment)
Proposal
Proposing early as I reported this issue
Create a flag
isLoadingto store the state of the loading action. AddonLoadEndlistener onImageand when fired set theisLoadingtofalse.Conditionally render
ActivityIndicator. Applyingstyles.dNodebecause theImagecomponent has to be mounted on thedomin order to load and fire theonLoadEndevent onImage.Result
loading-indicator.mp4
MelvinBot commentedon Feb 28, 2022
@sakluger Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
sakluger commentedon Mar 2, 2022
Thanks for reporting this! Seems like something that we should fix, passing along to engineering to triage the proposal.
MelvinBot commentedon Mar 2, 2022
Triggered auto assignment to @nkuoch (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.48 remaining items
mdneyazahmad commentedon Mar 21, 2022
@rushatgabhane We are not showing the thumbnail images from chat. Once we open the modal it downloads and only when we open it second time it shows the thumbnail.
mountiny commentedon Mar 21, 2022
@mdneyazahmad @rushatgabhane
I think it makes sense to show the thumbnail instead of nothing in case the enlarged thumbnail quality won't be too bad. If you know what I mean. For phone or smaller screens where the max size of the image shown is actually not much larger than the thumbnail in the chat, this could certainly be a way to go, however, we would need to see how the enlarged thumbnail looks on large desktop.
If it would be too blurry I think the effect on UX would be bad instead of beneficial.
It could be worth exploring.
mdneyazahmad commentedon Mar 21, 2022
I too agree with showing thumbnail on mobile and also on desktop. May be, we start with thumbnail and show a loading indicator on top of it. We can prevent it stretching to whole screen on desktop, at least we show something.
mountiny commentedon Mar 21, 2022
I don't think showing a smaller picture then jumping to a larger one once loaded would be nice. Either we would stretch the thumbnail to the full size and add a spinner over it and then just swap the images once loaded or have nothing as we have now in case the quality of the thumbnail stretched would be too bad.
However, we can focus on that later on. Let's get what we have now right with no regressions and we can then explore how it will look like with the thumbnail and maybe have some poll in Slack to decide what people think is better. But let's keep this one in the boundaries of what has already been planned 👍
parasharrajat commentedon Mar 21, 2022
I agree with Mountiny #7905 (comment). Let's get the loader rolling first.
[-]When clicking on chat open Image viewer. It does not show a loading indicator - reported by @mdneyazahmad[/-][+][HOLD for payment 2022-04-13] When clicking on chat open Image viewer. It does not show a loading indicator - reported by @mdneyazahmad[/+]melvin-bot commentedon Apr 6, 2022
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.51-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2022-04-13. 🎊
kadiealexander commentedon Apr 13, 2022
Paid @parasharrajat for C+ and @mdneyazahmad for the fix (+ reporting bonus). Thanks for your work team!