[CP Staging] [Avatars - Reports] Fix expense report header avatar incorrectly shows "as a copilot for receiver"#65899
Conversation
|
@rushatgabhane Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Just saw this, Reviewing |
Reviewer Checklist
Screenshots/VideosAndroid: mWeb ChromeMacOS: Chrome / SafariScreen.Recording.2025-07-11.at.00.51.08.movMacOS: DesktopScreen.Recording.2025-07-11.at.01.14.59.mov |
grgia
left a comment
There was a problem hiding this comment.
@JakubKorytko how confident do you feel that this PR will not cause unrelated bugs? Given theres a lot more changes here than our other fixes
|
The diff is misleading. There has been one variable change, but because the prettier changed the structure, the diff is huge. Take a deeper look at how the diff looks, there are almost only spacing diffs. |
grgia
left a comment
There was a problem hiding this comment.
Cool, TIL about the Hide Whitespace tick in the diff options 😁
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…lot-tooltip [Avatars - Reports] Fix expense report header avatar incorrectly shows "as a copilot for receiver" (cherry picked from commit 98bb0c0) (cherry-picked to staging by mountiny)
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.1.79-11 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.1.79-11 🚀
|




Explanation of Change
After the avatar changes, the
AvatarWithDisplayNamestill uses theactorAccountIDref value, which should not be used for report avatars. This is because it does not include the delegate account ID and can become stale during renders.This PR changes the code to use the ID provided by
singleAvatarDetails.Fixed Issues
$ #65887
PROPOSAL: N/A
Tests
Offline tests
Same as tests.
QA Steps
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Web.mp4
MacOS: Desktop