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] Android - When cancelling payment, "Done" message displayed instead of "Pay" button #52403

Open
3 of 8 tasks
lanitochka17 opened this issue Nov 12, 2024 · 20 comments
Open
3 of 8 tasks
Assignees
Labels
Daily KSv2 Engineering 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

@lanitochka17
Copy link

lanitochka17 commented Nov 12, 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.60-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Open the Expensify app.
  2. Tap on the FAB and select "Submit Expense"
  3. Complete the expense creation flow and send the expense to any workspace.
  4. Tap on "Search" on the bottom of the screen.
  5. Tap on "Pay" on the preview of the just created expense.
  6. Once the payment is complete, tap on the expense to open the report.
  7. Tap on the header and select "Cancel Payment"
  8. Tap on the arrow on the top left corner to return to expense preview on search.
  9. Verify that the "Pay" button is displayed again on expense preview.

Expected Result:

"Pay" button should appear again on the expense preview on search, after the payment is cancelled

Actual Result:

After cancelling expense payment, a "Done" message can be seen on the expense preview instead of the "Pay" button. The user has to leave search section and return to see the "Pay" button again

Workaround:

Unknown

Platforms:

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

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Bug6662571_1731420990421.Done.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021856449395622318059
  • Upwork Job ID: 1856449395622318059
  • Last Price Increase: 2024-11-12
  • Automatic offers:
    • suneox | Contributor | 104870015
Issue OwnerCurrent Issue Owner: @s77rt
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Nov 12, 2024
Copy link

melvin-bot bot commented Nov 12, 2024

Triggered auto assignment to @puneetlath (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Nov 12, 2024

💬 A slack conversation has been started in #expensify-open-source

@lanitochka17 lanitochka17 added DeployBlocker Indicates it should block deploying the API and removed DeployBlockerCash This issue or pull request should block deployment labels Nov 12, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Nov 12, 2024

Current assignee @puneetlath is eligible for the Engineering assigner, not assigning anyone new.

@Nodebrute
Copy link
Contributor

Proposal

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

When cancelling payment, "Done" message displayed instead of "Pay" button

What is the root cause of that problem?

When we cancel payment we set CONST.REPORT.STATUS_NUM.CLOSED

const statusNum: ValueOf<typeof CONST.REPORT.STATUS_NUM> = approvalMode === CONST.POLICY.APPROVAL_MODE.OPTIONAL ? CONST.REPORT.STATUS_NUM.CLOSED : CONST.REPORT.STATUS_NUM.APPROVED;

so when here this isClosedReport will be true

if (ReportUtils.isClosedReport(report)) {
return CONST.SEARCH.ACTION_TYPES.DONE;
}

and Done will be displayed.

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

Change this line

const statusNum: ValueOf<typeof CONST.REPORT.STATUS_NUM> = approvalMode === CONST.POLICY.APPROVAL_MODE.OPTIONAL ? CONST.REPORT.STATUS_NUM.CLOSED : CONST.REPORT.STATUS_NUM.APPROVED;

    const statusNum: ValueOf<typeof CONST.REPORT.STATUS_NUM> = approvalMode === CONST.POLICY.APPROVAL_MODE.OPTIONAL ? CONST.REPORT.STATUS_NUM.SUBMITTED : CONST.REPORT.STATUS_NUM.APPROVED;

What alternative solutions did you explore? (Optional)

@mountiny mountiny added DeployBlockerCash This issue or pull request should block deployment and removed DeployBlocker Indicates it should block deploying the API labels Nov 12, 2024
Copy link

melvin-bot bot commented Nov 12, 2024

Triggered auto assignment to @dangrous (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Nov 12, 2024

💬 A slack conversation has been started in #expensify-open-source

@mountiny
Copy link
Contributor

I dont think this is BE blocker based on the video

Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@dangrous
Copy link
Contributor

oh hai, not sure why i was double assigned? @puneetlath are you okay to take this one? I think you were here first.

@puneetlath
Copy link
Contributor

I think it assigned me and you because I'm on the BZ team as well as engineering. So I got assigned as the BZ. You got assigned as the engineer.

Given that this Pay button in search is a new feature that isn't even on prod yet, I don't think this needs to be a deploy blocker. We can clean it up as a follow up. cc @luacmartins

@puneetlath puneetlath added External Added to denote the issue can be worked on by a contributor Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Nov 12, 2024
@melvin-bot melvin-bot bot changed the title Android - Search - When cancelling payment, "Done" message displayed instead of "Pay" button [$250] Android - Search - When cancelling payment, "Done" message displayed instead of "Pay" button Nov 12, 2024
Copy link

melvin-bot bot commented Nov 12, 2024

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

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

melvin-bot bot commented Nov 12, 2024

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

@luacmartins luacmartins changed the title [Search v1.2][$250] Android - - When cancelling payment, "Done" message displayed instead of "Pay" button [Search v1.2][$250] Android - When cancelling payment, "Done" message displayed instead of "Pay" button Nov 12, 2024
@luacmartins
Copy link
Contributor

I'll handle this since I'm the author of the offending PR.

@luacmartins luacmartins assigned luacmartins and unassigned suneox Nov 12, 2024
@luacmartins luacmartins removed 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 labels Nov 12, 2024
@Nodebrute
Copy link
Contributor

@luacmartins Hey! Just wanted to let you know this issue isn't coming from your PR. Offending pr: #48700

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Nov 12, 2024
@luacmartins
Copy link
Contributor

luacmartins commented Nov 12, 2024

Ah nice! I'll make it external again then! cc @cretadn22 @tgolen @situchan

@luacmartins luacmartins added the External Added to denote the issue can be worked on by a contributor label Nov 12, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 12, 2024
@luacmartins luacmartins removed Reviewing Has a PR in review Help Wanted Apply this label when an issue is open to proposals by contributors labels Nov 12, 2024
Copy link

melvin-bot bot commented Nov 12, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Nov 12, 2024
@luacmartins luacmartins removed their assignment Nov 12, 2024
@luacmartins luacmartins added the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 12, 2024
@luacmartins luacmartins assigned suneox and unassigned s77rt Nov 12, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 12, 2024
Copy link

melvin-bot bot commented Nov 12, 2024

📣 @suneox 🎉 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 📖

@luacmartins luacmartins added the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 12, 2024
@luacmartins luacmartins changed the title [Search v1.2][$250] Android - When cancelling payment, "Done" message displayed instead of "Pay" button [$250] Android - When cancelling payment, "Done" message displayed instead of "Pay" button Nov 13, 2024
@dangrous
Copy link
Contributor

Just to confirm here, this is a standard external issue now, with me as eng, @puneetlath as bug zero, and @suneox as C+?

@puneetlath
Copy link
Contributor

Correct!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering 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

8 participants