Page MenuHomePhabricator

Register PersonalDashboard ModuleGroups in extension.json
Closed, ResolvedPublic

Description

The need for this work was identified in T424023: SPIKE PersonalDashboard: Investigate ways to make dashboard instatiation more dynamic

Currently, the composition of modules in hardcoded in SpecialPersonalDashboard.

Module composition groups should be registered in extension.json to allow for more flexibility.

Acceptance criteria:

  • modules groups are registered via extension attribute
  • modules groups are namespaced to the extension that registers them
  • module loading may be controlled via url parameter to enable otherwise disabled modules

Event Timeline

jsn.sherman changed the task status from Open to In Progress.
jsn.sherman moved this task from Ready to In Progress on the Moderator-Tools-Team (Kanban) board.
jsn.sherman updated the task description. (Show Details)
Kgraessle renamed this task from Register PersonalDasbhoard ModuleGroups in extension.json to Register PersonalDashboard ModuleGroups in extension.json.Apr 30 2026, 4:39 PM

Change #1280543 had a related patch set uploaded (by Jsn.sherman; author: Jsn.sherman):

[mediawiki/extensions/PersonalDashboard@master] WIP Register PersonalDashboard ModuleGroups in extension.json

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

Okay, this is ready for a look. This is working reasonably well in my local testing, though I should note that I haven't added any unit or integration tests.

I set it up so that you can enable and disable modules via url param. Here's a screenshot of
/wiki/Special:PersonalDashboard?ext_personalDashboard_activeDiscussions=yes&ext_personalDashboard_riskyArticleEdits=no
in my local environment:

image.png (1,362×847 px, 136 KB)

You can see I've effectively replaced risky article edits with active discussions via url query params

Change #1280543 merged by jenkins-bot:

[mediawiki/extensions/PersonalDashboard@master] Register ModuleGroups in extension.json

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

Scardenasmolinar moved this task from QA to Done on the Moderator-Tools-Team (Kanban) board.
Scardenasmolinar subscribed.

Verified on testwiki that nothing broke and the new type of URL params works correctly.