Page MenuHomePhabricator

Add 'Associated namespace' checkbox to Special:Contributions
Closed, ResolvedPublic

Description

Provide the option to filter by "Associated namespace" on the Special:Contributions/{{User}} page like Special:RecentChanges page.


Version: unspecified
Severity: enhancement

Details

Reference
bz32512

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:01 AM
bzimport set Reference to bz32512.

Created attachment 9612
Patch against trunk

attachment associated_namespace.patch ignored as obsolete

Created attachment 9680
Screenshot of form kinda spilling over in an ugly way

Looks good overall... A couple things:

Notice: Use of MWNamespace::isMain was deprecated in MediaWiki 1.19. [Called from MWNamespace::getAssociated in /var/www/trunk/includes/Namespace.php at line 129] in /var/www/trunk/includes/GlobalFunctions.php on line 3520

switching to isSubject will resolve that.

It's also kinda cluttering up the screen. Attaching a screenshot -- the checkbox may end up splitting over a linebreak and in general it looks like this needs some improvement to group the namespace together with the namespace-related options.

Fix those and I'm happy to land this!

Attached:

lloonngglliinnee.png (305×929 px, 37 KB)

Created attachment 9705
Patch against trunk

The notice came from MWNamespace::getAssociated(), which still used isMain().

I've made the grouping of the form friendlier for small window sizes, and I also put it in a table and split the code into some chunks so that its easier to move parts of the form around when needed.

Attached:

Looks good! I've applied to trunk (for 1.19) in r106297.

Thanks for porting this from RecentChanges to Contribs :)