As a user I would like to get suggestions for qualifiers that are valid in that context, so I can easily chose the right qualifier property.
GIVEN I am on an item page.
WHEN I add a property 'instance of' (P31)
AND I add a qualifier
AND I focus the input field and enter a search string
THEN I would like to see 'allowed qualifiers' or ' mandatory qualifier' suggested first.
GIVEN I am on a property page.
WHEN I add a property 'instance of' (P31)
AND I add a qualifier
THEN I would like to see 'allowed qualifiers' or ' mandatory qualifier' suggested.
Tasks:
- Implement the consumer of the search suggester hook, and the suggestion code in the WikibaseQualityConstraints extension, by analogy to https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/WikibaseQualityConstraints/+/447783/
- Make the entity suggester aware of the context, and pass the context through the hook.