Skip to content

[Awaiting checklist] [$125] Web - RHP - Going back closes the RHP Instead of navigating to the confirm page #53253

Closed

Description

@IuliiaHerets

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: 9.0.68-0
Reproducible in staging?: Y
Reproducible in production?: Y
Issue was found when executing this PR: #51630
Email or phone of affected tester (no customers): biruknew45+22hdkj@gmail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Log in with new Gmail account
  3. Open a DM
  4. Press + and choose Pay option
  5. Enter any amount in USD and go Next
  6. Press Pay with Expensify. A validate page will show
  7. (web/desktop) Refresh
  8. Go back

Expected Result:

Going back should navigate us to the confirm page.

Actual Result:

Going back closes the RHP

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6679178_1732806280071.bandicam_2024-11-28_17-51-50-902.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021864112749864088782
  • Upwork Job ID: 1864112749864088782
  • Last Price Increase: 2024-12-04
  • Automatic offers:
    • DylanDylann | Reviewer | 105193680
    • FitseTLT | Contributor | 105193682
Issue OwnerCurrent Issue Owner: @DylanDylann

Activity

  1. added
    Daily
    Bug
    on Nov 28, 2024
  2. melvin-bot commented on Nov 28, 2024

    @melvin-bot

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

  3. FitseTLT commented on Nov 28, 2024

    @FitseTLT
    Contributor

    Edited by proposal-police: This proposal was edited at 2024-11-28 15:59:30 UTC.

    Proposal

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

    Web - RHP - Going back closes the RHP Instead of navigating to the confirm page

    What is the root cause of that problem?

    We are navigating back without the backTo


    onBackButtonPress={() => Navigation.goBack()}

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

    We need to pass the backTo to the goBack

            Navigation.goBack(route.params.backTo);
    
    

    What alternative solutions did you explore? (Optional)

    But if we want to navigate to the backTo only on BackButtonPressed here


    and not onClose and onModalHide we can create a separate onBackPressed prop for ValidateCodeActionModal and pass the goBack with backTo passed as a callback and call it from only onBackButtonPress so that the onClose and onModalHide will call the normal backTo or dismissModal
    isVisible={isVisible}
    onClose={hide}
    onModalHide={onModalHide ?? hide}

  4. melvin-bot commented on Dec 2, 2024

    @melvin-bot

    @twisterdotcom Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  5. added
    External
    on Dec 4, 2024
  6. melvin-bot commented on Dec 4, 2024

    @melvin-bot
  7. changed the title [-]Web - RHP - Going back closes the RHP Instead of navigating to the confirm page[/-] [+][$250] Web - RHP - Going back closes the RHP Instead of navigating to the confirm page[/+] on Dec 4, 2024
  8. added
    Help Wanted
    on Dec 4, 2024
  9. melvin-bot commented on Dec 4, 2024

    @melvin-bot

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

  10. 14 remaining items

  11. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Dec 12, 2024
  12. changed the title [-][$125] Web - RHP - Going back closes the RHP Instead of navigating to the confirm page[/-] [+][HOLD for payment 2024-12-19] [$125] Web - RHP - Going back closes the RHP Instead of navigating to the confirm page[/+] on Dec 12, 2024
  13. removed
    Reviewing
    on Dec 12, 2024
  14. melvin-bot commented on Dec 12, 2024

    @melvin-bot

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

  15. melvin-bot commented on Dec 12, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.74-8 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-12-19. 🎊

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

  16. melvin-bot commented on Dec 12, 2024

    @melvin-bot

    @DylanDylann @twisterdotcom @DylanDylann 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]

  17. added
    Daily
    and removed
    Weekly
    on Dec 18, 2024
  18. twisterdotcom commented on Dec 19, 2024

    @twisterdotcom
    Contributor

    Payment Summary:

  19. changed the title [-][HOLD for payment 2024-12-19] [$125] Web - RHP - Going back closes the RHP Instead of navigating to the confirm page[/-] [+][Awaiting checklist] [$125] Web - RHP - Going back closes the RHP Instead of navigating to the confirm page[/+] on Dec 19, 2024
  20. removed
    Awaiting Payment
    on Dec 19, 2024
  21. DylanDylann commented on Dec 19, 2024

    @DylanDylann
    Contributor

    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: Fix validate page navigation #52603 (comment)

    • [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:

    • [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.

    • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

      Link to issue: https://github.com/Expensify/Expensify/issues/454868

    Regression Test Proposal

    Test:

    Only test on web and desktop

    1. Signup on a new invalidated account
    2. Open a DM
    3. Press + and choose Pay option
    4. Enter any amount in USD and go Next
    5. Press Pay with Expensify. A validate page will show
    6. Refresh
    7. Go back
    8. Verify that your are navigated back to the pay confirmation page
    9. Press Pay with Expensify. A validate page will show
    10. Now enter correct validation code
    11. Verify that you are navigated back to the pay confirmation page after validating

    Do we agree 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions