Skip to content

[$250][Back nav] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site #58383

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

Open
2 of 8 tasks
jponikarchuk opened this issue Mar 13, 2025 · 33 comments
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 Reviewing Has a PR in review

Comments

@jponikarchuk
Copy link

jponikarchuk commented Mar 13, 2025

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: V9.1.12-5
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N
Email or phone of affected tester (no customers): N
Issue reported by: Applause Internal Team
Device used: Redminote 10s android 13
App Component: User Settings

Action Performed:

  1. Open a new tab and go to https://staging.new.expensify.com/home
  2. Login with an account
  3. Perform a 4 finger gesture
  4. Tap device back button

Expected Result:

On tapping device back button to close troubleshoot box from LHN, troubleshoot box must be closed.

Actual Result:

On tapping device back button to close troubleshoot box from LHN, user navigated out of the site.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6769744_1741875111681.Screenrecorder-2025-03-13-19-33-05-338.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021900248434420942939
  • Upwork Job ID: 1900248434420942939
  • Last Price Increase: 2025-03-13
  • Automatic offers:
    • nyomanjyotisa | Contributor | 106559557
Issue OwnerCurrent Issue Owner: @hungvu193
@jponikarchuk jponikarchuk added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Mar 13, 2025
Copy link

melvin-bot bot commented Mar 13, 2025

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.

@jponikarchuk jponikarchuk changed the title LHN - On tapping device back button to close trouble shoot box from LHN, navigated out of site LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site Mar 13, 2025
@Themoonalsofall
Copy link
Contributor

Themoonalsofall commented Mar 13, 2025

🚨 Edited by proposal-police: This proposal was edited at 2025-03-13 16:05:59 UTC.

Proposal

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

LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site

What is the root cause of that problem?

We don't pass props shouldHandleNavigationBack in this Modal

<Modal
isVisible={!!isTestToolsModalOpen}
type={CONST.MODAL.MODAL_TYPE.CENTERED_SMALL}
onClose={toggleTestToolsModal}
>

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

We should add props shouldHandleNavigationBack={isMobileChrome()}

Similar we do

shouldHandleNavigationBack={Browser.isMobileChrome()}

shouldHandleNavigationBack={isMobileChrome()}

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

Navigation bug, no need to tests

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.

@nyomanjyotisa
Copy link
Contributor

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

LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site

What is the root cause of that problem?

We don't pass the shouldHandleNavigationBack prop to this Modal

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

Pass shouldHandleNavigationBack here without isMobileChrome() since the issue is on Desktop web as well

And it will cause another issue where the modal will appear again after we close/goback, because we use toggleTestToolsModal to the onClose prop

We should create closeTestToolsModal function and pass it to the onClose instead of using toggle function, like we did in all other places

function closeTestToolsModal() {
    if (isTestToolsModalOpen) {
        Onyx.set(ONYXKEYS.IS_TEST_TOOLS_MODAL_OPEN, false);
    }
}
        <Modal
            isVisible={!!isTestToolsModalOpen}
            type={CONST.MODAL.MODAL_TYPE.CENTERED_SMALL}
            onClose={closeTestToolsModal}
            shouldHandleNavigationBack
        >

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

None

What alternative solutions did you explore? (Optional)

@garrettmknight garrettmknight added the External Added to denote the issue can be worked on by a contributor label Mar 13, 2025
@melvin-bot melvin-bot bot changed the title LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site [$250] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site Mar 13, 2025
Copy link

melvin-bot bot commented Mar 13, 2025

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 13, 2025
Copy link

melvin-bot bot commented Mar 13, 2025

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

@mallenexpensify mallenexpensify changed the title [$250] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site [$250][Back nav] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site Mar 13, 2025
@mallenexpensify mallenexpensify moved this from MEDIUM to LOW in [#whatsnext] #quality Mar 13, 2025
@hungvu193
Copy link
Contributor

I'll review proposals today

@hungvu193
Copy link
Contributor

hungvu193 commented Mar 14, 2025

Thanks @nyomanjyotisa This issue doesn't happen on the Desktop, I don't think we have a back button on Desktop. Also, we're reusing toggleTestToolsModal to toggle the TestToolModal in other places. I really don't want to remove it [here](

onClose={toggleTestToolsModal}
) in order to fix a bug that we introduce to fix another bug. That's confused 🤕

I'm aligned with @Themoonalsofall 's proposal here, as it has the correct RCA and straightforward solution.
🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Mar 14, 2025

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

@nyomanjyotisa
Copy link
Contributor

nyomanjyotisa commented Mar 14, 2025

@hungvu193 I mentioned desktop web / MacOS chrome

Image

The issue is on Desktop web/MacOS chrome as well:

New-Tab.mp4

MacOS chrome also checked on OP:

Image

@hungvu193
Copy link
Contributor

@nyomanjyotisa OOps my bad.

The issue is on Desktop web/MacOS chrome as well:

This makes sense and we also need to address this bug as well.

@blimpich Please hold on to the assignment. I need to revise my review

@hungvu193
Copy link
Contributor

Let's go with @nyomanjyotisa 's proposal here.

There's a similar problem with Search Dialog (Command + K shortcut). Please fix it as well. Ty

@blimpich All yours

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

melvin-bot bot commented Mar 17, 2025

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

Copy link

melvin-bot bot commented May 15, 2025

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

@hungvu193
Copy link
Contributor

Little bump @nyomanjyotisa for the above comment. That's OK if you don't think you can fix those issues, we can open this issue for proposals again.

@blimpich blimpich changed the title [Due for payment 2025-05-22] [$250][Back nav] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site [$250][Back nav] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site May 19, 2025
@blimpich blimpich removed the Awaiting Payment Auto-added when associated PR is deployed to production label May 19, 2025
@nyomanjyotisa
Copy link
Contributor

I will raise the fix PR soon

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels May 20, 2025
@melvin-bot melvin-bot bot changed the title [$250][Back nav] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site [Due for payment 2025-05-27] [$250][Back nav] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site May 20, 2025
Copy link

melvin-bot bot commented May 20, 2025

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

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

Copy link

melvin-bot bot commented May 20, 2025

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

@blimpich blimpich added Daily KSv2 and removed Awaiting Payment Auto-added when associated PR is deployed to production Weekly KSv2 labels May 20, 2025
@blimpich blimpich changed the title [Due for payment 2025-05-27] [$250][Back nav] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site [$250][Back nav] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site May 20, 2025
@garrettmknight garrettmknight changed the title [$250][Back nav] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site [Awaiting payment 2025-05-30] [$250][Back nav] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site May 20, 2025
@garrettmknight garrettmknight added Awaiting Payment Auto-added when associated PR is deployed to production and removed Awaiting Payment Auto-added when associated PR is deployed to production labels May 20, 2025
@garrettmknight garrettmknight changed the title [Awaiting payment 2025-05-30] [$250][Back nav] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site [$250][Back nav] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site May 20, 2025
Copy link

melvin-bot bot commented May 28, 2025

@hungvu193 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@melvin-bot melvin-bot bot added the Overdue label May 28, 2025
@garrettmknight
Copy link
Contributor

@hungvu193 can you complete the checklist and I'll pay out?

@garrettmknight garrettmknight added the Awaiting Payment Auto-added when associated PR is deployed to production label May 28, 2025
@garrettmknight garrettmknight changed the title [$250][Back nav] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site [Awating payment] [$250][Back nav] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site May 28, 2025
@hungvu193
Copy link
Contributor

@hungvu193 can you complete the checklist and I'll pay out?

Oh not yet. The PR was reverted and contributor is working on a fix here

@melvin-bot melvin-bot bot removed the Overdue label May 28, 2025
@garrettmknight garrettmknight changed the title [Awating payment] [$250][Back nav] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site [$250][Back nav] LHN - On tapping device back button to close troubleshoot box from LHN, navigated out of site May 28, 2025
@garrettmknight garrettmknight added Reviewing Has a PR in review and removed Awaiting Payment Auto-added when associated PR is deployed to production labels May 28, 2025
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 Reviewing Has a PR in review
Projects
Status: LOW
Development

No branches or pull requests

7 participants