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 2022-11-18] [$500] Web -Payment - Popup with payment option is hidden title for new public accounts #11414

Closed
kbecciv opened this issue Sep 29, 2022 · 61 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

@kbecciv
Copy link

kbecciv commented Sep 29, 2022

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


Action Performed:

  1. Go to staging.new.expensify.com
  2. Log in with your band new public account
  3. Go to Settings - Payments
  4. Click Add Payments

Expected Result:

Popup with payment option is not hidden title for new public accounts

Actual Result:

Popup with payment option is hidden title for new public accounts

Workaround:

Unknown

Platform:

Where is this issue occurring?

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

Version Number: 1.2.9.0

Reproducible in staging?: Yes

Reproducible in production?: Yes

Email or phone of affected tester (no customers): any public accounts

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

Notes/Photos/Videos: Any additional supporting documentation

Recording.1256.mp4

Payment

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

@melvin-bot
Copy link

melvin-bot bot commented Sep 29, 2022

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2022

@madmax330 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Oct 3, 2022
@madmax330 madmax330 added the External Added to denote the issue can be worked on by a contributor label Oct 3, 2022
@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2022

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2022

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 3, 2022
@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2022

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

@melvin-bot melvin-bot bot changed the title Web -Payment - Popup with payment option is hidden title for new public accounts [$250] Web -Payment - Popup with payment option is hidden title for new public accounts Oct 3, 2022
@madmax330 madmax330 removed their assignment Oct 3, 2022
@melvin-bot melvin-bot bot removed the Overdue label Oct 3, 2022
@stephanieelliott
Copy link
Contributor

Posted to Upwork: https://www.upwork.com/jobs/~01f78d3df2e9e52ada

@rushatgabhane
Copy link
Member

Why was the popover made to open from the top?
IIRC, the popover used to open from the bottom of the button.

@aldo-expensify
Copy link
Contributor

Why was the popover made to open from the top? IIRC, the popover used to open from the bottom of the button.

I guess it could be because there are views where this button is at the bottom of the screen, like this:

Maybe we should add a prop to control if it appears on top or on bottom?

@rushatgabhane
Copy link
Member

Maybe we should add a prop to control if it appears on top or on bottom

sounds like a fine idea

@tienifr
Copy link
Contributor

tienifr commented Oct 7, 2022

Proposal

Problem

In the Payment Page, We are leaving the default menu option displayed above the button

Solution

In src/pages/settings/Payments/PaymentsPage/index.js we should add a prop (positionOfMethodMenu) into BasePaymentsPage to control that the popup with payment options appears above or below the button.
And in src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js
We will check positionOfMethodMenu prop and display the payment options correctly
We shouldn't fix it directly into BasePaymentsPage.js because we can reuse it later

Please view the changed code in this sample PR: tienifr#6
Result:
Screen Shot 2022-10-07 at 11 36 10

@Puneet-here
Copy link
Contributor

Proposal

The add payment method was meant to be at the bottom but after wrapping it with the offlineIndicator its position changed.

To fix this we have to pass styles.flex1 in style and contentContainerStyle(this prop is not available right now but a PR is up for it) prop at OfflineWithFeedback

<OfflineWithFeedback onClose={() => PaymentMethods.clearWalletError()} errors={this.props.userWallet.errors} errorRowStyles={[styles.ph6, styles.pv2]}>

contentContainerStyle will be used in the style here

<View style={needsOpacity ? styles.offlineFeedback.pending : {}}>

Now we have to do to something about the margin and padding because we have one more issue, the error for payment method button doesn't look good with the current spacing (check the image below)
Without any changes:

Screenshot 2022-10-08 at 9 35 39 PM

After correcting the position:
Screenshot 2022-10-08 at 9 32 47 PM

so I propose we only use styles.mb4 when this.props.userWallet.errors contains some value because we don't want the bottom margin when showing error and the error is from userWallet.

style={[styles.mh4, styles.mb4, styles.buttonCTA]}

Or we can just simply remove the bottom margin from the button and styles.pv2 from offlineIndicator and add pb4 at the View below

<OfflineWithFeedback onClose={() => PaymentMethods.clearWalletError()} errors={this.props.userWallet.errors} errorRowStyles={[styles.ph6, styles.pv2]}>

After my solution this will be the result -

Without error
Screenshot 2022-10-08 at 9 38 59 PM

With error

Screenshot 2022-10-08 at 9 38 44 PM

@melvin-bot melvin-bot bot added the Overdue label Oct 8, 2022
@melvin-bot
Copy link

melvin-bot bot commented Oct 10, 2022

@rushatgabhane, @stephanieelliott, @aldo-expensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@rushatgabhane
Copy link
Member

reviewing proposal

@melvin-bot melvin-bot bot removed the Overdue label Oct 10, 2022
@rushatgabhane
Copy link
Member

rushatgabhane commented Oct 11, 2022

The add payment method was meant to be at the bottom

@Puneet-here could you please link this discussion?
Anyway, I think the button at top looks better.

@Puneet-here
Copy link
Contributor

This is the PR.

@rushatgabhane
Copy link
Member

Thanks @Puneet-here

@Expensify/design I'm curious about your throughts on the "Add payment method" button position in #11414 (comment)

@melvin-bot
Copy link

melvin-bot bot commented Nov 8, 2022

BugZero Checklist: The PR fixing this issue has been merged! The following checklist will need to be completed before the issue can be closed:

  • A regression test has been added or updated so that the same bug will not reach production again. Link to the updated test here:
  • The PR that introduced the bug has been identified. Link to the PR:
  • 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:
  • A discussion in #contributor-plus 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:
  • Payment has been made to the issue reporter (if applicable)
  • Payment has been made to the contributor that fixed the issue (if applicable)
  • Payment has been made to the contributor+ that helped on the issue (if applicable)

@aldo-expensify
Copy link
Contributor

PR merged

@Puneet-here
Copy link
Contributor

@aldo-expensify, I just wanted to know if the compensation will be increased since I also pointed out the error message positioning bug and fixed it which wasn't mentioned in this issue.

@aldo-expensify
Copy link
Contributor

@Puneet-here sorry, which error positioning? the error under the "Add payment method" button?

@Puneet-here
Copy link
Contributor

Yes this how the error used to show up. since the button had bottom margin and the error had vertical margin there was some extra gap.
Screenshot 2022-11-09 at 3 34 15 AM

@aldo-expensify
Copy link
Contributor

aldo-expensify commented Nov 8, 2022

@Puneet-here ok, I just noticed that your proposal mentioned this.

@mallenexpensify 👋 can I get your opinion on what @Puneet-here is requesting here: #11414 (comment)

Summary:

  • The issue is about moving the button "Add payment method" to the bottom of the screen
  • @Puneet-here 's included a small fix for the error's margin when it appears below the button in his proposal
  • @Puneet-here pointed out that the correction on the margin is not part of the original issue, so he is requesting extra payment for that.

Thanks!

@mallenexpensify
Copy link
Contributor

I'm hopping OOO and am unable to review. @slafortune can you take a look? If you're unsure, I'd address in Slack to get feedback

@slafortune
Copy link
Contributor

Checking here

@slafortune
Copy link
Contributor

@Puneet-here - Yes, we will also compensate with a $250 bonus for that additional fix 👍

@Puneet-here
Copy link
Contributor

Thank you🎉

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Nov 11, 2022
@melvin-bot melvin-bot bot changed the title [$500] Web -Payment - Popup with payment option is hidden title for new public accounts [HOLD for payment 2022-11-18] [$500] Web -Payment - Popup with payment option is hidden title for new public accounts Nov 11, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 11, 2022

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.26-0 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 2022-11-18. 🎊

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Nov 17, 2022
@slafortune
Copy link
Contributor

@Puneet-here @rushatgabhane you've been sent the contract on Friday, let me know once you've accepted that and I can get you paid. 👍

@melvin-bot melvin-bot bot removed the Overdue label Nov 21, 2022
@Puneet-here
Copy link
Contributor

Applied, thanks!

@mvtglobally
Copy link

Issue not reproducible during KI retests. (Second week)

@melvin-bot melvin-bot bot added the Overdue label Nov 24, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 25, 2022

@shawnborton, @slafortune, @rushatgabhane, @aldo-expensify, @Puneet-here Whoops! This issue is 2 days overdue. Let's get this updated quick!

@slafortune
Copy link
Contributor

Paid @rushatgabhane waiting on @Puneet-here to send payment.

@melvin-bot melvin-bot bot removed the Overdue label Nov 28, 2022
@Puneet-here
Copy link
Contributor

Accepted the offer, thanks!

@slafortune
Copy link
Contributor

I added the $250 in that was discussed - so paid 750 total 👍

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