Page MenuHomePhabricator

CentralNotice: Replace date picker and multiselect widgets with OOUI widgets in Admin UI
Open, Needs TriagePublic

Description

For datepicker and multiselects, we depend on deprecated jquery.ui modules, which should be removed (T49145, T100270).

In the case of multiselects, the module is not part of Mediawiki core, but rather is included in directly in the CentralNotice codebase. It has not been updated in a while.

A thorough overhaul of the CentralNotice Admin UI is, I think, desirable... Still, in any new UI, we'll still need date selection and multiselect widgets. So, in theory, it seems much of any new code written to use OOUI for these widgets could be re-used in an rewritten Admin UI.

Event Timeline

matmarex renamed this task from CentralNotice: Replace data picker and multiselect widgets with OOUI widgets in Admin UI to CentralNotice: Replace date picker and multiselect widgets with OOUI widgets in Admin UI.Jan 30 2018, 1:52 PM
matmarex subscribed.

For multiselects, you'll probably want to use OO.ui.MenuTagMultiselectWidget. Please don't use CapsuleMultiselectWidget, it's identical in functionality but we're trying to deprecate it :)

For dates, you can use mw.widgets.DateInputWidget. Note that this is not part of OOUI, but rather a separate RL module in MediaWiki core.

If you need help, please ask. I'm removing the OOUI project, since it doesn't seem you have any bug reports or feature requests for OOUI yet :)