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

#435 Added longer response incentive #457

Merged
merged 2 commits into from
Jan 6, 2023

Conversation

Klotske
Copy link
Contributor

@Klotske Klotske commented Jan 6, 2023

#435

As per #435 (comment) added new TrackedTextarea component, which implements basic word count progress bar.
The word tracker has three threshold points as required props.

The ref forwarding was getting complicated (was not sure how to properly update the word counter when setting value with inputRef.current.value as it does not trigger re-rendering) so I decided to add inputText state to each page.

Also, we should deside on thresholds for the response's word count.

PS
All e2e tests ran perfectly.

@Klotske
Copy link
Contributor Author

Klotske commented Jan 6, 2023

Main issue with state addition is the constant re-rendering of the whole page. Not sure how to prevent such behaviour.

@fozziethebeat fozziethebeat merged commit b36d263 into LAION-AI:main Jan 6, 2023
@Klotske Klotske deleted the add-longer-response-incentive branch January 7, 2023 10:51
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.

2 participants