=Story
Allow page previews to appear on wikidata containing the description of each item
= Mocks
{F8453797}
{F8453796}
{F8453795}
=Acceptance Criteria
[] Update the summary endpoint to construct the Wikidata specific summary (https://gerrit.wikimedia.org/r/#/c/mediawiki/services/mobileapps/+/434193)
[] Previews on wikidata must contain the following:
* Wikidata description (if available) replaces text extract
* Label (possibly bundled up in the extract e.g. <strong>{label}</strong>: {description}
* Page image remains same
Update config:
[] On wikidata beta cluster: Update wikidata configuration to have Popups enabled and use REST
[] Page Previews will be on by default for all logged-in and logged-out users
When consumed we should check:
[] for pages that do not contain a description, the generic card must not display
[] If a page has no description and no image, the generic card will display
[] Enabled for everyone
[] Logged-in users may turn off descriptions within their user preferences
Note: Further tweaks may be needed by the client/endpoint to deal with Wikidata specific edge cases (E.g. articles with no descriptions) and to ensure that the right language is loaded. Long term we'll probably want to add a 'type' 'wikidata' to https://www.mediawiki.org/wiki/Page_Previews/API_Specification rather than lean on the 'standard' type.