We are introducing a new onboarding form to collect user metrics.
All users will be required to input this data.
Expected Behavior
~A check should be performed when a user logs in, to see if they have completed the onboarding form.
If the "professionalOrStudent" field on the user table has an entry, it means that user has input data on the last of the three forms.
If the "professionalOrStudent" field does not have an entry, the user should be redirected to the "alpha/additional-details" route.~
Based on today's live stream discussion, it was suggested to add a new field 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.
Context
We are introducing a new onboarding form to collect user metrics. All users will be required to input this data.
Expected Behavior
~A check should be performed when a user logs in, to see if they have completed the onboarding form. If the "professionalOrStudent" field on the user table has an entry, it means that user has input data on the last of the three forms. If the "professionalOrStudent" field does not have an entry, the user should be redirected to the "alpha/additional-details" route.~
Based on today's live stream discussion, it was suggested to add a new field to the user table to track whether a user has completed the onboarding process.
Task:
-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.
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