Page MenuHomePhabricator

[WtC-M3] [QB] [EPIC] Replace WiKit components by available Codex components
Open, Needs TriagePublic

Description

Problem

Query Builder's user interface was composed using a combination of Vue 2 custom components and WiKit components. The WiKit design system is now on its deprecation path, as it has been superseded by Codex, the now official Wikimedia design system.

Solution

Replacing WiKit components by available Codex elements will take us a step closer to switching to the new design system and deprecating the old.

Deprecating WiKit will mean contributing to establishing a single source of truth for FE components. Using Codex will ensure that we are up-to-date in terms of Wikimedia's front end standards, and it will also contribute to the migration of Query Builder from Vue 2 to Vue 3 (to avoid the side effects of Vue 2's end of life).

Here's a list of the WiKit components used in the Query Builder's UI that have equivalent Codex replacements:

WiKit componentCodex replacementNotes/Subtask
Buttons (Normal neutral, icon-only normal neutral, primary progressive, neutral progressive)CdxButtonT359851
CheckboxCdxCheckboxT359852
DropdownCdxSelectT359853
LinkLink mixinT359859
(Label +) LookupCdxLookupT360138
MessageCdxMessageT359860
(Label +) Text InputCdxField + CdxTextInputT359861
ToggleButton groupCdxToggleButtonGroupT362183

Out of scope from this task due to unavailability:

  • BouncingDotsLoader
  • DateInput
  • ExtendedNumberInput
  • InputWithExtender
  • LanguageSelector
  • QuantityInput
  • Tooltip
Acceptance criteria
  • All WiKit components that have an equivalent in Codex are replaced

Related Objects

Event Timeline

Sarai-WMDE renamed this task from [SW] [WtC-M3] [QB] [EPIC] Replace WiKit components by available Codex components to [WtC-M3] [QB] [EPIC] Replace WiKit components by available Codex components.Jun 18 2024, 1:58 PM