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

Add Error Display for minlength and maxlength Constraints #5

Open
shri30yans opened this issue Oct 18, 2024 · 11 comments
Open

Add Error Display for minlength and maxlength Constraints #5

shri30yans opened this issue Oct 18, 2024 · 11 comments
Assignees
Labels

Comments

@shri30yans
Copy link
Collaborator

shri30yans commented Oct 18, 2024

Currently, the input boxes in the Create Project page do not provide any feedback when the entered text does not meet the specified minlength or maxlength constraints. We need to implement error messages when these constraints are violated.

Show the error message below that particular input box.

Requirements

  1. Minlength Error: If the text entered in the input box is shorter than the defined minlength, an error message should be displayed indicating that the input is too short.
  2. Maxlength Error: If the text exceeds the defined maxlength, an error message should be shown indicating that the input is too long.

Acceptance Criteria

  • When the user inputs text:
    • If the text length is less than minlength, show an error message: "Input is too short. Minimum length is X characters."
    • If the text length exceeds maxlength, show an error message: "Input is too long. Maximum length is Y characters."
  • The error message should disappear once the input meets the constraints.

Additional Information

  • Use red text or an error icon below to the input box to make the error more noticeable.
  • Ensure that the error messages are clear and concise.
@bunsamosa-bot
Copy link

bunsamosa-bot bot commented Oct 18, 2024

Thank you for opening this issue! A Maintainer will review it soon!

@shri30yans shri30yans added the good first issue Good for newcomers label Oct 18, 2024
@Alakhg1408
Copy link

can i please try this one , please !!!!

@shri30yans
Copy link
Collaborator Author

!assign @Alakhg1408

@bunsamosa-bot
Copy link

bunsamosa-bot bot commented Oct 18, 2024

Hey @shri30yans! The timer for the @Alakhg1408 to work on the issue has finished, deassign and assign a new contributor or extend the current timer. Contact maintainer leads if inactive @DedLad @polarhive @achyuthcodes30

@shri30yans
Copy link
Collaborator Author

!assign @Alakhg1408

@bunsamosa-bot
Copy link

bunsamosa-bot bot commented Oct 18, 2024

Hey @shri30yans! The timer for the @Alakhg1408 to work on the issue has finished, deassign and assign a new contributor or extend the current timer. Contact maintainer leads if inactive @DedLad @polarhive @achyuthcodes30

@aryasd29
Copy link

assign please

@shri30yans
Copy link
Collaborator Author

!assign @aryasd29

@Shresht-Ahuja
Copy link

can i get assigned to this

@shri30yans
Copy link
Collaborator Author

!assign @Shresht-Ahuja

@Shresht-Ahuja
Copy link

!withdraw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants