Skip to content
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

Closed
1 of 6 tasks
kbecciv opened this issue Jun 29, 2023 · 31 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Jun 29, 2023

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:

  1. Open App and go to any chat
  2. On LHN, Right click on any user's chat to Open the context menu
  3. Press Pin/Unpin option

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?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

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
  • Upwork Job URL: https://www.upwork.com/jobs/~01fc6f96ae79d98073
  • Upwork Job ID: 1674685137307795456
  • Last Price Increase: 2023-07-07
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 29, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 29, 2023

Triggered auto assignment to @greg-schroeder (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Jun 29, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@kbecciv
Copy link
Author

kbecciv commented Jun 29, 2023

Proposal

from @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.

if (closePopover) {
hideContextMenu(false);
}

if (closePopover) {
hideContextMenu(false);
}

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

if (closePopover) {
hideContextMenu(false);
}

if (closePopover) {
hideContextMenu(false);
}

@jayeshmangwani
Copy link
Contributor

Proposal

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.

if (closePopover) {
hideContextMenu(false);
}

if (closePopover) {
hideContextMenu(false);
}

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

if (closePopover) {
hideContextMenu(false);
}

if (closePopover) {
hideContextMenu(false);
}

@greg-schroeder
Copy link
Contributor

Reviewing

@greg-schroeder
Copy link
Contributor

Reproduced, seems like it should match the Read/Unread behavior to me

@greg-schroeder greg-schroeder added the External Added to denote the issue can be worked on by a contributor label Jun 30, 2023
@melvin-bot melvin-bot bot changed the title Web - Pressing the Pin/Unpin option from the LHN context menu does not refocus the composer. [$1000] Web - Pressing the Pin/Unpin option from the LHN context menu does not refocus the composer. Jun 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 30, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01fc6f96ae79d98073

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 30, 2023

Current assignee @greg-schroeder is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Jun 30, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 (External)

@abdulrahuman5196
Copy link
Contributor

@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.
The current Mark as unread in LHN works like if we use it on any chat the current open is getting focused not the chat which we marked as unread.

So pin/unpin any LHN item should focus current composer? Is this what we want?

@melvin-bot melvin-bot bot added the Overdue label Jul 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 3, 2023

@greg-schroeder, @abdulrahuman5196 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@greg-schroeder
Copy link
Contributor

@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?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jul 4, 2023
@greg-schroeder
Copy link
Contributor

bump on the above

@melvin-bot melvin-bot bot removed the Overdue label Jul 7, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@abdulrahuman5196
Copy link
Contributor

@greg-schroeder Agree on the above - #21861 (comment)

Then as per the expectation @jayeshmangwani 's proposal here #21861 (comment) looks good and works well.

🎀 👀 🎀
C+ Reviewed

cc: @greg-schroeder

@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2023

Triggered auto assignment to @Beamanator, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2023

Triggered auto assignment to @cristipaval, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot removed the Overdue label Jul 10, 2023
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 10, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

📣 @abdulrahuman5196 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Upwork job

@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

📣 @jayeshmangwani 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

📣 @jayeshmangwani 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app!

Upwork job

@Beamanator
Copy link
Contributor

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?

@jayeshmangwani
Copy link
Contributor

PR is ready for review

cc: @abdulrahuman5196

@greg-schroeder
Copy link
Contributor

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?

Certainly. @abdulrahuman5196 let's make sure when completing the checklist for this issue that we definitely add a robust regression test in testrail

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jul 14, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Web - Pressing the Pin/Unpin option from the LHN context menu does not refocus the composer. [HOLD for payment 2023-07-21] [$1000] Web - Pressing the Pin/Unpin option from the LHN context menu does not refocus the composer. Jul 14, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 14, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Jul 14, 2023

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Jul 14, 2023

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:

  • [@abdulrahuman5196] The PR that introduced the bug has been identified. Link to the PR:
  • [@abdulrahuman5196] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@abdulrahuman5196] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@abdulrahuman5196] Determine if we should create a regression test for this bug.
  • [@abdulrahuman5196] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@greg-schroeder] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 20, 2023
@greg-schroeder
Copy link
Contributor

Payments complete. Just looking for the checklist to be completed cc @abdulrahuman5196

Let's keep #21861 (comment) in mind as well

@greg-schroeder greg-schroeder removed the Awaiting Payment Auto-added when associated PR is deployed to production label Jul 21, 2023
@greg-schroeder greg-schroeder changed the title [HOLD for payment 2023-07-21] [$1000] Web - Pressing the Pin/Unpin option from the LHN context menu does not refocus the composer. [HOLD for checklist] [$1000] Web - Pressing the Pin/Unpin option from the LHN context menu does not refocus the composer. Jul 21, 2023
@abdulrahuman5196
Copy link
Contributor

@greg-schroeder Thank you for quickly processing the payment. Sorry for the delay. Completed checklist now.

The PR that introduced the bug has been identified. Link to the PR:
The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:

This was not present during initial implementation of PIn/Unpin option. Made the a comment on the same - #16079 (comment)

Determine if we should create a regression test for this bug.

Yes

If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.

  1. Open App and go to any chat
  2. On LHN, Right click on any user's chat to Open the context menu
  3. Press Pin/Unpin option
  4. Verify that after pressing on the pin/unpin composer should be refocused

@melvin-bot melvin-bot bot added the Overdue label Jul 24, 2023
@greg-schroeder
Copy link
Contributor

Thanks @abdulrahuman5196! Taking care of filing that and closing this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

6 participants