Page MenuHomePhabricator

[WtC-M3] [QB] Replace WiKit's Lookup component by Codex's
Open, Needs TriagePublic

Description

Problem

The Query Builder's user interface was composed using a combination of Vue 2 custom components and WiKit elements, such as Lookup. The WiKit design system is now on its deprecation path, as it has been superseded by Codex, the official Wikimedia design system. The utilization of WiKit components is not recommended, and they should be replaced in order to reduce maintenance costs and ensure consistency.

Solution

We have to replace WiKit's Lookup component by the Codex equivalent: cdx-lookup (Link to demo). This will take us a step closer to switching to the new design system and deprecating the old.

Acceptance criteria
  • The WiKit Lookup component used in the Query Builder is replaced by its Codex equivalent

Event Timeline

Arian_Bozorg renamed this task from [SW] [WtC-M3] [QB] Replace WiKit's Lookup component by Codex's to [WtC-M3] [QB] Replace WiKit's Lookup component by Codex's.Jun 5 2024, 11:11 AM

This task will require design verification. Please ping Charlie Kritschmar whenever the ticket is ready to be reviewed. Thank you!

Moved back since this is blocked on finishing the Dropdown Component in T359853

Change #1081940 had a related patch set uploaded (by Hasan Akgün (WMDE); author: Hasan Akgün (WMDE)):

[wikidata/query-builder@master] Replace WiKit's Lookup component by Codex's

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

Change #1081940 merged by jenkins-bot:

[wikidata/query-builder@master] Replace WiKit's Lookup component by Codex's

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

Could you please provide me with a netlify link so that i can review the changes?

  1. the error state does not have the right colors for the outline and the background
    image.png (142×560 px, 12 KB)
    image.png (96×340 px, 1 KB)
  1. the lookup component is currently labeled as a combobox in voiceover. could we change the naming there?

Change #1126027 had a related patch set uploaded (by Hasan Akgün (WMDE); author: Hasan Akgün (WMDE)):

[wikidata/query-builder@master] Update codex version to fix colors and styles

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

Had a look together with @HasanAkgun_WMDE and everything looks good now 🎉