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. The user may be reducing the percentage of unedited MT and the warning message does not reflect that.
Currently the warning is updated when the paragraph loses focus (disappearing or showing a correct percentage). 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.
Note that this may require to have a different approach for evaluating paragraphs depending on whether warnings were shown for them:
- 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. This was covered in T285861
An example of the problem is captured below:
Steps to reproduce:
- Add a paragraph to the translation.
- Click to the next paragraph.
- Observe a warning to appear for the first paragraph.
- Click the first paragraph and observe the "100% unmodified contents" message.
- Add and remove contents from the paragraph as the "100%" indicator remains the same without update.