Is your feature request related to a problem? Please describe.
The Symptom Checker text area has no visible character limit indicator. Users do not know how much text they can enter, and there is a risk that very long inputs may exceed the Gemini API token limit or cause unexpected behavior.
Describe the solution you would like
Add a real-time character counter below the symptom input text area (for example: "240 / 500 characters"). When the user approaches the limit, the counter should change color to amber and then red. Submitting the form should be disabled when the character limit is exceeded, with a tooltip explaining why.
Describe alternatives you have considered
- Using the
maxlength HTML attribute alone -- this stops input but provides no user feedback.
- Truncating the input before sending to the API -- this is silent and confusing.
Additional context
A reasonable character limit would be 1000-2000 characters, which is well within Gemini's token capacity while preventing excessively long inputs that degrade response quality. The limit should be configurable via a constant.
@akshay0611 Could you please assign this issue to me? I would like to add the character count indicator to the Symptom Checker form.
Is your feature request related to a problem? Please describe.
The Symptom Checker text area has no visible character limit indicator. Users do not know how much text they can enter, and there is a risk that very long inputs may exceed the Gemini API token limit or cause unexpected behavior.
Describe the solution you would like
Add a real-time character counter below the symptom input text area (for example: "240 / 500 characters"). When the user approaches the limit, the counter should change color to amber and then red. Submitting the form should be disabled when the character limit is exceeded, with a tooltip explaining why.
Describe alternatives you have considered
maxlengthHTML attribute alone -- this stops input but provides no user feedback.Additional context
A reasonable character limit would be 1000-2000 characters, which is well within Gemini's token capacity while preventing excessively long inputs that degrade response quality. The limit should be configurable via a constant.
@akshay0611 Could you please assign this issue to me? I would like to add the character count indicator to the Symptom Checker form.