Page MenuHomePhabricator

[WtC-M3] [QB] Replace WiKit Message 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 Message. 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 the WiKit Message by the Codex equivalent: cdx-message(See demo). This will take us a step closer to switching to the new design system and deprecating the old.

Acceptance criteria
  • All types of WiKit Messages used in Query Builder are replaced by their Codex equivalent

Event Timeline

Arian_Bozorg renamed this task from [SW] [WtC-M2] [QB] Replace WiKit Message component by Codex's to [SW] [WtC-M3] [QB] Replace WiKit Message component by Codex's.Mar 11 2024, 3:44 PM
Arian_Bozorg renamed this task from [SW] [WtC-M3] [QB] Replace WiKit Message component by Codex's to [WtC-M3] [QB] Replace WiKit Message component by Codex's.Jun 5 2024, 11:04 AM

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

Change #1075962 had a related patch set uploaded (by Itamar Givon; author: Itamar Givon):

[wikidata/query-builder@master] Replace Wikit Message usage with Codex in QueryResult.vue

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

Change #1075964 had a related patch set uploaded (by Itamar Givon; author: Itamar Givon):

[wikidata/query-builder@master] Rewrite QueryResults in <script setup> syntax

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

Hey @ItamarWMDE

all looks good to me except in RTL it seems like the spacing between the text and the icon is not respected. could you have a look?

grafik.png (250×2 px, 29 KB)

I can't test the error message because I can't trigger it currently as mentioned in the T359861 ticket

Hey @ItamarWMDE

all looks good to me except in RTL it seems like the spacing between the text and the icon is not respected. could you have a look?

Nice Catch! I should test more often in my native language 😅. This also helped resolve a mysterious issue we had with the whole condition not fitting into one row. Check out https://1075962--clicky-sparqly.netlify.app/ again to revalidate.

I can't test the error message because I can't trigger it currently as mentioned in the T359861 ticket

For some reason on this change (as opposed to T359861: [WtC-M3] [QB] Replace WiKit TextInput component by Codex's) I am able to reproduce the lack of validation. Something very odd is afoot. What do you say we put a pin in it (by creating a separate bug ticket) and perhaps getting back to it after the migration is done, to make sure that everything is fixed by then?

Nice Catch! I should test more often in my native language 😅. This also helped resolve a mysterious issue we had with the whole condition not fitting into one row. Check out https://1075962--clicky-sparqly.netlify.app/ again to revalidate.

Yay, that's awesome, looks good now, thanks!

For some reason on this change (as opposed to T359861: [WtC-M3] [QB] Replace WiKit TextInput component by Codex's) I am able to reproduce the lack of validation. Something very odd is afoot. What do you say we put a pin in it (by creating a separate bug ticket) and perhaps getting back to it after the migration is done, to make sure that everything is fixed by then?

sounds good to me 👍

Change #1075962 merged by jenkins-bot:

[wikidata/query-builder@master] Replace Wikit Message usage with Codex in QueryResult.vue

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

Change #1075964 merged by jenkins-bot:

[wikidata/query-builder@master] Rewrite QueryResults in <script setup> syntax

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