Page MenuHomePhabricator

Adjust actions for published translations list
Closed, ResolvedPublic

Description

The list of published translations (T260166) shows topics for which the user has published the translation of an article or a section. In the initial implementation there are a couple of actions missing that this ticket proposes to implement:

  • Access to the published content. When taping on the list item in general will lead the user to the published content. For example, if the user translated the Moon article (or any of their sections) into Italian, tapping on the Moon item of the published translation will link to the page in Italian where contents were published. This allows users to find the results of the content they published in the past and check the current status.
  • Translate more. Currently, some items in the published list have surfaced a section for users to translate (with the option to access the rest". For the ret of the items, this ticket proposes to have a "New translation" action that will open the Confirmation step (T276221) with the topic and languages pre-filled for the user to translate more about the topic.
    • This makes the pencil icon irrelevant and can be removed. Currently it does not have functionality attached, and the intention was to support users to translate more on the same topic , for which expanding the previous mechanisms seems a simpler solution.

Mobile - Published.png (896×320 px, 39 KB)


To support some of the possibilities from the old desktop implementation, T345845 may be needed.

Event Timeline

Pginer-WMF triaged this task as Medium priority.Sep 7 2023, 12:37 PM
ngkountas changed the task status from Open to In Progress.Nov 1 2023, 8:00 AM
ngkountas claimed this task.

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

[mediawiki/extensions/ContentTranslation@master] CX unified dashboard: Adjust actions for published translations list

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

I'm a bit on the fence about the label for the option being "+ New Translation". I'm wondering if "Expand translation" would make more sense?

Change 972903 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX unified dashboard: Adjust actions for published translations list

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

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

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

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

Change 975779 merged by Nik Gkountas:

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

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

The fix for this task has now been deployed in production. The task can be closed as done.

Screencast from test wiki:

Thanks, Nik.
Regardign this point of the spec from the ticket description above:

this ticket proposes to have a "New translation" action that will open the Confirmation step (T276221) with the topic and languages pre-filled for the user to translate more about the topic.

In the example video, tapping on "New translation" fro the "Rule of law" item opens the Confirmation step. I'd expect the common case to be that the "Rule of law" article already exists in the target wiki (since it was published), and the Confirmation dialog would show the option to expand with a section even if all sections from the source are already present in the target article (for the user to decide if they want to translate and replace contents for any of them) instead of starting a new article (as shown in the video).

I guess this may be an artifact of the test environment, but wanted to check whether this is the expected behaviour.

Thank you for the observation Pau. The issue you mentioned comes from a bug in cxserver that throws an unexpected 500 error for the "fetch section suggestion" request (https://cxserver.wikimedia.org/v2/suggest/sections/Maya%20Rudolph/en/el). This issue has already been resolved, but not yet deployed. If cxserver worked properly and returns at least one missing section the "+ My missing section" button would be displayed in the published translation card and the user would be redirected to the "Pick a section" step on click. The "+ New translation" button should only be displayed when no missing section exists for that article and language pair (see such an example request in screenshot 1). For these cases, the user should be redirected to the Confirmation step, which should look like Screenshot 2. In any case, I think this is out of the scope of this task, and we can create a new task, if we observe an undesired behaviour inside Confirmation step.

image.png (452×843 px, 55 KB)

image.png (673×1 px, 247 KB)
.

Thanks for the clarifications, Nik!