-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-04-30] [Desktop Navigation] [$125] Chat - + menu overlaps with LHN #60376
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
Comments
Triggered auto assignment to @lschurr ( |
Triggered auto assignment to @marcaaron ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 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:
|
I can't reproduce this at all. Can you reliably reproduce this? And on different test accounts? |
ProposalPlease 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:
Lines 1854 to 1859 in 3385c18
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 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 |
@marcaaron Need to enable |
Ok since it is behind a beta then it's not a blocker. |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
Here’s a proposed implementation: const [popoverPosition, setPopoverPosition] = useState(
styles.createMenuPositionReportActionCompose(
shouldUseNarrowLayout,
windowHeight,
windowWidth
)
);
useEffect(() => {
if (!actionButtonRef.current || !isMenuVisible || !isFocused) {
return;
}
actionButtonRef.current.measureInWindow((x, y, width, height) => {
setPopoverPosition({
horizontal: x,
vertical: windowHeight - CONST.MENU_POSITION_REPORT_ACTION_COMPOSE_BOTTOM,
});
});
}, [isMenuVisible, isFocused, windowWidth]);</code></pre>
This ensures that the popover remains anchored to the "+" button regardless of changes to layout or screen width. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~021912904231559983874 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
ProposalPlease 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 have updated the UI to add the ![]() But, when we calculate Line 1919 in 6d85317
What changes do you think we should make in order to solve the problem?To resolve this issue, we simply add the Line 1919 in 6d85317
update to: horizontal: (shouldUseNarrowLayout ? windowWidth - variables.sideBarWidth : variables.sideBarWidth + 71 - 18) + 18, 71 is the NavigationTabBar width, which will be defined as a constant in the PR phase. ![]() 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)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
That seems like a bug related to the new LHB changes, cc @WojtekBoman @mountiny for visibility |
Upwork job price has been updated to $125 |
Decreasing the pay out as its a simple position change and bucketing it to the project @dukenv0307 as c+ on the project can tou please review the proposals. Thanks |
This comment has been minimized.
This comment has been minimized.
@ntdiary The current bug appears because the popover’s position is based on the fixed values. Why don't we dynamically measure the popover's position based on its anchor component ("+" button)? It is the common logic we use to calculate other popovers. |
@thelullabyy, another c+ will take over this issue and will re-review the proposal above. :) |
I can take care of it as I'm the author of the offending PR |
|
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:
|
@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] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalTest:
Log in with Expensifail account.
Do we agree 👍 or 👎 |
This can be closed - project will be paid out in one go and regression tests will be added then likewise by Flavia or Danny |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] 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): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.3 / Chrome
App Component: Chat Report View
Action Performed:
Precondition:
Expected Result:
Actual Result:
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6804353_1744844095078.20250417_065312.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @lschurrThe text was updated successfully, but these errors were encountered: