Implement User Contact Form#74
Merged
HimanshuHeda merged 1 commit intoHimanshuHeda:mainfrom Oct 16, 2025
Merged
Conversation
|
@kshri381 is attempting to deploy a commit to the Himanshu Heda's projects Team on Vercel. A member of the Team first needs to authorize it. |
👷 Deploy request for ziptales pending review.Visit the deploys page to approve it
|
Thanks for creating a PR for your Issue!
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a "Contact Us" feature, creating a direct communication channel for users to provide feedback, report bugs, or make general inquiries.
This PR implements the following:
A new standalone React component, ContactForm.tsx, built with TypeScript.
Form fields for Name, Email, and Message.
Client-side validation to ensure all fields are required and the email format is valid.
User-friendly status messages for sending, success, and error states.
The component is styled using Tailwind CSS for a clean and modern look.
Please be aware that there appears to be an existing, unrelated issue with the main site's header component. This external issue is causing layout problems that prevent the new contact form from being displayed correctly on the main development site.
The code in this PR is fully functional. I have deployed and tested the ContactForm component in isolation on a separate local environment, and it works perfectly as intended. The rendering issue you may see is not caused by the changes in this pull request.
To review this PR effectively, please consider testing the component on a clean page or be prepared to inspect the DOM to see the form.
How to Test
Pull down this branch.
Navigate to the page where the ContactForm component is rendered.
Test Empty State Validation: Click the "Submit Message" button without filling out any fields.
Expected: Error messages should appear below each required field.
Test Email Format Validation: Enter an invalid email format (e.g., "test@email").
Expected: An "Email address is invalid" error should appear.
Test Success State: Fill out all fields with valid data and click "Submit Message".
Expected: The button should change to "Sending...", and after a short delay, a success message should appear, and the form fields should clear.
##closed 72##