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-02-20] [$500] [ECARD TRANSACTIONS] Pay elsewhere button is missing the reimbursable total #34620

Closed
kevinksullivan opened this issue Jan 16, 2024 · 19 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 External Added to denote the issue can be worked on by a contributor

Comments

@kevinksullivan
Copy link
Contributor

kevinksullivan commented Jan 16, 2024

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 reported by: @kevinksullivan
Slack conversation: https://expensify.slack.com/archives/C05DWUDHVK7/p1705442420036949?thread_ts=1705442308.576449&cid=C05DWUDHVK7

Action Performed:

  1. Create a free workspace and set it as your default
  2. Add a manual request
  3. Tap into the report
  4. Select the payment option dropdwown

Expected Result:

Both Pay with Expensify and Pay elsewhere buttons should include the reimbursable total you are paying in the button copy

Actual Result:

Pay elsewhere does not include this total

image

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01e5409827a7bf0019
  • Upwork Job ID: 1748141602955698176
  • Last Price Increase: 2024-01-19
  • Automatic offers:
    • c3024 | Reviewer | 28110702
    • esh-g | Contributor | 28110704
@kevinksullivan kevinksullivan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jan 16, 2024
Copy link

melvin-bot bot commented Jan 16, 2024

Triggered auto assignment to @puneetlath (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@kevinksullivan kevinksullivan assigned grgia and unassigned puneetlath Jan 16, 2024
@esh-g
Copy link
Contributor

esh-g commented Jan 17, 2024

Proposal

Please re-state the problem we are trying to solve?

Both Pay with Expensify and Pay elsewhere buttons should include the reimbursable total you are paying in the button copy but 'pay elsewhere' doesn't have that.

What is the root cause of the problem?

No logic to add amount to pay elsewhere

What changes should be made to fix this?

App/src/languages/en.ts

Lines 598 to 599 in a8acf44

settleExpensify: ({formattedAmount}: SettleExpensifyCardParams) => (formattedAmount ? `Pay ${formattedAmount} with Expensify` : `Pay with Expensify`),
payElsewhere: 'Pay elsewhere',

We should modify payElsewhere: 'Pay elsewhere' translation to the following:

payElsewhere: ({formattedAmount}: SettleExpensifyCardParams) => (formattedAmount ? `Pay ${formattedAmount} elsewhere` : `Pay elsewhere`),

Then pass the formattedAmount here:

text: translate('iou.payElsewhere'),

Just like we do for expensify here:

text: translate('iou.settleExpensify', {formattedAmount}),

We can also of course modify the name of SettleExpensifyCardParams to something like SettlementOptionParams to reflect it's alter usage.

@melvin-bot melvin-bot bot added the Overdue label Jan 18, 2024
@grgia grgia added the External Added to denote the issue can be worked on by a contributor label Jan 19, 2024
@melvin-bot melvin-bot bot changed the title [ECARD TRANSACTIONS] Pay elsewhere button is missing the reimbursable total [$500] [ECARD TRANSACTIONS] Pay elsewhere button is missing the reimbursable total Jan 19, 2024
Copy link

melvin-bot bot commented Jan 19, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01e5409827a7bf0019

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 19, 2024
Copy link

melvin-bot bot commented Jan 19, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Jan 19, 2024
@dukenv0307

This comment was marked as duplicate.

@c3024
Copy link
Contributor

c3024 commented Jan 19, 2024

@esh-g 's proposal here looks good to me.

🎀 👀 🎀 C+ Reviewed

Copy link

melvin-bot bot commented Jan 19, 2024

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

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 19, 2024
Copy link

melvin-bot bot commented Jan 19, 2024

📣 @c3024 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Jan 19, 2024

📣 @esh-g 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer 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 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jan 20, 2024
@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Feb 13, 2024
Copy link

melvin-bot bot commented Feb 13, 2024

This issue has not been updated in over 15 days. @blimpich, @grgia, @esh-g, @c3024 eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Monthly KSv2 labels Feb 13, 2024
@melvin-bot melvin-bot bot changed the title [$500] [ECARD TRANSACTIONS] Pay elsewhere button is missing the reimbursable total [HOLD for payment 2024-02-20] [$500] [ECARD TRANSACTIONS] Pay elsewhere button is missing the reimbursable total Feb 13, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 13, 2024
Copy link

melvin-bot bot commented Feb 13, 2024

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

Copy link

melvin-bot bot commented Feb 13, 2024

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

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

Copy link

melvin-bot bot commented Feb 13, 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:

  • [@c3024] The PR that introduced the bug has been identified. Link to the PR:
  • [@c3024] 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:
  • [@c3024] 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:
  • [@c3024] Determine if we should create a regression test for this bug.
  • [@c3024] 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.
  • [] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@c3024
Copy link
Contributor

c3024 commented Feb 18, 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:

  • [@c3024] The PR that introduced the bug has been identified. Link to the PR: Update Expense Report View / Headers #22484
  • [@c3024] 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: https://github.com/Expensify/App/pull/22484/files#r1493748140
  • [@c3024] 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: Not started because this has been appearing this way but now it is preferred to add amount in the Pay elsewhere as well.
  • [@c3024] Determine if we should create a regression test for this bug. No, I think this is not a significant bug that meaningfully affects user experience adversely.
  • [@c3024] 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. NA

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 20, 2024
Copy link

melvin-bot bot commented Feb 20, 2024

Issue is ready for payment but no BZ is assigned. @jliexpensify you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!

@jliexpensify
Copy link
Contributor

Just catching up - I will need to create a new Upworks job as the old one was closed.

@jliexpensify
Copy link
Contributor

Payment Summary

New Upworks Job

@c3024
Copy link
Contributor

c3024 commented Feb 21, 2024

Offer accepted!

@jliexpensify
Copy link
Contributor

Paid and job closed!

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 External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Development

No branches or pull requests

8 participants