#26 Frontend: Add form validation to project creation - #154
Merged
Smartdevs17 merged 6 commits intoMar 27, 2026
Merged
Conversation
|
@OluwapelumiElisha is attempting to deploy a commit to the smartdevs17's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@OluwapelumiElisha Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
Author
|
Please kindly check the PR 🙏🙏🙏 |
Owner
|
merge conflicts. |
Contributor
Author
|
Please Kindly check i have solved the conflicts |
Owner
|
merge conflict chechk the header.tsx |
Contributor
Author
|
Done. thank you |
Owner
|
LGTM. Kindly drop a review. Thank you. |
Contributor
Author
|
Done. Kindly drop a review. Thank you. |
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.
Closes #26
Summary
Adds client-side validation to the Project Creation form to prevent invalid submissions and improve user experience. #26
Changes Made
Integrated Zod schema validation with existing react-hook-form setup
Added validation for:
Freelancer address format
Amount (must be a positive number)
Deadline (must be a future date)
Implemented inline error messages for better user feedback
Prevented form submission when inputs are invalid
Files Updated
frontend/app/dashboard/projects/new/page.tsx
How to Test
Try submitting the form with:
Invalid address → should show error
Negative or empty amount → should fail validation
Past date → should show error
Ensure valid inputs submit successfully
Result
Improved data integrity
Better user experience with real-time feedback
Reduced invalid requests to backend
#26