-
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-08-28] [$2000] Web- Chat - Pressing Copy to clipboard, Copy link, or Mark as unread from the Mini context menu does not refocus the Composer #20079
Comments
Triggered auto assignment to @adelekennedy ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Pressing Copy to clipboard, Copy link, Download, or Mark as unread from the Mini context menu does not refocus the Composer, but Composer is refocused when pressed from the context menu opened from a long press What is the root cause of that problem?We are focusing the composer on the above actions if we press from the Context menu and we are doing nothing if we press from the mini menu App/src/pages/home/report/ContextMenu/ContextMenuActions.js Lines 102 to 104 in c917c44
What changes do you think we should make in order to solve the problem?We need to add an
here need to add else and all other presses like Copy to clipboard, Copy link, and Mark as unread App/src/pages/home/report/ContextMenu/ContextMenuActions.js Lines 102 to 104 in c917c44
What alternative solutions did you explore? (Optional)none |
@adelekennedy Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~01517d6a9b05f42ab8 |
Current assignee @adelekennedy is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav ( |
Triggered auto assignment to @youssef-lr ( |
I want to have this issue. |
@0xmiroslav what do you think of the proposal above? |
@jayeshmangwani your solution easily causes regressions. Please test yourself after applying your solution. |
Waiting for more proposal. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Composer field must be focused, when user clicks on one of three actions(copy clipboard, copy link and mark message as new) in the popup element( What is the root cause of that problem?All three actions do NOT implement methods for focusing the composer when actions are called from the
What changes do you think we should make in order to solve the problem?The first step is easy: we need to focus the composer manually when actions are triggered from the
and I will call it in
But then I start getting such effect: compose field is focused but the click animation is broken: 11.movEach action in the view is wrapped in a App/src/pages/home/report/ReportActionItem.js Lines 427 to 428 in 035783a
I noticed that when I call the I propose to ignore state changes in The current App/src/components/Hoverable/index.js Lines 109 to 117 in 035783a
This is the new
And this is how the prop is passed in the
This video is the end result. Notice that completion animation goes till the end and composer field is focused immediately after the click. What alternative solutions did you explore? (Optional)In |
@0xmiroslav ^ |
@petromoldovan we don't recommend setTimeout unless it's the only solution. Still open for better proposals. |
@0xmiroslav I also do not recommend to set the |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.55-8 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-08-28. 🎊 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:
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:
|
It looks like @mkhutornyi was assigned Aug 6th, PR was ready to be merged by the 8th but was actually merged on the 15th after @mountiny was back from ooo |
Sounds fair thanks |
Payouts due:Issue Reporter: $250 @jayeshmangwani Eligible for 50% #urgency bonus? Y Upwork job is here. |
@mkhutornyi will you apply here? |
@adelekennedy it's private link. The public link format is https://www.upwork.com/jobs/xxx |
pending final payment |
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:
Pressing any of these three options Copy to clipboard, Copy link, Mark as unread should have to refocus the composer like we do when using the Context menu
Actual Result:
Pressing any of these three options, Copy to clipboard, Copy link, or Mark as unread is, not refocusing the composer
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.22.0
Reproducible in staging?: yes
Reproducible in production?: yes
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
copy-to-clipboard-does-not-focus.1.mov
Recording.2945.mp4
Expensify/Expensify Issue URL:
Issue reported by: @jayeshmangwani
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684759049611809
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: