Skip to content

[Due for payment 2025-04-08] [$250] Expense - Receipt 3-dot menu does not appear under the 3-dot button #59132

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

Closed
2 of 8 tasks
IuliiaHerets opened this issue Mar 26, 2025 · 28 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 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Mar 26, 2025

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.19-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
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: Money Requests

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Submit a manual expense with receipt.
  4. Go to transaction thread.
  5. Click on the receipt.
  6. Click 3-dot button.

Expected Result:

3-dot menu will appear under the 3-dot button.

Actual Result:

3-dot menu does not appear under the 3-dot button.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6782424_1742971918699.20250326_135242.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021904835134337582664
  • Upwork Job ID: 1904835134337582664
  • Last Price Increase: 2025-03-26
  • Automatic offers:
    • brunovjk | Reviewer | 106673718
Issue OwnerCurrent Issue Owner: @dylanexpensify
@IuliiaHerets IuliiaHerets added Bug Something is broken. Auto assigns a BugZero manager. DeployBlockerCash This issue or pull request should block deployment labels Mar 26, 2025
Copy link

melvin-bot bot commented Mar 26, 2025

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

Copy link

melvin-bot bot commented Mar 26, 2025

Triggered auto assignment to @dylanexpensify (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.

Copy link

melvin-bot bot commented Mar 26, 2025

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Mar 26, 2025
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Mar 26, 2025
Copy link
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.

@cristipaval
Copy link
Contributor

cristipaval commented Mar 26, 2025

@IuliiaHerets, I'm not sure I understand the issue here. In the screen recording, I see that the difference between staging and prod is that in staging, there's an extra option, Delete receipt, in the 3-dot menu.

@daledah
Copy link
Contributor

daledah commented Mar 26, 2025

Proposal

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

3-dot menu does not appear under the 3-dot button.

What is the root cause of that problem?

This comes from #59058

anchorAlignment added here:

anchorAlignment={threeDotsAnchorAlignment}

with horizontal prop being right

horizontal: CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.RIGHT,

Instead of default left in ThreedotsMenu`

anchorAlignment = {
horizontal: CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.LEFT,
vertical: CONST.MODAL.ANCHOR_ORIGIN_VERTICAL.TOP, // we assume that popover menu opens below the button, anchor is at TOP
},

So the calculation of left style is changed

switch (anchorAlignment.horizontal) {
case CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.RIGHT:
horizontalConstraint = {left: anchorPosition.horizontal - popoverWidth};
break;
case CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.CENTER:
horizontalConstraint = {
left: Math.floor(anchorPosition.horizontal - popoverWidth / 2),
};
break;
case CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.LEFT:
default:
horizontalConstraint = {left: anchorPosition.horizontal};
}

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

We can change the value here in styles.threeDotsPopoverOffsetAttachmentModal to make it appear correctly under 3 dot button

App/src/styles/index.ts

Lines 3810 to 3814 in 58b8887

threeDotsPopoverOffsetAttachmentModal: (windowWidth: number) =>
({
...getPopOverVerticalOffset(80),
horizontal: windowWidth - 140,
} satisfies AnchorPosition),

Example when changed value to 70:

Image

Or we can pass threeDotsAnchorAlignment with values from ThreedotsMenu (left and top) from AttachmentModal to HeaderWithBackButton to be same as production behaviour

Image

IMO First solution looks better because the modal appears exactly below the three dots menu.

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.

@daledah
Copy link
Contributor

daledah commented Mar 26, 2025

@cristipaval The bug is the misalignment of the modal, like explained in my proposal above.

@daledah
Copy link
Contributor

daledah commented Mar 26, 2025

@robertjchen I can help raise a quick fix if needed.

@dylanexpensify dylanexpensify added the External Added to denote the issue can be worked on by a contributor label Mar 26, 2025
@melvin-bot melvin-bot bot changed the title Expense - Receipt 3-dot menu does not appear under the 3-dot button [$250] Expense - Receipt 3-dot menu does not appear under the 3-dot button Mar 26, 2025
Copy link

melvin-bot bot commented Mar 26, 2025

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 26, 2025
Copy link

melvin-bot bot commented Mar 26, 2025

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

@cristipaval
Copy link
Contributor

Ah, I see it is a minor UI thing. I think it is NAB so I'll demote it and ask the author of the offending PR to fix it.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 26, 2025
Copy link

melvin-bot bot commented Mar 26, 2025

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

Offer link
Upwork job

@cristipaval cristipaval removed the DeployBlockerCash This issue or pull request should block deployment label Mar 26, 2025
@melvin-bot melvin-bot bot added the Weekly KSv2 label Mar 26, 2025
@blazejkustra
Copy link
Contributor

Update: I just raised a PR, @brunovjk will review it as a C+ 🥇

Copy link

melvin-bot bot commented Mar 31, 2025

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 1, 2025
@melvin-bot melvin-bot bot changed the title [$250] Expense - Receipt 3-dot menu does not appear under the 3-dot button [Due for payment 2025-04-08] [$250] Expense - Receipt 3-dot menu does not appear under the 3-dot button Apr 1, 2025
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 1, 2025
Copy link

melvin-bot bot commented Apr 1, 2025

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

Copy link

melvin-bot bot commented Apr 1, 2025

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

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

Copy link

melvin-bot bot commented Apr 1, 2025

@brunovjk @dylanexpensify @brunovjk 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]

@dylanexpensify dylanexpensify removed their assignment Apr 2, 2025
@dylanexpensify dylanexpensify added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Apr 2, 2025
Copy link

melvin-bot bot commented Apr 2, 2025

Triggered auto assignment to @JmillsExpensify (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.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Apr 2, 2025
@dylanexpensify
Copy link
Contributor

Hi @JmillsExpensify, I'll be OOO during this time! Would you mind finishing the payment here when due?? TY! 🙇‍♂

@brunovjk
Copy link
Contributor

brunovjk commented Apr 2, 2025

Payment and BZ checklist will be handled here, We can wait the 7 days for regression and close it here. Thanks.

@melvin-bot melvin-bot bot added the Overdue label Apr 7, 2025
@robertjchen
Copy link
Contributor

waiting out regression period

@melvin-bot melvin-bot bot added Daily KSv2 and removed Overdue Daily KSv2 labels Apr 7, 2025
@JmillsExpensify
Copy link

Payment summary: $250 to @brunovjk for PR review and testing.

@JmillsExpensify
Copy link

I went ahead and paid you out for this issue, and then saw this comment, so please make sure you deduct that from the total in that issue.

@brunovjk
Copy link
Contributor

brunovjk commented Apr 9, 2025

Sure @JmillsExpensify, leave it to me, aí will do it l. Thanks

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 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

8 participants