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

[PAID] [$250] Settings - A new user can navigate away from the onboarding modal using an URL #45260

Closed
1 of 6 tasks
izarutskaya opened this issue Jul 11, 2024 · 18 comments
Closed
1 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@izarutskaya
Copy link

izarutskaya commented Jul 11, 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.6-0
Reproducible in staging?: Y
Reproducible in production?: Y
Found when executing PR : #44536
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

  1. Open the app
  2. Log in with a new Gmail user
  3. Open https://staging.new.expensify.com/settings/profile
    URL "in New Expensify"
  4. Tap on the "<" button to navigate back

Expected Result:

The onboarding modal should be showing when opening a different URL until the onboarding is completed.

Actual Result:

A new user can navigate away from the onboarding modal using an URL. The onboarding can't be skipped as its shown again when navigating back from the opened page.

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6538697_1720686283088.ICOJ3210.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a6951dbdae386a31
  • Upwork Job ID: 1812979942020839461
  • Last Price Increase: 2024-07-15
  • Automatic offers:
    • nkdengineer | Contributor | 103158696
Issue OwnerCurrent Issue Owner: @strepanier03
@izarutskaya izarutskaya added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 11, 2024
Copy link

melvin-bot bot commented Jul 11, 2024

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

@izarutskaya
Copy link
Author

We think this issue might be related to the #collect project.

@strepanier03
Copy link
Contributor

Able to repro this using a Pixel 6 pro on Native.

@melvin-bot melvin-bot bot removed the Overdue label Jul 15, 2024
@strepanier03 strepanier03 added External Added to denote the issue can be worked on by a contributor Overdue labels Jul 15, 2024
@melvin-bot melvin-bot bot changed the title Settings - A new user can navigate away from the onboarding modal using an URL [$250] Settings - A new user can navigate away from the onboarding modal using an URL Jul 15, 2024
Copy link

melvin-bot bot commented Jul 15, 2024

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

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

melvin-bot bot commented Jul 15, 2024

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

@nkdengineer
Copy link
Contributor

Proposal

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

A new user can navigate away from the onboarding modal using an URL. The onboarding can't be skipped as its shown again when navigating back from the opened page.

What is the root cause of that problem?

We have a useEffect to navigate to the onboarding flow if it's not complete but this only triggers when isLoadingApp is changed and isLoadingApp is only changed after OpenApp API is called. So when we open the deep link and we already login, we navigate to the deep link page.

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

For the web, when we access via deep link the page is reloaded and the useEffect is triggered and the bug doesn't happen.

For natives, we have the logic to listen to the deep link here. We can navigate to the onboarding flow in the openReportFromDeepLink function if it's not completed here

if (isAuthenticated) {
    Welcome.isOnboardingFlowCompleted({onNotCompleted: () => Navigation.navigate(ROUTES.ONBOARDING_ROOT)});
    return;
}

App/src/libs/actions/Report.ts

Lines 2598 to 2599 in fb9ce79

if (isAuthenticated) {
return;

What alternative solutions did you explore? (Optional)

NA

Result

Screen.Recording.2024-07-16.at.15.16.08.mov

@Ollyws
Copy link
Contributor

Ollyws commented Jul 17, 2024

@nkdengineer's proposal LGTM.
🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Jul 17, 2024

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

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

melvin-bot bot commented Jul 17, 2024

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

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jul 25, 2024
@melvin-bot melvin-bot bot changed the title [$250] Settings - A new user can navigate away from the onboarding modal using an URL [HOLD for payment 2024-08-01] [$250] Settings - A new user can navigate away from the onboarding modal using an URL Jul 25, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 25, 2024
Copy link

melvin-bot bot commented Jul 25, 2024

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

Copy link

melvin-bot bot commented Jul 25, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.11-5 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-08-01. 🎊

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

Copy link

melvin-bot bot commented Jul 25, 2024

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:

  • [@Ollyws] The PR that introduced the bug has been identified. Link to the PR:
  • [@Ollyws] 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:
  • [@Ollyws] A discussion in #expensify-bugs 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:
  • [@Ollyws] Determine if we should create a regression test for this bug.
  • [@Ollyws] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@strepanier03] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@Ollyws
Copy link
Contributor

Ollyws commented Jul 30, 2024

BugZero Checklist:

  • The PR that introduced the bug has been identified. Link to the PR:

#35019

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

867be15#r144801956

  • A discussion in #expensify-bugs 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:

N/A

  • Determine if we should create a regression test for this bug.

Yes

  • If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.

Regression Test Proposal

1. Open the app
2. Login with a new Gmail user
3. Open /settings/profile
4. Verify that: The onboarding modal should be showing when opening a different URL until the onboarding is completed.

Do we agree 👍 or 👎

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 31, 2024
@Ollyws
Copy link
Contributor

Ollyws commented Aug 1, 2024

Requested in ND.

@strepanier03
Copy link
Contributor

strepanier03 commented Aug 1, 2024

Payment Summary

@JmillsExpensify - Request incoming.

@strepanier03
Copy link
Contributor

Working on reg test gh now.

@JmillsExpensify
Copy link

$250 approved for @Ollyws

@strepanier03
Copy link
Contributor

Thanks all, this is paid and reg test is done, closing out!

@github-project-automation github-project-automation bot moved this from Polish to Done in [#whatsnext] #wave-collect Aug 1, 2024
@strepanier03 strepanier03 changed the title [HOLD for payment 2024-08-01] [$250] Settings - A new user can navigate away from the onboarding modal using an URL [PAID] [$250] Settings - A new user can navigate away from the onboarding modal using an URL Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Status: Done
Development

No branches or pull requests

6 participants