-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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-02-20] [$500] IOU - Inconsistency seen for regular messages &IOU while interacting with thread options #35092
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01457ddb9bb6fce778 |
Triggered auto assignment to @mallenexpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
This is intentional. The Expense reports have a "Hidden" notification preference by default, while the messages have "Always". The "join/leave thread" buttons are displayed based on the notification preference. |
I think @srikarparsi can tell more about the expected behavior here as he was the author of the leave/join functionality |
ProposalPlease re-state the problem that we are trying to solve in this issue.The "Join/Leave Thread" options appear for Report Preview (Expense & IOU). What is the root cause of that problem?We explicitly allow these options to appear for the App/src/pages/home/report/ContextMenu/ContextMenuActions.tsx Lines 274 to 285 in caf91ae
App/src/pages/home/report/ContextMenu/ContextMenuActions.tsx Lines 305 to 317 in caf91ae
What changes do you think we should make in order to solve the problem?If we want to hide the "Join/Leave Thread" options for Report Previews, we should change these conditions to check for return !subscribed && !isWhisperAction && !isReportPreviewAction && (isCommentAction || isIOUAction) && ... Depending on the expected behavior, we can hide these options for the individual Money Request Previews as well – use Also, if we decide that we want to hide the "Join/Leave" options for the messages without actual threads created – we should early return What alternative solutions did you explore? (Optional) |
@paultsimura thanks for chiming in here and providing context cuz I was on Team Fedi when thinking about
It seems weird to me that, in a DM, on a chat without a thread, that there'd be an option to 'leave thread' . The default for receiving notifications in Slack for room for thread comments:
If the above is true, what's the purpose of 'leave thread' if you're not going to receive notifications? Maybe the behaviour is different in Slack DMs for threads? Also.. if User C was to click 'leave thread' then someone tagged them in the thread, 'we' would still want them to receive that notification, right? (ie. big convo in a thread, you leave thread cuz then later someone tags you asking a question. You'd want to be notified of that). My intention is to open/reopen a can o' worms if this has already been discussed and consensus was reached, just trying to understand the potential bug here more (and typing out my thoughts on a Saturday morn when I need another cup of ☕ , bad) |
@mallenexpensify when talking about "leave thread", I clarified that it's true for the messages you're the author of. Only for these messages, the notifications are enabled by default. |
For this scenario, the User C will have an option to "join thread", not "leave". I'm not sure how the mentions work in ND when you've left the thread though🤔 |
ah ha, that makes sense then. Thanks for the clarification. Based on all the details we now have, @fedirjh , can you review @paultsimura 's proposal above? |
@paultsimura's proposal looks good to me. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @jasperhuangg, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Thanks. The PR is ready for review: #35769 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.40-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-02-20. 🎊 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:
|
Payment Summary
BugZero Checklist (@mallenexpensify)
|
@fedirjh @paultsimura can you please accept the job and reply here once you have? |
Accepted, thanks @mallenexpensify |
@mallenexpensify Thank you. Accepted |
Contributor: @paultsimura paid $500 via Upwork @fedirjh , will you complete the BZ Checklist above? Thx |
BugZero Checklist:
|
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.31-1
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: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
There must be consistent behavior in showing thread option in context menu for regular text messages and IOU. Similarly, consistent behavior must be shown on displaying conversation in LHN for regular text messages and IOU on tapping join thread
Actual Result:
When we send message, context menu shows leave thread option, but while request money, join thread option is displayed
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6353562_1706121043249.thread.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: