Page MenuHomePhabricator

Item selector in Special:NewLexeme should show description
Closed, ResolvedPublic5 Estimated Story Points

Description

When selecting an Item it is not possible to choose the right one, because the description is missing

image.png (325×935 px, 28 KB)

VS.

image.png (328×592 px, 41 KB)

Also there are questions for consistency:

  • Should we omit showing the ID?
  • Should we show the matching text (domestic cat) ?
  • Should it be a link to the Item page?

@Lydia_Pintscher ?

Consider moving the resulting component to wikibase to make usable from other product (e.g. mediainfo).

Event Timeline

My first thought is that we want to be as consistent with the item selector on item pages as possible.

Pablo-WMDE updated the task description. (Show Details)

Change 441555 had a related patch set uploaded (by Jakob; owner: Jakob):
[mediawiki/extensions/WikibaseLexeme@master] Show description in the item selector on Special:NewLexeme

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

What was the decision on showing the id generally? Answered by "as consistent with the item selector on item pages as possible"? EntitySelector in lexeme header does show the id after the label.

No label and description properties on data in getLookupMenuOptionsFromData() if not present in item - provide a fallback to id, maybe? Admittedly a strange situation but happened to be the case in my dev.

Bildschirmfoto von 2018-06-26 10-06-28.png (1×1 px, 171 KB)

If an list item with existing label and description is selected the newly created HTML - in escaped fashion - is used as input value (UI-wise not technically).

Bildschirmfoto von 2018-06-26 10-09-33.png (1×1 px, 168 KB)

Bildschirmfoto von 2018-06-26 10-09-43.png (1×1 px, 165 KB)

Change 441555 merged by jenkins-bot:
[mediawiki/extensions/WikibaseLexeme@master] Show description in the item selector on Special:NewLexeme

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