Repository navigation
Show agent's own avatar on thinking indicator, not the report sender - #93644
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @JS00001 has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/JS00001 in version: 9.4.9-0 🚀
Bundle Size Analysis (Sentry): |
|
🤖 Help site review: No documentation changes required. This PR is a display-only bug fix. It changes which avatar renders on the agent "Thinking…" indicator so the bubble shows the agent's own avatar instead of the expense submitter's, by dropping the There are no changes to:
The help site articles under @yuwenmemon, if you believe a help article does reference this behavior and should be updated, let me know which one and I'll draft the change. |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.4.9-0 🚀
|

@JS00001 please review
Explanation of Change
When an agent's "Thinking..." indicator shows on an expense report, the bubble was rendering the avatar of the person being talked to (the expense submitter) instead of the agent's own avatar — even though the name above it was correct.
ReportActionAvatarswas being passed both the agent'saccountIDand the report'sreportID. On an expense report, the report context makes it derive the report-preview sender (the submitter) and fall into the subscript branch, which silently ignores the passedaccountIDs. The bubble only needs to show one account's avatar and doesn't use profile navigation, so droppingreportID/chatReportIDmakes it render the agent's avatar in every context.Reported by Shawn here: https://expensify.slack.com/archives/C090U774ZH7/p1781552589829179
Fixed Issues
$
PROPOSAL:
For https://github.com/Expensify/Expensify/issues/643050
Tests
Offline tests
Not applicable — this is a display-only change to which avatar is rendered.
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))npm run compress-svg)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.