Page MenuHomePhabricator

[Short term fix] Notification icon not same color as other icons
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

NOTE: T364119 is the long term fix. On short term we'll update our filter. Steps to replicate the issue (include links if applicable):
  • Login on mobile
  • Turn on night mode.
  • Visit any page
  • The bell icon in the top right is not the

What happens?:
The icon is not the same color as the rest.

What should have happened instead?:
The icon should be the same.

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

Other information (browser name/version, screenshots, etc.):
@Jdrewniak proposes updating the CSS filter just for this icon to use brightness to make it appear like the rest.

QA Results - Beta

ACStatusDetails
1T368120#9952240

QA Results - PROD

ACStatusDetails
1T368120#9983373

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Jdlrobson triaged this task as Medium priority.Jun 21 2024, 1:27 AM

Change #1048506 had a related patch set uploaded (by Jdrewniak; author: Jdrewniak):

[mediawiki/skins/MinervaNeue@master] [POC] Add brightness filter to night-mode-invert-image() mixin.

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

Change #1048507 had a related patch set uploaded (by Jdrewniak; author: Jdrewniak):

[mediawiki/skins/MinervaNeue@master] Change color of notification icon in dark-mode

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

@Jdrewniak proposes updating the CSS filter just for this icon to use brightness to make it appear like the rest.

Expanding on this, I think there are two ways to handle this. In the image below, the notification icon (bell) is lighter than the surrounding icons.
Therefore, we can either make the notification icon darker, or the surrounding icons lighter.

Interestingly, the notification icon is actually the correct color, it's the rest of the icons that are too dark. However, changing the rest of the icons by adding a brightness filter is somewhat risky, because it'll change the appearance of colored icons. So, as a temporary measure, changing the color of the notification icon (to make it incorrect but consistent) seems like the easiest path forward.

en.m.wikipedia.org_wiki_Ichthyotitan(iPhone SE).png (234×750 px, 17 KB)

@Jdrewniak proposes updating the CSS filter just for this icon to use brightness to make it appear like the rest.

Expanding on this, I think there are two ways to handle this. In the image below, the notification icon (bell) is lighter than the surrounding icons.
Therefore, we can either make the notification icon darker, or the surrounding icons lighter.

Interestingly, the notification icon is actually the correct color, it's the rest of the icons that are too dark. However, changing the rest of the icons by adding a brightness filter is somewhat risky, because it'll change the appearance of colored icons. So, as a temporary measure, changing the color of the notification icon (to make it incorrect but consistent) seems like the easiest path forward.

Discussed in standup and decided to proceed with this ^ and change the notification icon color.

en.m.wikipedia.org_wiki_Ichthyotitan(iPhone SE).png (234×750 px, 17 KB)

Screenshot 2024-07-01 at 16.07.44.png (980×992 px, 184 KB)

Confirming fix on beta cluster

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

[mediawiki/skins/MinervaNeue@wmf/1.43.0-wmf.11] Change color of notification icon in dark-mode

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

Change #1048507 abandoned by Jdlrobson:

[mediawiki/skins/MinervaNeue@master] Change color of notification icon in dark-mode

Reason:

This fix is only needed for wmf/1.43.0-wmf.11 - so I'll backport it there.

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

Change #1051184 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@wmf/1.43.0-wmf.11] Change color of notification icon in dark-mode

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

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:
Environment: Beta
OS: macOS Sonoma 14.3
Browser: Chrome 126
Device: MBA
Emulated Device: NA

Test Artifact(s):

Test Steps

Notification icon matches user icon:

Screenshot 2024-07-03 at 3.39.33 PM.png (255×805 px, 21 KB)

Jdlrobson updated the task description. (Show Details)
Jdlrobson added a subscriber: GMikesell-WMF.

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. Login on mobile
  2. Turn on night mode.
  3. Visit any page
  4. The bell icon in the top right is there

2024-07-03_14-59-34.png (496×341 px, 59 KB)

Test Result - PROD

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

Test Artifact(s):

Test Steps
  1. Login on mobile
  2. Turn on night mode.
  3. Visit any page
  4. The bell icon in the top right is there

2024-07-15_13-44-15.png (708×329 px, 94 KB)

Change #1048506 abandoned by Jdrewniak:

[mediawiki/skins/MinervaNeue@master] [POC] Add brightness filter to night-mode-invert-image() mixin.

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