Skip to content

Add Proper form validation for creation of the blog post - #929

Open
Adez017 wants to merge 5 commits into
Premkolte:mainfrom
Adez017:main
Open

Add Proper form validation for creation of the blog post #929
Adez017 wants to merge 5 commits into
Premkolte:mainfrom
Adez017:main

Conversation

@Adez017

@Adez017 Adez017 commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

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:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

Please mention these details about yourself here.

  1. Contributor Name :
  2. Contributor Email ID :
  3. Contributor Github Link :

regards,

Prem Kolte.

Copilot AI and others added 5 commits February 12, 2026 09:35
- 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
@vercel

vercel Bot commented Feb 12, 2026

Copy link
Copy Markdown

@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.

@github-actions

Copy link
Copy Markdown
Contributor

✨ Hi @Adez017! Thanks for submitting another pull request. Your continuous improvements are highly valued. Keep contributing! 🙌

@Adez017

Adez017 commented Feb 12, 2026

Copy link
Copy Markdown
Contributor Author

@Premkolte

@Adez017

Adez017 commented Feb 16, 2026

Copy link
Copy Markdown
Contributor Author

Hi @Premkolte , is there any updates on this ?

@Adez017

Adez017 commented Feb 18, 2026

Copy link
Copy Markdown
Contributor Author

Hi @Premkolte , any updates on this ?

@Adez017

Adez017 commented Feb 19, 2026

Copy link
Copy Markdown
Contributor Author

Hi @Premkolte any updates on this ??

@Adez017

Adez017 commented Feb 24, 2026

Copy link
Copy Markdown
Contributor Author

@Premkolte any updates ??

@Adez017

Adez017 commented Mar 6, 2026

Copy link
Copy Markdown
Contributor Author

Hi @Premkolte its more then 3 weeks as this PR is pending

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.

[🪲BUG] The new blog can be created by a single character also

2 participants