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
[HOLD for payment 2024-05-02] [$500] Avatars used in report and transaction actions are not consistent #38974
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Please re-state the problem that we are trying to solve in this issue.
Report Preview should just show the User Avatar, similar to the one we have for Transaction Detail.
Current Report Preview Item:
Expected Report Preview Item:
Also, while doing this we need to ensure that the request on the workspace page still shows the combo icons i.e
Isn't that right @shawnborton ?
What is the root cause of that problem?
The ReportActionItemSingle component takes a shouldShowSubscriptAvatarprop which determines whether to display the combo icon or not.
This prop value is being passed as true here because the ReportUtils.isExpenseReport(report) is true.
What changes do you think we should make in order to solve the problem?
Removing the ReportUtils.isExpenseReport(report) condition from the check here should start displaying just the user icon on the Report Preview page.
What alternative solutions did you explore? (Optional)
If we want more fine-grained control over which actions should display the combo icon, we can also configure that by choosing the reportAction types to allow it for here
That works for me! I honestly don't have a super strong preference for which to use, but totally agree that we should just use the same one for everything. Down with ditching the subscript.
Actually I think this is expected. Those are two completely different actions. The report preview is an expense request and thus should have subscript avatar, indicating that this request belongs to that user and workspace.
On the other hand, in transaction details, the user is the owner/creator of the actions made there (modify merchant, description, delete, hold request...) so it should be himself who made the actions and thereby shows his avatar as the sender.
We're recommending that we remove the subscript from the avatar - it feels extraneous in the comments, given that in the chat view header you see the user avatar + workspace avatar. When comments are actions are happening, they are just happening from the user, so we don't need any special kind of avatar there.
Please re-state the problem that we are trying to solve in this issue.
Avatars used in report and transaction actions are not consistent.
As I understand from the design team conversation, we should remove the subscript workspace avatar from the expense Report.
What is the root cause of that problem?
Here we allow showing the subscript workspace avatar while ReportUtils.isExpenseReport(report))
We're recommending that we remove the subscript from the avatar - it feels extraneous in the comments, given that in the chat view header you see the user avatar + workspace avatar. When comments are actions are happening, they are just happening from the user, so we don't need any special kind of avatar there.
I've updated my proposal to support this. I also had a question about your suggestion, that I've asked in the proposal. Could you take a look whenever you have time?
changed the title [-]Avatars used in report and transaction actions are not consistent[/-][+][$500] Avatars used in report and transaction actions are not consistent[/+]on Mar 28, 2024
changed the title [-][$500] Avatars used in report and transaction actions are not consistent[/-][+][HOLD for payment 2024-05-02] [$500] Avatars used in report and transaction actions are not consistent[/+]on Apr 25, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.65-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@ahmedGaber93 / @alitoshmatov] 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:
[@ahmedGaber93 / @alitoshmatov] A discussion in #expensify-bugs 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:
[@ahmedGaber93 / @alitoshmatov] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@slafortune] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
A discussion in #expensify-bugs 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: No need
Determine if we should create a regression test for this bug. No need
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Mar 26, 2024
Triggered auto assignment to @slafortune (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.Pranav2612000 commentedon Mar 26, 2024
Proposal
[ Updated after @shawnborton 's suggestion ]
Please re-state the problem that we are trying to solve in this issue.
Report Preview should just show the User Avatar, similar to the one we have for Transaction Detail.

Current Report Preview Item:
Expected Report Preview Item:

Also, while doing this we need to ensure that the request on the workspace page still shows the combo icons i.e

Isn't that right @shawnborton ?
What is the root cause of that problem?
The
ReportActionItemSinglecomponent takes ashouldShowSubscriptAvatarprop which determines whether to display the combo icon or not.This prop value is being passed as true here because the
ReportUtils.isExpenseReport(report)is true.What changes do you think we should make in order to solve the problem?
Removing the
ReportUtils.isExpenseReport(report)condition from the check here should start displaying just the user icon on the Report Preview page.What alternative solutions did you explore? (Optional)
If we want more fine-grained control over which actions should display the combo icon, we can also configure that by choosing the reportAction types to allow it for here
puneetlath commentedon Mar 26, 2024
@slafortune we should get the design team's input on which avatar we want to use. I was discussing this with @shawnborton before.
shawnborton commentedon Mar 26, 2024
I think we should just use the person's avatar without the subscript workspace avatar attached to it. Thoughts on that? cc @Expensify/design
dannymcclain commentedon Mar 26, 2024
That works for me! I honestly don't have a super strong preference for which to use, but totally agree that we should just use the same one for everything. Down with ditching the subscript.
gijoe0295 commentedon Mar 26, 2024
Actually I think this is expected. Those are two completely different actions. The report preview is an expense request and thus should have subscript avatar, indicating that this request belongs to that user and workspace.
On the other hand, in transaction details, the user is the owner/creator of the actions made there (modify merchant, description, delete, hold request...) so it should be himself who made the actions and thereby shows his avatar as the sender.
shawnborton commentedon Mar 26, 2024
We're recommending that we remove the subscript from the avatar - it feels extraneous in the comments, given that in the chat view header you see the user avatar + workspace avatar. When comments are actions are happening, they are just happening from the user, so we don't need any special kind of avatar there.
ahmedGaber93 commentedon Mar 26, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Avatars used in report and transaction actions are not consistent.
As I understand from the design team conversation, we should remove the subscript workspace avatar from the expense Report.
What is the root cause of that problem?
Here we allow showing the subscript workspace avatar while
ReportUtils.isExpenseReport(report))App/src/pages/home/report/ReportActionsListItemRenderer.tsx
Lines 136 to 137 in d8361ee
What changes do you think we should make in order to solve the problem?
we need to remove
ReportUtils.isExpenseReport(report))part from the condition hereWhat alternative solutions did you explore? (Optional)
Pranav2612000 commentedon Mar 27, 2024
Thank you @shawnborton . That makes sense.
I've updated my proposal to support this. I also had a question about your suggestion, that I've asked in the proposal. Could you take a look whenever you have time?
melvin-bot commentedon Mar 28, 2024
Job added to Upwork: https://www.upwork.com/jobs/~011c09e56c59c19b0d
[-]Avatars used in report and transaction actions are not consistent[/-][+][$500] Avatars used in report and transaction actions are not consistent[/+]22 remaining items
[-][$500] Avatars used in report and transaction actions are not consistent[/-][+][HOLD for payment 2024-05-02] [$500] Avatars used in report and transaction actions are not consistent[/+]melvin-bot commentedon Apr 25, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Apr 25, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.65-5 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 2024-05-02. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Apr 25, 2024
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
alitoshmatov commentedon May 1, 2024
slafortune commentedon May 2, 2024
@alitoshmatov @ahmedGaber93 Paid ✅