chart-gpt
chart-gpt copied to clipboard
Input Text Validation for White Spaces with added error texts
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.
@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.
@whoiskatrin - Can you please verify and authorise this?
@uttej-vsk hey, we are working on v2 and i would need to put this on hold until the release.
@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.
closing due to v2 release