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 2025-01-15] [$125] [Pending / Scanning] If multiple receipts are scanning in a report, update the copy of the preview component to be plural (i.e. "receipts scanning") #49054

Closed
1 of 6 tasks
kevinksullivan opened this issue Sep 12, 2024 · 73 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 retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause

Comments

@kevinksullivan
Copy link
Contributor

kevinksullivan commented Sep 12, 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/C036QM0SLJK/p1726065881464109

Action Performed:

  1. Create a workspace
  2. Scan a receipt and submit it to that workspace
  3. Immediately scan another receipt and submit it to that workspace

Expected Result:

The report preview component should say "Receipts scanning" as there are multiple on the report

Actual Result:

The report preview says "Receipt scanning"

Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Screenshots/Videos

image

Add any screenshot/video evidence

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021834189848594534997
  • Upwork Job ID: 1834189848594534997
  • Last Price Increase: 2024-12-10
  • Automatic offers:
    • nyomanjyotisa | Contributor | 105368332
Issue OwnerCurrent Issue Owner: @isabelastisser
@kevinksullivan kevinksullivan added Daily KSv2 NewFeature Something to build that is a new item. Bug Something is broken. Auto assigns a BugZero manager. labels Sep 12, 2024
Copy link

melvin-bot bot commented Sep 12, 2024

Triggered auto assignment to @isabelastisser (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.

Copy link

melvin-bot bot commented Sep 12, 2024

Triggered auto assignment to @kadiealexander (NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Sep 12, 2024
@trjExpensify trjExpensify changed the title [Pending / Scanning] If multiple receipts are scanning in a report, update the copy of the preview component to be plural (i.e. "receipts scanning") [$125] [Pending / Scanning] If multiple receipts are scanning in a report, update the copy of the preview component to be plural (i.e. "receipts scanning") Sep 12, 2024
Copy link

melvin-bot bot commented Sep 12, 2024

⚠️ Could not update price automatically because there is no linked Upwork Job ID. The BZ team member will need to update the price manually in Upwork.

@trjExpensify
Copy link
Contributor

Should be a simple task.

@trjExpensify trjExpensify added the External Added to denote the issue can be worked on by a contributor label Sep 12, 2024
Copy link

melvin-bot bot commented Sep 12, 2024

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

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

melvin-bot bot commented Sep 12, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 12, 2024
@Nodebrute
Copy link
Contributor

Nodebrute commented Sep 12, 2024

Edited by proposal-police: This proposal was edited at 2024-09-12 11:23:30 UTC.

Proposal

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

If multiple receipts are scanning in a report, update the copy of the preview component to be plural

What is the root cause of that problem?

Feature request

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

Here we can add another check numberOfScanningReceipts

const getDisplayAmount = (): string => {

if numberOfScanningReceipts > 1 we can show new text Receipts scanning. We also need to add this in en.ts and es.ts file

What alternative solutions did you explore? (Optional)

We can make directly changes in es.ts and en.ts files we can do something like this

    receiptScanning: (numberOfScanningReceipts) =>{
          return numberOfScanningReceipts > 1 ?  'Receipts scanning...'  :  'Receipt scanning...'
        },

@nyomanjyotisa
Copy link
Contributor

nyomanjyotisa commented Sep 12, 2024

Edited by proposal-police: This proposal was edited at 2024-12-16 13:01:12 UTC.

Proposal

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

If multiple receipts are scanning in a report, update the copy of the preview component to be plural

What is the root cause of that problem?

We don't make the iou.receiptScanning translation to handle plural and singular form

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

Update the iou.receiptScanning translation on both en and es to accept plural and singular form

        receiptScanning: () => ({
            one: 'Receipt scanning...',
            other: 'Receipts scanning...',
        }),
        receiptScanning: () => ({
            one: 'Escaneando recibo...',
            other: 'Escaneando recibos...',
        }),

Update this code to pass the count param using numberOfScanningReceipts

return translate('iou.receiptScanning', {count: numberOfScanningReceipts});

Do the same for other iou.receiptScanning translation implementation here here here here and here

What alternative solutions did you explore? (Optional)

@Nodebrute
Copy link
Contributor

Note for C+: My alternate solution was added 1 minute before @nyomanjyotisa

@HezekielT
Copy link
Contributor

I think there is an open PR already here #48229 that handles Plural forms

cc @ZhenjaHorbach

@ZhenjaHorbach
Copy link
Contributor

ZhenjaHorbach commented Sep 12, 2024

I think there is an open PR already here #48229 that handles Plural forms

cc @ZhenjaHorbach

Good point !
Thanks for mentioning

Bu it would be better to ask @shubham1206agra's opinion
What do you think?
Maybe you have already encountered similar issue
And can we just close this issue in favor of a more global PR or or leave this issue ?

@Nodebrute
Copy link
Contributor

Hi @ZhenjaHorbach, your PR is already handling so many files. We've encountered a similar situation in the past where the team decided to keep these changes separate. For reference: #48412 (comment)

@ZhenjaHorbach
Copy link
Contributor

ZhenjaHorbach commented Sep 12, 2024

Hi @ZhenjaHorbach, your PR is already handling so many files. We've encountered a similar situation in the past where the team decided to keep these changes separate. For reference: #48412 (comment)

Actually my PR just prepares translations for the use of plural forms 😅
But we have another PR where we use plural forms

So I don't have much context
But thank you for pointing out a similar case !
In this case, yes, similar issues can be fixed in separate PRs like here !

@shubham1206agra
Copy link
Contributor

No, this is directly related to pluralization. So we will handle this.

@trjExpensify
Copy link
Contributor

Sorry, it's unclear what you mean. Are we moving forward with a PR for this issue or is it being taken care of elsewhere?

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

melvin-bot bot commented Dec 17, 2024

📣 @nyomanjyotisa 🎉 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 Dec 19, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jan 8, 2025
@melvin-bot melvin-bot bot changed the title [$125] [Pending / Scanning] If multiple receipts are scanning in a report, update the copy of the preview component to be plural (i.e. "receipts scanning") [HOLD for payment 2025-01-15] [$125] [Pending / Scanning] If multiple receipts are scanning in a report, update the copy of the preview component to be plural (i.e. "receipts scanning") Jan 8, 2025
Copy link

melvin-bot bot commented Jan 8, 2025

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jan 8, 2025
Copy link

melvin-bot bot commented Jan 8, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.81-6 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 2025-01-15. 🎊

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

Copy link

melvin-bot bot commented Jan 8, 2025

@eh2077 @isabelastisser @eh2077 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Jan 14, 2025
@MariaHCD
Copy link
Contributor

Not overdue - we just need the BZ checklist to move forward here

@isabelastisser
Copy link
Contributor

isabelastisser commented Jan 14, 2025

BugZero Checklist:

Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
  • 2b. Reported on staging (eg. found during regression or PR testing)
  • 2d. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [@eh2077] 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:

  • [@eh2077 ] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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:

  • [@eh2077 ] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

Regression Test Proposal Template
  • [@isabelastisser ] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue:

Regression Test Proposal

Precondition:

Test:

Do we agree 👍 or 👎

@melvin-bot melvin-bot bot removed the Overdue label Jan 14, 2025
@isabelastisser
Copy link
Contributor

@eh2077, please complete the checklist before the payment can be processed. Thanks!

@isabelastisser
Copy link
Contributor

Bump @eh2077 to complete the checklist. Thanks!

@eh2077 eh2077 mentioned this issue Jan 16, 2025
59 tasks
@eh2077
Copy link
Contributor

eh2077 commented Jan 16, 2025

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
  • 2b. Reported on staging (eg. found during regression or PR testing)
  • 2d. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [Contributor] 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/24235/files#r1918697408

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: N/A

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

No, we don't need to add regression test here because the fix is straightforward.

@eh2077
Copy link
Contributor

eh2077 commented Jan 16, 2025

@isabelastisser Done, thanks for the ping!

@isabelastisser
Copy link
Contributor

isabelastisser commented Jan 16, 2025

Payment summary:

@nyomanjyotisa automatic offer (Contributor) $125 - paid in Upwork.
@eh2077 requires payment through NewDot Manual Requests C+ $125 pending

@shubham1206agra
Copy link
Contributor

@isabelastisser The issue is marked for $125. Can you double-check the payment summary?

@isabelastisser
Copy link
Contributor

@shubham1206agra, my confusion, sorry! updated!

@JmillsExpensify
Copy link

$125 approved for @eh2077

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 retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause
Projects
None yet
Development

No branches or pull requests