Skip to content

feat(membership-registration): add form data parser#45

Open
bds165 wants to merge 2 commits into
mainfrom
feat/42-parse-registration-form-data
Open

feat(membership-registration): add form data parser#45
bds165 wants to merge 2 commits into
mainfrom
feat/42-parse-registration-form-data

Conversation

@bds165
Copy link
Copy Markdown
Contributor

@bds165 bds165 commented May 8, 2026

  • Added parseRegistrationFormData to parse raw membership registration FormData into a plain object.

Copy link
Copy Markdown
Collaborator

@WilliamTayNZ WilliamTayNZ left a comment

Choose a reason for hiding this comment

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

Parser looks good overall, helper functions are good.

There are just a few fields missing, see schema.prisma

Nitpick comment: prefer no empty line between potentialInvolvement and discordUsername

Good work.

@WilliamTayNZ
Copy link
Copy Markdown
Collaborator

also change isEligibleReturningUoaStudent to isConditionalReturningMember, we have decided to change the name of this field 👍

@bds165
Copy link
Copy Markdown
Contributor Author

bds165 commented May 12, 2026

Renamed isEligibleReturningUoaStudent to isConditionalReturningMember

Added:
primaryAffiliation
nonUoaExcerpt
nonUoaPitch

Removed blank line between potentialInvolvement and discordUsername

Copy link
Copy Markdown
Collaborator

@WilliamTayNZ WilliamTayNZ left a comment

Choose a reason for hiding this comment

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

good work!

return {
firstName: getTextField(formData, "firstName"),
lastName: getTextField(formData, "lastName"),
email: getTextField(formData, "email"),
Copy link
Copy Markdown
Collaborator

@WilliamTayNZ WilliamTayNZ May 14, 2026

Choose a reason for hiding this comment

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

one final thing: we should normalise the email and UPI to be lower case.

after that we can merge 👍

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