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

[$250] Expense - Unapprove system message changes format after unapproving a scanning expense #50305

Closed
6 tasks done
IuliiaHerets opened this issue Oct 6, 2024 · 8 comments
Closed
6 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Oct 6, 2024

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


Version Number: 9.0.45-2
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

Precondition:

  • Add approvals feature is enabled in Workflows.
  1. Go to staging.new.expensify.com
  2. Go to workspace chat (must have no unsettled expense).
  3. Submit a scan expense.
  4. While the receipt is scanning, go to expense report.
  5. Click Approve.
  6. Click on the report header.
  7. Click Unapprove while the receipt is still scanning.
  8. Note that the unapprove system message is "unapproved x".
  9. Refresh the page.

Expected Result:

The unapprove system message should remain "unapproved x".

Actual Result:

The unapprove system message changes to
You
unapproved this report

This issue only happens when the expense is a scan expense and the receipt is scanning.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6626203_1728226188696!Screenshot_2024-10-06_at_22 49 31
Bug6626203_1728226188691.20241006_224356.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021843641880485944632
  • Upwork Job ID: 1843641880485944632
  • Last Price Increase: 2024-10-08
Issue OwnerCurrent Issue Owner: @rojiphil
@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 6, 2024
Copy link

melvin-bot bot commented Oct 6, 2024

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

@IuliiaHerets
Copy link
Author

We think that this bug might be related to #wave-collect - Release 1

@IuliiaHerets
Copy link
Author

@bfitzexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@truph01
Copy link
Contributor

truph01 commented Oct 7, 2024

Edited by proposal-police: This proposal was edited at 2024-10-07 02:18:22 UTC.

Proposal

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

The unapprove system message changes to
You
unapproved this report

What is the root cause of that problem?

  • We don't have logic to handle UNAPPROVED system messages on FE side.

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

  1. Add a UNAPPROVED else if in this:
 } else if (ReportActionsUtils.isActionOfType(action, CONST.REPORT.ACTIONS.TYPE.UNAPPROVED)) {
            const amount = ReportActionsUtils.getOriginalMessage(action)?.amount;
            const currency = ReportActionsUtils.getOriginalMessage(action)?.currency;
            children = <ReportActionItemBasicMessage message={`Unapproved ${CurrencyUtils.convertToDisplayString(amount, currency)}`} />;

The text can be updated later.

  1. The same logic should be applied when displaying message in LHN, copy message, report title, ...

What alternative solutions did you explore? (Optional)

@bfitzexpensify bfitzexpensify added the External Added to denote the issue can be worked on by a contributor label Oct 8, 2024
@melvin-bot melvin-bot bot changed the title Expense - Unapprove system message changes format after unapproving a scanning expense [$250] Expense - Unapprove system message changes format after unapproving a scanning expense Oct 8, 2024
Copy link

melvin-bot bot commented Oct 8, 2024

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

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

melvin-bot bot commented Oct 8, 2024

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

Copy link

melvin-bot bot commented Oct 11, 2024

@rojiphil, @bfitzexpensify 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 11, 2024
@rojiphil
Copy link
Contributor

This issue is fixed in this PR.
Let's close this @bfitzexpensify

50305-Issue-Fixed.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

4 participants