Skip to content

Conversation

@DGoel1602
Copy link
Contributor

@DGoel1602 DGoel1602 commented Dec 30, 2025

Why

We need more information for forms such as toggles for dues and resubmissions

What

Changed backend to take in more information beyond just the formData. Also made sure to not hardcode these fields anywhere else other than the db schema so its trivial to add more of them in the future. Also returns all the info other than just formData and validator.

Create forms takes in:

  • formData
  • duesToggle
  • allowResubmissions
    Auto fills everything else

getForm gives:
gives all the fields in db + a zod validator string to be parsed

Test Plan

recording_2025-12-29_19.37.06.mp4

Copy link
Contributor

@DVidal1205 DVidal1205 left a comment

Choose a reason for hiding this comment

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

i love schemas

@DVidal1205 DVidal1205 added this pull request to the merge queue Dec 30, 2025
Merged via the queue into main with commit f0f9044 Dec 30, 2025
5 checks passed
@DVidal1205 DVidal1205 deleted the forms/more-info-formschema branch December 30, 2025 21:25
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.

3 participants