Page MenuHomePhabricator

[M] Quick view - Add the article title and wikidata description to quick view for extra context
Closed, ResolvedPublic

Description

This ticket is to add the article title and wiki data description to give users some context on which article they are referring to and also learn what the article is about. The short description helps with cases when the snippet is not from the first sentence or paragraph of the article.

Acceptance Criteria:

  • Add the article title in blue
  • The article title should link to the main article.
  • Add wiki data short description of the article below it.
  • If the wiki data description does not exist leave the description blank. (A fall back option for showing article intro text is covered in T316395)

Link to details specs in Figma

Special_Search (22).png (1×1 px, 275 KB)

Event Timeline

CBogen renamed this task from Quick view - Add the article title and wikidata description to quick view for extra context to [M] Quick view - Add the article title and wikidata description to quick view for extra context.Sep 21 2022, 4:47 PM
SimoneThisDot changed the task status from Open to In Progress.Sep 27 2022, 8:21 PM
SimoneThisDot claimed this task.

@Sneha can you please clarify that in this AC:

If the wiki data description does not exist do not show anything.

When you say "do not show anything", you actually are referring to the Description, but you still would like to show the title in the absence of a description

Yes when I say "do not show anything" I am referring to no description. Title would still be there. I will update in the ticket.

Change 836234 had a related patch set uploaded (by Simone Cuomo; author: Simone Cuomo):

[mediawiki/extensions/SearchVue@master] Add the article title and wikidata description to quick view for extra context

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

Change 836234 merged by jenkins-bot:

[mediawiki/extensions/SearchVue@master] Add the article title and wikidata description to quick view for extra context

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

Seddon added a subscriber: Seddon.

Blocked awaiting release on beta cluster for testing

Etonkovidova added a subscriber: Etonkovidova.

Checked on enwiki betalabs (https://en.wikipedia.beta.wmflabs.org/w/index.php?search=cat&title=Special:Search&profile=advanced&fulltext=1&ns0=1&quickView=Asian+golden+cat)

Screen Shot 2022-10-31 at 3.21.49 PM.png (942×1 px, 536 KB)

Testing notes:
The following spec should be checked in production:

  • Add wiki data short description of the article below it.

Running the above search - https://en.wikipedia.beta.wmflabs.org/w/index.php?search=cat&title=Special:Search&profile=advanced&fulltext=1&ns0=1&quickView=Cat, I looked at the first article returned by the search: https://en.wikipedia.beta.wmflabs.org/wiki/Cat
The article lists Q598520 as wikidata item ID on Cat Page information, but the description that was displayed was Local description, not Central description.

I also want to note that the spacing around the (Title+wikidata) description is not uniform to what we show between other sections. The pink space is wider than the green space.

spacing fixes.png (942×1 px, 496 KB)

CBogen added a subscriber: CBogen.

@SimoneThisDot moving this back to Doing to check that the wikidata description is coming from the right place and to fix the padding.

I have created a patch to update the padding and also confirmed with Elena on the description used.

NOTE: The cat image has a white border at the bottom! So the padding are now right, but they may look off if searching for cat! :)

Change 854948 had a related patch set uploaded (by Simone Cuomo; author: Simone Cuomo):

[mediawiki/extensions/SearchVue@master] Add the article title and description to quick view for extra context

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

Change 854948 merged by jenkins-bot:

[mediawiki/extensions/SearchVue@master] Add the article title and description to quick view for extra context

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

Hi @SimoneThisDot, I take it the Local Description is what is being used and not the Central Description?

Hi @SimoneThisDot, I take it the Local Description is what is being used and not the Central Description?

@SimoneThisDot following up on this, thanks!

I have created a patch to update the padding and also confirmed with Elena on the description used.

NOTE: The cat image has a white border at the bottom! So the padding are now right, but they may look off if searching for cat! :)

(1) Checked in betalabs - the fix is in place

BeforeAfter the fix
Screen Shot 2022-10-31 at 3.21.49 PM.png (942×1 px, 536 KB)
the distance between elements - the header and description etc - is about 33-35px
Screen Shot 2023-01-03 at 10.47.19 AM.png (1×722 px, 844 KB)

(2) Re Local Description vs Central Description - more examples in T325831: [QA task] Special:Search quick preview - local vs central description . It could be a no-issue, but the requirement below seems not to be followed in some cases. I linked this task to T325831.

  • Add wiki data short description of the article below it.

Moving to Verify on Production.

Etonkovidova updated the task description. (Show Details)

Checked on pilot wikis - ruwiki, idwiki, and ptwiki - works as expected.