-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD #12603][Image][Performance] Avatars appear grey as they're loaded from server for common mobile flows - reported by @sobitneupane #11425
Comments
Triggered auto assignment to @JmillsExpensify ( |
Hmm, these reproduction steps are pretty hard to follow. I'm not seeing any greyness in the video. In fact the original report was a different flow. It was appearing in the IOU preview component. |
That said, I would imagine that the reason the greyness is happening in the |
Likely related: #6527 |
@JmillsExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Ok, I also discovered another way to reproduce this issue on Web (as well as mWeb). Reproduction steps for web
I think this is a backend/performance issue, so I'm going to add the engineering label for more thoughts. |
Triggered auto assignment to @PauloGasparSv ( |
Hey @JmillsExpensify I took a quick look but I'll reassign the engineering label so someone else can take it because I have a full plate right now : / Adding what I found so far here: While investigating this I compared the network tab between NewDot and Whatsapp. As you can see in the Size tab of the screenshots , if an image was already requested in Whatsapp the browser caches it. I found this slack thread that mentions @thienlnam so maybe he has some info on this! |
@PauloGasparSv I think the Headers without the |
🤦♂️ thanks @aldo-expensify! 100% forgot about that! |
Going to float this one in open-source because it's nice polish. |
Added this to our Image-related features & improvements tracking issue: #10894 |
No change, Melv. |
same |
Same as above. What's left here for the image improvements project is held on caching > which is blocked on the server migration project in progress. |
stilllll held |
CORS issue complete, web image caching in review. Getting closer! |
Image caching PR was deployed and reverted. Awaiting this now before re-implementing: #32703 |
#32703 is fixed, good to move forward with this. |
In light of #32703 being fixed, the new image caching PR is in review. |
Caching PR was reverted again, new PR is in the works. |
Alrighty, that PR has been deployed and doesn't look like it'll get reverted. We need to work on the new cache API next, but I believe that's in a line of incremental improvements in vip-vsb. That said, I think we somewhat solved this "grey avatar" problem in the OP by using the skeleton UI on the participant selector when it's loading. So while I think improved caching could maybe be of help here for the avatars, I don't think we need to pursue this issue standalone. With that, I'm inclined to keep it off VIP/Wave and close it now. @Beamanator, what do you think? |
That definitely makes sense to me @trjExpensify , let's close this bad boi! |
Nice! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Request Money
from Global Create (green + button)Note: If you check the linked conversation, then it's also easy to see that this happens in the IOU preview component. You can also reproduce this on most mobile flows. I was able to do the same with
Send Money
as well asNew Chat
.Expected Result:
Avatars are saved locally and don't re-render for our most common mobile flows, let alone your most frequently used contact.
Actual Result:
Recent avatars start out as grey since that's all we have locally, and after being downloaded from the server, the actual default avatar appears
Workaround:
None
Platform:
Where is this issue occurring?
Version Number: 1.2.9-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:
RPReplay_Final1664482772.mov
Expensify/Expensify Issue URL:
Issue reported by: @sobitneupane
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1663403937756359
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: