Page MenuHomePhabricator

IP auto-reveal: Use the UserTemporaryLocation icon in the tool menu on mobile
Closed, ResolvedPublic

Description

Background

The tool link menu in the MinervaNeue skin displays icons next to the tool links.

The IP auto-reveal tool link was added in T386500, but currently uses the wrong icon:

image.png (595×1 px, 58 KB)

It uses userAvatar, but should use UserTemporaryLocation:

image.png (318×640 px, 35 KB)

This is because UserTemporaryLocation was available in Codex until recentlly. It was added to Codex in T389299.

Technical notes

The IP auto-reveal tool link is specified in SidebarLinksHandler::addIPAutoReveal. The specification should have:

'icon' => 'UserTemporaryLocation'

Acceptance criteria

  • The UserTemporaryLocation icon displays next to the IP auto-reveal tool link on mobile

Event Timeline

WikanBoy123 changed the subtype of this task from "Task" to "Design".
JJMC89 raised the priority of this task from Low to Needs Triage.May 8 2025, 6:11 AM
JJMC89 changed the subtype of this task from "Design" to "Task".

Change #1143708 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/CheckUser@master] IP auto-reveal: Use UserTemporaryLocation icon

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

kostajh changed the task status from Open to Stalled.May 9 2025, 6:39 AM

Patch is ready, but needs to wait for the next Codex release that will include the new icon.

Patch is ready, but needs to wait for the next Codex release that will include the new icon.

I came back to this now that MediaWiki is using Codex v2.0.0-rc.2.

However, it turns out that this menu uses OOUI icons, so it's actually a new OOUI release that we need: T389299#10852539.

We also need an update to MinervaNeue/skin.json in order to use the icon.

This task is now stalled on:

  • MediaWiki using a release of OOUI that has the userTemporaryLocation icon
  • MinervaNeue/skin.json including the userTemporaryLocation icon in the skins.minerva.overflow.icons module

Change #1149704 had a related patch set uploaded (by Tchanders; author: Tchanders):

[mediawiki/skins/MinervaNeue@master] skin.json: Add icon to the skins.minerva.overflow.icons module

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

Tchanders changed the task status from Stalled to Open.Jun 16 2025, 9:25 AM

This is ready now.

Change #1149704 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] skin.json: Add icon to the skins.minerva.overflow.icons module

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

Change #1143708 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] IP auto-reveal: Use UserTemporaryLocation icon

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

Hi @kostajh:
While testing this ticket, I am noticing the IP Auto-reveal icon is just a dark square (see screenshot)...
I have tried this with testwiki, my localhost and patch demo, and getting the same dark square icon for IP Auto-reveal.

image.png (797×1 px, 387 KB)

Change #1161550 had a related patch set uploaded (by Tchanders; author: Tchanders):

[mediawiki/extensions/CheckUser@master] IP auto-reveal: Fix typo in icon specification

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

Change #1161550 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] IP auto-reveal: Fix typo in icon specification

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

Using Localhost for testing:
QA is completed, I have verified the new code has been implemented and is functioning as expected (Per the Acceptance Criteria)... Thank you @Tchanders.