Skip to content

Remove param based onboarding navigation #2233

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

Merged
merged 2 commits into from
May 9, 2025

Conversation

jonkafton
Copy link
Contributor

@jonkafton jonkafton commented May 8, 2025

What are the relevant tickets?

Closes https://github.com/mitodl/hq/issues/7223

Description (What does it do?)

Removes the onboarding finish navigation configurable by a next param on the querystring as we always want to go to the dashboard screen.

Previously the backend /login and onboarding handling looked like:

We instead want the user to always go to the dashboard when they complete the onboarding, irrespective of their starting point prior to login.

How can this be tested?

The "Log In" button always links to the login endpoint with the current address as set on a next param. Starting from any page as a user that has not completed onboarding (manually set user.profile.completed_onboarding to False):

  • Log in.
  • Step through onboarding and hit "Finish".
  • Confirm that you are on the dashboard page at /dashboard.

Copy link

github-actions bot commented May 8, 2025

OpenAPI Changes

Show/hide No detectable change.

2 similar comments
Copy link

github-actions bot commented May 8, 2025

OpenAPI Changes

Show/hide No detectable change.

Copy link

github-actions bot commented May 8, 2025

OpenAPI Changes

Show/hide No detectable change.

@jonkafton jonkafton marked this pull request as draft May 8, 2025 17:02
@jonkafton jonkafton force-pushed the jk/7223-onboarding-navigation branch from f60b832 to 2dcdf4a Compare May 8, 2025 17:09
Copy link

github-actions bot commented May 8, 2025

OpenAPI Changes

Show/hide No detectable change.

@jonkafton jonkafton marked this pull request as ready for review May 8, 2025 17:25
@shanbady shanbady self-requested a review May 9, 2025 13:29
Copy link
Contributor

@shanbady shanbady left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works as intended 👍 . only comment is that it feels like we are removing functionality that may need to come back at some point but we can address that when it does

@jonkafton
Copy link
Contributor Author

works as intended 👍 . only comment is that it feels like we are removing functionality that may need to come back at some point but we can address that when it does

I agree, though perhaps while we have the special case that a user is not onboarded and redirected to the onboarding, we end up with a login redirect to a redirect to the onboarding redirect, to a reroute back to their starting point. As I understand it, the starting point is invalidated by the initial redirect to onboarding.

@jonkafton jonkafton merged commit baae86a into main May 9, 2025
13 checks passed
@jonkafton jonkafton deleted the jk/7223-onboarding-navigation branch May 9, 2025 14:59
This was referenced May 9, 2025
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.

2 participants