Page MenuHomePhabricator

As a user filling out a report , I want to see how many words I have left
Open, Needs TriagePublic

Description

User story
As someone who is filing a report and describing the context of an incident in a text box, I want to see how many words I have left and I want to know when I have exceeded the word count so that I can fill out a helpful report and receive the support I need.

Description of the feature

  • As the user types words in the "Additional details" text box, they see the word count increase from 0 to 200
  • One they reach the word count limit, the "word count text" turns red to indicate they have exceeded the limit and an error icon appears next to the word count (see mockup)
  • The user can keep typing as many words as they wish. I think this is helpful and important because it allows someone to write down all their thoughts before retroactively cutting down the length.
  • The "submit" button is disabled until they are within the word count

Mockups

Step 2 (Word count).png (812×375 px, 56 KB)

Step 2 (Word count exceeded).png (812×375 px, 57 KB)

Event Timeline

aishwaryavardhana renamed this task from Word count ticker to As a user filling out a report , I want to see how many words I have left .Aug 21 2023, 7:56 PM

The counting spaces approach works flawlessly with languages that use spaces to separate words. Languages that do not follow this convention will likely give varying results.

The counting spaces approach works flawlessly with languages that use spaces to separate words.

Even for those languages, there are considerations around how to count punctuation, e.g. if I type hello? but add a few thousand question marks, our space separator approach would count that as a single word, but we'd miss the main problem of trying to limit the total amount of text sent to the server and eventually put in front of a reviewer.

Languages that do not follow this convention will likely give varying results.

Yep! T338817#9115060 has some more discussion.

Aklapper added a subscriber: eigyan.

Removing inactive task assignee (please do so as part of offboarding steps).