Skip to content

Create student user at end of new signup flow#61616

Merged
TurnerRiley merged 29 commits into
stagingfrom
new-signup-create-student-user
Oct 14, 2024
Merged

Create student user at end of new signup flow#61616
TurnerRiley merged 29 commits into
stagingfrom
new-signup-create-student-user

Conversation

@TurnerRiley

@TurnerRiley TurnerRiley commented Oct 8, 2024

Copy link
Copy Markdown
Contributor

Creates student user entry (and associated parent email preference entry if applicable) at the end of the new signup flow.

New student fills in all fields with a parent opting in to receiving emails

studentallfields

User entry:
studentallfields db entry

Parent EmailPreference entry:
studentallfields parent email pref

New student with a parent opting out of receiving emails

studentparentoptout

User entry:
studentparentoptout db

Parent EmailPreference entry:
studentparentoptout parent email entry

New student without a parent filling in only required fields (name, age, state)

minfields

User entry:
minfields db

Links

Jira ticket: here

Testing story

Local testing and adding unit tests.

@TurnerRiley TurnerRiley changed the base branch from staging to new-sign-up-bug-cleanup October 8, 2024 20:10
Comment on lines -19 to -26
import {
IS_PARENT_SESSION_KEY,
PARENT_EMAIL_SESSION_KEY,
PARENT_EMAIL_OPT_IN_SESSION_KEY,
USER_AGE_SESSION_KEY,
USER_STATE_SESSION_KEY,
USER_GENDER_SESSION_KEY,
} from './signUpFlowConstants';

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

All of these fields are set on this page so it didn't really make sense to use sessionStorage for them

@TurnerRiley TurnerRiley requested a review from a team October 10, 2024 20:25

@hannahbergam hannahbergam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks right to me! And we still have a bunch of front end validation to ensure those fields don't get sent blank in the fetch right?

@TurnerRiley

Copy link
Copy Markdown
Contributor Author

This looks right to me! And we still have a bunch of front end validation to ensure those fields don't get sent blank in the fetch right?

Yep the button isn't enabled until the required fields are filled in!

Base automatically changed from new-sign-up-bug-cleanup to staging October 11, 2024 17:00

@hannahbergam hannahbergam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks right to me! Thanks for these tests!

@TurnerRiley TurnerRiley merged commit bd1d278 into staging Oct 14, 2024
@TurnerRiley TurnerRiley deleted the new-signup-create-student-user branch October 14, 2024 14:10
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