Page MenuHomePhabricator

Use OOUI suggestions/autocompletion components only (instead of jquery.suggestions, jquery.ui.autocomplete)
Open, LowPublic

Description

Currently, we embed and use (at least) three of them:

Event Timeline

Ricordisamoa updated the task description. (Show Details)
Ricordisamoa raised the priority of this task from to Needs Triage.
Ricordisamoa added a subscriber: Ricordisamoa.
Aklapper renamed this task from Use a single suggestions/autocompletion component to Use a single suggestions/autocompletion component (instead of LookupInputWidget, jquery.suggestions, jquery.ui.autocomplete).Dec 28 2014, 11:09 PM
Aklapper triaged this task as Low priority.
Aklapper set Security to None.

I suppose the ultimate plan is to make the whole MediaWiki software use OOjs UI, isn't it?

Ricordisamoa renamed this task from Use a single suggestions/autocompletion component (instead of LookupInputWidget, jquery.suggestions, jquery.ui.autocomplete) to Use a single suggestions/autocompletion component (instead of OO.ui.LookupElement, jquery.suggestions, jquery.ui.autocomplete).Jan 16 2015, 12:04 AM
Ricordisamoa updated the task description. (Show Details)

Per T86851, LookupInputWidget has been deprecated in favor of the simpler LookupElement (thanks @matmarex!).
Now there shouldn't be any blocker for using OOjs UI.

A mwgrep for jquery.ui.autocomplete would help, it may not catch every usage though.

Catrope claimed this task.May 24 2015, 12:50 PM
Catrope moved this task from Unsorted to Researching… on the UI-Standardization board.

jquery.ui.autocomplete is not used in MW core, but it is used by the following extensions:

  • Gadgets (RL2 branch only)
  • Translate
  • MassMessage
  • EducationProgram

jquery.suggestions is used by:

  • MW core (searchSuggest and userSuggest)
  • WikiEditor
  • CentralAuth
  • UploadWizard
Legoktm added a subscriber: Legoktm.Jul 1 2015, 5:03 AM

There is now a TitleInputWidget in MediaWiki core which will replace MassMessage's usage of jquery.ui.autocomplete.

We will probably need to create similar widgets for core's userSuggest and CentralAuth's globaluserautocomplete.

We will probably need to create similar widgets for core's userSuggest and CentralAuth's globaluserautocomplete.

And that's UserInputWidget now :)

CentralAuth will need to create its own widget/extend UserInputWidget.

Florian added a subscriber: Florian.Sep 8 2015, 6:12 PM

The EducationProgram extension uses a heavily modified version of Twitter Typeahead, in combination of Bootstrap Tags Input. Used on course pages to allow instructors and volunteers to enroll students in a course. (See [[ https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FEducationProgram.git/master/resources%2Fep.tagsinput%2Fep.typeahead.js

resources/ep.tagsinput/ep.typeahead.js ]] and

https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FEducationProgram.git/master/resources%2Fep.tagsinput%2Fep.tagsinput.js | resources/ep.tagsinput/ep.tagesinput.js ]].)

Ricordisamoa renamed this task from Use a single suggestions/autocompletion component (instead of OO.ui.LookupElement, jquery.suggestions, jquery.ui.autocomplete) to Use OOjs UI suggestions/autocompletion components only (instead of jquery.suggestions, jquery.ui.autocomplete).Jan 29 2017, 6:50 PM
Jdforrester-WMF removed Catrope as the assignee of this task.Mar 28 2017, 4:26 PM
Jdforrester-WMF added a subscriber: Catrope.
Volker_E renamed this task from Use OOjs UI suggestions/autocompletion components only (instead of jquery.suggestions, jquery.ui.autocomplete) to Use OOUI suggestions/autocompletion components only (instead of jquery.suggestions, jquery.ui.autocomplete).Mar 25 2018, 7:40 PM
Volker_E updated the task description. (Show Details)