CX Unified Dashboard: While adding new section from 'published sections' section, translation time estimate is shown for all missing sections
Closed, ResolvedPublicBUG REPORT

Description

While adding new section from 'published sections' section, translation time estimate is shown for all missing sections as illustrated in the below video

I am going to translate 'Career' section and what would be useful is time taken for translating that section. Not the time taken for translating all missing sections.

Derived Requirement

Ensure that when adding a new section from the "Published sections" panel in the Content Translation (CX) Unified Dashboard, the translation time estimate is shown only for the section being added, not for all missing sections.

Test Steps

Test Case 1: Ensure Time Estimate is Shown Only for the Selected Section

  1. Go to the Content Translation tool (Unified Dashboard) on beta Wikipedia.
  2. Select a partially published article that has multiple missing sections.
  3. In the "Published sections" panel, click Add on a specific section (e.g., *Career*).
  4. Observe the estimated translation time displayed.
  5. ✅❓❌⬜ AC1: Confirm that the estimated translation time is shown only for the section being added (e.g., *Career*), not for all other missing sections.

QA Results - Test Wiki

ACStatusDetails
1T387108#10965548

Event Timeline

Nikerabbit moved this task from Needs Triage to Bugs on the ContentTranslation board.

Change #1136743 had a related patch set uploaded (by Eamedina; author: Eamedina):

[mediawiki/extensions/ContentTranslation@master] Update useTranslationSize to support single section time estimate

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

@SGautam_WMF @Pginer-WMF —Patch has been approved but a question came up regarding the copy. What do you think would be the best copy for the different cases below?

  • if there are multiple sections: "X minutes to translate N sections"
  • if there's only 1 section (not-preselected): "X minutes to translate 1 section"
  • if there's 1 preselected section: "X minutes to translate this section" or "X minutes to translate {section-title} section"

Note that "minutes" can also be "hours" as it currently does already. Any preference for the copy of the new preselected section case? Thanks

image.png (1×640 px, 542 KB)
image.png (1×644 px, 91 KB)
image.png (1×646 px, 119 KB)
image.png (1×642 px, 119 KB)

@SGautam_WMF @Pginer-WMF —Patch has been approved but a question came up regarding the copy. What do you think would be the best copy for the different cases below?

  • if there are multiple sections: "X minutes to translate N sections"
  • if there's only 1 section (not-preselected): "X minutes to translate 1 section"
  • if there's 1 preselected section: "X minutes to translate this section" or "X minutes to translate {section-title} section"

The proposed approach sounds good. For the case where there's 1 preselected section, I think "X minutes to translate this section" should be clear enough. Given section names can be long, I think we can try first with the simple/shorter approach.

By the way, the last two images are not showing in your comment. Normally is because Phabricator has not "attached" them to the ticket (you may see a warning on the right column that allows doing so):

Screenshot 2025-04-23 at 12.56.51.png (259×466 px, 65 KB)

Thanks Pau for the confirmation and Phabricator tips! Patch has been updated and images "attached"

Change #1136743 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Update useTranslationSize to support single section time estimate

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

Change #1141940 had a related patch set uploaded (by Eamedina; author: Eamedina):

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

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

Change #1141940 merged by jenkins-bot:

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

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

@eamedina Please review the gifs below since I'm getting a few different issues

Test Result - Test Wiki

Status: ❓Need More Info
Environment: Test Wiki
OS: macOS Sequoia 15.5
Browser: Chrome 136
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&active-list=published&from=es&to=en#/

Test Steps

Test Case 1: Ensure Time Estimate is Shown Only for the Selected Section

  1. Go to the Content Translation tool (Unified Dashboard) on beta Wikipedia.
  2. Select a partially published article that has multiple missing sections.
  3. In the "Published sections" panel, click Add on a specific section (e.g., *Career*).
  4. Observe the estimated translation time displayed.
  5. AC1: Confirm that the estimated translation time is shown only for the section being added (e.g., *Career*), not for all other missing sections.
  1. The translate time is not green, only when you change the source to a different language
Change Source/Multiple Sections
2025-05-27_08-49-32.mp4.gif (738×1 px, 894 KB)
  1. The translate time is not green
Change Target
2025-05-27_08-51-19.mp4.gif (664×1 px, 1 MB)
  1. Choosing History section with English to Cestina is different than when you click on the 3 dots with the same article and languages
Choose Section/3 Dots
2025-05-27_08-57-20.mp4.gif (744×1 px, 948 KB)
  1. The translate time is not green for when it has 1 section
1 Section
2025-05-27_10-01-01.mp4.gif (948×1 px, 698 KB)
GMikesell-WMF updated Other Assignee, added: GMikesell-WMF.
GMikesell-WMF moved this task from Needs QA to In-progress on the LPL Hypothesis board.

Change #1155701 had a related patch set uploaded (by Eamedina; author: Eamedina):

[mediawiki/extensions/ContentTranslation@master] CX: fix styling for quick translations

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

@GMikesell-WMF thanks for the QA, good catch finding a bug! The way it's intended to work (as specified in T360570) is that we only apply the 'quick translation' styling (green color, label) if it's estimated to be less than 15 minutes. I have submitted a patch for review that addresses your feedback

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

[mediawiki/extensions/ContentTranslation@master] CX: Refactor translation time estimation and fix issues

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

Change #1155701 abandoned by Sbisson:

[mediawiki/extensions/ContentTranslation@master] CX: fix styling for quick translations

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

Change #1161878 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX: Refactor translation time estimation and fix issues

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

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

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

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

Change #1162019 merged by jenkins-bot:

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

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

@eamedina Confirmed that the 3 dots are as designed. I will move this to Sign-off. Thanks for all your work!

Test Result - Test Wiki

Status: ✅ PASS
Environment: Test Wiki
OS: macOS Sequoia 15.5
Browser: Chrome 136
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&active-list=published&from=es&to=en#/

Test Steps

Test Case 1: Ensure Time Estimate is Shown Only for the Selected Section

  1. Go to the Content Translation tool (Unified Dashboard) on beta Wikipedia.
  2. Select a partially published article that has multiple missing sections.
  3. In the "Published sections" panel, click Add on a specific section (e.g., *Career*).
  4. Observe the estimated translation time displayed.
  5. AC1: Confirm that the estimated translation time is shown only for the section being added (e.g., *Career*), not for all other missing sections.
  1. ✅ The translate time is not green, only when you change the source to a different language
Change Source/Multiple Sections

2.✅ The translate time is not green

Change Target
  1. ✅ (UPDATE: Works as Design) Choosing History section with English to Cestina is different than when you click on the 3 dots. When you click on the 3 dots, is it supposed to translate all the sections in the article now?
Choose Section/3 Dots
  1. ✅ The translate time is not green when it has 1 section
1 Section
GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.
GMikesell-WMF moved this task from In-progress to Design Signoff on the LPL Hypothesis board.