Page MenuHomePhabricator

[MEX][QC] Add icons to snaks
Closed, ResolvedPublic

Description

For the implementation of Quality Constraints (T400676) and Lilypond / musical notation (T407247) we need to be able to show informational icons next to snaks (main snaks, qualifiers, and/or references):

Screenshot 2025-11-28 at 12.49.58.png (1×1 px, 131 KB)

FIGMA LINK

Extend the savedStatementsStore so that it is possible to associate flags with icon types to indicate that selected icons should be displayed next to the snak when rendered in the MEX statement view. It might make sense here to refactor the store so that information already associated with snaks (for example the snakValueHtmlForHash) is accessible from a savedSnakStore (similar to the implementation of the editSnakStore in editStatementStore).

Acceptance Criteria

  • Icons can be associated with snaks (by placing additional data in the pinia store) and will be displayed in the UI (snakValue.vue) when present
    • It suffices for QA purposes to have this only tested by unit tests - the population of the snak store by real information will follow as part of the implementation of the above-mentioned tickets.
    • Initial icon support will be limited to the currently-implemented datatypes

Details

Event Timeline

ArthurTaylor renamed this task from [MEX] Add icons to snaks to [MEX][QC] Add icons to snaks.Dec 4 2025, 7:21 AM

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

[mediawiki/extensions/Wikibase@master] Add indicator icons to snaks

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

Change #1216783 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Add indicator icons to snaks

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