-
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
[Awaiting checklist] [$250] Mention - Delay in removing mention list when pressing CMD+K #41136
Comments
Triggered auto assignment to @twisterdotcom ( |
@twisterdotcom FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
ProposalPlease re-state the problem that we are trying to solve in this issue.The mention suggestion is closed with a delay when we open search page with shortcut. What is the root cause of that problem?The mention suggestion list will close when the composer is blurred. App/src/pages/home/report/ReportActionCompose/SuggestionMention.tsx Lines 346 to 348 in 10fc359
App/src/pages/home/report/ReportActionCompose/SuggestionMention.tsx Lines 281 to 285 in 10fc359
When we open the search page through shortcut, the focus will shift from the composer to the search page search input after the navigation completes, so it feels delayed. If we open the search page by mouse, then the composer is immediately blurred when we press the search button, so the issue doesn't happen. If we open the keyboard shortcut page, then the composer will never be blurred and the suggestion will still be shown. What changes do you think we should make in order to solve the problem?Blur the composer immediately when the shortcut is pressed by blurring the active element.
App/src/libs/Navigation/AppNavigator/AuthScreens.tsx Lines 246 to 248 in 10fc359
do for other shortcuts too |
ProposalPlease re-state the problem that we are trying to solve in this issue.Mention - Delay in removing mention list when pressing CMD+K What is the root cause of that problem?The main problem with issue is that when we open modal using CMD+K we still have isComposerFocused equal true App/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx Line 775 in 10fc359
And as a result, we have a short period of time when Suggestions menu is still open until the input is blurred What changes do you think we should make in order to solve the problem?To fix this issue we can update this line and add
OR
App/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx Line 775 in 10fc359
Additional for Emoji suggestions menu we need update some code to make consistence between Emoji and Mention suggestions (These changes are not relevant in the case of useEffect, but for consistence I think these changes should be made in any case)
Like here
AND
App/src/pages/home/report/ReportActionCompose/SuggestionEmoji.tsx Lines 181 to 186 in 10fc359
Like here App/src/pages/home/report/ReportActionCompose/SuggestionMention.tsx Lines 346 to 348 in 10fc359
Result: 2024-04-27.16.59.51.movNA |
Job added to Upwork: https://www.upwork.com/jobs/~014d621ca194199c72 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
@eVoloshchak, @twisterdotcom Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Bump @eVoloshchak on these proposals! |
Triggered auto assignment to @isabelastisser ( |
@isabelastisser I'll be OOO next week. Just tagging you in to move this along. |
@bernhardoj's proposal looks good to me!
I agree, let's have a universal method that would ensure it's called for every shortcut 🎀👀🎀 C+ reviewed! |
Okay, assigning @ZhenjaHorbach here, thanks for both being so cordial on this one both! |
📣 @ZhenjaHorbach 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR will be ready today or tomorrow |
PR is ready, will be merged once the merge freeze is over |
PR merged |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.79-11 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-06-13. 🎊 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
|
Still waiting on @eVoloshchak. |
Regression Test Proposal
Do we agree 👍 or 👎 |
$250 approved for @eVoloshchak |
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.67-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: https://expensify.testrail.io/index.php?/tests/view/4523297&group_by=cases:section_id&group_order=asc&group_id=306201
Email or phone of affected tester (no customers): shussain+accoun1@applausemail.com
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Mention list should be removed without delay
Actual Result:
Delay in removing mention list when pressing CMD+K
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6463598_1714208494851.2024-04-27_14-00-16.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @eVoloshchakThe text was updated successfully, but these errors were encountered: