Page MenuHomePhabricator

CX desktop editor: Target section title is not prefilled when translating sections
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  1. While on desktop, select an article to expand by translating a section from the unified dashboard
  2. Pick any section (missing or present) to translate
  3. Proceed to CX desktop editor

What happens?:
The target section title is same as the source section title.

What should have happened instead?:
The target section title should be the present target section title (if the section is already present in the target article), or a translation of the source section title if the section is missing.

Screencasts from el production wiki

Present section

Missing section


Derived Requirement

In the CX desktop editor, when translating sections from the unified dashboard, the target section title should be prefilled. If the section already exists in the target article, use the existing target section title. If the section is missing, prefill the title with a translation of the source section title.

Test Steps

Test Case 1: Prefill Target Section Title for Present Section

  1. Open the unified dashboard on desktop.
  2. Select an article and choose a section that already exists in the target article for translation.
  3. Proceed to the CX desktop editor.
  4. ✅❓❌⬜ AC1: Confirm that the target section title is prefilled with the existing target section title.

Test Case 2: Prefill Target Section Title for Missing Section

  1. Open the unified dashboard on desktop.
  2. Select an article and choose a section that is missing in the target article for translation.
  3. Proceed to the CX desktop editor.
  4. ✅❓❌⬜ AC2: Confirm that the target section title is prefilled with a translation of the source section title.

QA Results - TestWiki

ACStatusDetails
1T409270#11390215
2T409270#11390215

Event Timeline

ngkountas changed the task status from Open to In Progress.Nov 5 2025, 9:44 AM
ngkountas claimed this task.
ngkountas triaged this task as Medium priority.
ngkountas set the point value for this task to 2.
ngkountas moved this task from Needs Triage to Translation editor on the ContentTranslation board.
ngkountas moved this task from Prioritized to In-progress on the LPL Hypothesis board.

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

[mediawiki/extensions/ContentTranslation@master] CX: Add "targetsection" URL parameter when redirecting to desktop editor

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

Change #1202069 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX: Add "targetsection" URL parameter when redirecting to desktop editor

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

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

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20251110

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

Change #1203534 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20251110

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

@ngkountas A little confused with AC2 for missing section. One translates and the other doesn't. Which one is it supposed to be?

Test Result - TestWiki

Status: ✅ PASS / ❌ FAIL
Environment: TestWiki
OS: macOS Tahoe 26.1
Browser: Chrome 142
Device: MBA
Emulated Device: NA

Test Artifact(s):

https://test.wikipedia.org/w/index.php?title=Special:ContentTranslation&filter-type=automatic&filter-id=previous-edits&from=en&to=es&active-list=suggestions&page=2010%20Major%20League%20Baseball%20season#/sx

Test Steps

Test Case 1: Prefill Target Section Title for Present Section

  1. Open the unified dashboard on desktop.
  2. Select an article and choose a section that already exists in the target article for translation.
  3. Proceed to the CX desktop editor.
  4. AC1: Confirm that the target section title is prefilled with the existing target section title.

Test Case 2: Prefill Target Section Title for Missing Section

  1. Open the unified dashboard on desktop.
  2. Select an article and choose a section that is missing in the target article for translation.
  3. Proceed to the CX desktop editor.
  4. AC2: Confirm that the target section title is prefilled with a translation of the source section title.

The target section title for missing sections is fetched from CXServer section mappings. E.g.
https://cxserver.wikimedia.org/v2/suggest/sections/2010%20Major%20League%20Baseball%20season/en/es?include_section_sizes=true.

In some cases the source section title remains untranslated (e.g. "The Year of the Pitcher" section), but that's ok for now I believe.

The target section title for missing sections is fetched from CXServer section mappings. E.g.
https://cxserver.wikimedia.org/v2/suggest/sections/2010%20Major%20League%20Baseball%20season/en/es?include_section_sizes=true.

In some cases the source section title remains untranslated (e.g. "The Year of the Pitcher" section), but that's ok for now I believe.

Is there a plan to address this, or should we accept this as a known limitation for now?

This is a known limitation for now. There is no plan to address this soon, but I also think that would be out of the scope of this task.