Page MenuHomePhabricator

Add a drop-down list for the tags in Special:Newpages, Special:Log and Special:Contributions
Closed, ResolvedPublic

Description

Original description
After an idea of [[:fr:User:Padawane]]¹ it would be great to add a drop-down list for the tags in Special:Recentchanges and Special:Newpages instead of an edit box. This would help users who don't know what are exactly the tags and users who use intensively the tags.

[[:fr:User:Dr Brains]] proposes to add two system messages to give the ability to the sysops of customizing the tags useful for Newpages and Recentchanges, possibly like the one in Special:Block.

¹ http://fr.wikipedia.org/w/index.php?title=Wikip%C3%A9dia:Demande_d%27intervention_sur_un_message_syst%C3%A8me&oldid=59019598#Sp.C3.A9cial:Nouvelles_pages

The RecentChanges part of this is done in T161650: Replace "Tag filter" input with a dropdown+lookup widget in RCFilters.


See Also:
T23383: Suggest tags for tag filter at Special:Contributions, Special:NewPages, Special:RecentChanges, and Special:Log

Related Objects

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes

I've uploaded a patch set for T91535.
This creates in particular a list of tags applied at least once, cached for 24 hours, that can be further filtered by 'active' or 'problem' status.
I'd suggest no extra filtering for logs and histories, 'active' filtering for Special:RecentChanges, and 'problem' filtering for Special:ProblemChanges.

Change 211497 had a related patch set uploaded (by Cenarium):
Drop down menu for selecting tags

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

Does this task cover everything in T23383? Maybe it can be closed as duplicate.

Does this task cover everything in T23383? Maybe it can be closed as duplicate.

In https://gerrit.wikimedia.org/r/#/c/211497/, I've implemented a basic html drop down. I think people were concerned with the high number of tags on some wikis.
The possibility to exclude tags from the drop down (by entering an empty appearance) mitigates this concern greatly (tags with few hits or very old but non-deletable could be hidden).

We might leave T23383 open for a while in case people aren't satisfied with a drop down and still want a suggest form or some fancy javascript. If a simple drop down turns out to be enough, then we'll close it.

Change 211497 had a related patch set uploaded (by Cenarium):
Drop down menu for selecting tags

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

https://gerrit.wikimedia.org/r/#/c/218265 ensures that the issues of T105189 will not occur by providing a new cache.
Besides that, I don't think that there is interaction between RTRC and the drop down menus added here.

kostajh added a subscriber: kostajh.

Growth team discussed this today in our triage meeting. The Special:RecentChanges page has this feature now, although Special:Newpages does not. Our team won't have the capacity to work on a patch for Special:Newpages but volunteer contributions would be very welcome.

kostajh renamed this task from Add a drop-down list for the tags in Recentchanges and Newpages to Add a drop-down list for the tags in Special:Newpages.Sep 18 2018, 7:49 PM

Change 211497 had a related patch set uploaded (by Matěj Suchánek; owner: Cenarium):
[mediawiki/core@master] Drop down menu for selecting tags

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

Re: user-notice - please help drafting a 1-2 sentence simple summary for Tech News. IIUC it would be something like this:

"[[Special:NewPages]] has a new drop-down menu interface for selecting the Tag filter. You do not need to type the tag from memory anymore."

(corrections welcome!)

"[[Special:NewPages]] has a new drop-down menu interface for selecting the Tag filter. You do not need to type the tag from memory anymore."

Since @daniel on Gerrit wanted clarification on the scope: The patch will actually change this on all special pages that use the same input as Special:NewPages. It should be also Special:Log and Special:Contributions at least. The interface will be different from that on modern recent changes and watchlist (it will just allow for single tag and won't display additional description). Not sure now what happens to the old interfaces which are still supported, I will try to keep in mind to check them.

matej_suchanek renamed this task from Add a drop-down list for the tags in Special:Newpages to Add a drop-down list for the tags in Special:Newpages, Special:Log and Special:Contributions.Jan 6 2020, 4:56 PM
matej_suchanek updated the task description. (Show Details)

Change 757974 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/core@master] Add dropdown menu to \"Tag filter\" fields

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

Okay, so here's yet another attempt at this. I tried to re-use as much code as possible from the fancy dropdown in RCFilters, which will hopefully make this easier to review and approve than the past attempts.

Special:EditTags has a selector for tags (to select the new ones)

Test wiki created on Patch demo by Matěj Suchánek using patch(es) linked to this task:

https://patchdemo.wmflabs.org/wikis/2e624363c8/w/

Okay, so here's yet another attempt at this. I tried to re-use as much code as possible from the fancy dropdown in RCFilters, which will hopefully make this easier to review and approve than the past attempts.

Nice, definitely an improvement! This could be one of the earliest completed wishes of this year's survey.

Okay, so here's yet another attempt at this. I tried to re-use as much code as possible from the fancy dropdown in RCFilters, which will hopefully make this easier to review and approve than the past attempts.

Nice, definitely an improvement! This could be one of the earliest completed wishes of this year's survey.

+1 Very nice work!

bild.png (829×1 px, 76 KB)

Change 757974 merged by jenkins-bot:

[mediawiki/core@master] Add dropdown menu to \"Tag filter\" fields

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

matmarex claimed this task.

Change 211497 abandoned by Matěj Suchánek:

[mediawiki/core@master] ChangeTags: Use dropdown menu for selecting tags

Reason:

Done another way

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

The tags should be sorted by hit count and tags with zero hit counts should be hidden. Also inactive tags shouldn't be hidden as long as they have hit counts.

The sort order and the list is exactly the same as in the previously existing interface at Special:RecentChanges.

Then they should be sorted by hit count there too. 😁 As for inactive tags, it makes some sense to hide them at RecentChanges because they're all, well, recent changes, but not so much at history, contributions, etc., which include older edits.

The tags should be sorted by hit count

I believe this would go against what I wrote in my proposal:

You need to remember the internal tag name, which for localized tag is different from the name you are used to seeing.

In other words, sorting alphabetically makes you quickly find the localized tag that you are used to seeing.

Test wiki on Patch demo by Matěj Suchánek using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/2e624363c8/w/