Page MenuHomePhabricator

Add table of labels to Special:WatchlistLabels
Closed, ResolvedPublicFeature

Assigned To
Authored By
Samwilson
Oct 30 2025, 7:14 AM
Referenced Files
F70274133: not_empty.png
Nov 18 2025, 11:02 AM
F70274127: empty.png
Nov 18 2025, 11:02 AM
F69722992: image.png
Nov 3 2025, 8:11 AM
F69722548: image.png
Nov 3 2025, 8:11 AM
F66713095: image.png
Oct 30 2025, 7:14 AM
File Not Attached

Description

Add a table listing all of a user's watchlist labels, to Special:WatchlistLabels. The edit and delete links/buttons are not part of this task.

Users have a maximum of 100 labels, so pagination is not required for this table.

Empty state:

image.png (680×1 px, 55 KB)

Labels selected:

image.png (680×1 px, 67 KB)

Other design details are on Figma: https://www.figma.com/design/CdyroPkkcT7GJA9bwno0Rq/WE1.4-Task-priotization?node-id=423-86036&t=kzV8iM57mMMtFBiy-4

Some of the design components are not yet available with Codex-PHP, and the nearest similar components will be used instead.

Event Timeline

It doesn't look like it's possible yet to customize the empty-state message for Codex-PHP. The default is There is no data available..

I've opened T409250 to fix this, but for now I suggest for now we show the '+ New' progressive button in the table header, even when the table is empty.

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

[mediawiki/core@master] [WIP] Add table to Special:WatchlistLabels

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

Samwilson changed the task status from Open to In Progress.Nov 6 2025, 5:17 AM

Change #1202004 merged by jenkins-bot:

[mediawiki/core@master] Add table to Special:WatchlistLabels

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

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

[mediawiki/core@master] Watchlist labels: Fix 'new' button styling on Special:WatchlistLabels

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

Change #1204087 merged by jenkins-bot:

[mediawiki/core@master] Watchlist labels: Fix 'new' button styling on Special:WatchlistLabels

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

Samwilson changed the task status from In Progress to Open.Nov 13 2025, 5:28 AM
Samwilson moved this task from Feedback and Review to QA on the Community-Tech (Fox Squad) board.

The current implementation does not exactly match the design. There is still functionality to be implemented.

Empty:

empty.png (321×1 px, 29 KB)

Not empty:

not_empty.png (603×1 px, 39 KB)

I didn't test no-JS as that hasn't been implemented yet (right?)

I have raised a few bugs T410370, T410373, T410375.

@Samwilson I notice that there is currently no way to sort the labels. Should that be a separate task?

Users have a maximum of 100 labels, so pagination is not required for this table.

This doesn't appear to be enforced. Should we create a separate task?

I didn't test no-JS as that hasn't been implemented yet (right?)

It has been, and I was about to say that it's all working fine, but actually I seem to have stuffed it up! So let me have a look at that. The styles aren't loading, because I had to switch to using JS to load the icons. I think it might be okay to not load the icons in no-JS, I'm not sure.

I notice that there is currently no way to sort the labels. Should that be a separate task?

I just created it today: T410356: Make label manager columns sortable

This doesn't appear to be enforced. Should we create a separate task?

Good idea. Done: T410383: Limit watchlist labels to 100 per user