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

Copilot - The bottom line of the pop-up modal is not visible #50774

Open
2 of 6 tasks
IuliiaHerets opened this issue Oct 15, 2024 · 22 comments
Open
2 of 6 tasks

Copilot - The bottom line of the pop-up modal is not visible #50774

IuliiaHerets opened this issue Oct 15, 2024 · 22 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Reviewing Has a PR in review

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Oct 15, 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.49-0
Reproducible in staging?: Y
Reproducible in production?: N/A - new feature, doesn't exist in prod
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to Security > Add copilot.
  3. Add a copilot.
  4. Click 3-dot menu next to the copilot.

Expected Result:

The bottom line of the pop-up modal should be visible.

Actual Result:

The bottom line of the pop-up modal is not visible.
This issue is not reproducible when the display is very zoomed out (wide screen).

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6634876_1728967955399.20241015_125044.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @grgia
@IuliiaHerets IuliiaHerets added the Bug Something is broken. Auto assigns a BugZero manager. label Oct 15, 2024
Copy link

melvin-bot bot commented Oct 15, 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.

@IuliiaHerets IuliiaHerets added the DeployBlockerCash This issue or pull request should block deployment label Oct 15, 2024
@melvin-bot melvin-bot bot added the Daily KSv2 label Oct 15, 2024
Copy link

melvin-bot bot commented Oct 15, 2024

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

Copy link

melvin-bot bot commented Oct 15, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Oct 15, 2024
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.

@marcaaron
Copy link
Contributor

cc @dangrous @rushatgabhane @allgandalf looks related to #47984

@marcaaron
Copy link
Contributor

Pre-req: be on copilot beta.

I think this can be demoted.

@marcaaron
Copy link
Contributor

But please address before removing the beta?

@marcaaron marcaaron removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Oct 16, 2024
@marcaaron marcaaron added the Daily KSv2 label Oct 16, 2024
@dangrous
Copy link
Contributor

@rushatgabhane can you put up a PR for this one? Would be great to get it sorted by the end of the week!

@dangrous
Copy link
Contributor

@rushatgabhane do you have time for this one or should we open it up? We just have to rejigger this section I think, probably including the windowHeight and adding a Math.min() in there in some way. I think there's also some left/right wonkiness that we should look at.

I realize you took this code from some other places in the app that use similar behavior but for whatever reason it doesn't seem to fit here (maybe doesn't there either, who knows).

setAnchorPosition({
anchorPositionTop: position.top + position.height - variables.bankAccountActionPopoverTopSpacing,
// We want the position to be 23px to the right of the left border
anchorPositionRight: windowWidth - position.right + variables.bankAccountActionPopoverRightSpacing,
anchorPositionHorizontal: position.x + variables.addBankAccountLeftSpacing,
anchorPositionVertical: position.y,
});

@melvin-bot melvin-bot bot added the Overdue label Oct 21, 2024
@allgandalf
Copy link
Contributor

not overdue, waiting for @rushatgabhane 🙇

@melvin-bot melvin-bot bot removed the Overdue label Oct 21, 2024
@twilight2294
Copy link
Contributor

twilight2294 commented Oct 21, 2024

Proposal

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

The bottom line of the pop-up modal is not visible

What is the root cause of that problem?

The problem is with anchorPositionRight:

setAnchorPosition({
anchorPositionTop: position.top + position.height - variables.bankAccountActionPopoverTopSpacing,
// We want the position to be 23px to the right of the left border
anchorPositionRight: windowWidth - position.right + variables.bankAccountActionPopoverRightSpacing,
anchorPositionHorizontal: position.x + variables.addBankAccountLeftSpacing,
anchorPositionVertical: position.y,
});

Here the wrong size is calculated for the right position.

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

We should update the anchorposition calculation:

anchorPosition={{
top: anchorPosition.anchorPositionTop,
right: anchorPosition.anchorPositionRight,
}}

Here instead of right we should calculate for the left anchor position, we should also define anchorPositionLeft and give it a custom value of 339

        setAnchorPosition({
            anchorPositionLeft: position.x + 339,

        });
        
<Popover
      anchorPosition={{
              top: anchorPosition.anchorPositionTop,
              left: anchorPosition.anchorPositionLeft,
       }}

What alternative solutions did you explore? (Optional)

@dangrous
Copy link
Contributor

dangrous commented Oct 21, 2024

bump @rushatgabhane - is this something you can handle or should we open up for contributors?

@rushatgabhane
Copy link
Member

let me give it a try

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Oct 21, 2024
@rushatgabhane
Copy link
Member

PR for the fix here - #51204

@kadiealexander
Copy link
Contributor

Reassigning for someone to handle payment as I'm OOO for the next two weeks.

@kadiealexander kadiealexander removed their assignment Oct 25, 2024
@kadiealexander kadiealexander added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Oct 25, 2024
Copy link

melvin-bot bot commented Oct 25, 2024

Triggered auto assignment to @slafortune (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 Oct 25, 2024
Copy link

melvin-bot bot commented Nov 1, 2024

@dangrous, @slafortune, @rushatgabhane, @allgandalf Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@dangrous
Copy link
Contributor

dangrous commented Nov 1, 2024

PR in review! we just have one improvement to make to the design (coloring the icon) and then we'll be good to merge

Copy link

melvin-bot bot commented Nov 11, 2024

@dangrous, @slafortune, @rushatgabhane, @allgandalf Huh... This is 4 days overdue. Who can take care of this?

Copy link

melvin-bot bot commented Nov 13, 2024

@dangrous, @slafortune, @rushatgabhane, @allgandalf Still overdue 6 days?! Let's take care of this!

@dangrous
Copy link
Contributor

PR in revierw

@allgandalf
Copy link
Contributor

Lets make it weekly until the PR hits production @dangrous

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

9 participants