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 raised the priority of this task from to Needs Triage.
Ricordisamoa updated the task description. (Show Details)
Ricordisamoa subscribed.
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.

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

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.

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 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)

Change #1018350 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/CentralAuth@master] Remove old jquery.suggestions-based autocomplete

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

Change #1018350 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Remove old jquery.suggestions-based autocomplete

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