Page MenuHomePhabricator

Section-level images: suggestions mode
Open, In Progress, HighPublic

Description

User story & summary:

As a logged in newcomer, I want a structured task that helps me add an image to a specific section within an article, because then I can learn to edit Wikipedia in a useful way.

Background & research:

Structured tasks break down editing workflows into a series of steps that newcomers can accomplish easily. Newcomer tasks increase newcomer activation (+11.6%), which flows on through to increased retention 1. Initial data shows that structured tasks help improve activation and retention even further 2.

Design:

Desktop:
Desktop Figma designs

Suggestions mode.png (900×1 px, 246 KB)

For the first iteration we will be using an in-context structured task inspector, similar to Add a link.
The inspector will point to the image placeholder.
Image placeholder specifications:

  • 238x238px.
  • 2px border radius.
  • 2px dotted stroke in #3366CC.
  • Default placement: under the section heading on the right.

Mobile:
Mobile Figma designs

Suggestions mode Brazil.png (640×360 px, 48 KB)
Suggestions mode Brazil (1).png (640×360 px, 45 KB)

When opening suggestions mode, the section name should always be seen.
Inspector is sticky to the bottom of the screen.
The user must tap the header with the chevron pointing downwards to collapse the inspector.
Image placeholder specifications:

  • 162x162px.
  • 2px border radius.
  • 2px dotted stroke in #3366CC.

Copy:

Add an image to an article section

Add this image to the the article section “${section title}”?

Acceptance Criteria:

Given I'm completing a section-level "add an image" task,
When I've finished or skipped onboarding,
Then I can view an image suggestion in Suggestions mode with the following options:

User optionDetailsFigma specs for next step
Yesaccept suggestionAdd caption onboarding T335228: Section-level images: Add caption onboarding
Noreject suggestionRejection reasons T335229: Section-level images: rejection reasons
Not sureskip suggestion“Not sure” confirmation dialog (Follows the same specifications as Add an image structured task)
xclose suggestionLeave suggestions dialog (Follows the same specifications as Add an image structured task)
minimize suggestion, only available on mobilecollapsed suggestion mode
Full screen imageTriggered when anywhere in the image thumbnail on the image inspector is selected (not only the fullscreen icon area). Uses the existing MediaViewer, but without the bottom image details area.Full screen image (Follows the same specifications as Add an image structured task)
Image metadataImage details appear in a simple message dialog over the article and inspector contents. There is a link from the dialog to view the image and details on its file page on Commons. Triggered when any part of the image title, description, and ‘view image details’ is selected.Image metadata (during image evaluation (Follows the same specifications as Add an image structured task)

Event Timeline

Change 922562 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/GrowthExperiments@master] [WIP]: Section images: Image insertion logic

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

Sgs removed Sgs as the assignee of this task.Tue, May 23, 6:00 PM
Sgs added a subscriber: Sgs.

Change 922562 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Section images: Image insertion logic

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

Change 923425 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/GrowthExperiments@master] Section images: Make image insertion logic more robust

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

Change 923425 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Section images: Make image insertion logic more robust

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

I thought it's useful to spell out what changes (compared to the old image recommendation workflow) this task entails. (Not including subtasks.) Please fix if I'm missing something.

  • Modify image insertion logic so images are inserted to the appropriate section, not the top of the article.
  • Modify article validity checking logic so we show the "recommendation not available" error when there is an image already in the selected section, or the recommended image is used elsewhere in the article, or we cannot identify the selected section at all (but don't show the error if the article has images but not in the selected section)
  • Add an "image placeholder" when the editor loads, to be replaced by the actual image when the user clicks "Yes" in the dialog.
  • Modify the desktop version of the dialog so instead of sticking to the bottom of the screen, it sticks to the bottom of the image placeholder.
  • Some text changes to the dialog - "section" is added to the header, the paragraph below the header and the paragraph above the buttons + the section name is added to the paragraph above the buttons.

(Btw do want to use the placeholder + modified dialog placement for article-level image recommendations as well, or only section-level tasks?)

kostajh changed the task status from Open to In Progress.Wed, May 31, 1:41 PM

Change 927128 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/GrowthExperiments@master] Section images: Refactor VE node handling

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

Change 925011 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/GrowthExperiments@master] [WIP] Section images: Implement image placeholder

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

Change 927128 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Section images: Refactor VE node handling

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

Change 927761 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/GrowthExperiments@master] [WIP] Section images: Update main dialog

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

Change 925011 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Section images: Implement image placeholder

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