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-02-09] Selected payment Method is not highlighted - reported by @parasharrajat #7353

Closed
mvtglobally opened this issue Jan 21, 2022 · 11 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Reviewing Has a PR in review Weekly KSv2

Comments

@mvtglobally
Copy link

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Open app
  2. Navigate to Settings> Payments
  3. Click on any payment method

Expected Result:

Selected payment Method should be highlighted

Actual Result:

Selected payment Method is not highlighted

Workaround:

unknown

Platform:

Where is this issue occurring?

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

Version Number: 1.1.31-0
Reproducible in staging?: Y
Reproducible in production?: n/a
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
image - 2022-01-20T234727 915

Expensify/Expensify Issue URL:
Issue reported by: @parasharrajat
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1642601672181200

View all open jobs on GitHub

@MelvinBot
Copy link

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

@parasharrajat
Copy link
Member

parasharrajat commented Jan 21, 2022

Proposal (if external)

Before triaging for the reason that I reported it.
  1. Add a new props to PaymentMethodList activePaymentMethodID and actionPaymentMethodType to hightlight the paymentMethod from the list.

  2. in PaymentMethodList, add to the paymentMethod object when it matches with the passed props.

    combinedPaymentMethods = _.map(combinedPaymentMethods, paymentMethod => ({
    ...paymentMethod,
    type: MENU_ITEM,
    onPress: e => this.props.onPress(e, paymentMethod.accountType, paymentMethod.accountData),
    }));

iconFill: StyleUtils.getIconFillColor(CONST.BUTTON_STATES.PRESSED),
wrapperStyle: StyleUtils.getButtonBackgroundColorStyle(CONST.BUTTON_STATES.PRESSED),
  1. Pass selectedPaymentMethod and selectedPaymentMethodType these props.

Note: I am not taking selectedPaymentMethod and selectedPaymentMethodType as the prop names for a reason there is another feature in development that utilizes similar prop names.

@MonilBhavsar MonilBhavsar added Improvement Item broken or needs improvement. External Added to denote the issue can be worked on by a contributor labels Jan 21, 2022
@MelvinBot
Copy link

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

@MonilBhavsar MonilBhavsar removed their assignment Jan 21, 2022
@botify botify removed the Daily KSv2 label Jan 21, 2022
@MelvinBot MelvinBot added the Weekly KSv2 label Jan 21, 2022
@MelvinBot
Copy link

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

@MelvinBot MelvinBot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 21, 2022
@MelvinBot
Copy link

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

@NicMendonca
Copy link
Contributor

@rushatgabhane
Copy link
Member

Unassigning myself as Rajat doesn't need a C+ review

@rushatgabhane rushatgabhane removed their assignment Jan 21, 2022
@marcochavezf
Copy link
Contributor

@parasharrajat cool! That proposal looks good, assigning you.

@MelvinBot
Copy link

📣 @parasharrajat You have been assigned to this job by @marcochavezf!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@MelvinBot MelvinBot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 24, 2022
@marcochavezf marcochavezf added the Reviewing Has a PR in review label Jan 26, 2022
@botify botify added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Feb 2, 2022
@botify botify changed the title Selected payment Method is not highlighted - reported by @parasharrajat [HOLD for payment 2022-02-09] Selected payment Method is not highlighted - reported by @parasharrajat Feb 2, 2022
@botify
Copy link

botify commented Feb 2, 2022

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

@NicMendonca
Copy link
Contributor

paid for reporting & fixing! thank you!

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 Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

8 participants