Page MenuHomePhabricator

Add radio and checkbox base components
Closed, ResolvedPublic

Description

For the namespace filter, we will need to recreate the OOUI radio buttons and checkboxes as Vue components. Since these are potentially reusable, let's create base components for them.

Existing checkbox components: Wikit, termbox

Existing radio buttons: ContentTranslation, wikibase vuejs components


Acceptance criteria:

  • Working Radio component is provided and matches the relevant OOUI widget in terms of style and functionality (RadioInputWidget)
  • Working Checkbox component is provided and matches the relevant OOUI components (CheckboxInputWidget)

(note that RadioGroup and CheckboxGroup components were removed from acceptance criteria since they ended up not being needed; developer users of these components can simply handle input group data in their own components and no additional styles are needed)

Event Timeline

Change 670275 had a related patch set uploaded (by Anne Tomasevich; owner: Anne Tomasevich):
[mediawiki/extensions/WikibaseMediaInfo@master] Add checkbox and radio base components

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

AnneT renamed this task from Add radio button and checkbox base components to Add radio and checkbox base components.Mar 10 2021, 4:48 PM
AnneT updated the task description. (Show Details)

Change 670275 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Add checkbox and radio base components

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

Note to @Etonkovidova, this can't be tested until T276261 is merged since there are no other instances of these components in the app.

Checked on commons wmf.36 - works as expected; the logstash doesn't have client errors related to Special:MediaSearch as far as I could see.