Skip to content
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

Add onboarding complete check on login #1128

Open
John-Paul-Larkin opened this issue Oct 15, 2024 · 6 comments
Open

Add onboarding complete check on login #1128

John-Paul-Larkin opened this issue Oct 15, 2024 · 6 comments

Comments

@John-Paul-Larkin
Copy link
Member

Context

We are introducing a new onboarding form to collect user metrics.
All users will be required to input this data.

Expected Behavior

A new field should be added to the user table to track whether a user has completed the onboarding process.

Task:

  • Add a new Date field in the user table with the name "onboardingCompletedAt".

  • This field should be set with the current timestamp when the user finishes the final step of the onboarding process.

  • On login, check if this field is null. If it is, redirect the user to the onboarding form and prevent them from accessing the site until the form is completed.

  • Additionally, we would like to add a short message, explaining to existing users why we want to gather this information. This will not be necessary for new users. We should perform a check on the "createdAt" timestamp on the user table and only display the modal if the date is earlier than the introduction of the onboarding form.

  • For now, just add a placeholder for the message, we will add it later.

Additional info

The onboarding form is found at

app>(app)>alpha>additional-details

Any questions feel free to ask.

Connected issues
#1003
#1004
#1005
#1006
#1008
#1009

@arbazahmed07
Copy link

hey can you please assign me this @John-Paul-Larkin

@John-Paul-Larkin
Copy link
Member Author

Thanks @arbazahmed07
I assigned you.

@arbazahmed07
Copy link

Thanks @arbazahmed07 I assigned you.

hey |
how to update the dot env file @John-Paul-Larkin

@John-Paul-Larkin
Copy link
Member Author

The readme contains all the information you need.
Have a look here:
https://github.com/codu-code/codu?tab=readme-ov-file#environment-variables

@arbazahmed07
Copy link

The readme contains all the information you need. Have a look here: https://github.com/codu-code/codu?tab=readme-ov-file#environment-variables

im getting some errors

@John-Paul-Larkin
Copy link
Member Author

Hi @arbazahmed07
Will I un-assign you from this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants