Background
Not all of our projects will benefit from the addition of images and page descriptions. We'd like to make search configurable per project so that we can exclude them when necessary
Acceptance criteria
- Allow images and page descriptions to be configurable per project
- Vector should expose two new configuration flags. The flags will have to be passed to the JavaScript client and specifically to the Vue instance. The default configuration should keep the flags enabled or unset so that third-parties get the best experience.
- WVUI's typeahead suggestion components will require two new component properties to be passed. When present, they will suppress presentation of thumbnail and / or description. The flags will be adjustable in the component's story and also any components that compose them in.
- Config per project. The above projects will have the following set to on
- Commons
- neither
- Wikidata
- description
- images
- Wikispecies
- descriptions
- images
- Wikibooks
- neither
- Wikinews
- images only
- Wikipedia
- descriptions
- images
- Wikiquote
- descriptions
- images
- Wikisource
- neither
- Wikiversity
- images
- Wikivoyage
- descriptions
- images
- Wiktionary
- images only
- Commons
- A configuration patch will be submitted for the above projects to mediawiki-config in advance of changes merging to Vector.
Design
Prototype: https://di-search-3.web.app/Volvo
QA
To be done as part of T263657.