feat(ux): add character counter and helper text to textareas#1793
Closed
lucumango wants to merge 2 commits into
Closed
feat(ux): add character counter and helper text to textareas#1793lucumango wants to merge 2 commits into
lucumango wants to merge 2 commits into
Conversation
…size qualitative feedback value
Contributor
There was a problem hiding this comment.
Pull request overview
Enhances the shared TextareaForm.vue component UX by adding a helper hint and a live character counter, along with related i18n updates.
Changes:
- Added helper text row (with icon) and a computed
characterCounttoTextareaForm.vue. - Added new
common.valuableFeedbackandcommon.characterstranslation keys toen.jsonandes.json. - Made Firebase Analytics initialization conditional (emulator/fake key safe-guard).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/shared/components/TextareaForm.vue | Adds helper text + character counter UI and logic. |
| src/app/plugins/locales/en.json | Adds English strings for the new helper/counter labels. |
| src/app/plugins/locales/es.json | Adds Spanish strings for the new helper/counter labels. |
| src/app/plugins/firebase/index.js | Avoids initializing Analytics when using emulators/dummy keys. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Member
|
Not a problem right now 🙏 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What does this PR do?
This PR enhances the UX of the core
TextareaForm.vuecomponent used throughout the platform for collecting user feedback (e.g., SUS variants, TAM questionnaires, and Heuristic study conclusions).Why is it needed?
RUXAILAB collects incredibly valuable qualitative user data. By adding a live character counter and an encouraging helper text ("Your qualitative feedback is highly valuable"), we implicitly guide evaluators and participants to provide richer, more detailed open-ended feedback rather than rushing through text areas.
Changes made:
TextareaForm.vueto include a livecharacterCountcomputed property (stripping raw HTML from Quill for accuracy).en.jsonandes.jsonlocale files with the new translation keys (common.valuableFeedbackandcommon.characters) to maintain full i18n support.Fixes #1803
video1941622412.mp4