dify icon indicating copy to clipboard operation
dify copied to clipboard

[FeatureRequest] Add a character counter and excessive text coloring in the input fields with a limit on number of characters

Open Emasoft opened this issue 1 year ago • 3 comments

Self Checks

  • [X] I have searched for existing issues search for existing issues, including closed ones.
  • [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [X] Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

Currently input fields with limited number of characters are not validated as you type, and do not report the characters that exceeded the limit. To solve the issue it is necessary to add a Twitter-like character counter that updates as you type:

  • Shows the number of character compared to the maximum allowed. For example: characters count: 270 on 256 (14 extra).
  • Colors in RED the excessive text in the input field that goes above the limit.

2. Additional context or comments

It would also be useful to display a customizable "description" string below the input field name, to help the user understand what data goes in there and why. For example: Number of images to process at the same time. We currently support a max number of 8 images.

Also a grayed example text in the input field should be displayed when the field is empty, to give the user an example to follow when formatting the input. For example: textual.textualize.io/styles/*, textual.textualize.io/api/*, …

3. Can you help us with this feature?

  • [ ] I am interested in contributing to this feature.

Emasoft avatar Oct 10 '24 02:10 Emasoft

Hi, @Emasoft. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary

  • Feature request to enhance input fields with a character counter and text highlighting.
  • Suggestion to add customizable descriptions and example text for user guidance.
  • You mentioned not being interested in contributing to the development.
  • No further comments or activity on this issue.

Next Steps

  • Please let us know if this issue is still relevant to the latest version of the Dify repository by commenting here.
  • If there is no further activity, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Nov 10 '24 16:11 dosubot[bot]

Sorry for the late answer. Yes, this is still relevant. Please implement this change. Thank you.

Emasoft avatar Jan 22 '25 03:01 Emasoft

@takatost, the user Emasoft has indicated that the issue is still relevant and has requested the implementation of the change. Could you please assist them with this? Thank you!

dosubot[bot] avatar Jan 22 '25 03:01 dosubot[bot]