chart-gpt icon indicating copy to clipboard operation
chart-gpt copied to clipboard

Input Text Validation for White Spaces with added error texts

Open uttej-vsk opened this issue 1 year ago • 1 comments

What was the problem? The TextArea accepts blank spaces and allows anyone to click on the draw button. #53

Why is this a problem? Without whitespace validation, we would be facing bad API calls and results won't be as fruitful as they should've been otherwise.

My solution? Added some validation using Regex to identify whitespace and added some error messages below the text area. The cherry on top added a placeholder for the input area for some engagement of users.

Expected Behaviour: It won't allow whitespaces to enter as well as won't let users to type until they clear that and type some real text.

Anyone - feel free to comment or suggest for enhancements.

Screenshot 2023-05-05 at 1 40 09 AM

uttej-vsk avatar May 04 '23 20:05 uttej-vsk

@uttej-vsk is attempting to deploy a commit to the whoiskatrin's Team Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar May 04 '23 20:05 vercel[bot]

@whoiskatrin - Can you please verify and authorise this?

uttej-vsk avatar May 06 '23 18:05 uttej-vsk

@uttej-vsk hey, we are working on v2 and i would need to put this on hold until the release.

whoiskatrin avatar May 06 '23 21:05 whoiskatrin

@uttej-vsk hey, we are working on v2 and i would need to put this on hold until the release.

Hey no worries. Just saw the preview. It is so cool.

uttej-vsk avatar May 08 '23 19:05 uttej-vsk

closing due to v2 release

whoiskatrin avatar May 18 '23 19:05 whoiskatrin