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 payment 2023-08-08] [$1000] [HOLD] Context menu from LHN is visible even if report page is opened on resize #21929

Closed
1 of 6 tasks
kavimuru opened this issue Jun 30, 2023 · 37 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production 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

@kavimuru
Copy link

kavimuru commented Jun 30, 2023

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:

  1. Right click an option in LHN.
  2. Resize the window to small while the menu is still open

Expected Result:

The menu should either stay open and LHN should be visible or the menu should close and report screen should be visible.

Actual Result:

The menu as well as report screen is visible while the action LHN option is hidden.

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?

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

Version Number: 1.3.34-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

Recording.2276.mp4
Screen.Recording.2023-06-26.at.10.27.18.PM.1.mov

Expensify/Expensify Issue URL:
Issue reported by: @esh-g
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687798787632109

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01cdbc23c40a03345b
  • Upwork Job ID: 1681398364212076544
  • 2023-07-18
  • Automatic offers:
    • | | 0
    • | | 0
    • esh-g | Reporter | 25767058
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 30, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 30, 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

@spcheema
Copy link
Contributor

spcheema commented Jun 30, 2023

Proposed solution

Please re-state the problem that we are trying to solve in this issue.

Context menu from LHN is visible even if report page is opened on resize. S

What is the root cause of that problem?

We are not hiding the ReportActionMenu whenever screen size changes to small and a report is selected.

What changes do you think we should make in order to solve the problem?

We can utilise the isSmallScreenWidth props on SidebarLinks render to check screen size and hide the ReportActionMenu is it's set in the contextMenuRef

        if (this.props.isSmallScreenWidth)
        {
           // ReportActionContextMenu
            hideContextMenu(false)
        }

What alternative solutions did you explore? (Optional)

N/A

@esh-g
Copy link
Contributor

esh-g commented Jun 30, 2023

I think we should put this on hold for this issue: #20370 (comment)

@maddylewis maddylewis changed the title Context menu from LHN is visible even if report page is opened on resize [HOLD] Context menu from LHN is visible even if report page is opened on resize Jun 30, 2023
@maddylewis maddylewis added Weekly KSv2 and removed Daily KSv2 labels Jun 30, 2023
@maddylewis
Copy link
Contributor

holding for - #20370 (comment)

@melvin-bot melvin-bot bot added the Overdue label Jul 10, 2023
@maddylewis
Copy link
Contributor

still holding

@melvin-bot melvin-bot bot removed the Overdue label Jul 10, 2023
@melvin-bot melvin-bot bot added the Overdue label Jul 18, 2023
@maddylewis
Copy link
Contributor

okay this is closed now - #20370 (comment)

I'll add the External label so a C+ can confirm if we still need to fix this one.

@melvin-bot melvin-bot bot removed the Overdue label Jul 18, 2023
@maddylewis maddylewis added External Added to denote the issue can be worked on by a contributor Overdue labels Jul 18, 2023
@melvin-bot melvin-bot bot changed the title [HOLD] Context menu from LHN is visible even if report page is opened on resize [$1000] [HOLD] Context menu from LHN is visible even if report page is opened on resize Jul 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 18, 2023

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

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

melvin-bot bot commented Jul 18, 2023

Current assignee @maddylewis is eligible for the External assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 Overdue labels Jul 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 18, 2023

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

@maddylewis
Copy link
Contributor

@sobitneupane - this issue was on hold for #20370

is this something that still needs to be addressed? or, did the fix for #20370 resolve this bug? lmk - thanks!

@spcheema
Copy link
Contributor

@maddylewis This bug still exists on prod https://new.expensify.com/

Watch 👇🏼
https://www.loom.com/share/a31d89b367b7422783804dcd85fc856f?sid=3bd571e7-25de-4474-8ab4-3a8e659e481b

@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2023

📣 @sobitneupane Please request via NewDot manual requests for the Reviewer role ($1000)

@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2023

📣 @spcheema You have been assigned to this job!
Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs!
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2023

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

Offer link
Upwork job

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jul 27, 2023
@spcheema
Copy link
Contributor

@sobitneupane PR is ready for review #23728

@melvin-bot
Copy link

melvin-bot bot commented Jul 28, 2023

🎯 ⚡️ Woah @sobitneupane / @spcheema, great job pushing this forwards! ⚡️

The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉

  • when @spcheema got assigned: 2023-07-26 15:39:34 Z
  • when the PR got merged: 2023-07-28 18:28:38 UTC

On to the next one 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Aug 1, 2023
@melvin-bot melvin-bot bot changed the title [$1000] [HOLD] Context menu from LHN is visible even if report page is opened on resize [HOLD for payment 2023-08-08] [$1000] [HOLD] Context menu from LHN is visible even if report page is opened on resize Aug 1, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Aug 1, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.48-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-08-08. 🎊

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

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:

  • 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 Aug 1, 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:

  • [@sobitneupane] The PR that introduced the bug has been identified. Link to the PR:
  • [@sobitneupane] 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:
  • [@sobitneupane] 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:
  • [@sobitneupane] Determine if we should create a regression test for this bug.
  • [@sobitneupane] 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.
  • [@maddylewis] 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 Aug 8, 2023
@sobitneupane
Copy link
Contributor

sobitneupane commented Aug 9, 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:

  • [@sobitneupane] The PR that introduced the bug has been identified. Link to the PR:

#16079

  • [@sobitneupane] 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:

#16079 (comment)

  • [@sobitneupane] 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:
  • [@sobitneupane] Determine if we should create a regression test for this bug.

Yes.

  • [@sobitneupane] 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.

#21929 (comment)

@sobitneupane
Copy link
Contributor

sobitneupane commented Aug 9, 2023

Regression Test Proposal

  1. Right click an option in LHN to open context menu.
  2. Resize the window to small such that LHN is hidden.
  3. Verify right click context menu disappeared on window resize.
  4. Now go back to LHN menu, again right click on any item to open context menu
  5. Resize window from small to wide
  6. Verify context menu disappeared.

Do we agree 👍 or 👎

@melvin-bot melvin-bot bot added the Overdue label Aug 11, 2023
@maddylewis
Copy link
Contributor

maddylewis commented Aug 15, 2023

Payments:


  • Contributor hired - July 26
  • PR merged - July 28
  • Eligible for urgency bonus

@melvin-bot melvin-bot bot removed the Overdue label Aug 15, 2023
@maddylewis
Copy link
Contributor

@sobitneupane is receiving payment via NewDot so i believe we are all set to close this one out.

@spcheema
Copy link
Contributor

Thanks @sobitneupane @stitesExpensify & @maddylewis

@sobitneupane
Copy link
Contributor

Requested payment on newDot.

#21929 (comment)

@JmillsExpensify
Copy link

Reviewed the details for @sobitneupane. $1,500 approved for payment via NewDot based on BZ summary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production 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

7 participants