AOSSIE-Org / AOSSIE-Org/Ell-ena

Add Character Counter and Input Length Validation in Chat Interface

未關閉
#300 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Dart
星號
54
分支
110
PR 合併指標
30 天內沒有已合併 PR

描述

Problem:

Currently, the chat input field does not provide any indication of the number of characters entered or warn users when the input exceeds a practical limit. Extremely long prompts may lead to poor user experience, increased API costs, or failures due to model token limits.

Expected Behavior:
Display a live character counter below the chat input.
Warn users when approaching the maximum input length.
Prevent submission when the configured limit is exceeded.
Display a clear validation message.

Benefits:
Improves user experience.
Prevents accidental oversized requests.
Reduces unnecessary API usage.
Makes application behavior more predictable.

Possible Solution:
Add a TextEditingController listener.
Display the current character count.
Disable the Send button after reaching the configured limit.
Keep the limit configurable through a constants file.

Additional Notes:
This enhancement only affects the frontend and does not require changes to the backend or AI
Hi, I would like to work on this issue under GSSoC 2026. Kindly assign it to me if it is available. Thank you!

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Start at the chat input and its TextEditingController listener, then locate the constants file where the maximum length can be configured. Add the live count, approaching-limit warning, clear validation message, and Send-button prevention for over-limit input. Done means oversized prompts cannot be submitted and normal input remains usable.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
dart, flutter
領域
frontend
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
68/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。