-
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-01-05] [$500] Web - Message background color is stuck on cancel delete #28029
Comments
Job added to Upwork: https://www.upwork.com/jobs/~013ba33594e38dfae9 |
Triggered auto assignment to @anmurali ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @anmurali ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The problem is that the background highlight colour on a selected message does not disappear when selecting the 'Delete Comment' popup modal and then cancelling the operation. What is the root cause of that problem?The issue is that the onPopoverHide() callback to handle state updates can only be called once, due to the use of the 'run and reset' paradigm. In this specific situation, this callback needs to be handled twice – once when the context menu closes, and again when the confirm delete modal changes. Since this callback is called first when the context menu closes, the subsequent cancellation of the delete modal does not call the callback to update the state of the component. What changes do you think we should make in order to solve the problem?We allow the onPopoverHide() callback to be called several times, by not clearing the callback after the first run. I already have a simple and elegant working solution that only requires three lines of code to be changed. |
📣 @Samueljh1! 📣
|
Contributor details |
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Background color on message is stuck when we right click on any message, click delete and cancel the delete What is the root cause of that problem?When closing the context menu, we toggle the state in the But we're not doing the same for the delete modal, for the delete modal we just reset the state at What changes do you think we should make in order to solve the problem?We need to call the Steps:
and here
. And set it to
Or we can add This is the same way we're handling it when the context menu hides, we just apply the same for when delete modal hides. What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.Background color of the message is stuck when we click delete from context menu(right click) and click cancel on delete modal What is the root cause of that problem?When we right click on the message, App/src/pages/home/report/ReportActionItem.js Line 239 in 5aa7f6d
When we click the delete button, context menu hides and delete confirm modal is opened.
The problem is that the This is the root cause What changes do you think we should make in order to solve the problem?We need to prevent re-render when confirm modal shows so What's the root cause of re-rendering when confirm delete modal is opened?
When user clicks delete button, At the next rendering cycle,
This change of
As you can see, change of In order to avoid this, I suggest to call the hide callback when delete modal hides. To do this
And I think we can remove this line App/src/pages/home/report/ReportActionItem.js Line 264 in 276b007
This works fine Result28029.mp4What alternative solutions did you explore? (Optional)We need to re-render the |
@anmurali, @thesahindia Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@anmurali, I am not getting enough time to review the proposals here. Please reassign. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@anmurali bump |
@anmurali Eep! 4 days overdue now. Issues have feelings too... |
PR is ready cc: @parasharrajat |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.19-2 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-01-05. 🎊 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.
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:
|
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:
Regression Test Steps
Do you agree 👍 or 👎 ? |
@anmurali, @blimpich, @parasharrajat, @bernhardoj Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Payment summary for contributor payments on New Dot |
@dhanashree-sawant - sent you an offer |
Thanks @anmurali, I have accepted the offer. |
@anmurali, @blimpich, @parasharrajat, @bernhardoj Huh... This is 4 days overdue. Who can take care of this? |
Let's close this issue. I will request it later. |
@anmurali, @blimpich, @parasharrajat, @bernhardoj Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@dhanashree-sawant is paid. @parasharrajat - I will let you request this when you are ready. |
Payment requested as per #28029 (comment) |
$500 approved for @parasharrajat |
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:
App should remove background color from message as soon as we hover on any other message
Actual Result:
Background color on message is stuck when we right click on any message, click delete and cancel the delete
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.73.0
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
background.color.on.message.is.stuck.on.delete.and.cancel.mp4
Recording.4693.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695223040847299
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: