Skip to content

Fix onboarding and auth routing for user journeys#65

Merged
Kvnbbg merged 1 commit intomainfrom
techandstream/fix-multiple-user-journeys/2026-04-06/13-20-17
Apr 6, 2026
Merged

Fix onboarding and auth routing for user journeys#65
Kvnbbg merged 1 commit intomainfrom
techandstream/fix-multiple-user-journeys/2026-04-06/13-20-17

Conversation

@Kvnbbg
Copy link
Copy Markdown
Owner

@Kvnbbg Kvnbbg commented Apr 6, 2026

Motivation

  • Users experienced confusing or broken navigation during onboarding and auth state hydration because the router started on /home and redirects did not account for an unknown auth state.
  • The welcome CTA led guests into a protected route, creating redirect loops and poor first-run UX.

Description

  • Set the router initialLocation to /welcome to make the onboarding entry point deterministic for first-time and returning users.
  • Added handling for AuthStatus.unknown in the router redirect so the app stays on /welcome while auth state hydrates.
  • Updated redirect logic to send unauthenticated users to /login for protected routes and to send authenticated users away from /welcome, /login, and /register to /home.
  • Changed the WelcomeScreen CTA to navigate to login instead of home to avoid immediate protected-route navigation for guests.

Testing

  • Attempted to run flutter test, but the Flutter SDK is not available in the execution environment (flutter: command not found), so widget/unit tests could not be executed.
  • Performed a static check of the web JS bundle with node --check web/app.js, which completed without syntax errors.
  • Verified file changes and inspected the updated Dart sources via file content listings to confirm the applied edits.

Codex Task

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 6, 2026

Deployment failed with the following error:

Hobby accounts are limited to daily cron jobs. This cron expression (0 * * * *) would run more than once per day. Upgrade to the Pro plan to unlock all Cron Jobs features on Vercel.

Learn More: https://vercel.link/3Fpeeb1

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@Kvnbbg Kvnbbg merged commit f021f49 into main Apr 6, 2026
3 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant