Once users get a warning about unedited contents, the MT percentage shown is not updated when the user edit the paragraph, which can generate confusion.
Currently the warning is updated when the paragraph loses focus.
This ticket proposes to update the behavior to make sure that for those paragraphs where the warning is already shown (and only those), the warning is checked as the user edits.
It is ok for the checks to happen in intervals of a few seconds. That is, there is no need for a real time update of the percentage as users type. But after making some modifications it would be good to show the user that those were taken into account.
- Paragraphs with a warning and editing activity (focus + typing): check regularly
- Paragraphs without a warning: check when editing is complete: focus moves to another paragraph, or some time has passed since the last input event.
We may want to avoid checking a paragraph with no warning just when clicking outside if the focus is not moving to a different paragraph. Since tapping outside may be part of still editing the current paragraph.
An example of the problem is captured below:
Steps to reproduce:
1. Add a paragraph to the translation.
1. Click to a neutral part of the UI to make the input focus to go away from the paragraph.
1. Observe a warning to appear for the paragraph.
1. Click the same paragraph and observe the "100% unmodified contents" message.
1. Add and remove contents from the paragraph as the "100%" indicator remains the same without update.