Skip to content

[$250] "Migrated User Welcome" modal URL has no response #61100

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 Apr 29, 2025 · 12 comments
Open
2 of 8 tasks

[$250] "Migrated User Welcome" modal URL has no response #61100

jponikarchuk opened this issue Apr 29, 2025 · 12 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 Reviewing Has a PR in review Weekly KSv2

Comments

@jponikarchuk
Copy link

jponikarchuk commented Apr 29, 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.33-8
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: #60719
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Windows 10 /Chrome, Samsung Galaxy s10/ Chrome
App Component: Other

Action Performed:

  1. Navigate to staging.new.expensify.com
  2. Log in to any account
  3. Change the URL to https://staging.new.expensify.com/onboarding/migrated-user-welcome

Expected Result:

The Migrated User Welcome Modal should be visible.

Actual Result:

Migrated User Welcome modal URL has no response

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021919413824317356860
  • Upwork Job ID: 1919413824317356860
  • Last Price Increase: 2025-05-05
  • Automatic offers:
    • huult | Contributor | 107275018
Issue OwnerCurrent Issue Owner: @francoisl
@jponikarchuk jponikarchuk added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Apr 29, 2025
Copy link

melvin-bot bot commented Apr 29, 2025

Triggered auto assignment to @slafortune (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 May 5, 2025

@slafortune Huh... This is 4 days overdue. Who can take care of this?

@slafortune slafortune added the External Added to denote the issue can be worked on by a contributor label May 5, 2025
@melvin-bot melvin-bot bot changed the title "Migrated User Welcome" modal URL has no response [$250] "Migrated User Welcome" modal URL has no response May 5, 2025
Copy link

melvin-bot bot commented May 5, 2025

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

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

melvin-bot bot commented May 5, 2025

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

@huult
Copy link
Contributor

huult commented May 6, 2025

Proposal

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

"Migrated User Welcome" modal URL has no response

What is the root cause of that problem?

This condition prevents the Migrated User Welcome modal from being displayed. It redirects to lastVisitedPath if the user accesses onboarding/migrated-user-welcome after isOnboardingCompleted and authenticated are both true.

if (path?.includes(ROUTES.MIGRATED_USER_WELCOME_MODAL) && lastVisitedPath && isOnboardingCompleted && authenticated) {
return getAdaptedStateFromPath(lastVisitedPath, linkingConfig.config);
}

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

To resolve this issue, we just need to navigate to the Migrated User Welcome modal after accessing onboarding/migrated-user-welcome, while keeping the initial route as lastVisitedPath to preserve the exact last page.

1 we navigate to the Migrated User Welcome modal after accessing onboarding/migrated-user-welcome,

if (path?.includes(ROUTES.MIGRATED_USER_WELCOME_MODAL) && lastVisitedPath && isOnboardingCompleted && authenticated) {
return getAdaptedStateFromPath(lastVisitedPath, linkingConfig.config);
}

update to

  if (path?.includes(ROUTES.MIGRATED_USER_WELCOME_MODAL) && lastVisitedPath && isOnboardingCompleted && authenticated) {
      InteractionManager.runAfterInteractions(() => { // Delay to wait until `initialState` is updated
          Navigation.navigate(ROUTES.MIGRATED_USER_WELCOME_MODAL);
      });

      return getAdaptedStateFromPath(lastVisitedPath, linkingConfig.config);
  }

2 Update condition to return to keep last page

if ((hasBeenAddedToNudgeMigration && !dismissedProductTraining?.migratedUserWelcomeModal) || route?.params?.isNavigationRoot === 'true') {

update to

     if ((hasBeenAddedToNudgeMigration && !dismissedProductTraining?.migratedUserWelcomeModal) || route?.params?.isNavigationRoot === 'true') { // update this
            return;
        }

Test branch

This test branch includes all my elements to fix this issue

Screen.Recording.2025-05-06.at.12.11.00.mp4

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)

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.

Copy link

melvin-bot bot commented May 9, 2025

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

@melvin-bot melvin-bot bot added the Overdue label May 9, 2025
@allroundexperts
Copy link
Contributor

@slafortune @jponikarchuk Is this a bug? If onboarding was completed, then opening this link shouldn't show the modal. Do you agree?

@melvin-bot melvin-bot bot removed the Overdue label May 11, 2025
@huult
Copy link
Contributor

huult commented May 12, 2025

@allroundexperts @slafortune @jponikarchuk I think we should be able to see the Migrated User Welcome Modal again. I want to revisit its content in case I forgot something and would like to watch it again.

@jponikarchuk
Copy link
Author

@allroundexperts According to step 2 of this PR it should be possible to see the Migrated User Welcome Modal again.

@allroundexperts
Copy link
Contributor

Okay. Given that, @huult's proposal looks good to me. Let's go with them.

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented May 12, 2025

Triggered auto assignment to @francoisl, 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 May 12, 2025
Copy link

melvin-bot bot commented May 12, 2025

📣 @huult 🎉 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 the Reviewing Has a PR in review label May 13, 2025
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels May 13, 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 Reviewing Has a PR in review Weekly KSv2
Projects
Status: No status
Development

No branches or pull requests

5 participants