[go: up one dir, main page]

Page MenuHomePhabricator

[M] Mobile: Show article lead image in the quick view.
Closed, ResolvedPublic

Description

When the user opens the quick view on the mobile show the article lead image as the first item in the quick view.

  • The article lead image should be the first item in the quick view
  • The images will have fixed height (height of the quick view) while the width may vary depending on the image dimensions.
  • Have a max width such that the image does not go outside the boundaries of the screen and that the next item is visible.
  • The image card will have the subtle grey border and 2 px radius. (Same as all other cards in the quick view.
  • When the article does not have an image do not show this card.
  • Tapping on image will open an image. (TBD what format/page and will be covered in a different ticket).

Figma specs for portrait image
Figma specs for landscape image

Special_Search (55).png (800×360 px, 80 KB)

Special_Search (56).png (800×360 px, 106 KB)

Event Timeline

CBogen renamed this task from Mobile: Show article lead image in the quick view. to [M] Mobile: Show article lead image in the quick view..Oct 12 2022, 3:59 PM
vadim-kovalenko changed the task status from Open to In Progress.Oct 17 2022, 12:12 PM
vadim-kovalenko claimed this task.

No it does not relate to this, it is something else! :)

Change 860589 had a related patch set uploaded (by Vadim Kovalenko; author: Vadim Kovalenko):

[mediawiki/extensions/SearchVue@master] Mobile: Show article lead image in the quick view.

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

Change 860589 merged by jenkins-bot:

[mediawiki/extensions/SearchVue@master] Mobile: Show article lead image in the quick view.

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

Etonkovidova subscribed.

For @Sneha review.
(1) The following AC is not implemented - a lead image is not clickable. Currently on the desktop, clicking on am image will redirect to an article not to the clicked image.

  • Tapping on image will open an image. (TBD what format/page and will be covered in a different ticket).

(2) I filed T325259. When it;ll be fixed, this ticket needs to be re-verified.
(3) Just for your review in case you'll spot something else):
the CSS seems to be in place:

Screen Shot 2022-12-14 at 5.33.23 PM.png (141×384 px, 20 KB)

With leading imageWithout leading image
Screen Shot 2022-12-14 at 5.37.56 PM.png (1×778 px, 349 KB)
Screen Shot 2022-12-14 at 5.46.12 PM.png (1×748 px, 172 KB)

@Etonkovidova Looks like last AC has been TBD and was missed to be defined. Mobile does not have a thumbnail so this can be treated as the lead image on quick view similar to Desktop. The lead article image in Desktop quick view goes no where but we do record if the user clicks on it. We can do the same on mobile for now.

Also not part of this ticket but I just noticed in your second screenshot that the card shows the snippet again with "go to article" link. That is not part of the key information on mobile. It seems like something that was carried forward from Desktop. All the key information on mobile cards is listed in T320743

Thanks, @Sneha for reviewing!

There are several points in your comment
(1)

Mobile does not have a thumbnail so this can be treated as the lead image on quick view similar to Desktop. The lead article image in Desktop quick view goes no where but we do record if the user clicks on it. We can do the same on mobile for now.

Yes, mobile Quick View image behaves as on desktop - the element is not clickable, but . click-image is recorded.

(2)

Also not part of this ticket but I just noticed in your second screenshot that the card shows the snippet again with "go to article" link.

The second screenshot shows an article Quickview when an article doesn't have a lead image.

Two things were added as a comment to T320743

  • remove "Go to full article"
  • additional space between open QuickView and the next article

Hi @Etonkovidova for #2 what I meant was that card should not exist on mobile at all.

@Etonkovidova reviewed this on beta. And it seems like the lead images are not maintaining the aspect ratio as they are all being shown in landscape. As per the images in the descriptions and AC #2 the width of the image will vary depending on its aspect ratio. So that AC should not be marked as completed yet.

CBogen added subscribers: vadim-kovalenko, CBogen.

Reassigning to @SimoneThisDot for the fix mentioned above since Vadim is no longer working on this project.

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

[mediawiki/extensions/SearchVue@master] Mobile: Show article lead image in the quick view.

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

Change 879511 merged by jenkins-bot:

[mediawiki/extensions/SearchVue@master] Mobile: Show article lead image in the quick view.

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

Found this issue on the beta link. All the lead images are being cropped to this narrow vertical size instead of maintaining its aspect ratio.

lead images issue.jpeg (2×1 px, 901 KB)

The issue mentioned above is going to be fixed on T326962

Found this issue on the beta link. All the lead images are being cropped to this narrow vertical size instead of maintaining its aspect ratio.

lead images issue.jpeg (2×1 px, 901 KB)

I noticed this issue too, but it was not reproducible, I re-checked today, seems to be fixed.

Checked on pilots wikis - idwiki, ptwiki, and ruwiki - no issues were found.