Page MenuHomePhabricator

Lexeme Language Lookup - Basic language lookup
Closed, ResolvedPublic

Description

As a Lexeme creator I want to be able to specify the language of my Lexeme from other Items in order to define the language my new Lexeme is in.

Problem:
We need a lookup to select the language of the new Lexeme from all Items.

Screenshots/mockups:
https://www.figma.com/file/XoYktoKEBnC0VIf1SRuxJK/Lexicographical-Data-UI?node-id=493%3A2610

BDD
GIVEN the special page to create a new Lexeme
THEN I can specify the language of the new Lexeme using an Item lookup

Acceptance criteria:

  • special page has language lookup
  • lookup selects from all Items on the Wikibase instance

Notes:

  • Placeholder text: The Lexeme’s language, e.g., ‘English’
  • Component: Wikit lookup component
  • Error: invalid selection (checked on submit later)

Event Timeline

Lydia_Pintscher renamed this task from Basic language lookup to Lexeme Language Lookup - Basic language lookup.Dec 21 2021, 8:23 PM

@Erdinc_Ciftci_WMDE I just noticed that we still need some copy for the text we show if the user types something crypric in the Language input and the API returns no items for that.

In the Wikit storybook page for the Lookup component we use "No match was found". Let me know if we should use that here as well or if you'd prefer something else.

Damn, but it’s not actually working in MediaWiki…

Screenshot 2022-03-23 at 12-09-38 Create a new Lexeme (experimental) - wiki1.png (261×628 px, 26 KB)

TypeError: slot is not a function

I guess this WikitLookup workaround component has to inform the Vue compat build that its render function expects the Vue 3 API?

I guess this WikitLookup workaround component has to inform the Vue compat build that its render function expects the Vue 3 API?

Yup https://github.com/wmde/new-lexeme-special-page/pull/96

Change 773511 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/WikibaseLexeme@master] Include new Lookups in Special:NewLexemeAlpha

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

Change 773511 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Include new Lookups in Special:NewLexemeAlpha

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