Skip to content

[Due for payment 2025-04-30] [Desktop Navigation] [$125] Chat - + menu overlaps with LHN #60376

Closed

Description

@mitarachim

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: 9.1.29-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): applausetester+u22011@applause.expensifail.com
Issue reported by: Applause Internal Team
Device used: Mac 15.3 / Chrome
App Component: Chat Report View

Action Performed:

Precondition:

  • Log in with Expensifail account.
  1. Go to staging.new.expensify.com
  2. Go to any chat.
  3. Click + button.

Expected Result:

  • menu will stay within report view and will not overlap with LHN.

Actual Result:

  • menu does not stay within report view and it overlaps with LHN.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6804353_1744844095078.20250417_065312.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021912904231559983874
  • Upwork Job ID: 1912904231559983874
  • Last Price Increase: 2025-04-18
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @lschurr

Activity

  1. added
    Bug
    Daily
    DeployBlocker
    DeployBlockerCash
    on Apr 16, 2025
  2. melvin-bot commented on Apr 16, 2025

    @melvin-bot

    Triggered auto assignment to @lschurr (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. melvin-bot commented on Apr 16, 2025

    @melvin-bot

    Triggered auto assignment to @marcaaron (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  4. melvin-bot commented on Apr 16, 2025

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  5. github-actions commented on Apr 16, 2025

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  6. marcaaron commented on Apr 16, 2025

    @marcaaron
    Contributor

    I can't reproduce this at all. Can you reliably reproduce this? And on different test accounts?

  7. gijoe0295 commented on Apr 16, 2025

    @gijoe0295
    Contributor

    Proposal

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

    Chat - + menu overlaps with LHN

    What is the root cause of that problem?

    We calculate the + menu popover position here but didn't take into account the left navigation bar width to offset the popover horizontally:

    anchorPosition={styles.createMenuPositionReportActionCompose(shouldUseNarrowLayout, windowHeight, windowWidth)}

    App/src/styles/index.ts

    Lines 1854 to 1859 in 3385c18

    createMenuPositionReportActionCompose: (shouldUseNarrowLayout: boolean, windowHeight: number, windowWidth: number) =>
    ({
    // On a narrow layout the menu is displayed in ReportScreen in RHP, so it must be moved from the right side of the screen
    horizontal: (shouldUseNarrowLayout ? windowWidth - variables.sideBarWidth : variables.sideBarWidth) + 18,
    vertical: windowHeight - CONST.MENU_POSITION_REPORT_ACTION_COMPOSE_BOTTOM,
    } satisfies AnchorPosition),

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

    Take into account the left navigation bar width offset if it renders based on canUseLeftHandBar permission:

    createMenuPositionReportActionCompose: (shouldUseNarrowLayout: boolean, windowHeight: number, windowWidth: number, canUseLeftHandBar?: boolean) =>
      ({
          horizontal: (shouldUseNarrowLayout ? windowWidth - variables.sideBarWidth : (canUseLeftHandBar ? (variables.sideBarWithLHBWidth + variables.navigationTabBarSize) : variables.sideBarWidth)) + 18,

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    None

    What alternative solutions did you explore? (Optional)

    None

  8. 30 remaining items

  9. added
    Weekly
    and removed
    Daily
    on Apr 18, 2025
  10. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Apr 23, 2025
  11. changed the title [-][Desktop Navigation] [$125] Chat - + menu overlaps with LHN[/-] [+][Due for payment 2025-04-30] [Desktop Navigation] [$125] Chat - + menu overlaps with LHN[/+] on Apr 23, 2025
  12. melvin-bot commented on Apr 23, 2025

    @melvin-bot

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

  13. removed
    Reviewing
    on Apr 23, 2025
  14. melvin-bot commented on Apr 23, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.31-3 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 2025-04-30. 🎊

    For reference, here are some details about the assignees on this issue:

  15. melvin-bot commented on Apr 23, 2025

    @melvin-bot

    @dukenv0307 @lschurr @dukenv0307 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  16. dukenv0307 commented on Apr 24, 2025

    @dukenv0307
    Contributor

    BugZero Checklist:

    • [Contributor] Classify the bug:
    Bug classification

    Source of bug:

    • 1a. Result of the original design (eg. a case wasn't considered)
    • 1b. Mistake during implementation
    • 1c. Backend bug
    • 1z. Other:

    Where bug was reported:

    • 2a. Reported on production
    • 2b. Reported on staging (deploy blocker)
    • 2c. Reported on a PR
    • 2z. Other:

    Who reported the bug:

    • 3a. Expensify user
    • 3b. Expensify employee
    • 3c. Contributor
    • 3d. QA
    • 3z. Other:
    • [Contributor] 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:

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: N/A

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again. Yes

    Regression Test Proposal Template
    • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

      Link to issue:

    Regression Test Proposal

    Test:

    • Precondition:

    Log in with Expensifail account.

    1. Go to staging.new.expensify.com
    2. Go to any chat.
    3. Click + button.
    4. Menu will stay within report view and will not overlap with LHN.

    Do we agree 👍 or 👎

  17. mountiny commented on Apr 25, 2025

    @mountiny
    Contributor

    This can be closed - project will be paid out in one go and regression tests will be added then likewise by Flavia or Danny

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugEngineeringExternalWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions