Fix: Avatar getting cleared on Mobile LHN#57236
Conversation
…ture/501-lhn-avatars
…ture/501-lhn-avatars
|
I've synced it up. |
…nce tracking" This reverts commit 368753f.
…ture/501-lhn-avatars
…ture/501-lhn-avatars
…erUtils functions
Reviewer Checklist
Screenshots/VideosAndroid: Native57236-android-native.movAndroid: mWeb Chrome57236-android-web.moviOS: Native57236-ios-native.moviOS: mWeb Safari57236-ios-safari.movMacOS: Chrome / Safari57236-mac-chrome.movMacOS: Desktop57236-mac-desktop.mov |
|
I've synced it up. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 9.1.8-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.1.8-1 🚀
|
|
@izarutskaya, not really. There are 2 types of avatars: a picture and an SVG icon. We have solved the issue with the pictures. Unfortunately, we cannot do the same fix for the SVG icons now. I've attached a screenshot to demonstrate where the app renders the icons but the pictures are white space. Also, I've recorded a video in which 50% of the avatars are pictures (CZ flag 🇨🇿) and the rest are icons (letter B). Video
Legacy.mp4Fix.mp4I needed to clarify it better. I am sorry, my bad. Moreover, the list of avatars is extremely unique for each user so it is hard to reproduce the same scenario even for all of us. I hope it makes more sense now. |

Explanation of Change
Implement a caching strategy that balances performance and memory usage to ensure avatars persist during scrolling.
Fixed Issues
$ #57539
PROPOSAL: N/A
Tests
Offline tests
Same as tests.
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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.mp4
Android: mWeb Chrome
Android.Chrome.mp4
iOS: Native
IOS.mp4
iOS: mWeb Safari
IOS.Safari.mp4
MacOS: Chrome / Safari
Chrome.mp4
MacOS: Desktop
Desktop.mp4