Page MenuHomePhabricator

Move non-MW specific widgets from mediawiki.widgets up into OOUI
Open, LowPublic

Description

If the widget is not specific to MW we should not restrict its usage to MW.

Currently I think this would include:

  • DateInputWidget or DateTimeInputWidget
  • CalendarWidget (whether that's mw.widgets.CalendarWidget or mw.widgets.datetime.CalendarWidget depends on the above)

and in VE-core that should be moved up:

  • LanguageSearchWidget

Event Timeline

Esanders created this task.Sep 13 2015, 4:15 PM
Esanders raised the priority of this task from to Needs Triage.
Esanders updated the task description. (Show Details)
Esanders added a project: OOUI.
Esanders added a subscriber: Esanders.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 13 2015, 4:15 PM

LanguageSearchWidget is also dependent on jQuery.uls.data, or some list of autonyms, to be useful.

CalendarWidget and DateInputWidget depend on moment.js. Either we'd have to add is as a dependency to OOjs UI, or reimplement them not to require it (which would primarily mean including our own translations for month and day names, and date and number formatting routines).

LanguageSearchWidget is also dependent on jQuery.uls.data, or some list of autonyms, to be useful.

I guess we could put a brain-dead version in OOUI (without data), and then have MW-widgets replace it (somehow?) so that VE-core's use of it magically uses an MW-ified version. Or VE-MW could over-ride the VE-core functionality?

So what you're saying is that we should specify a dependency on jquery.uls,
but not bundle it with OOjs UI.

So what you're saying is that we should specify a dependency on jquery.uls, but not bundle it with OOjs UI.

No, I was going to have OOUI's widget magically use the same data structure as jquery.uls.data, and let the platform infuse it with data.

Jdforrester-WMF triaged this task as Low priority.Mar 2 2016, 2:16 AM
Jdforrester-WMF set Security to None.
Danny_B moved this task from Unsorted to Move on the Technical-Debt board.Apr 21 2016, 7:32 PM
Anomie added a subscriber: Anomie.Jul 12 2016, 9:17 PM
Anomie updated the task description. (Show Details)Jul 12 2016, 9:19 PM
Volker_E renamed this task from Move non-MW specific widgets from mediawiki.widgets up into OOJSUI to Move non-MW specific widgets from mediawiki.widgets up into OOjs UI.Mar 10 2017, 11:38 PM
Volker_E renamed this task from Move non-MW specific widgets from mediawiki.widgets up into OOjs UI to Move non-MW specific widgets from mediawiki.widgets up into OOUI.Jan 10 2018, 1:08 AM