Page MenuHomePhabricator

Add watchlist labels to legacy navigation
Closed, ResolvedPublicBUG REPORT

Description

Skins that don't support the new associated-pages navigation menu (a.k.a. AssociatedNavigationLinks?) should also be able to navigate to Special:WatchlistLabels.

When the wlenhancedfilters-disable user preference is enabled, these legacy navigation links are shown in the page subtitle on Special:Watchlist and Special:EditWatchlist (and its subpages). When that preference is enabled, they're only shown while editing the watchlist, and there's a separate link added to Special:Watchlist that takes you to Special:EditWatchlist, from where you can access the other ones (/raw, /clear, and now WatchlistLabels).

This task is only about adding the new labels' link to the existing ones. Whether specific skins (i.e. Timeless most notably, for WMF purposes and the current Watchlist-Labels project) should support the navigation is out of scope.

Adding a direct link from Special:EditWatchlist to Special:WatchlistLabels when the wlenhancedfilters-disable user preference is enabled is also out of scope, as this will be taken care of in T411843.


Derived Requirement

Add a Watchlist labels link to the existing legacy navigation shown on *Special:Watchlist* and *Special:EditWatchlist* (and its subpages) only when the wlenhancedfilters-disable user preference is enabled.
This ensures users on skins that do not support the associated-pages navigation can still reach *Special:WatchlistLabels*.
The change must be limited to extending existing legacy navigation links and must not introduce any new direct navigation paths beyond those already in scope.

Test Steps

Test Case 1: Verify Watchlist labels link appears in legacy navigation on Special:Watchlist

  1. Log in to the Beta wiki.
  2. Navigate to *Special:Watchlist*.
  3. Observe the page subtitle where legacy navigation links are displayed.
  4. ✅❓❌⬜ AC1: Confirm a Watchlist labels link appears alongside existing legacy navigation links.

Test Case 2: Verify Watchlist labels link navigates to Special:WatchlistLabels

  1. On *Special:Watchlist*, click the Manage labels link in the legacy navigation.
  2. ✅❓❌⬜ AC2: Confirm the user is taken to *Special:WatchlistLabels*.

Test Case 3: Verify Watchlist labels link appears on Special:EditWatchlist and subpages

  1. Navigate to *Special:EditWatchlist*.
  2. Navigate to a subpage such as *Special:EditWatchlist/raw* or *Special:EditWatchlist/clear*.
  3. Observe the page subtitle on each page.
  4. ✅❓❌⬜ AC3: Confirm the Watchlist labels link appears consistently in the legacy navigation on these pages.

QA Results - Meta Beta

ACStatusDetails
1T411842#11474843
2T411842#11470267
3T411842#11470267

Details

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1215385 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/core@master] Special:WatchlistLabels: Set page subtitle navigation

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

Change #1215385 merged by jenkins-bot:

[mediawiki/core@master] Special:WatchlistLabels: Set page subtitle navigation

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

@Samwilson Please review AC1, specifically Monobook skin. When you click "Display watched changes", all the tabs disappear.

Test Result - Beta

Status: ✅ PASS ❌ FAIL
Environment: Beta- 1.46.0-alpha (ec5cd6e) 15:05, 17 December 2025
OS: macOS Tahoe 26.1
Browser: Chrome 143
Device: MBA
Emulated Device: NA

Test Artifact(s):

Test Steps

Test Case 1: Verify Watchlist labels link appears in legacy navigation on Special:Watchlist

  1. Log in to the Beta wiki.
  2. Navigate to *Special:Watchlist*.
  3. Observe the page subtitle where legacy navigation links are displayed.
  4. ✅ ❌ AC1: Confirm a Watchlist labels link appears alongside existing legacy navigation links.
✅ Vector✅ Minerva❌Monobook✅ Timeless

Test Case 2: Verify Watchlist labels link navigates to Special:WatchlistLabels

  1. On *Special:Watchlist*, click the Manage labels link in the legacy navigation.
  2. ✅ AC2: Confirm the user is taken to *Special:WatchlistLabels*.

See AC1

Test Case 3: Verify Watchlist labels link appears on Special:EditWatchlist and subpages

  1. Navigate to *Special:EditWatchlist*.
  2. Navigate to a subpage such as *Special:EditWatchlist/raw* or *Special:EditWatchlist/clear*.
  3. Observe the page subtitle on each page.
  4. ✅ AC3: Confirm the Watchlist labels link appears consistently in the legacy navigation on these pages.

See AC1

GMikesell-WMF changed the task status from Open to In Progress.Dec 17 2025, 6:58 PM
GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF moved this task from QA to In Development on the Community-Tech (Fox Squad) board.

Please review AC1, specifically Monobook skin. When you click "Display watched changes", all the tabs disappear.

Good catch. Actually, I think bug is the other way around: Timeless and Monobook aren't supposed to show the navigation links on the watchlist (but only on the other pages). I don't really know why not, but that's how it is. Or was!

The idea is that on Special:Watchlist there's a pair of links at the right side, to edit the watchlist and change the preferences. Once editing, you can navigate to the label manager or the raw editing. And in the preferences you can elect to "Use non-JavaScript interface" for the watchlist — and in that case you will always get the nav links on Special:Watchlist.

But it seems that on Beta, with the JS watchlist enabled, the anv links are showing at the same time as the right-side links.

I will dig a bit more and figure out what's going on.

It looks like the edit link double-up is related to T409774, so this task can be resolved I think, if you think that captures the issue.

Ok cool, thanks for the information! I'll update this task as Resolved. Thanks for all your work!

GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.