[go: nahoru, domu]

Page MenuHomePhabricator

Regression: Global invert broke VisualEditor "Add a link" workflow
Closed, ResolvedPublic2 Estimated Story Points

Description

NOTE: This is a regression caused by T365764. Steps to replicate the issue (include links if applicable):

What happens?:

Screenshot 2024-06-25 at 5.19.09 PM.png (901×410 px, 87 KB)

What should have happened instead?:
The results should not be inverted.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

QA Results - Beta

ACStatusDetails
1T368483#9951071

Event Timeline

Jdlrobson renamed this task from Global invert breaks VisualEditor "Add a link" workflow to Regression: Global invert broke VisualEditor "Add a link" workflow.Wed, Jun 26, 12:21 AM
Jdlrobson triaged this task as High priority.
Jdlrobson added a project: Regression.
Jdlrobson updated the task description. (Show Details)

I don't know how to fix this without us removing the global icon selector.
This should be a blocker for rolling out dark mode to desktop.

Since T345281 all non-inverting images are marked with mw-no-invert, or cdx-no-invert.

Change #1049979 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/Vector@master] Add oo-ui-image-invert to icon exclusion list

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

Change #1049983 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/core@master] TitleOptionWidget: Unconditionally add mw-no-invert class

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

Change #1049979 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Add mw-no-invert and oo-ui-image-invert to OOUI icon exclusion list

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

We may need to backport this on Monday, so assigning to myself.

Jdlrobson updated Other Assignee, added: Jdlrobson.

Waiting for guidance from Ed on which class to add here: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1049983
I've noted it in T368483 as needing a backport.

I am confused what's left to do in this task. The current appearance looks alright to me.

image.png (1×804 px, 170 KB)

Can you say what's the expected appearance?

I am confused what's left to do in this task. The current appearance looks alright to me.

image.png (1×804 px, 170 KB)

Can you say what's the expected appearance?

Do you have anything installed that might be modifying e.g. the dark mode gadget?
I am still seeing this issue:
https://en.m.wikipedia.beta.wmflabs.org/wiki/Conflict-title-0.5273683049984046-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n?minervanightmode=1#/editor/0

Screenshot 2024-07-01 at 9.41.08 AM.png (749×1 px, 105 KB)

Having checked, like Jon I'm still seeing the images as inverted. That said, I wonder if there's something wrong with Beta's caching of the compiled less (or with that patch to Vector) -- the icons do have mw-no-invert on them.

I don't have anything unusual enabled, as far as I know. I actually took that screenshot while logged out, on https://en.wikipedia.beta.wmflabs.org/w/index.php?title=T352930&veaction=edit, but I can't reproduce while logged in either.

Oh – it's broken on mobile, but not on desktop.

I'm not particularly familiar with how dark mode was implemented, so: was the expectation that the earlier Vector patch adding new classes to OOUIIconSelectors should have fixed this in mobile (i.e. in MinervaNeue)?

@DLynch weird.. I can confirm the mw-no-invert class is present (I could have sworn it wasn't when we started this ticket! Did something change recently) and this needs a patch in Minerva. Working on that now.

Change #1051182 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/MinervaNeue@master] Do not invert images that have been tagged with no invert classes

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

Change #1049983 abandoned by Jdlrobson:

[mediawiki/core@master] TitleOptionWidget: Unconditionally add mw-no-invert class

Reason:

It seems this is working as expected. Misunderstanding on our part. Posted https://gerrit.wikimedia.org/r/c/mediawiki/skins/MinervaNeue/+/1051182

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

Change #1051182 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Do not invert images that have been tagged with no invert classes

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

Change #1051186 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/MinervaNeue@wmf/1.43.0-wmf.11] Do not invert images that have been tagged with no invert classes

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

Looks fixed to me on beta mobile following that patch (and some fairly aggressive cache-clearing):

image.png (2×1 px, 293 KB)

Change #1051186 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@wmf/1.43.0-wmf.11] Do not invert images that have been tagged with no invert classes

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

Mentioned in SAL (#wikimedia-operations) [2024-07-01T20:31:44Z] <cjming@deploy1002> Started scap sync-world: Backport for [[gerrit:1050084|[July 1st] Mobile: Enable dark mode for all tier 1 wikis (logged in) (T367151)]], [[gerrit:1051184|Change color of notification icon in dark-mode (T368120)]], [[gerrit:1051186|Do not invert images that have been tagged with no invert classes (T368483)]]

Mentioned in SAL (#wikimedia-operations) [2024-07-01T20:34:29Z] <cjming@deploy1002> cjming, jdlrobson: Backport for [[gerrit:1050084|[July 1st] Mobile: Enable dark mode for all tier 1 wikis (logged in) (T367151)]], [[gerrit:1051184|Change color of notification icon in dark-mode (T368120)]], [[gerrit:1051186|Do not invert images that have been tagged with no invert classes (T368483)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-07-01T20:42:24Z] <cjming@deploy1002> Finished scap: Backport for [[gerrit:1050084|[July 1st] Mobile: Enable dark mode for all tier 1 wikis (logged in) (T367151)]], [[gerrit:1051184|Change color of notification icon in dark-mode (T368120)]], [[gerrit:1051186|Do not invert images that have been tagged with no invert classes (T368483)]] (duration: 10m 39s)

Test Result - Beta

Status: ✅ PASS
Environment: Beta
OS: macOS Sonoma 14.5
Browser: Chrome 126
Device: MBA
Emulated Device: NA

Test Artifact(s):

Test Steps
  1. Visit https://en.wikipedia.beta.wmflabs.org/w/index.php?title=T352930&action=edit
  2. Click edit
  3. Click the link icon to add a link
  4. Type T or S
TS
2024-07-03_11-00-29.png (1×1 px, 370 KB)
2024-07-03_11-02-52.png (1×1 px, 382 KB)
GMikesell-WMF assigned this task to ovasileva.
GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF subscribed.

Looks good! Resolving.