Page MenuHomePhabricator

Tapping Revise from "Pre-Save" moment does not land you in Tone Check's "revising" state
Closed, ResolvedPublic

Description

Behavior

  1. Add text to an article that Tone Model thinks needs revision
  2. Notice Tone Check appears
  3. Do not address the Tone Check (either by tapping Revise or Decline)
  4. Press Publish to advance to the pre-save moment
  5. Notice Tone Check appears
  6. Tap Revise

✅ Expected

  1. You are returned to the`mid-edit` moment with Tone Check in its "revising" state (think: blue bars)

Actual

  1. You are returned to the`mid-edit` moment with Tone Check in its "initial" state (think: Revise and Decline buttons)

Event Timeline

We're going to revisit this task once the A/B experiment concludes (T387918).

Reason: we want to limit adjustments of the UX while the experiment is ongoing to those we think have the potential to meaningfully be disruptive/confusing to people.

We did previously fix this, so I think it's probably some incredibly timing-dependent aspect of the switch between moments.

Change #1249403 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] EditCheckController: if a refresh is ongoing return the same promise

https://gerrit.wikimedia.org/r/1249403

Change #1249404 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] ToneCheck: don't lose state when transitioning back from pre-save

https://gerrit.wikimedia.org/r/1249404

It turns out that when I said we had already fixed this, I was thinking of a similar-but-distinct issue where the revise mode was getting lost within mid-edit, which was fixed in the QA for T401727. This was actually a different problem that we've had all along -- we never correctly set the revising state after the transition from pre-save. It was masked somewhat by us previously successfully focusing the action, so it wasn't obvious what would be expected, and then automatically switching to the revise highlight once someone started typing.

Change #1249403 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] EditCheckController: option to join in on an existing refresh

https://gerrit.wikimedia.org/r/1249403

Change #1249404 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] ToneCheck: don't lose state when transitioning back from pre-save

https://gerrit.wikimedia.org/r/1249404

Ryasmeen edited projects, added: Verified; removed: Editing QA.