Page MenuHomePhabricator

Add filtering by label to watchlist page frontend
Closed, ResolvedPublic

Description

User Story

As a user I want to manipulate design elements related to filtering watchlist by label

Acceptance criteria

  • there is a new "labels" icon beside "namespaces" and "tags" in the filtering toolbar
  • there is a new item with the "labels" icon at the bottom of the filters list under "advanced filters"
  • typing = in the filter toolbar, or clicking the "labels" icon, will bring up the labels filter dropdown
    • the labels filter dropdown will contain all labels that the currently logged-in user has added via label manager, whether they have associated watchlist items or not
    • clicking on any of the checkboxes will insert the checkbox's name prepended with = as a filter chip
    • clicking x in any of the relevant filter chips will remove the chip and untick the corresponding checkbox
    • clicking < at the top of the labels filter dropdown brings you to the normal filters list
    • above the list of labels there will be an "exclude selected" and a "highlight results" button
      • clicking "exclude selected" will prepend "not" to the selected label filters
      • clicking "highlight results" will allow the user to choose a colour for label filters whether they are selected or not
  • if the user has some labels selected and saves the filter, and then changes the filters and clicks "saved filters" and then the name of the saved filter, the label chips corresponding to the filter will be loaded

Details for QA

This isn't really testable without its corresponding backend ticket

Designs

Full designs here https://www.figma.com/design/CdyroPkkcT7GJA9bwno0Rq/WE1.4-Task-priotization?node-id=327-15767&p=f&t=it3KLwgfVRsWHUqn-0

Screenshot 2025-10-22 at 11.56.17.png (434×912 px, 81 KB)

Screenshot 2025-10-22 at 11.37.01.png (434×912 px, 87 KB)

Details

Other Assignee
dom_walden
Related Changes in Gerrit:

Event Timeline

Cparle changed the task status from Open to In Progress.Nov 5 2025, 11:06 AM
Cparle claimed this task.
Cparle moved this task from Ready for Dev to In Development on the Community-Tech (Fox Squad) board.

Change #1202233 had a related patch set uploaded (by Cparle; author: Cparle):

[mediawiki/core@master] Add filtering by label to watchlist frontend

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

Cparle renamed this task from Add filtering by label to watchlist page frontnend to Add filtering by label to watchlist page frontend.Nov 10 2025, 2:42 PM
Cparle updated the task description. (Show Details)
Cparle updated the task description. (Show Details)
Cparle updated the task description. (Show Details)

Are there designs for how this will look in mobile?

Change #1202233 merged by jenkins-bot:

[mediawiki/core@master] Add filtering by label to watchlist frontend

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

Are there designs for how this will look in mobile?

Basically the same as Tags already does. Something along the lines of:

DesktopMobileFrontend
image.png (547×442 px, 48 KB)
image.png (455×415 px, 35 KB)

What with unlabeled pages? Choosing all and excluding them is good idea or there should be easier option?

What with unlabeled pages? Choosing all and excluding them is good idea or there should be easier option?

@Wargo That seems like a reasonable way to do it to me, although it does have the downside of not staying up to date with new labels being added (i.e. if you save a filter like that). It doesn't seem like it'd be a super common usage though. Please create a separate feature request if you think it'd be worth adding. I guess it could be a special checkbox at the top of the list called 'unlabelled' or something.

dom_walden subscribed.

I have tested Labels on Special:Watchlist, mostly focusing on accuracy (do the right changes appear when filtering by labels).

I also briefly tested grouped and ungrouped views, highlighting and live updates. Some further testing will be done in T417134.

I did some accessibility testing and raised one or two bugs.

I did the majority of testing on enwiki beta. I briefly tested beta wikidata, in case there were any differences.