-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-07-10] [$250] LHN-Unpinned and read "Expensify" chat persists in LHN in "#focus" priority mode #43599
Comments
Triggered auto assignment to @slafortune ( |
Triggered auto assignment to @tgolen ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
OK, I verified I can reproduce it on staging. Since this doesn't prevent the user from doing anything, I'm going to demote this as a blocker and make it an external issue instead. |
Job added to Upwork: https://www.upwork.com/jobs/~01efa7c4d8efd2418e |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov ( |
ProposalPlease re-state the problem we are trying to fix here.The "Expensify" chat persists in the Left Hand Navigation (LHN) in "#focus" priority mode, even though it is read, unpinned, and has no drafted message or Global Broadcast Room (GBR) messages. What is the root cause of the problem ?Examination of LHN Filtering Logic
Focus Mode Filter Application
Potential Issue
Proposed SolutionModify the Solution ImplementationFile: Updated const shouldDisplayChat = (chat, priorityMode) => {
if (priorityMode === '#focus') {
return chat.isPinned || chat.hasDraft || chat.unread || chat.isGBR;
}
return true; // Default case for other priority modes
}; Update the Function Call in Focus Mode Filter: const filterChatsForFocusMode = (chats) => {
return chats.filter(chat => {
return chat.priority === 'focus' && shouldDisplayChat(chat, '#focus');
});
}; |
Thanks @TheGithubDev. What I don't understand from your proposal (maybe I just missed it) is how does this chat still remain visible if all of these are false?
|
In the current implementation, the chat remains visible in the LHN because the condition chat.isPinned || chat.hasDraft || chat.unread is evaluated for each chat. If any of these properties are true, the chat will be displayed. Why the "Expensify" Chat Remains VisibleIn "#focus" mode, the expected behavior is for the chat to be hidden if:
If all these conditions are indeed false and the chat still appears, then the logic for handling "#focus" mode isn't correctly implemented. Thanks for your feedback! @tgolen I hope I've been clear. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The "Expensify" chat remains in LHN. What is the root cause of that problem?In Line 110 in a451de4
#focus , ...
Meanwhile for non-Expensify personal user, we'll always exclude the chat from option list What changes do you think we should make in order to solve the problem?We should move the above 2 conditions to Line 5377 in a451de4 So:
The And then we can remove those conditions here and here What alternative solutions did you explore? (Optional)If it's ok for Expensify persona to show up elsewhere, not just from here, we can use |
Proposal edited to clarify |
@dominictb Thank you, that explains the problem more clearly and I understand why it's stuck there now. I approve your proposal 👍 @alitoshmatov do you also approve? |
@alitoshmatov FYI another So I think we should get this finished soon, @tgolen was already 👍 with the proposal |
@dominictb do you think either of these issues could be for the same reason? |
@puneetlath They look like having different root causes, I'll take a look tomorrow to see if I can help there |
That worked Okay let's go with @dominictb 's proposal C+ reviewed 🎀 👀 🎀 |
Current assignee @tgolen is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @alitoshmatov 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @dominictb 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Waiting for PR |
I'll raise a PR in the next few hours |
@tgolen about this #44061 (comment), I'll need probably some time till end of this week to add unit tests for this functionality. I guess if this issue is still kept open at that time then that's should be fine, no worries! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.3-7 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-07-10. 🎊 For reference, here are some details about the assignees on 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:
|
@alitoshmatov can you please complete the checklist? |
cc: @slafortune |
@allgandalf Paid $250 via Upworks ✅ |
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.82-0
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4623718
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: applause internal team
Slack conversation:
Action Performed:
Expected Result:
The "Expensify" chat should disappear from LHN for user in #focus mode as it is read, unpinned, there is no drafted message or GBR
Actual Result:
The "Expensify" chat remains in LHN.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6511119_1718212788958.Record_2024-06-12-19-03-54.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @slafortuneThe text was updated successfully, but these errors were encountered: