Page MenuHomePhabricator

Scoped Typeahead Search UI updates
Closed, ResolvedPublic

Assigned To
Authored By
Arian_Bozorg
Mar 18 2025, 4:23 PM
Referenced Files
F58973195: Screenshot from 2025-04-03 17-15-20.png
Thu, Apr 3, 3:19 PM
F58935914: image.png
Fri, Mar 28, 3:51 PM
F58910156: image.png
Mar 24 2025, 4:14 PM
F58910141: image.png
Mar 24 2025, 4:14 PM
F58910132: image.png
Mar 24 2025, 4:14 PM
F58910202: image.png
Mar 24 2025, 4:14 PM
F58910170: image.png
Mar 24 2025, 4:14 PM
F58910165: image.png
Mar 24 2025, 4:14 PM

Description

This is a collection of UI edits to Scoped Typeahead Search.

You can view the changes on the figma file here: https://www.figma.com/design/JU89C2lnmWLoadkYwJroNT/Wikidata-Ongoing-Tickets?node-id=217-22951&m=dev

Update border colour
Update the border colour to: border-color/base

image.png (90×495 px, 7 KB)
Incorrect

image.png (125×748 px, 5 KB)
Correct

Update font
Update the font for "Search Wikidata" to UI text S/Regular: Inter Regular 14 Line Spacing: 22 Letter Spacing: -0.3%

image.png (90×495 px, 7 KB)
Incorrect

image.png (125×748 px, 5 KB)
Correct

Remove gap
Remove gap between input fields. The line should be 1px wide.

image.png (323×424 px, 8 KB)
Incorrect

image.png (380×694 px, 10 KB)
Correct

Update typeahead search results
Update the typeahead search to be the width of the input field

image.png (544×811 px, 69 KB)
Incorrect

image.png (296×482 px, 11 KB)
Correct

Fix alignment
Align the "Search Wikidata for pages containing..." to the left

image.png (743×730 px, 45 KB)
Incorrect

image.png (277×361 px, 8 KB)
Correct

Remove white line
Remove white 1px line at the bottom of the "Search Wikidata for pages containing..." section

image.png (242×1 px, 41 KB)
Incorrect

image.png (146×423 px, 25 KB)
Correct

Update copy
Update 'Entity schemas' to 'EntitySchemas'

Acceptance Criteria

  • All UI changes have been

Event Timeline

@Arian_Bozorg the request to "Update the border colour to: Option Tokens/Gray/400" - that's a fixed gray (i.e. not a colour that dark-mode will invert). Are you sure that's what we want here? Or do we want an invertable token?

@Arian_Bozorg The request "UI text S/Regular: Inter Regular 14 Line Spacing: 22 Letter Spacing: -0.3%" - are 14 and 22 px values? Why do we want to use px instead of rem? Is Line Spacing really meant as 22 here, or is the request to make the Line *Height* 22, i.e. the *Spacing* 6 (px?)?

@Arian_Bozorg The request 'Update the typeahead search to be the width of the inpuit field' - I don't understand what the request here is. The current implementation looks like the design in Figma

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

[mediawiki/extensions/Wikibase@master] Fix layout issues with Scoped Typeahead search

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

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

[mediawiki/extensions/EntitySchema@master] Update scope name for scoped typeahead search

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

I've updated the patch to address most of the issues mentioned. The "Remove white line" issue is something that I see on Wikipedia and on Wikidata for the typeahead search that comes from codex. If we want this fixed, I recommend we raise a ticket with codex rather than trying to hack the component ourselves.

Just updated the border colour in the ticket description to an invertable colour: border-color/base

Change #1130557 merged by jenkins-bot:

[mediawiki/extensions/EntitySchema@master] Update scope name for scoped typeahead search

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

I found another subtle UI issue - not sure if it belongs in this ticket or a followup

image.png (331×821 px, 19 KB)

The corners of the select component have a small radius, preventing these from being seamlessly combined

Change #1130551 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Fix layout and colouring issues with Scoped Typeahead search

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

Change #1132004 had a related patch set uploaded (by Audrey Penven; author: Audrey Penven):

[mediawiki/extensions/Wikibase@master] Sharpen corners of ScopedTypeaheadSearch selector

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

Change #1132004 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Sharpen corners of ScopedTypeaheadSearch selector

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

Thank you!

This is looking good, although it looks like something in the dropdown is broken

Screenshot from 2025-04-03 17-15-20.png (497×299 px, 37 KB)

And it looks like EntitySchemas is missing from the dropdown.

Can we please add it and update it from "Entity schemas" to "EntitySchemas"

And could we please also update the dropdown from "Find different types of Wikidata entries" to "Find different types of Wikidata entities"

Change #1134226 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/WikibaseLexeme@master] Fix message key in hook handler

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

This is looking good, although it looks like something in the dropdown is broken

Screenshot from 2025-04-03 17-15-20.png (497×299 px, 37 KB)

Fixed in the above change.

And it looks like EntitySchemas is missing from the dropdown.

Can we please add it and update it from "Entity schemas" to "EntitySchemas"

Apparently it’s not available in Patch Demo yet ⇒ T391106: Add EntitySchema to Patch Demo. (The message is “EntitySchemas” already.)

And could we please also update the dropdown from "Find different types of Wikidata entries" to "Find different types of Wikidata entities"

That’s happening in this change (T390269: ScopedTypeaheadSearch: replace all user-visible text with translatable messages).

Change #1134226 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Fix message key in hook handler

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

And it looks like EntitySchemas is missing from the dropdown.

Can we please add it and update it from "Entity schemas" to "EntitySchemas"

Apparently it’s not available in Patch Demo yet ⇒ T391106: Add EntitySchema to Patch Demo. (The message is “EntitySchemas” already.)

Fixed, you can try it in https://6c57336911.catalyst.wmcloud.org/.