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 2024-08-09] [$250] Xero - Xero action modal appears below the button and overlaps with the composer #45607

Closed
2 of 6 tasks
lanitochka17 opened this issue Jul 17, 2024 · 35 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

@lanitochka17
Copy link

lanitochka17 commented Jul 17, 2024

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.0.8-1
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Issue found when executing PR #44170

Action Performed:

Precondition:

  • Workspace is connected to Xero
  • Delayed submission is enabled in Workflows
  1. Go to staging.new.expensify.com
  2. Go to workspace chat
  3. Submit an expense
  4. In the main chat, click on the pay elsewhere dropdown.the composer.
  5. Pay elsewhere the report
  6. Click on the Xero action dropdown

Expected Result:

Xero action modal will appear above the button and does not overlap with the composer

Actual Result:

Xero action modal appears below the button and overlaps with the composer

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6544851_1721204888277.20240717_162450.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~019da83e276a5e9487
  • Upwork Job ID: 1813781422967508952
  • Last Price Increase: 2024-07-18
  • Automatic offers:
    • nyomanjyotisa | Contributor | 103231671
Issue OwnerCurrent Issue Owner: @kadiealexander
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API and removed Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 17, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

Triggered auto assignment to @kadiealexander (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 the Daily KSv2 label Jul 17, 2024
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment and removed Daily KSv2 labels Jul 17, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

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

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.

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave-collect - Release 2

@nyomanjyotisa
Copy link
Contributor

nyomanjyotisa commented Jul 17, 2024

Proposal

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

Xero action modal appears below the button and overlaps with the composer

What is the root cause of that problem?

On ExportWithDropdownMenu we always set the anchorAlignment to horizontal RIGHT and vertical TOP for both in MoneyReportHeader and ReportPreview

anchorAlignment={{
horizontal: CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.RIGHT,
vertical: CONST.MODAL.ANCHOR_ORIGIN_VERTICAL.TOP,
}}

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

We should set the anchorAlignment to horizontal RIGHT and vertical BOTTOM if it used in ReportPreview

  1. Add new props on ExportWithDropdownMenu called paymentMethodDropdownAnchorAlignment and set the default value to horizontal RIGHT and vertical TOP
type ExportWithDropdownMenuProps = {
    policy: OnyxEntry<Policy>;

    report: OnyxEntry<Report>;

    connectionName: ConnectionName;

    paymentMethodDropdownAnchorAlignment?: AnchorAlignment;
};

function ExportWithDropdownMenu({
    policy,
    report,
    connectionName,
    paymentMethodDropdownAnchorAlignment = {
        horizontal: CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.RIGHT,
        vertical: CONST.MODAL.ANCHOR_ORIGIN_VERTICAL.TOP,
    },
}:
  1. Use that new prop here
anchorAlignment={paymentMethodDropdownAnchorAlignment}
  1. Pass the paymentMethodDropdownAnchorAlignment with horizontal RIGHT and vertical BOTTOM with here
<ExportWithDropdownMenu
      policy={policy}
      report={iouReport}
      connectionName={connectedIntegration}
      paymentMethodDropdownAnchorAlignment={{
          horizontal: CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.RIGHT,
          vertical: CONST.MODAL.ANCHOR_ORIGIN_VERTICAL.BOTTOM,
      }}
  />

RESULT

-1-New-Expensify

What alternative solutions did you explore? (Optional)

@nyomanjyotisa
Copy link
Contributor

nyomanjyotisa commented Jul 17, 2024

Proposal updated

@trjExpensify
Copy link
Contributor

@arosiclair do you agree this isn't a blocker?

I agree the popover should be in the same place as the pay selector options, so let's fix it. Also, we should be using circle Xero avatars in the popover, not squares. Just like QBO:

image

@trjExpensify trjExpensify removed the DeployBlocker Indicates it should block deploying the API label Jul 17, 2024
@trjExpensify
Copy link
Contributor

Certainly not a web blocker, removing that label minimally now.

@thienlnam thienlnam added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Jul 17, 2024
@kadiealexander kadiealexander added the External Added to denote the issue can be worked on by a contributor label Jul 18, 2024
@melvin-bot melvin-bot bot changed the title Xero - Xero action modal appears below the button and overlaps with the composer [$250] Xero - Xero action modal appears below the button and overlaps with the composer Jul 18, 2024
Copy link

melvin-bot bot commented Jul 18, 2024

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

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

Cool, thanks! CC: @dannymcclain for vis just in case that intentionally changed somewhere.

@dannymcclain
Copy link
Contributor

Nope, they're supposed to be circles. We just like to upload the assets to the repo as squares and then do the rounding with code (in case we ever want to change them from circles to rounded squares or adjust the border radius or something).

@trjExpensify
Copy link
Contributor

Perf, thanks for confirming!

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jul 24, 2024
@nyomanjyotisa
Copy link
Contributor

I wanted to suggest that we re-evaluate and consider increasing the bounty for this issue. Initially, the request was to ensure that the Xero action modal appears above the button and does not overlap with the composer. However, the PR ended up addressing three separate issues:

  • Ensuring the modal appears above the button and does not overlap with the composer
  • Making the icon circular
  • Fixing the modal alignment with the button

Given the additional work involved, I believe it's reasonable to increase the bounty for this issue.

cc @shawnborton @trjExpensify

@trjExpensify
Copy link
Contributor

I think we're splitting hairs on requesting a bounty increase for this issue. The position of the popover was wrong appearing over the composer, and we needed to put it back to where it should be. Switching XeroSquare for XeroCircle is also so incredibly minor. Overall, $250 is already a generous bounty for a +29 line PR.

image

@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 2, 2024
@melvin-bot melvin-bot bot changed the title [$250] Xero - Xero action modal appears below the button and overlaps with the composer [HOLD for payment 2024-08-09] [$250] Xero - Xero action modal appears below the button and overlaps with the composer Aug 2, 2024
Copy link

melvin-bot bot commented Aug 2, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Aug 2, 2024
Copy link

melvin-bot bot commented Aug 2, 2024

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

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

Copy link

melvin-bot bot commented Aug 2, 2024

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:

  • [@aimane-chnaif] The PR that introduced the bug has been identified. Link to the PR:
  • [@aimane-chnaif] 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:
  • [@aimane-chnaif] 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:
  • [@aimane-chnaif] Determine if we should create a regression test for this bug.
  • [@aimane-chnaif] 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.
  • [@kadiealexander] 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 Overdue and removed Weekly KSv2 labels Aug 8, 2024
@kadiealexander
Copy link
Contributor

Payouts due:

Upwork job is here.

@melvin-bot melvin-bot bot removed the Overdue label Aug 9, 2024
@kadiealexander
Copy link
Contributor

@aimane-chnaif don't forget the checklist!

@aimane-chnaif
Copy link
Contributor

I don't think this is worth adding to regression test as minor style issue.

@melvin-bot melvin-bot bot added the Overdue label Aug 12, 2024
@kadiealexander
Copy link
Contributor

Thanks @aimane-chnaif! Please apply via NewDot (summary here)

@aimane-chnaif
Copy link
Contributor

@kadiealexander I am still using upwork. Can you please reopen and sort payment? 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

9 participants