-
Notifications
You must be signed in to change notification settings - Fork 3k
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-06-28] [HOLD for payment 2024-06-24] [$250] Group chat thread - Inconsistency when leaving thread via 3-dot menu and group details page #43126
Comments
Triggered auto assignment to @puneetlath ( |
@puneetlath FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
ProposalPlease re-state the problem that we are trying to solve in this issue.Leave from 3 dots on the header is not the same as leave from the report details page What is the root cause of that problem?On HeaderView, for the 3 dots leave action we call for App/src/pages/home/HeaderView.tsx Line 174 in 0efe60a
But on App/src/pages/ReportDetailsPage.tsx Line 131 in 0efe60a
What changes do you think we should make in order to solve the problem?We should do the same on HeaderView, for the 3 dots. We shoudl check if onSelected: Session.checkIfActionIsAllowed(() => {
if (isChatRoom) {
Report.leaveRoom(report.reportID, isWorkspaceMemberLeavingWorkspaceRoom);
return;
}
Report.leaveGroupChat(report.reportID);
}), What alternative solutions did you explore? |
This is not a bug, confirmation modal is only needed when last member leaves the group chat and not a thread. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Pressing leave from the report detail page shows a modal confirmation but not from the 3-dot menu. What is the root cause of that problem?It's expected that if we press Leave from a 3-dot, it won't show a confirmation modal. It's only for a group chat in detail page as you can see here. App/src/pages/ReportDetailsPage.tsx Lines 216 to 217 in 8dbec8d
The real problem here is that, the leave button on the detail page shouldn't show for a thread. The condition to show the leave button is if it's either a group chat or a chat room and App/src/pages/ReportDetailsPage.tsx Line 209 in 8dbec8d
When we create a thread inside a group chat, it's still detected as a group chat because thread chatType is inherited from its parent. What changes do you think we should make in order to solve the problem?Don't show the leave button option if it's a thread.
We did this before in the original PR, but treated as out of scope. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Group chat thread - Inconsistency when leaving thread via 3-dot menu and group details page. What is the root cause of that problem?This is not a bug, confirmation modal is only needed when last member leaves the group chat and not a thread. I think join and leave options are needed in threads to set notification preferences. But if we want to avoid showing them, then that can be done. What changes do you think we should make in order to solve the problem?In
In
|
Job added to Upwork: https://www.upwork.com/jobs/~0166b95168c5d28cbd |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale ( |
We can move forward with @bernhardoj's proposal here since it's the best approach to solving the issue. 🎀👀🎀 C+ reviewed. |
Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@akinwale Can you give some feedback on my proposal? I think we should be
updating the checks in the join and leave methods.
…On Sat, Jun 8, 2024, 6:56 AM melvin-bot[bot] ***@***.***> wrote:
Current assignee @puneetlath <https://github.com/puneetlath> is eligible
for the choreEngineerContributorManagement assigner, not assigning anyone
new.
—
Reply to this email directly, view it on GitHub
<#43126 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIPLJHHMDARPXBEZRYCHLPDZGJMS7AVCNFSM6AAAAABI2ZT62OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVG42DGNBRG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
📣 @akinwale 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready cc: @akinwale |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.84-3 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-06-24. 🎊 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:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.85-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-06-28. 🎊 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:
|
@akinwale bump on the checklist so we can pay. |
Not a regression.
Regression Test Steps
Do we agree 👍 or 👎? |
@puneetlath Done. |
Regression issue here: All paid. Thanks y'all! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4-79-3
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
There should be consistency when leaving thread and reopening thread after leaving via 3-dot menu (Step 7) and group details page (Step 12)
Actual Result:
In Step 7. when leaving thread via 3-dot menu and reopening thread, there is no "Heads up" warning and thread does not load when reopening the thread after leaving
In Step 12, when leaving thread via group menu, there is "Heads up" warning and thread loads when reopening the thread after leaving
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6502481_1717577093194.bandicam_2024-06-05_16-39-37-515.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @puneetlathThe text was updated successfully, but these errors were encountered: