Page MenuHomePhabricator

[SW] [WtC-M2] [SNL] Replace WiKit's Lookup component by Codex's
Open, Needs TriagePublic

Description

Problem

The Special:NewLexeme's user interface was composed using a combination of Vue 3 WiKit next 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). In order to preserve its validation behavior, Lookup needs to be wrapped within the Field component (see demo). Field also provides a label for the components it wraps.

image.png (1×2 px, 439 KB)

The WiKit Lookup component is used by the following Special:NewLexeme components:

Acceptance criteria
  • The WiKit Lookup component used in the Special:NewLexeme is replaced by its Codex equivalent, Lookup Field

Event Timeline

Arian_Bozorg renamed this task from [WtC-M2] [SNL] Replace WiKit's Lookup component by Codex's to [SW] [WtC-M2] [SNL] Replace WiKit's Lookup component by Codex's.Jul 16 2024, 1:41 PM
Arian_Bozorg moved this task from Incoming to UX Backlog on the Wikidata Dev Team board.

Hi, I noticed this moving and wanted to let you know about T362650: Lookup: address usability issues. That task might soonish result in minor changes to the behavior of Codex Lookups, though I cannot say whether those changes will be relevant to this Special:NewLexeme usecase.

Change #1076719 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[design/codex@main] Add aria-role to empty lookup result item

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

Change #1076719 merged by jenkins-bot:

[design/codex@main] Lookup: Add ARIA `role`` to no result Lookup item

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