-
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 2023-07-06] [$1000] First message remains heighlighted on thread #19776
Comments
Triggered auto assignment to @puneetlath ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.First message in thread is highlighted if we use Reply In Thread from (right-click) context menu. What is the root cause of that problem?One of the reason the message is highlighted is when a context menu is active. Each message compare its action ID with the active action ID. App/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js Lines 111 to 113 in f007829
The active action ID will be cleared once we close the context menu. App/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js Lines 198 to 202 in f007829
One thing to keep in mind is that the thread first message action ID is the same as the thread parent action ID. The problem is, when we click Reply in thread, it will navigate us to the thread report before hiding the context menu. Screen.Recording.2023-05-30.at.17.03.11.movNotice the context menu is late to hide. This is because we are delaying the hiding (first param of App/src/pages/home/report/ContextMenu/ContextMenuActions.js Lines 119 to 122 in f007829
So, when we already navigated to the thread report, the first message mounted and think that the context menu is still active (well, technically it's but we should immediately close it before navigate to the thread report) App/src/pages/home/report/ReportActionItem.js Lines 108 to 109 in f007829
What changes do you think we should make in order to solve the problem?
Here is how it looks after both changes above:
What alternative solutions did you explore? (Optional)Add
This works well, but I think we should still apply the main solution above and this one just as an additional improvement. |
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
Job added to Upwork: https://www.upwork.com/jobs/~01459c624ea436728a |
Current assignee @puneetlath is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Current assignee @puneetlath is eligible for the External assigner, not assigning anyone new. |
@puneetlath, @parasharrajat Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@parasharrajat thoughts on the proposal? |
Reviewing. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@puneetlath, @parasharrajat Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@parasharrajat thoughts on the proposals? |
Missed replying here. Thanks @bernhardoj for the proposal. So removing the delay will fix this issue. But why is the delay there? What will happen when we remove this? |
I believe the delay is used when we want to show some icon/text changes in the context menu before closing it, e.g. copy to clipboard, mark as unread. Screen.Recording.2023-06-08.at.11.49.05.mov |
Thanks. There were two questions asked.
What about this? |
The context menu will immediately close. The example we can see is in edit/delete message, flag message. App/src/pages/home/report/ContextMenu/ReportActionContextMenu.js Lines 47 to 68 in b8d4576
|
That is obvious. So we will lose the ability to show the confirmation status of an action(e.g. for Copy to Clipboard). That will become another problem. |
PR is ready for review. cc: @parasharrajat |
🎯 ⚡️ Woah @parasharrajat / @bernhardoj, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.34-1 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 2023-07-06. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
@gadhiyamanan @bernhardoj sent you both contracts. @parasharrajat I assume you'll request payment via Expensify? And also, friendly reminder about the checklist 😄 |
@parasharrajat friendly reminder so that we can pay this out tomorrow! |
[@parasharrajat] The PR that introduced the bug has been identified. Link to the PR: I am not sure how to tag the real Root cause of PR. The solution was to remove the delay from the context menu hide but this delay was added before the threads were in the app so the root cause PR will be the one that added the threads. They should have removed the delay. #18522 [@parasharrajat] 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: https://github.com/Expensify/App/pull/18522/files#r1253404741 [@parasharrajat] 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: [@parasharrajat] Determine if we should create a regression test for this bug. Yes [@parasharrajat] 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. Regression Test Steps
Do you agree 👍 or 👎 ? |
Thanks @parasharrajat. You'll be requesting payment via NewDot, is that right? @gadhiyamanan bump on accepting the Upwork offer. |
@gadhiyamanan and @bernhardoj have been paid. Just waiting for confirmation from @parasharrajat on whether they've requested payment in NewDot. |
I haven't requested it yet. Please wait a few more days. It takes about 5 days to credit so the waiting time is long. Good thing on putting this weekly. Thanks for the bump @puneetlath . |
Requested payment on newDot 1500. |
Approved 1500 based on #19776 (comment) |
Great! Closing out. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
first message should not be highlighted
Actual Result:
first message highlights
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.19-6
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
Notes/Photos/Videos: Any additional supporting documentation
IMG_0409.mov
az_recorder_20230529_172540.1.mp4
Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685076159930429
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: