Clicking the "Set it up myself" link on the AI onboarding page takes you to the 404 page instead of the team home.
What happens: skipOnboarding ends the onboarding stage before navigating away. Ending the stage flips the page's own notAvailable guard, and the guard's watcher replaces the route with the 404 page while the navigation to the team home is still in flight. The page effectively 404s itself on the way out.
The unit tests didn't catch it because the ux store mock never actually flipped isOnboardingIntake, so the guard never reacted in tests.
Might be worth navigating away first and only ending the stage once the page is unmounted, so the guard has nothing left to react on.
Clicking the "Set it up myself" link on the AI onboarding page takes you to the 404 page instead of the team home.
What happens:
skipOnboardingends the onboarding stage before navigating away. Ending the stage flips the page's ownnotAvailableguard, and the guard's watcher replaces the route with the 404 page while the navigation to the team home is still in flight. The page effectively 404s itself on the way out.The unit tests didn't catch it because the ux store mock never actually flipped
isOnboardingIntake, so the guard never reacted in tests.Might be worth navigating away first and only ending the stage once the page is unmounted, so the guard has nothing left to react on.