Page MenuHomePhabricator

[M] Display image suggestion reason
Open, MediumPublic

Description

User story

As an iOS app user completing the Image Recommendations task, I easily want to understand why a match is being suggested, so I can use that information in my decision whether to use the image.

Requirements
  • Parity with Android's copy and functionality
  • The "reason" text comes directly from the API, here are some examples of how it displays in the app:
    • "Used in the same article in Indonesian Wikipedia"
    • "Used in the same article in 2 other languages: Japanese and Chinese"
    • "Used in the same article in 4 other languages: German, Portuguese, and 2 others"
    • "One of several images linked to the Wikidata item for this article"
Designs
Text + Reason
Article page.png (667×375 px, 86 KB)

Text -> gray700, Callout
Reason -> gray500, Subhead

Reference images from Android:
image.png (2×1 px, 357 KB)
image.png (2×1 px, 797 KB)
  • Create updated mockups with reason visible on resizable halfsheet T356818 of Image Recs and other equivalent locations (for landscape/iPad designs see T360037)
Testing

Please test in TestFlight Wikipedia app 7.5.0 (3509).

Event Timeline

HNordeenWMF renamed this task from Display Iimage suggestion reason to Display image suggestion reason.Mar 15 2024, 4:10 PM

The "reason" text comes directly from the API, to be found deep in the growthimagesuggestiondata structure:

"growthimagesuggestiondata": [
    {
        ...
        "images": [
            {
                ...
                "metadata": {
                    ...
                    "reason": "One of several images linked to the Wikidata item for this article.",

It can be used as-is, and is automatically in the language of the wiki on which this is queried.

"reason": "Usada no mesmo artigo em Wikipédia em francês.",
Mazevedo renamed this task from Display image suggestion reason to [M] Display image suggestion reason.Mar 25 2024, 10:08 PM
Mazevedo claimed this task.