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

Weston/Frontend Contact Request Form #35

Merged
merged 4 commits into from
Jan 27, 2025
Merged

Weston/Frontend Contact Request Form #35

merged 4 commits into from
Jan 27, 2025

Conversation

westonz7042
Copy link
Contributor

Tracking Info

Resolves #17

Changes

Added a frontend page for contact requests. Has frontend error validation for all fields (except message) and uses the previously made backend route for contact requests. note - phone number must be "real", not just 1234567890, used npm package phone which does more than just check for digits and length.
image

Testing

Tested the error validation. Contact requests are successful if fields are valid.
image
image
image
image
image

Confirmation of Change

Can access at http://localhost:3000/contact

@westonz7042 westonz7042 requested a review from mraysu as a code owner January 25, 2025 22:09
@mraysu mraysu requested a review from PoliteUnicorn January 26, 2025 22:57
Copy link
Collaborator

@mraysu mraysu left a comment

Choose a reason for hiding this comment

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

LGTM!! 🎉 Can you make sure to reflect the updates to .env variables in your PR comment and update the .env file on our drive

@westonz7042
Copy link
Contributor Author

Added FRONTEND_ORIGIN to backend .env file.

Copy link

@PoliteUnicorn PoliteUnicorn left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@mraysu mraysu merged commit 41acd0a into main Jan 27, 2025
2 checks passed
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.

Frontend Create Contact Form
3 participants