Page MenuHomePhabricator

Preference "Editing mode" always appears on single-edit-tab wikis where VisualEditor is a beta feature
Closed, ResolvedPublic

Description

Preference "Editing mode" always appears on single-edit-tab wikis where VisualEditor is a beta feature (for example, English Wiktionary: https://en.wiktionary.org/).

image.png (381×1 px, 41 KB)

It should only appear for users who enable the VisualEditor beta feature, as changing it it has no effect otherwise (because the source editor is the only available editing mode).

Event Timeline

(I noticed this bug in the code – the beta-feature and not-beta-feature mode were handled inconsistently – when working on T271434, and then tried to find a combination of config options that would make this inconsistency obvious. Turns out this bug has a visible effect in production.)

There's a second issue: the same bug caused users on those wikis to never get the prompt about editing tabs when those wikis were switched to single-edit-tab mode (screenshot below). If we fix it, then anyone who has the beta feature enabled and who has edited before the single-edit-tab mode was enabled (2016-ish) will see that prompt the next time they open the editor. Hopefully that won't be too annoying…

image.png (561×1 px, 69 KB)

Change 659302 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/extensions/VisualEditor@master] Only show "Editing mode" preference when VE enabled (on SET beta-feature wikis)

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

Notes from conversation with Bartosz
We came to wonder...

  • What would be involved in separating the Preference "Editing mode" issue from the Editing tabs welcome dialog T273189#6784039?
  • Along what dimensions we might be able to more specifically target who would potentially see the Editing tabs dialog? E.g. people who have edited before 2016 and have not edited in the past 2 years or something.

Note: as this patch is currently written, people who have edited before 2016 and have the visual editor enabled would see the Editing tabs dialog upon opening any editing interface at any point after this patch would be released.

see the Editing tabs dialog:

Change 661447 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/extensions/VisualEditor@master] Stop showing the "Editing tabs" popup some time after SET switch

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

It's probably no longer helpful to show people a popup dialog about a change that happened 5 years ago. We should just stop showing it.

Change 661447 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Stop showing the "Editing tabs" popup some time after SET switch

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

Change 659302 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Only show "Editing mode" preference when VE enabled (on SET beta-feature wikis)

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

ppelberg claimed this task.