Page MenuHomePhabricator

Create a custom Lexeme Sense UI component in Vue
Closed, ResolvedPublic

Description

Description

There are at least 10 community-contributed functions that employ lexeme senses. Z6831/Find lexemes for a Wikidata lexeme sense was deployed this week, and could encourage more such functions. So it would be helpful for users to have UI support that provides a selector, collapsed view, etc.

In particular, whenever requesting a function call with a lexeme sense input, a selector would provide substantial convenience, clarity, and time savings for users. This can be seen by comparing input selection in Z6826 Fetch Wikidata lexeme sense to that in Z6824 Fetch Wikidata lexeme form.

  • Add a custom lexemeSense.vue component in the frontend default-view-types
  • Fetch the lexeme senses from Wikidata using their Api
  • Exact solution TBD by design

These should get a custom component:

Acceptance Criteria

  • Lexeme Sense references are displayed with a custom, user-friendly component in both read and edit mode
  • Component supports collapsed and expanded views, visually consistent with other Wikidata references
  • Users can search for and select lexeme senses using live Wikidata data
  • Users can create Wikidata Enums with type Lexeme Sense (with values like L123-S1)
  • Selected senses show gloss and link to Wikidata in read mode
  • Invalid or unavailable sense references degrade gracefully (e.g. show raw ID)
  • Follows design: https://phabricator.wikimedia.org/T397410

Event Timeline

DSmit-WMF edited projects, added OKR-Work; removed Epic.
DSmit-WMF renamed this task from Create a custom Lexeme Sense component in Vue to Create a custom Lexeme Sense UI component in Vue .Jul 1 2025, 12:14 PM
DSmit-WMF updated the task description. (Show Details)
DSmit-WMF updated the task description. (Show Details)

Change #1166864 had a related patch set uploaded (by Daphne Smit; author: Daphne Smit):

[mediawiki/extensions/WikiLambda@master] Create a custom Lexeme Sense UI component in Vue

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

DSantamaria changed the task status from In Progress to Open.Jul 18 2025, 2:09 PM

Change #1166864 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Create a custom Lexeme Sense UI component in Vue

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