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

Fixed input validation #25

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Fixed input validation #25

wants to merge 3 commits into from

Conversation

MrPurushotam
Copy link

@MrPurushotam MrPurushotam commented May 8, 2024

Fix Issue #23

Overview
This pull request enhances a feature addressed in PR #21. The update ensures that the application does not send empty messages be it empty text or whitespaces and can send one message only at a time until model answers it enhancing the overall user experience and maintaining the quality of the conversation.

Key Changes
Validation Check: Implemented a validation check while onClick event is triggered by button & onKey Press event is triggered.
Disable state: Created new state disable which sets to true when user sends a prompt.

Details
The Validation checks for trimed UserInput along with that it changes disable state to true when user sends a prompt and disables onKey press event so no new prompts can be send when model is answering.

@MrPurushotam MrPurushotam changed the title Fixed input validation Fix #23 Fixed input validation Fix [Issue#23} May 8, 2024
@MrPurushotam MrPurushotam changed the title Fixed input validation Fix [Issue#23} Fixed input validation Fix [Issue#23] May 8, 2024
@MrPurushotam MrPurushotam changed the title Fixed input validation Fix [Issue#23] Fixed input validation Fix 23 May 8, 2024
@MrPurushotam MrPurushotam changed the title Fixed input validation Fix 23 Fixed input validation May 8, 2024
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.

1 participant