Skip to content

Conversation

anushkasark08
Copy link
Contributor

@anushkasark08 anushkasark08 commented Sep 11, 2025

Rationale for this change

Currently, the blog text area allows users to submit content with very few characters, even just a single letter. This results in incomplete or meaningless blog posts. Adding a **minimum word/character limit** improves content quality and ensures blogs have meaningful descriptions.

What changes are included in this PR?

- Added a `minlength="100"` attribute to the blog content `<textarea>`.
  • Removed the extra unused description <textarea> to avoid duplicate input fields.
  • Now, the blog cannot be submitted unless the description has at least 100 characters.

Are these changes tested?

- ✅ Yes, tested locally in the browser:
  • Submitting with less than 100 characters shows a validation error.
  • Submitting with 100+ characters works correctly.

Are there any user-facing changes?

- Yes, users will now see a validation warning if they try to submit a blog with less than 100 characters in the description box.

Screenshots

### Before image

After

image

I have resolved this issue and raised the PR ... Kindly check and merge it accordingly. @gyanshankar1708 @ayushkashyap402 @abdullahxyz85

Copy link

netlify bot commented Sep 11, 2025

Deploy Preview for growcraftt ready!

Name Link
🔨 Latest commit 810b6bb
🔍 Latest deploy log https://app.netlify.com/projects/growcraftt/deploys/68c307741595d0000804d596
😎 Deploy Preview https://deploy-preview-475--growcraftt.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@gyanshankar1708 gyanshankar1708 merged commit 43d1aab into gyanshankar1708:master Sep 11, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Blog description accepting very short text
2 participants