-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 checklist] [$1000] Web - Pressing the Pin/Unpin option from the LHN context menu does not refocus the composer. #21861
Comments
Triggered auto assignment to @greg-schroeder ( |
Bug0 Triage Checklist (Main S/O)
|
Proposalfrom @jayeshmangwani Please re-state the problem that we are trying to solve in this issue.Pressing the Pin/Unpin option from the LHN context menu does not refocus the composer What is the root cause of that problem?On press of the Pin and Unpin buttons we only hide the Context Menu, we do not call the refocus of the Composer. App/src/pages/home/report/ContextMenu/ContextMenuActions.js Lines 300 to 302 in 94e2656
App/src/pages/home/report/ContextMenu/ContextMenuActions.js Lines 313 to 315 in 94e2656
What changes do you think we should make in order to solve the problem?When we press the Pin and Unpin buttons, then we need to call the ReportActionComposeFocusManager.focus, like same, we do for Mark As Read button Need to update this code at these two places hideContextMenu(false); // OLD
hideContextMenu(true, ReportActionComposeFocusManager.focus); // NEW App/src/pages/home/report/ContextMenu/ContextMenuActions.js Lines 313 to 315 in 94e2656
App/src/pages/home/report/ContextMenu/ContextMenuActions.js Lines 300 to 302 in 94e2656
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Pressing the Pin/Unpin option from the LHN context menu does not refocus the composer What is the root cause of that problem?On press of the Pin and Unpin buttons we only hide the Context Menu, we do not call the refocus of the Composer. App/src/pages/home/report/ContextMenu/ContextMenuActions.js Lines 300 to 302 in 94e2656
App/src/pages/home/report/ContextMenu/ContextMenuActions.js Lines 313 to 315 in 94e2656
What changes do you think we should make in order to solve the problem?When we press the Pin and Unpin buttons, then we need to call the ReportActionComposeFocusManager.focus, like same, we do for Mark As Read button Need to update this code at these two places hideContextMenu(false); // OLD
hideContextMenu(true, ReportActionComposeFocusManager.focus); // NEW App/src/pages/home/report/ContextMenu/ContextMenuActions.js Lines 313 to 315 in 94e2656
App/src/pages/home/report/ContextMenu/ContextMenuActions.js Lines 300 to 302 in 94e2656
|
Reviewing |
Reproduced, seems like it should match the Read/Unread behavior to me |
Job added to Upwork: https://www.upwork.com/jobs/~01fc6f96ae79d98073 |
Current assignee @greg-schroeder is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
@greg-schroeder I have doubts on the requirements. I agree we have to improve the experience with consistency here, but wanted to confirm on the expectation. So pin/unpin any LHN item should focus current composer? Is this what we want? |
@greg-schroeder, @abdulrahuman5196 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@abdulrahuman5196 Hmm. I mean I think it should, right? To me it feels more natural that the composer is focused after the LHN action is complete - when nothing is focused it doesn't feel right. And so I think it should be the currently selected chat, yes. Do you not agree? |
bump on the above |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@greg-schroeder Agree on the above - #21861 (comment) Then as per the expectation @jayeshmangwani 's proposal here #21861 (comment) looks good and works well. 🎀 👀 🎀 cc: @greg-schroeder |
Triggered auto assignment to @Beamanator, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Triggered auto assignment to @cristipaval, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @abdulrahuman5196 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @jayeshmangwani 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Upwork job |
📣 @jayeshmangwani 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
I agree with the problem & solution 👍 @greg-schroeder can we make sure this gets into Test Rail or something? :D I keep seeing these types of issues pop up, which means we probably don't have this flow in test rail right? |
PR is ready for review |
Certainly. @abdulrahuman5196 let's make sure when completing the checklist for this issue that we definitely add a robust regression test in testrail |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.40-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-07-21. 🎊 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:
|
Payments complete. Just looking for the checklist to be completed cc @abdulrahuman5196 Let's keep #21861 (comment) in mind as well |
@greg-schroeder Thank you for quickly processing the payment. Sorry for the delay. Completed checklist now.
This was not present during initial implementation of PIn/Unpin option. Made the a comment on the same - #16079 (comment)
Yes
|
Thanks @abdulrahuman5196! Taking care of filing that and closing this out. |
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:
After pressing on the pin/unpin then composer should be refocused, as the same happens After pressing on the mark as read/unread option from the LHN context menu
Actual Result:
After Pressing the pin/unpin option, Composer is not refocused.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.33-4
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
pin-unpin-does-npt-focus.mov
Recording.3307.mp4
Expensify/Expensify Issue URL:
Issue reported by: @jayeshmangwani
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687938349897719
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: