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

[HOLD][$250] mWeb - Onboarding - Onboarding modal can be dismissed using device´s back button. #57456

Closed
1 of 8 tasks
mitarachim opened this issue Feb 26, 2025 · 16 comments
Closed
1 of 8 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@mitarachim
Copy link

mitarachim commented Feb 26, 2025

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.1.6-0
Reproducible in staging?: Yes
Reproducible in production?: No
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/A
Email or phone of affected tester (no customers): ibellicotest+313@gmail.com
Issue reported by: Applause Internal Team
Device used: Motorola MotoG60 - Android 12 - Chrome
App Component: Other

Action Performed:

  1. Open the staging.new.expensify.com website.
  2. Sign up with a new account.
  3. When onboarding modal is displayed, use device´s back button. (More than once if no action is displayed)
  4. Check the onboarding modal behaviour with this action.

Expected Result:

User shouldn´t be able to dismiss the onboarding modal.

Actual Result:

Onboarding modal can be dismissed by using device´s back button. User lands on inbox and can continue to navigate the website normally.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6754575_1740543032891.Onboarding.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021894759193596113336
  • Upwork Job ID: 1894759193596113336
  • Last Price Increase: 2025-02-26
Issue OwnerCurrent Issue Owner: @ntdiary
@mitarachim mitarachim added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 DeployBlocker Indicates it should block deploying the API DeployBlockerCash This issue or pull request should block deployment labels Feb 26, 2025
Copy link

melvin-bot bot commented Feb 26, 2025

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

Copy link

melvin-bot bot commented Feb 26, 2025

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

Copy link

melvin-bot bot commented Feb 26, 2025

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Feb 26, 2025
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.

@Gonals Gonals added External Added to denote the issue can be worked on by a contributor and removed DeployBlocker Indicates it should block deploying the API labels Feb 26, 2025
@melvin-bot melvin-bot bot changed the title mWeb - Onboarding - Onboarding modal can be dismissed using device´s back button. [$250] mWeb - Onboarding - Onboarding modal can be dismissed using device´s back button. Feb 26, 2025
Copy link

melvin-bot bot commented Feb 26, 2025

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

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

melvin-bot bot commented Feb 26, 2025

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

@Gonals Gonals added Daily KSv2 Hourly KSv2 and removed Hourly KSv2 DeployBlockerCash This issue or pull request should block deployment Daily KSv2 labels Feb 26, 2025
@Gonals
Copy link
Contributor

Gonals commented Feb 26, 2025

I don't think we need to block deploy on this, as it is pretty minor and exclusive of Android Web

@Gonals Gonals added Daily KSv2 and removed Hourly KSv2 labels Feb 26, 2025
@OmarKoueifi
Copy link
Contributor

OmarKoueifi commented Feb 26, 2025

Proposal

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

When a user signs up, the onboarding modal appears. However, pressing the device’s back button on mWeb Android dismisses the modal, allowing the user to access the inbox and navigate the website. This leads to an unintended behavior where users can bypass the onboarding flow.

What is the root cause of that problem?

The current implementation does not intercept the back button press when the user is on the onboarding screen (/onboarding/purpose).

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

To prevent the modal from closing when on /onboarding/purpose, I will use the useFocusEffect hook from @react-navigation/native in OnboardingModalNavigator.tsx. This will:

  • Intercept the back button press.
  • Prevent navigation when the user is on the onboarding modal.
  • Allow default behavior when the user is on other screens.

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

What alternative solutions did you explore? (Optional)

NA

Screen recordings:

  • Reproducing the issue was different in my case
Screen.Recording.2025-02-26.at.10.47.32.AM.mov
  • With my proposed solution:
Screen.Recording.2025-02-26.at.10.48.28.AM.mov

Copy link
Contributor

⚠️ Thanks for your proposal. Please update it to follow the proposal template, as proposals are only reviewed if they follow that format (note the mandatory sections).

@ikevin127
Copy link
Contributor

@ntdiary
Copy link
Contributor

ntdiary commented Feb 27, 2025

I couldn't reproduce this issue on the latest main branch.

test1.mov

@michaelkwardrop michaelkwardrop changed the title [$250] mWeb - Onboarding - Onboarding modal can be dismissed using device´s back button. [HOLD][$250] mWeb - Onboarding - Onboarding modal can be dismissed using device´s back button. Feb 28, 2025
@michaelkwardrop
Copy link
Contributor

Looks like #57080 is slightly different, (this is before onboarding is completed, and that issue is unique to after onboarding is completed) but I bet they could be fixed together.

@michaelkwardrop
Copy link
Contributor

That being said, putting this on HOLD because it doesn't look like it's an issue anymore. I still don't have BrowserStack access, but I'll try to reproduce tomorrow using the Android phone at the bank.

@OmarKoueifi
Copy link
Contributor

I just pulled latest main, and I can't reproduce anymore

@michaelkwardrop
Copy link
Contributor

Great, let's close this out - sounds like it was fixed by a recent PR.

@michaelkwardrop michaelkwardrop removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 28, 2025
@michaelkwardrop
Copy link
Contributor

Closed the Upwork job, removed Help Wanted

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 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

6 participants