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
[Due for payment 2025-11-06] [$250] Workspace chat - custom avatar is NOT displayed in the middle of the QR code #70175
Version Number: 9.2.3-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from TestRail:https://test-management.browserstack.com/projects/2219752/folder/13176686/test-cases/41236627 Email or phone of affected tester (no customers): n.a Issue reported by: Applause Internal Team Device used: Win11/Chrome App Component: Workspace Settings
Please re-state the problem that we are trying to solve in this issue.
Workspace custom avatars are not displayed in QR codes when sharing from workspace chat headers, showing the default Expensify logo instead of the configured custom workspace avatar.
What is the root cause of that problem?
QR code component hardcodes expensifyLogo for reports instead of using the custom workspace avatar calculated by the getLogoForWorkspace function
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
NA
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
const isWorkspaceChat = isWorkspaceChatUtils(report?.chatType ?? ''); // We can use a different function here depending on where we want to show the avatar.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.40-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@abzokhattab / @brunovjk@sonialiap The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: No PR directly introduced this bug; the logic (The ShareCodePage.tsx component was hardcoded to always use expensifyLogo for reports instead of checking for workspace avatars) has remained the same for a long time, at least since their migration.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion:
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Activity
melvin-bot commentedon Sep 9, 2025
Triggered auto assignment to @adelekennedy (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.abzokhattab commentedon Sep 9, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workspace chat - custom avatar is NOT displayed in the middle of the QR code
What is the root cause of that problem?
ShareCodePage.tsxcomponent was hardcoded to always useexpensifyLogofor reports instead of checking for workspace avatars heregetLogoForWorkspacefunction had the correct logic but wasn't being used in the QR code componentgetLogoForWorkspaceWhat changes do you think we should make in order to solve the problem?
ShareCodePageCONST.QR.EXPENSIFY_LOGO_SIZE_RATIOonly when showing Expensify logoCONST.QR.DEFAULT_LOGO_SIZE_RATIOfor workspace avatars and personal avatarsso we need to update this to
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
NA
nyomanjyotisa commentedon Sep 9, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workspace custom avatars are not displayed in QR codes when sharing from workspace chat headers, showing the default Expensify logo instead of the configured custom workspace avatar.
What is the root cause of that problem?
QR code component hardcodes
expensifyLogofor reports instead of using the custom workspace avatar calculated by thegetLogoForWorkspacefunctionApp/src/pages/ShareCodePage.tsx
Line 134 in a24b0c0
What changes do you think we should make in order to solve the problem?
We should use the
logovariable (which contains the custom workspace avatar) with a fallback toexpensifyLogoApp/src/pages/ShareCodePage.tsx
Line 134 in a24b0c0
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
None
dmkt9 commentedon Sep 9, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Step 4: no custom avatar is displayed in the middle of the QR code when user click Share via Workspace chat header.
What is the root cause of that problem?
In case of report, it will display
expensifyLogo:App/src/pages/ShareCodePage.tsx
Line 134 in 32cf88b
What changes do you think we should make in order to solve the problem?
Displayed by the value of
logo:App/src/pages/ShareCodePage.tsx
Line 134 in 32cf88b
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
NA
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
daledah commentedon Sep 9, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Step 4: no custom avatar is displayed in the middle of the QR code when user click Share via Workspace chat header.
What is the root cause of that problem?
if the share code page is opened from the report we'll show the
expensifyLogoApp/src/pages/ShareCodePage.tsx
Line 134 in 32cf88b
What changes do you think we should make in order to solve the problem?
We should show the workspace logo if the report has workspace type chat by using function
isWorkspaceChatfrom thereportUtils.tsApp/src/libs/ReportUtils.ts
Lines 7042 to 7044 in 32cf88b
then create a function
getLogoAfter that use that function to pass as a logo, and we also need to change the ratio here
App/src/pages/ShareCodePage.tsx
Lines 134 to 136 in 32cf88b
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
melvin-bot commentedon Sep 15, 2025
Whoops! This issue is 2 days overdue. Let's get this updated quick!
melvin-bot commentedon Sep 17, 2025
Eep! 4 days overdue now. Issues have feelings too...
melvin-bot commentedon Sep 19, 2025
6 days overdue. This is scarier than being forced to listen to Vogon poetry!
40 remaining items
melvin-bot commentedon Oct 30, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.40-1 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 2025-11-06. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Oct 30, 2025
@abzokhattab / @brunovjk @sonialiap The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
brunovjk commentedon Nov 6, 2025
BugZero Checklist:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: No PR directly introduced this bug; the logic (The ShareCodePage.tsx component was hardcoded to always use expensifyLogo for reports instead of checking for workspace avatars) has remained the same for a long time, at least since their migration.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion:
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression test https://github.com/Expensify/Expensify/issues/566538
Regression Test Proposal
Test:
Do we agree 👍 or 👎
sonialiap commentedon Nov 10, 2025
Payment summary:
@abzokhattab $250 paid in Upwprk
@brunovjk $250 please request in NewDot
brunovjk commentedon Nov 12, 2025
Requested in ND.
JmillsExpensify commentedon Nov 13, 2025
$250 approved for @brunovjk