Page MenuHomePhabricator

Adjust all "Start/Continue translation" buttons to redirect to the platform-specific translation editor
Closed, ResolvedPublic

Description

As described in the related task T328936, currently there are two separate versions of the translation dashboard, one on desktop and one on mobile. Our plan is to evolve the mobile dashboard to become the unified dashboard (the only one).

In this scenario, users will be able to access the unified dashboard regardless of their device, but we still want them to use the translation editor that is appropriate for their platform (mobile or desktop). To support this, we need all buttons and workflows that lead to the editor, to direct users to the right editor based on the user platform.

This task is basically an expansion of the T328936 task, to include all buttons/links, other than confirmation step buttons.

The buttons that should be tested for this task are:
A. "Confirm a translation" step

  1. Case 1: Expand article with new section
    • "New translation" button
    • "Translate section" button (when section is pre-selected through "section" URL param)
  2. Case 2: Create new page
    • "Start translation" button

B. "Pick a section" step

  • Click on section title to select it

Event Timeline

ngkountas changed the task status from Open to In Progress.Sep 8 2023, 12:04 PM
ngkountas triaged this task as High priority.
ngkountas added a project: SectionTranslation.

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

[mediawiki/extensions/ContentTranslation@master] CX: Adjust "Pick a section" step to redirect to platform-specific editor

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

Change 955918 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX: Adjust "Pick a section" step to redirect to platform-specific editor

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

ngkountas updated the task description. (Show Details)

According to the -possibly not exhaustive- list, the only missing piece for this task to be completed is the "Translate section" button, inside the "Confirm a translation" step, a button that only appears when a preselected section title is provided inside "section" URL param.

The patch below fixes this issue.

Screencast of the issue before fix (local dev environment):

Screencast after fix (local dev environment):

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

[mediawiki/extensions/ContentTranslation@master] Confirm SX with prefilled section: Redirect to platform-specific editor

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

Change 961860 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Confirm SX with prefilled section: Redirect to platform-specific editor

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

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

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

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

Change 962059 merged by jenkins-bot:

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

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

The issue has now been also fixed for the cases when the section is preselected through the section URL param, as demonstrated in the following screencast:

In the below screencast, one can see that the background color of the prefilled section banner doesn't match the design. This is fixed in this patch: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ContentTranslation/+/988710

Following the above comment, I'm updating the task description to reflect the fix and I think we can close this task as done.

Pginer-WMF subscribed.

Great. Thanks for improving the consistency for the different workflows. In the screencasts I noticed a separate regression which I reported in T355398: Readability regression when a section is selected through the url