Add Proper form validation for creation of the blog post - #929
Open
Adez017 wants to merge 5 commits into
Open
Conversation
- Frontend: Validate title (min 5 chars) and content (min 20 chars) - Frontend: Display error messages below input fields - Frontend: Clear errors on user input - Backend: Add same validation in createBlog and updateBlogById - Backend: Return proper error messages for validation failures Co-authored-by: Adez017 <142787780+Adez017@users.noreply.github.com>
Use prev state in setErrors to be more explicit about preserving other error states Co-authored-by: Adez017 <142787780+Adez017@users.noreply.github.com>
Add explicit checks for empty strings and null/undefined values in updateBlogById Co-authored-by: Adez017 <142787780+Adez017@users.noreply.github.com>
Add minimum length validation for blog post title and content
|
@Adez017 is attempting to deploy a commit to the premkolte's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
✨ Hi @Adez017! Thanks for submitting another pull request. Your continuous improvements are highly valued. Keep contributing! 🙌 |
Contributor
Author
Contributor
Author
|
Hi @Premkolte , is there any updates on this ? |
Contributor
Author
|
Hi @Premkolte , any updates on this ? |
Contributor
Author
|
Hi @Premkolte any updates on this ?? |
Contributor
Author
|
@Premkolte any updates ?? |
Contributor
Author
|
Hi @Premkolte its more then 3 weeks as this PR is pending |
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.
Pull Request Template
Description
Added the validation of field constraints so that only a valid blog can be generated , like title length , body , etc.
Fixes #870
Checklist:
Please mention these details about yourself here.
regards,
Prem Kolte.