Skip to content

Comments

fix #659: advance after new user onboarding#670

Merged
shashilo merged 4 commits intodevelopfrom
hector/659-advance-after-new-user-onboarding
Nov 7, 2025
Merged

fix #659: advance after new user onboarding#670
shashilo merged 4 commits intodevelopfrom
hector/659-advance-after-new-user-onboarding

Conversation

@suzuhe481
Copy link
Contributor

Description

Before:

A new user wasn't able to complete the onboarding form. They would remain on the last page of the form after clicking Find My Perfect Gift.

After:

Middleware was preventing the user from navigating to the /dashboard page when submitting the form. On submit, router.push('/dashboard') gets called. The middleware detects this as the user not being on the /onboarding page, which then redirects them back to /onboarding.
Adds new query parameters to router.push('/dashboard?onboardingCompleted=true') which gets detected by a new if statement in the middleware, which detects that a user has completed onboarding for the first time, then correctly redirects them to the /dashboard.
Also added use client to the Onboarding component since it doesn't seem like it should be a server component.

Closes #659

Additional information

This form is a component located in app/onboarding/onboarding-form.tsx. If it'll be a client side component, it should eventually be moved into the components folder.

Pre-submission checklist

  • Code builds and passes locally
  • PR title follows Conventional Commit format (e.g. test #001: created unit test for __ component)
  • Request reviews from the Peer Code Reviewers and Senior+ Code Reviewers groups
  • Thread has been created in Discord and PR is linked in gis-code-questions

@vercel
Copy link

vercel bot commented Nov 7, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
elecretanta Ready Ready Preview Comment Nov 7, 2025 3:47pm
elecretanta-storybook Ready Ready Preview Comment Nov 7, 2025 3:47pm
elecretanta-unit-test Ready Ready Preview Comment Nov 7, 2025 3:47pm

@shashilo shashilo requested review from a team and shashilo and removed request for a team, bethanyann, nickytonline and shashilo November 7, 2025 03:50
@shashilo shashilo merged commit d521f05 into develop Nov 7, 2025
4 checks passed
@shashilo shashilo deleted the hector/659-advance-after-new-user-onboarding branch November 7, 2025 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doesn't advanced to the home screen after filling out onboarding steps

3 participants