Page MenuHomePhabricator

[SPIKE] Investigate how to suggest images in VE
Open, Needs TriagePublic

Description

We want to suggest images for adding to an article in VE

Currently in VE when a user clicks on "Insert" then "Images and media" they have 2 tabs - "search" and "upload". The "search" tab shows a search bar plus the user's most recently uploaded images

Here are some options for how we might suggest images:

Option 1

Simply show suggested images in the "search tab", before or after the user's recent uploads

If we show them before, users might object to their own recent uploads being less visible
If we show them after users might miss them

Option 2

We could add another tab "suggested images". Ideally

  • the tab would only show if the article already has <X images (configurable by wiki)
  • as soon as the "insert media" modal is shown we'll (in the background) do a MediaSearch on the article title/wikidata id and fetch suggested images
  • show the suggested images once the user clicks on the tab

I spoke to @matmarex who thinks this probably do-able, this ticket is to investigate the technical details and get an idea of the practical steps involved.

Acceptance criteria

  • investigate all options, and choose one (or come up with another option)
  • a series of other tickets describing the steps we'll need to take to implement whichever option has been chosen

We'll probably need to tweak the MediaSearch part that fetches the suggested images e.g.

  • it might end up being behind an API
  • we might want to sort by recency rather than relevance
  • we might need to add a range query to only give us images uploaded within X time period

but let's assume that's out of scope for the minute, and just focus on the VE part

Event Timeline

Cparle renamed this task from [SPIKE] Investigate how difficult it will be to add a new "suggested images" tab in VE to [SPIKE] Investigate how to add a new "suggested images" tab in VE .Sep 22 2021, 2:29 PM
Cparle renamed this task from [SPIKE] Investigate how to add a new "suggested images" tab in VE to [SPIKE] Investigate how to suggested images in VE .Sep 23 2021, 8:49 AM
Cparle updated the task description. (Show Details)
Cparle renamed this task from [SPIKE] Investigate how to suggested images in VE to [SPIKE] Investigate how to suggest images in VE .Sep 23 2021, 2:08 PM
CBogen subscribed.

Moving this to the SDAW backlog because it will not be part of the image suggestions notifications MVP (T292142).

Aklapper renamed this task from [SPIKE] Investigate how to suggest images in VE to [SPIKE] Investigate how to suggest images in VE.Nov 3 2025, 11:22 AM
Aklapper added a project: Epic.