-
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
Message stays highlighted after closing the context menu #12889
Comments
Triggered auto assignment to @flaviadefaria ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @amyevans ( |
Proposal Solution /**
* Hide the ReportActionContextMenu modal popover.
* @param {Function} onHideActionCallback Callback to be called after popover is completely hidden
*/
hideContextMenu(onHideActionCallback) {
if (_.isFunction(onHideActionCallback)) {
this.onPopoverHideActionCallback = onHideActionCallback;
}
this.setState({
selection: '',
reportActionDraftMessage: '',
isPopoverVisible: false,
+ reportAction: {},
});
}
Result: Screen.Recording.2022-11-21.at.23.01.58.mov |
This is a regression caused by #12735, cc @deetergp @Pujan92 @mananjadhav @Julesssss. I'll open a revert of that PR. |
ProposalRoot cause: Solution: clear report id only after modal fully closed |
Here's code proposal for this solution - App/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js Lines 200 to 206 in 6faef3f
/**
* After Popover hides, call the registered onPopoverHide & onPopoverHideActionCallback callback and reset it
*/
runAndResetOnPopoverHide() {
+ this.state.reportID = '0';
+ this.state.reportAction = {};
this.onPopoverHide = this.runAndResetCallback(this.onPopoverHide);
this.onPopoverHideActionCallback = this.runAndResetCallback(this.onPopoverHideActionCallback);
} |
Okay, let me review your suggestion a bit locally @0xmiroslav, thanks. The one thing I'm sensitive to is that the regression is currently a deploy blocker, so we'd need to cherry pick a fix today, and I want to avoid introducing any further regressions by not fully considering unintended side effects if moving too quickly. |
Discussed with @AndrewGable and I'm going to proceed with opening a revert PR to keep the deploy unblocked. @0xmiroslav, feel free to suggest your proposal on the original issue (#11086) for evaluation by the C+ and CME, as the issue will need an updated solution after the revert. Thank you! |
Removing label as the revert was CP-ed |
Thanks @amyevans and @AndrewGable. We'll fix it as a regression on #11086 |
Are we then good to close this? |
Yes, sorry, I forgot App issues aren't auto-closed when the related PR is deployed! |
@amyevans, can we re-open? This is eligible for reporting compensation. |
Right, apologies @thesahindia! @flaviadefaria can you issue payment to @thesahindia please? |
@thesahindia I'm just clarifying something internally but will aim to pay you tomorrow! |
@thesahindia can you please apply for the job so that I can pay you? |
@flaviadefaria, the job is private. |
Weird can you try again now? It was indeed private but I've made it public now. |
Not sure what's wrong. Can you send me the offer or invite (Upwork profile) Screen.Recording.2022-11-30.at.7.34.33.PM.mov |
Hm I must have messed up somewhere, I'll invite you to the job thanks for sending your profile. |
Ok @thesahindia you should have now received my offer! |
Accepted, thanks! |
Alright you should now have been paid. Thanks for your patience @thesahindia! |
Let's close this. |
Closing it - thanks for your help! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The message shouldn't be highlighted after closing the context menu
Actual Result:
The message stays highlighted
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.29-6
Reproducible in staging?: y
Reproducible in production?: n
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Recording.981.mp4
Screen.Recording.2022-11-19.at.3.09.05.PM.mov
Expensify/Expensify Issue URL:
Issue reported by: @thesahindia
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1668851137899819
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: