Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/steven+yoto vsr personal info #24

Merged
merged 49 commits into from
Feb 25, 2024

Conversation

2s2e
Copy link
Contributor

@2s2e 2s2e commented Feb 20, 2024

Tracking Info

Resolves #9

Changes

-Added a MongoDB schema for storing VSR form submissions
-Set up POST route for VSR
-Added front-end for submitting a VSR
-Added front-end side validation functions (currently unused)

Testing

-Front-end validation functions were tested using unit tests in frontend/tests
-Rest of the features were tested end-to-end:

-Load up both the front end and the back end
-Go to http://localhost:3000/vsr
-Leaving out any required field will result in the field failing to submit
-Providing invalid data, such as inputting strings for age, will result in an error from the back end.
-Submitting a valid form will have it show up in the MongoDB database

This was done various times, with different inputs and leaving different fields empty.

Note that MongoDB may take a few moments to update.

  • TODO

Confirmation of Change

Missing fields
image
image
Error upon invalid input
image

Successful form submission

image image image image

2s2e and others added 30 commits January 18, 2024 16:53
Copy link
Collaborator

@benjaminJohnson2204 benjaminJohnson2204 left a comment

Choose a reason for hiding this comment

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

LGTM, I made some minor fixes (mostly CSS) but overall great job!

Copy link
Contributor

@sydneyzhang18 sydneyzhang18 left a comment

Choose a reason for hiding this comment

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

lgtm! I stress tested a lot and found some bugs that all look good now

Copy link
Contributor

@holychickencow holychickencow left a comment

Choose a reason for hiding this comment

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

For the most part it looks good, I have few notes that I'm not sure need to be fixed but I will leave it here case.

  • You are allowed to be "single" but also have a spouse name.
  • When you enter that you have 100 children, it states "This field must be a number no greater than 100," even though 100 should be valid.

Aside from these it looks good!

@benjaminJohnson2204
Copy link
Collaborator

Thanks @holychickencow , nice catches! I just pushed some fixes to address your comments, we're good to merge now!

@benjaminJohnson2204 benjaminJohnson2204 merged commit 3750b82 into main Feb 25, 2024
4 checks passed
@benjaminJohnson2204 benjaminJohnson2204 deleted the feature/steven+yoto-vsr-personal-info branch February 25, 2024 07:54
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.

VSR Form - Page 1 (Personal Information)
5 participants