Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add validation to bio textarea to enforce character limit #1490

Conversation

Praizee
Copy link
Contributor

@Praizee Praizee commented Aug 24, 2024

Description

This PR adds validation to the bio textarea to enforce 64 character limit

Closes #1092

Live URL

Changes proposed

What were you told to do?

Implement Character Limit for Bio Input in Profile General Settings #1092

What did you do?

  • Added character limit validation to the bio field in the settings form.
  • Display a toast notification if the user exceeds the 64 character limit.
  • Prevent form data update if the bio exceeds the maximum allowed length.

Check List (Check all the applicable boxes)

🚨Please review the contribution guideline for this repository.

  • My code follows the code style of this project.
  • This PR does not contain plagiarized content.
  • The title and description of the PR is clear and explains the approach.
  • I am making a pull request against the dev branch (left side).
  • My commit messages styles matches our requested structure.
  • My code additions will fail neither code linting checks nor unit test.
  • I am only making changes to files I was requested to.

Screenshots/Videos

image

- Added character limit validation to the bio field in the settings form.
- Display a toast notification if the user exceeds the 64 character limit.
- Prevent form data update if the bio exceeds the maximum allowed length.
Copy link
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 14.68% 785 / 5347
🔵 Statements 14.36% 787 / 5479
🔵 Functions 14.15% 215 / 1519
🔵 Branches 9.93% 230 / 2315
File CoverageNo changed files found.
Generated in workflow #453

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.

[Fix): Implement Character Limit for Bio Input in Profile General Settings
2 participants