Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.51k stars 2.86k forks source link

[HOLD for payment 2024-11-01] [$125] BUG: SelfDM is marked as unread even though there is no message #51066

Open danielrvidal opened 1 week ago

danielrvidal commented 1 week ago

BUG: SelfDM is marked as unread even though there is no message

  1. I signed up and wen’t through onboarding modals
  2. When I get to the Concierge chat my SelfDM is unread
  3. But there is no message in the self DM
    • The first image is when I choose “Manage my team”
    • The second is the SelfDM when you choose “Track my expenses”
    • In both cases, I don’t think it should be unread.

We discussed this internally and can't think of any cases where the SelfDM should be unread. So let's please update the flow so that it is marked as read when users come in as new users.

Some background from @trjExpensify: https://github.com/Expensify/App/pull/43489 - It looks like we did this in this PR.

We need to remove the selfDM from this line: https://github.com/Expensify/App/blob/f180cbb97f7158ee6339215c9d5313b50f232c8c/src/libs/ReportUtils.ts#L6127

image

image

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021847081858608334041
  • Upwork Job ID: 1847081858608334041
  • Last Price Increase: 2024-10-18
  • Automatic offers:
    • mkhutornyi | Reviewer | 104524422
    • mkzie2 | Contributor | 104524424
Issue OwnerCurrent Issue Owner: @zanyrenney
melvin-bot[bot] commented 1 week ago

Triggered auto assignment to @zanyrenney (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.

melvin-bot[bot] commented 1 week ago

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

melvin-bot[bot] commented 1 week ago

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

mkzie2 commented 1 week ago

Edited by proposal-police: This proposal was edited at 2024-10-18 01:11:24 UTC.

Proposal

Please re-state the problem that we are trying to solve in this issue.

SelfDM is marked as unread even though there is no message

What is the root cause of that problem?

We forced showing unread for empty self DM:

https://github.com/Expensify/App/blob/f180cbb97f7158ee6339215c9d5313b50f232c8c/src/libs/ReportUtils.ts#L6127-L6129

What changes do you think we should make in order to solve the problem?

Remove the isSelfDM check from the above.

trjExpensify commented 1 week ago

I'm dropping the price on this as a one-liner we've identified.

melvin-bot[bot] commented 1 week ago

Upwork job price has been updated to $125

trjExpensify commented 1 week ago

@zanyrenney when this is deployed, please make sure we remove this test case from QA: https://github.com/Expensify/Expensify/issues/412760

CC: @isagoico

melvin-bot[bot] commented 1 week ago

@zanyrenney, @mkhutornyi Whoops! This issue is 2 days overdue. Let's get this updated quick!

mkhutornyi commented 1 week ago

@mkzie2's proposal looks good. 🎀👀🎀 C+ reviewed

melvin-bot[bot] commented 1 week ago

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

melvin-bot[bot] commented 1 week ago

📣 @mkhutornyi 🎉 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

melvin-bot[bot] commented 1 week ago

📣 @mkzie2 🎉 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[bot] commented 1 week ago

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

melvin-bot[bot] commented 6 days ago

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

melvin-bot[bot] commented 6 days ago

The solution for this issue has been :rocket: deployed to production :rocket: in version 9.0.53-1 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-11-01. :confetti_ball:

For reference, here are some details about the assignees on this issue:

melvin-bot[bot] commented 6 days ago

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:

danielrvidal commented 2 days ago

Confirmed it's working on production as intended!

image