Page MenuHomePhabricator

Update error message on blur of Lookup where no item has been selected
Closed, ResolvedPublic

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Fill out a lookup field with some text, and then press the Tab key. Make sure to not choose one of the menu items options
  • Click the Create Lexeme button

What happens?:

There's an error message shown below the lookup that says that the lookup is empty. The Lookup is technically not empty so this message needs to be changed to "invalid entry" probably. Screenshot below.

image.png (345×621 px, 37 KB)

What should have happened instead?:

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

Event Timeline

@Lydia_Pintscher We need copy for this type of error message, where the entry is not an item and therefore invalid. any Ideas?

How about these?

"Lexeme language needs to be a valid Item."
"Spelling variant needs to be a valid language code."
"Lexical category needs to be a valid Item."

Change 804571 had a related patch set uploaded (by Noa wmde; author: Noa wmde):

[mediawiki/extensions/WikibaseLexeme@master] Lexidata: add invalid content error message keys

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

Here’s what it looks like with the current state of the pull request:

image.png (430×857 px, 41 KB)

The “no results” covers the error message while the input is focused. Is that okay?

Lucas_Werkmeister_WMDE changed the subtype of this task from "Bug Report" to "Task".Jun 15 2022, 10:54 AM

Change 804571 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Lexidata: add invalid content error message keys

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

I think this still needs an update in WikibaseLexeme.git?

Change 806204 had a related patch set uploaded (by Noa wmde; author: Noa wmde):

[mediawiki/extensions/WikibaseLexeme@master] build changes from to new-lexeme

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

Change 806204 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] build changes from to new-lexeme

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