Page MenuHomePhabricator

Surface recently edited topics in the initial state for search
Closed, ResolvedPublic

Description

When starting a new translation in Section translation, users are shown the search step with the results completely empty:

test.m.wikipedia.org_wiki_Special_ContentTranslation(iPhone 5_SE).png (568×320 px, 16 KB)

This is an opportunity to surface some articles. For example, users may arrive to translate articles they recently created/edited in the source wiki, and providing those at hand could make the process more fluent.

This ticket proposes to surface articles edited by the user under the label "Recently edited by you". Up to three articles can be shown.

The layout is the same used for search results with the addition of the label (other aspects of the spec below will be covered by other tickets):

New translation - Search.png (768×1 px, 229 KB)
New translation - Search Dimensions.png (768×1 px, 112 KB)

Event Timeline

@Jpita are you able to reproduce this issue? Recently edited suggestions are being displayed properly for me on sxmwflabs

image.png (834×393 px, 40 KB)

@Jpita are you able to reproduce this issue? Recently edited suggestions are being displayed properly for me on sxmwflabs

tried in incognito and got this, might have to do with the loaded languages and history of the user loggedin

image.png (568×1 px, 29 KB)

@Pginer-WMF I just checked again and "Recently edited" suggestions work properly on sx.wmflabs. Couldn't reproduce above issue but that seems to be unrelated anyway, so I suggest this ticket to be moved to "Needs QA" colum.

@Pginer-WMF I just checked again and "Recently edited" suggestions work properly on sx.wmflabs. Couldn't reproduce above issue but that seems to be unrelated anyway, so I suggest this ticket to be moved to "Needs QA" colum.

what is considered as a "Recently edited" article?
with user "https://sx.wmflabs.org/index.php/User:Newsxlabsuser" I don't have any suggested articles

For users that have already contributed with translations, we want to display some suggestions based on these previous edits. So if a user doesn't have any previous edits, then no such suggestion will be provided. At least this is my understanding. Is this the case for Newsxlabsuser?

For users that have already contributed with translations, we want to display some suggestions based on these previous edits. So if a user doesn't have any previous edits, then no such suggestion will be provided. At least this is my understanding. Is this the case for Newsxlabsuser?

can't test this because of this error while publishing on sx-labs

image.png (1×812 px, 118 KB)

Change #1120219 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] Search for an article: Use previous edits in source wiki for suggestions

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

Change #1120219 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Search for an article: Use previous edits in source wiki for suggestions

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

Change #1124141 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20250303

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

Change #1124141 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20250303

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

@ngkountas How would I be able to test "Recently edited by you". Up to three articles can be shown. This only happens when you edit PROD articles, which I prefer not to do. Is there another way to test this task in test.wiki?

I can verify that the articles listed in the "Recently edited by you" section are all coming from actual previous edits in the source language, as demonstrated in the screenshot below. One can easily check that all 3 listed articles in the screenshot, have previously been edited by the user in the API response: https://en.wikipedia.org/w/api.php?action=query&format=json&origin=*&list=usercontribs&ucuser=Iiirxs&ucnamespace=0&uclimit=100&formatversion=2

Screenshot 2025-03-28 at 18.22.29.png (1×796 px, 93 KB)

PWaigi-WMF subscribed.

Works as expected.

Referencing this comment T382333: Improve the discovery of collections view; we had some ideas to potentially expand the search dialog to show active Collections.

@Pginer-WMF @ngkountas I just saw this related bug T188984: Set a time limit for the "Recently edited by you" suggestions for new translations; I'm curious to know if we are applying a time frame.

If we are already, we can close this bug then.

We don't use a time limit for this list. However, I would close this task as "resolved" -since the feature described here has been implemented- and use the followup tasks to track such issues.