-
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-06-01] [$1000] Mentions results does not close when we change focus #18879
Comments
Triggered auto assignment to @bfitzexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Mentions results does not close when we change focus What is the root cause of that problem?When text selection change, we call this method to calculate list mention suggestion App/src/pages/home/report/ReportActionCompose.js Lines 518 to 521 in 293f23b
But it would be early exit if the current cursor (selection.end) is the first character. What changes do you think we should make in order to solve the problem?Remove this early exit check will solve the problem. What alternative solutions did you explore? (Optional)Instead of do nothing and early exit if the cursor is the first character, we can reset suggestedMentions state before exit. Almost same with what we are doing with emojis when the comment is empty App/src/pages/home/report/ReportActionCompose.js Lines 485 to 488 in 293f23b
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Mentions results does not close when we change focus What is the root cause of that problem?We are checking if the current selection is smaller than 1 then early return here: App/src/pages/home/report/ReportActionCompose.js Lines 519 to 521 in 293f23b
When user moves cursor before "@" character, the selection end is now 0 , so the suggestion mentions isn't re-calculated which caused this issue.
What changes do you think we should make in order to solve the problem?In stead of early return here and do nothing, we should if (this.state.selection.end < 1) {
this.resetSuggestions();
return;
} What alternative solutions did you explore? (Optional) |
@bfitzexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Reproduced. |
Job added to Upwork: https://www.upwork.com/jobs/~01f6abecc2436476a9 |
Current assignee @bfitzexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Triggered auto assignment to @hayata-suenaga ( |
Both proposals do not work, the suggestion list sometimes not closing |
hi @Santhosh-Sellavel just want to ensure you have either:
as I mentioned in my proposal above, didn't you? |
Yeah I tried both! |
Will visit this again later today or tomorrow! |
Sorry for the confusion @hoangzinh. Not sure why it was behaving weirdly yesterday. Let's hire @hoangzinh for this one. Let's go with resetSuggestions() that's the better approach! Let me know your thoughts. C+ Reviewed |
@Santhosh-Sellavel can you review my proposal? i suggested to use resetSuggestion(). I remembered at the time I posted my proposal, @hoangzinh 's proposal only suggested to remove early return :/. Because if that proposal included my proposal, I'll never post my proposal. @hoangzinh can you confirm? |
I'm sorry @hungvu193. I think you can get answer by checking my edit history here #18879 (comment) |
@Santhosh-Sellavel @hayata-suenaga PR is ready for the review #19334 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.17-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 2023-06-01. 🎊 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:
|
@Santhosh-Sellavel bump to complete the BZ checklist |
Another friendly bump @Santhosh-Sellavel, I can pay out the C+ contract once the checklist is complete. Thanks! |
Do we need Regression testing here @hayata-suenaga ? I think we don't need here let me know your thoughts and if you differ on anything above, thanks! |
@Santhosh-Sellavel although if the same regression occurs it's likely the issue will be caught in other test suites, it will be a good idea to explicitly create a regression test for this |
I agree, this feels like a common enough flow to warrant its own test. |
Triggered auto assignment to @johncschuster ( |
This comment was marked as duplicate.
This comment was marked as duplicate.
Heading OOO for this week. @johncschuster — we're almost done here, there are two steps remaining:
Thanks! |
Sounds good, @bfitzexpensify! |
Regression Test Steps
👍 or 👎 cc: @hayata-suenaga |
We're going to be adding a regression test suite for mentions soon, so I think you can probably go forward without it here. |
Thanks, @puneetlath! Should we capture the suggested regressions steps above, or do we already have a suite of initial testing steps already written? |
We're already working on it, so no need to worry about it. |
Perfect. Thanks! BugZero checklist has been completed. Payment has been issued to everyone. Thanks, folks! 🎉 |
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 close mention results on shifting focus like it does for emoji suggestions
Actual Result:
App does not close mention results on shifting focus
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: v1.3.13-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
Notes/Photos/Videos: Any additional supporting documentation
mention.does.not.close.on.focus.change.mp4
Recording.594.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1683891760906869
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: