Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.55k stars 2.89k forks source link

[HOLD for payment 2024-10-16] [$250] Expensify Card - On report fraud page, error does not redirect and can not be closed #49010

Closed IuliiaHerets closed 3 weeks ago

IuliiaHerets commented 2 months ago

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: v9.0.32-3 Reproducible in staging?: Y Reproducible in production?: Y Email or phone of affected tester (no customers): applausetester+en@applause.expensifail.com Issue reported by: Applause Internal Team

Action Performed:

PreCond: User has Expensify Card set up and assigned

  1. Open the New Expensify iOS app
  2. Sign into a valid account
  3. Go to Profile > Wallet > Expensify Card
  4. Go to Report Virtual Card fraud > Deactivate Card

Expected Result:

User expects that after the loading spinner on the button, a redirect occurs

Actual Result:

No redirect occurs after hitting the button, the button can be hit several times. Only after exiting the page and going back will the user notice an error message. This error message can not be deleted by tapping the "X" button.

Workaround:

Unknown

Platforms:

Screenshots/Videos

https://github.com/user-attachments/assets/81215eaf-c480-4e45-9de4-420b35859b17

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021834534968013390587
  • Upwork Job ID: 1834534968013390587
  • Last Price Increase: 2024-09-13
  • Automatic offers:
    • dominictb | Contributor | 103979604
Issue OwnerCurrent Issue Owner: @garrettmknight
melvin-bot[bot] commented 2 months ago

Triggered auto assignment to @garrettmknight (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 commented 2 months ago

@garrettmknight 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

ChavdaSachin commented 2 months ago

Proposal

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

What is the root cause of that problem?

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

What alternative solutions did you explore? (Optional)

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

dominictb commented 2 months ago

Proposal

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

What is the root cause of that problem?

Issue 1: No redirect occurs after hitting the button, the button can be hit several times.

issue 2: Only after exiting the page and going back will the user notice an error message. This error message can not be deleted by tapping the "X" button.

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

Issue 1: No redirect occurs after hitting the button, the button can be hit several times.

Issue 2: Only after exiting the page and going back will the user notice an error message. This error message can not be deleted by tapping the "X" button.

  1. Option 1:
       canDismissError: false,
  1. Option 2:

https://github.com/Expensify/App/blob/ecb629d42de6ff0e1c6315193fc0b76644cf7fad/src/pages/settings/Wallet/PaymentMethodList.tsx#L130

    if (item.cardID) {
        Onyx.merge(`cardList`, {
            [item.cardID]: {
                errors: null,
            },
        });
        return;
    }

What alternative solutions did you explore? (Optional)

melvin-bot[bot] commented 2 months ago

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

melvin-bot[bot] commented 2 months ago

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

QasimBham commented 2 months ago

Proposal Please re-state the problem that we are trying to solve in this issue. No redirect occurs after hitting the button, the button can be hit several times. Only after exiting the page and going back will the user notice an error message. This error message can not be deleted by tapping the "X" button. Solution: we can redirect it to the specific user's card itself such that Navigation.navigate(ROUTES.SETTINGS_WALLET_DOMAINCARD.getRoute(cardID));

github-actions[bot] commented 2 months ago

@user Your proposal will be dismissed because you did not follow the proposal template.

QasimBham commented 2 months ago

Proposal Please re-state the problem that we are trying to solve in this issue. "No redirect occurs after hitting the button, the button can be hit several times."

What is the root cause of that problem? "not targeting the id to card"

What changes do you think we should make in order to solve the problem? "we can redirect it to the specific user's card itself such that Navigation.navigate(ROUTES.SETTINGS_WALLET_DOMAINCARD.getRoute(cardID));"

What alternative solutions did you explore? (Optional)

jayeshmangwani commented 1 month ago

Thanks for the proposals! @dominictb 's Proposal looks good to me. We’ll need to update the passed parameter in the virtualCardError value. I also agree with the part where we update the Onyx value for the card and set the errors value to null when the close icon is pressed on the Wallet screen.

Sidenote: I’m currently not receiving any error message when I press "Deactivate Card". @dominictb, if you can reliably reproduce this issue, please add it to the test steps in the PR.

🎀 👀 🎀 C+ reviewed

melvin-bot[bot] commented 1 month ago

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

melvin-bot[bot] commented 1 month ago

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

jayeshmangwani commented 1 month ago

Approving again to reassign the internal engineer, as Carlos is OOO.

🎀 👀 🎀

melvin-bot[bot] commented 1 month ago

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

garrettmknight commented 1 month ago

Went to staging yesterday.

melvin-bot[bot] commented 1 month ago

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

melvin-bot[bot] commented 1 month ago

The solution for this issue has been :rocket: deployed to production :rocket: in version 9.0.46-5 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-10-16. :confetti_ball:

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

melvin-bot[bot] commented 1 month ago

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:

jayeshmangwani commented 3 weeks ago
melvin-bot[bot] commented 3 weeks ago

@cead22, @garrettmknight, @dangrous, @jayeshmangwani, @dominictb Eep! 4 days overdue now. Issues have feelings too...

cead22 commented 3 weeks ago

Not overdue. Just undergoing payment process

garrettmknight commented 3 weeks ago

Payment Summary:

garrettmknight commented 3 weeks ago

@jayeshmangwani request when you're ready!

JmillsExpensify commented 2 weeks ago

Confirming that the payment summary here is correct.

garrettmknight commented 2 weeks ago

$250 approved for @jayeshmangwani