Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOLD for payment 2024-05-02] [$500] Avatars used in report and transaction actions are not consistent #38974

Closed
1 of 6 tasks
m-natarajan opened this issue Mar 26, 2024 · 24 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@m-natarajan
Copy link

m-natarajan commented Mar 26, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.4.56-5
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @puneetlath
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1711385263315559

Action Performed:

  1. Create an expense report in a workspace chat
  2. Edit merchant name ,description or category
  3. Observe the preview of the report and report details page for the transaction actions

Expected Result:

Both pages should have consistent avatar display

Actual Result:

Combo avatar is shown in the report preview (WS avatar and user) and in the transaction details it shows only user avatar

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Recording.2902.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~011c09e56c59c19b0d
  • Upwork Job ID: 1773443474563608576
  • Last Price Increase: 2024-03-28
  • Automatic offers:
    • alitoshmatov | Reviewer | 0
    • ahmedGaber93 | Contributor | 0
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 26, 2024
Copy link

melvin-bot bot commented Mar 26, 2024

Triggered auto assignment to @slafortune (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@Pranav2612000
Copy link

Pranav2612000 commented 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:
image

Expected Report Preview Item:
image

Also, while doing this we need to ensure that the request on the workspace page still shows the combo icons i.e
image
Isn't that right @shawnborton ?

What is the root cause of that problem?

The ReportActionItemSingle component takes a shouldShowSubscriptAvatar prop 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
Copy link
Contributor

@slafortune we should get the design team's input on which avatar we want to use. I was discussing this with @shawnborton before.

@shawnborton
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

gijoe0295 commented 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
Copy link
Contributor

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
Copy link
Contributor

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))

shouldShowSubscriptAvatar={
(ReportUtils.isPolicyExpenseChat(report) || ReportUtils.isExpenseReport(report)) &&

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 here

What alternative solutions did you explore? (Optional)

@Pranav2612000
Copy link

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.

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?

@slafortune slafortune added the External Added to denote the issue can be worked on by a contributor label Mar 28, 2024
Copy link

melvin-bot bot commented Mar 28, 2024

Job added to Upwork: https://www.upwork.com/jobs/~011c09e56c59c19b0d

@melvin-bot melvin-bot bot changed the title Avatars used in report and transaction actions are not consistent [$500] Avatars used in report and transaction actions are not consistent Mar 28, 2024
@melvin-bot melvin-bot bot added Overdue Help Wanted Apply this label when an issue is open to proposals by contributors labels Mar 28, 2024
Copy link

melvin-bot bot commented Mar 28, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (External)

@slafortune
Copy link
Contributor

@alitoshmatov Will you have time to review the submitted proposals?

@melvin-bot melvin-bot bot removed the Overdue label Apr 1, 2024
@alitoshmatov
Copy link
Contributor

Yes, working on it right now

@alitoshmatov
Copy link
Contributor

@Pranav2612000 Thank you for your proposal, removing ReportUtils.isExpenseReport(report) does indeed solve this issue. But I see @ahmedGaber93 was the first one to suggest this change.

@alitoshmatov
Copy link
Contributor

We can go with @ahmedGaber93 's proposal which removes ReportUtils.isExpenseReport(report) condition for showing workspace subscript. Thus all transaction report previews will be displayed without workspace subscript

C+ reviewed 🎀 👀 🎀

Copy link

melvin-bot bot commented Apr 1, 2024

Triggered auto assignment to @francoisl, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 1, 2024
Copy link

melvin-bot bot commented Apr 1, 2024

📣 @alitoshmatov 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Apr 1, 2024

📣 @ahmedGaber93 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Apr 3, 2024
@ahmedGaber93
Copy link
Contributor

@alitoshmatov PR #39473 is ready for review.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 25, 2024
@melvin-bot melvin-bot bot 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 Apr 25, 2024
Copy link

melvin-bot bot commented Apr 25, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 25, 2024
Copy link

melvin-bot bot commented 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:

Copy link

melvin-bot bot commented 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:

  • [@ahmedGaber93 / @alitoshmatov] The PR that introduced the bug has been identified. Link to the PR:
  • [@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] Determine if we should create a regression test for this bug.
  • [@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:

@alitoshmatov
Copy link
Contributor

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 1, 2024
@slafortune
Copy link
Contributor

@alitoshmatov @ahmedGaber93 Paid ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Archived in project
Development

No branches or pull requests

10 participants