EmbeddedChat icon indicating copy to clipboard operation
EmbeddedChat copied to clipboard

Add Character Limit Validation & UI Feedback to File Description Input

Open srijnabhargav opened this issue 2 months ago • 0 comments

As an Embedded Chat developer

I need to: Add a character limit to the file description input field and visually notify the user when the limit is exceeded.

So That: Users clearly understand when their description is too long, preventing upload errors and improving the overall user experience.

Acceptance Criteria

  • [ ] A maximum character limit (e.g., 5000 characters) is applied to the file description field.

  • [ ] A warning message appears below the description input when the limit is exceeded.

  • [ ] The input field border and text color change to a destructive/error state when over the limit.

  • [ ] The “Send” button becomes disabled when the description exceeds the limit.

  • [ ] File upload submission is blocked in submit() if the description is over the limit.

CURRENT BEHAVIOUR

https://github.com/user-attachments/assets/312dbebf-4da2-41df-8135-a51c41012aff

srijnabhargav avatar Dec 11 '25 13:12 srijnabhargav