Page MenuHomePhabricator

[WtC-M3] [QB] Replace WiKit Checkbox by Codex's
Closed, ResolvedPublic

Description

Problem

The Query Builder's user interface was composed using a combination of Vue 2 custom components and WiKit elements, such as Checkbox. 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 checkboxes used within the "Settings" section of the Query Builder by the Codex equivalent: cdx-checkbox (See demo). This will take us a step closer to switching to the new design system and deprecating the old.

Acceptance criteria
  • The WiKit Checkboxes in Query Builder are replaced by their Codex equivalent

Event Timeline

Sarai-WMDE renamed this task from [SW] [WtC-M3] [QB] Use Codex Checkbox within Dialog to [SW] [WtC-M3] [QB] Replace WiKit Checkbox by Codex's.Apr 9 2024, 4:10 PM
Sarai-WMDE updated the task description. (Show Details)
Sarai-WMDE renamed this task from [SW] [WtC-M3] [QB] Replace WiKit Checkbox by Codex's to [WtC-M3] [QB] Replace WiKit Checkbox by Codex's.Apr 10 2024, 12:06 PM

Change #1041594 had a related patch set uploaded (by Guergana Tzatchkova; author: Guergana Tzatchkova):

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

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

Hello, @Sarai-WMDE , you can test this change here: https://1041594--clicky-sparqly.netlify.app/
Please let us know if there are any adjustments needed in the UX. :)

Change #1041594 merged by jenkins-bot:

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

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

Just a small detail. Looks like extra space was added after the checkbox label. There should be a gap of only 0.5em/8px between the text and the number input:

Screenshot 2024-07-22 at 10.06.30.png (1×2 px, 254 KB)

Otherwise, looking good! Glad you managed to display the limit checkbox as preselected 💯

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

[wikidata/query-builder@master] Fix codex checkbox padding

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

Just a small detail. Looks like extra space was added after the checkbox label. There should be a gap of only 0.5em/8px between the text and the number input:

Screenshot 2024-07-22 at 10.06.30.png (1×2 px, 254 KB)

Otherwise, looking good! Glad you managed to display the limit checkbox as preselected 💯

You can check from https://1055967--clicky-sparqly.netlify.app/, if it works you can +2 on gerrit.

Hey @HasanAkgun_WMDE! Thanks for the changes. I checked right when you shared, and found that indeed the padding between the checkbox label and the input has been corrected. I found an issue that stopped me from giving a thumbs up right away, but I now realized it's unrelated to this change: so all good! 👍🏻

Change #1055967 merged by jenkins-bot:

[wikidata/query-builder@master] Fix codex checkbox padding

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

Last fixes looking good. I'm assuming that the RTL issue affecting the checkboxes, which aren't correctly aligned (see screenshot below) should be fixed as part of T371519: [QB] RTL layout is broken on staging environment.

Screenshot 2024-07-31 at 20.19.31.png (332×1 px, 32 KB)

@ItamarWMDE if you can you confirm this will be fixed on T371519 I'll close this ticket :)

I confirm indeed! 😄