Skip to content

Payment - Preview is not shown when deleting paypal.me payment method #8097

Closed

Description

@kavimuru

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Issue was found when executing #8025

Action Performed:

  1. Open app in mobile/ use expensify in desktop web and decrease the screen size
  2. Go to Settings -> Payment
  3. Add paypal account in add payment method
  4. Select Paypal.me
  5. Click on Paypal.me above delete button

Expected Result:

I can see Payment preview

Actual Result:

I do not see Payment preview

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.1.42-3

Reproducible in staging?: Y

Reproducible in production?: Y (New feature)

Email or phone of affected tester (no customers): andreylazutkinutest+qqq@gmail.com / w323052760We

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos:
Bug5487148_Web_8025

Expensify/Expensify Issue URL:
Issue reported by: Applause
Slack conversation:

View all open jobs on GitHub
Issue was found when executing #8025

Activity

  1. OSBotify commented on Mar 11, 2022

    @OSBotify
    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.
  2. MelvinBot commented on Mar 11, 2022

    @MelvinBot
    Contributor

    Triggered auto assignment to @madmax330 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  3. mountiny commented on Mar 11, 2022

    @mountiny
    Contributor

    Except of the issue which is already linked (which I am not sure if is causing this problem), there is also this PR which made changes to this:

    const isPopoverBottomMount = this.state.anchorPositionTop === 0 || this.props.isSmallScreenWidth;

    so it might be causing the anchorPositionTop to not be zero on desktop if there is only the paypal me option (I see in the Pr that the tests were usually with more options). cc @phivh would you be able to have a look whether you see any link between these?

    Also not sure if this needs to be deployblocker if it also occurs in Production. Can users use Paypal.me now in N6? They cant use IOU yet.

  4. phivh commented on Mar 13, 2022

    @phivh
    Contributor

    @mountiny the changes that I did only kept the position of the menu while the window resize on the desktop which was the same logic to set position before. Nothing changed in the menu UI or show/hide logic.

    /**
    * Set position of the payment menu
    *
    * @param {Object} position
    */
    setPositionAddPaymentMenu(position) {
    this.setState({
    anchorPositionTop: position.bottom,
    // We want the position to be 13px to the right of the left border
    anchorPositionLeft: position.left + 13,
    });
    }

    I thought the payment preview was only shown for the mobile site because the delete button on the desktop is right under the Paypal payment item.
    Thus, I am quite sure that the change in the PR is not linked to this issue.

  5. mountiny commented on Mar 13, 2022

    @mountiny
    Contributor

    @phivh Thank you very much for looking into this 🙇

  6. added
    ExternalAdded to denote the issue can be worked on by a contributor
    and removed
    DeployBlockerCashThis issue or pull request should block deployment
    on Mar 14, 2022
  7. MelvinBot commented on Mar 14, 2022

    @MelvinBot
    Contributor

    Triggered auto assignment to @bfitzexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

  8. 3 remaining items

  9. bfitzexpensify commented on Mar 15, 2022

    @bfitzexpensify
    Contributor

    Upwork post here

  10. MelvinBot commented on Mar 15, 2022

    @MelvinBot
    Contributor

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (Exported)

  11. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Mar 15, 2022
  12. MelvinBot commented on Mar 15, 2022

    @MelvinBot
    Contributor

    Triggered auto assignment to @marcaaron (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

  13. thesahindia commented on Mar 15, 2022

    @thesahindia
    Member

    Proposal

    We show the preview if isPopoverBottomMount is true, if we wanna show the payment preview in all the cases then we can just remove this check

    {isPopoverBottomMount && (
    <MenuItem
    title={this.state.formattedSelectedPaymentMethod.title}
    icon={this.state.formattedSelectedPaymentMethod.icon}
    description={this.state.formattedSelectedPaymentMethod.description}

    also we aren't using isPopoverBottomMount anywhere else so I think we can also remove it from here -

    const isPopoverBottomMount = this.state.anchorPositionTop === 0 || this.props.isSmallScreenWidth;

  14. Santhosh-Sellavel commented on Mar 15, 2022

    @Santhosh-Sellavel
    Collaborator

    @marcaaron
    Showing preview would look redundant, as the popup is close to the selected payment method.
    Screenshot 2022-03-15 at 10 58 58 PM

    Can you confirm on this do we need this change?

  15. Santhosh-Sellavel commented on Mar 15, 2022

    @Santhosh-Sellavel
    Collaborator

    @marcaaron
    If we need this change we are good to go with @thesahindia proposal #8097 (comment)

    🎀👀🎀 C+ reviewed

  16. marcaaron commented on Mar 18, 2022

    @marcaaron
    Contributor

    I don't really get this issue at all or understand why we need a preview for this. Seems extremely low value to me.

  17. marcaaron commented on Mar 18, 2022

    @marcaaron
    Contributor

    @madmax330 says

    we should fix the preview once we determine how it should be.

    I think it should be exactly how it is now. If anyone disagrees feel free to reopen.

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

Metadata

Metadata

Labels

EngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions