Page MenuHomePhabricator

Compare contents step: Translate button shows up momentarily when screen loads
Closed, ResolvedPublic

Description

Currently when "Compare contents" screen loads, a blue translate button is shown up for a moment and then disappears, inserting a UI glitch.

Screencast: https://phab.wmfusercontent.org/file/data/wzmac2abd5nbwot2hn77/PHID-FILE-23iiue3k2fbfk3ocgkds/Large_GIF_%28376x124%29.gif

Event Timeline

Change 628072 had a related patch set uploaded (by Nik Gkountas; owner: Nik Gkountas):
[mediawiki/extensions/ContentTranslation@master] SXContentComparator: Enable observer only for vertical intersection

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

Pginer-WMF triaged this task as Medium priority.Sep 17 2020, 3:36 PM

Change 628072 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] SXContentComparator: Enable observer only for vertical intersection

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

The issue with the button is fixed, but a similar issue occurs with the "section already present" banner. I reported it as a separate ticket: T263718: Compare contents step: "Section already present banner" shows up momentarily when screen loads

This makes me think that we may want to consider a general approach to avoid glitches due to the initial state setting.