codu-code / codu

Codú's open-source codebase. A space for coders. Visit our community!
https://codu.co/
Apache License 2.0
140 stars 146 forks source link

Add onboarding complete check on login **UPDATED** #1011

Closed John-Paul-Larkin closed 1 month ago

John-Paul-Larkin commented 2 months ago

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

John-Paul-Larkin commented 2 months ago

@NiallJoeMaher Can you write a message about metrics for the existing users.

@NiallJoeMaher
Please review this updated issue