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

[$250] Hybrid app - "Welcome to Expensify" modal when signing into the existing account on a new device. #49611

Closed
1 of 6 tasks
m-natarajan opened this issue Sep 23, 2024 · 38 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Monthly KSv2 Not a priority

Comments

@m-natarajan
Copy link

m-natarajan commented Sep 23, 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.39-0
Reproducible in staging?: Y
Reproducible in production?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @puneetlath
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1726864963819969

Action Performed:

  1. Go to staging.new.expensify.com and create an account (Any other platform)
  2. Signin with the same credentials on Hybrid app
  3. Tap Try New Expensify from menu

Expected Result:

No welcome modal as user already signed in another platform

Actual Result:

"Welcome to Expensify" modal when signing in

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

Add any screenshot/video evidence

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021838490385865012073
  • Upwork Job ID: 1838490385865012073
  • Last Price Increase: 2025-01-28
Issue OwnerCurrent Issue Owner: @alitoshmatov
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 23, 2024
@puneetlath puneetlath added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Sep 23, 2024
Copy link

melvin-bot bot commented Sep 23, 2024

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

@bfitzexpensify
Copy link
Contributor

Agree that the Welcome to Expensify modal shouldn't appear in this scenario. Adding the external label.

@bfitzexpensify bfitzexpensify added the External Added to denote the issue can be worked on by a contributor label Sep 24, 2024
@melvin-bot melvin-bot bot changed the title Hybrid app - "Welcome to Expensify" modal when signing into the existing account on a new device. [$250] Hybrid app - "Welcome to Expensify" modal when signing into the existing account on a new device. Sep 24, 2024
Copy link

melvin-bot bot commented Sep 24, 2024

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

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

melvin-bot bot commented Sep 24, 2024

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

@klajdipaja
Copy link
Contributor

Proposal

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

The user has already logged into the New Expensify on a web browser but when he logs into the hybrid app he is shown the welcome to new Expensify modal even though he has already been using it in the web.

What is the root cause of that problem?

We have not taken into account that the user might login first through the web and then in the app. The functions that check if the user should see the welcome modal use the onyx key nvp_tryNewDot.classicRedirect.completedHybridAppOnboarding which is only set when the user logs on the native app on the first time.

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

We can use the nvp_onboarding.hasCompletedGuidedSetupFlow flag from onyx to detect that the user has already used the NewDot. This flag when an account is used in the web for the first time is set to to true but on the native app is set to true only once the guided welcome flow has completed. If we add this into the isFirstTimeHybridAppUser function in https://github.com/Expensify/App/blob/main/src/libs/actions/Welcome/index.ts we can make sure that the welcome message does not show.
The first check in that function should be the following:

   const hasCompletedGuidedSetupFlow = !(Array.isArray(onboarding) || onboarding?.hasCompletedGuidedSetupFlow === undefined) && onboarding?.hasCompletedGuidedSetupFlow
        if (hasCompletedGuidedSetupFlow) {
            return;
        }


We can also put this block before isFirstTimeHybridAppUser is called:

function handleHybridAppOnboarding() {
    if (!NativeModules.HybridAppModule) {
        return;
    }
       const hasCompletedGuidedSetupFlow = !(Array.isArray(onboarding) || onboarding?.hasCompletedGuidedSetupFlow === undefined) && onboarding?.hasCompletedGuidedSetupFlow
        if (hasCompletedGuidedSetupFlow) {
            return;
        }
    

What alternative solutions did you explore? (Optional)

Copy link

melvin-bot bot commented Sep 27, 2024

@bfitzexpensify, @alitoshmatov Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Sep 27, 2024
Copy link

melvin-bot bot commented Oct 1, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Oct 1, 2024

@bfitzexpensify, @alitoshmatov Still overdue 6 days?! Let's take care of this!

@bfitzexpensify
Copy link
Contributor

Proposal ready for review in #49611 (comment) @alitoshmatov

Copy link

melvin-bot bot commented Oct 3, 2024

@bfitzexpensify, @alitoshmatov Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

@alitoshmatov
Copy link
Contributor

I couldn't reproduce it in our existing app. As far as I understand this is only happening in hybrid app(which I don't have much info about). But based on this C+ should get access soon.

@bfitzexpensify I am not sure what is the next step. If it is not an urgent issue I think we can hold till C+ get access and we can continue then

@melvin-bot melvin-bot bot removed the Overdue label Oct 6, 2024
Copy link

melvin-bot bot commented Oct 7, 2024

@bfitzexpensify @alitoshmatov this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@bfitzexpensify
Copy link
Contributor

If it is not an urgent issue I think we can hold till C+ get access and we can continue then

Agreed. Setting to weekly and starring myself to keep checking in on this. We can revisit once C+ have access

@melvin-bot melvin-bot bot added the Overdue label Oct 8, 2024
@bfitzexpensify bfitzexpensify added Weekly KSv2 and removed Daily KSv2 labels Oct 8, 2024
@melvin-bot melvin-bot bot removed the Overdue label Oct 8, 2024
Copy link

melvin-bot bot commented Oct 8, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@alitoshmatov
Copy link
Contributor

I'm not sure if anyone will run into this bug now in practice

I agree with this. I don't think this normal user will come across this issue

@melvin-bot melvin-bot bot removed the Overdue label Oct 27, 2024
@trjExpensify
Copy link
Contributor

@puneetlath I see you reported this one. Any thoughts on what I said here before we potentially close this out?

Copy link

melvin-bot bot commented Oct 29, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

1 similar comment
Copy link

melvin-bot bot commented Nov 5, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Nov 5, 2024
Copy link

melvin-bot bot commented Nov 12, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

1 similar comment
Copy link

melvin-bot bot commented Nov 19, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Nov 20, 2024
Copy link

melvin-bot bot commented Nov 20, 2024

This issue has not been updated in over 15 days. @bfitzexpensify, @alitoshmatov eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@melvin-bot melvin-bot bot removed the Overdue label Nov 20, 2024
Copy link

melvin-bot bot commented Nov 26, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

2 similar comments
Copy link

melvin-bot bot commented Dec 3, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Dec 10, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

Copy link

melvin-bot bot commented Dec 17, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@mvtglobally
Copy link

Issue not reproducible during KI retests. (Second week)

Copy link

melvin-bot bot commented Dec 24, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Dec 24, 2024
Copy link

melvin-bot bot commented Dec 31, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

4 similar comments
Copy link

melvin-bot bot commented Jan 7, 2025

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Jan 14, 2025

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Jan 21, 2025

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Jan 28, 2025

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Feb 3, 2025

@bfitzexpensify, @alitoshmatov, this Monthly task hasn't been acted upon in 6 weeks; closing.

If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead.

@melvin-bot melvin-bot bot closed this as completed Feb 3, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in [#whatsnext] #convert Feb 3, 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. External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Monthly KSv2 Not a priority
Projects
Development

No branches or pull requests

7 participants