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

Character count #93

Open
gsproston-scottlogic opened this issue Aug 3, 2023 · 1 comment
Open

Character count #93

gsproston-scottlogic opened this issue Aug 3, 2023 · 1 comment
Labels
enhancement New feature or request frontend Requires work on the frontend triage New tickets to be checked by the maintainers ui design Requires UI design input

Comments

@gsproston-scottlogic
Copy link
Contributor

gsproston-scottlogic commented Aug 3, 2023

Include a character count on our ThemedTextarea component which displays the length of the user's current message. Configure the component so that the count only shows if there is a limit set.

Question
When the CHARACTER_LIMIT defence mechanism is active, what should we show?

  • inform the user when their chat input prompt is too long
  • do not inform in advance, instead tell them only after the defence has been triggered on their prompt

With the latter, if a user is attempting to attack our system then they won't be informed of the exact length allowed, and would need to put in more effort to find that out for themselves. For this reason, I feel we should not set CHARACTER_LIMIT on the chat input box when that defence is active.

Note that our standard message limit is currently 16384 chars which is loads, and therefore there seems little point in showing a limit on the main chat textbox, or at least not until the user reaches or is close to the limit.

@gsproston-scottlogic gsproston-scottlogic added enhancement New feature or request frontend Requires work on the frontend ui design Requires UI design input labels Aug 3, 2023
@gsproston-scottlogic
Copy link
Contributor Author

Very similar to #506

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend Requires work on the frontend triage New tickets to be checked by the maintainers ui design Requires UI design input
Projects
None yet
Development

No branches or pull requests

2 participants