Page MenuHomePhabricator

Add visual indicator to sections that are "easy" to translate during section selection step of the SX workflow
Closed, ResolvedPublic4 Estimated Story Points

Description

Background

For new editors show "Quick" sections they can translate

Design
image.png (2,232×1,762 px, 169 KB)
image.png (808×1,798 px, 100 KB)

Add "Quick" difficult indicators to help new editors identify the most approachable sections for translation.

  • Codex InfoChip component in Success state without the icon and border
  • Label: "Quick"
  • Placement: Inline with section title with 8px spacing.
  • Label text color: color-base (#202122)
  • Background color: background-color-success-subtle(#DFF2EB)
Acceptance Criteria
  • InfoChip integrates seamlessly with existing design
  • No layout shifts or text truncation

Derived Requirement

Add a "Quick" visual indicator using the Codex InfoChip component to identify sections that are easy to translate during the section selection step of the SX workflow. The InfoChip must:

  • Display the label "Quick" inline with the section title, with 8px spacing
  • Use Codex InfoChip in the success state without icon and border
  • Have label text color #202122 and background color #DFF2EB
  • Integrate seamlessly with existing design without layout shifts or text truncation
Test Steps

Test Case 1: Ensure "Quick" indicator is displayed for easy sections

  1. Open SX workflow on the Minerva skin.
  2. Navigate to the section selection step.
  3. Observe the sections marked as easy to translate.
  4. ✅❓❌⬜ AC1: Confirm that a "Quick" label is displayed inline with the section title.

Test Case 2: Ensure correct styling of "Quick" indicator

  1. Locate a section with the "Quick" label.
  2. Inspect the InfoChip component.
  3. ✅❓❌⬜ AC2: Confirm that the label uses text color #202122 and background color #DFF2EB.
  4. ✅❓❌⬜ AC3: Confirm that the label has no border or icon.

Test Case 3: Ensure correct placement of "Quick" indicator

  1. Compare section title spacing with and without the "Quick" label.
  2. ✅❓❌⬜ AC4: Confirm that the "Quick" label appears inline with the section title with exactly 8px spacing.

Test Case 4: Ensure layout stability

  1. Switch between different sections in the section selection step.
  2. ✅❓❌⬜ AC5: Confirm that no layout shifts occur when the "Quick" label appears.
  3. ✅❓❌⬜ AC6: Confirm that section titles are not truncated when the "Quick" label is shown.

QA Results - TestWiki

Event Timeline

SBisson triaged this task as High priority.Jul 21 2025, 1:44 AM

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

[mediawiki/extensions/ContentTranslation@master] Suggestions: List easy section suggestions and add difficulty indicator

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

ngkountas set the point value for this task to 4.Jul 30 2025, 1:31 PM

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

[mediawiki/extensions/ContentTranslation@master] "Quick" badge for easy sections on section selection view

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

Change #1180978 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] "Quick" badge for easy sections on section selection view

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

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

[mediawiki/extensions/ContentTranslation@master] Increase specificity of (Quick) badge styling

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

Change #1181727 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Increase specificity of (Quick) badge styling

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

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

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

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

Change #1181735 merged by jenkins-bot:

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

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

Change #1172668 abandoned by Nik Gkountas:

[mediawiki/extensions/ContentTranslation@master] Suggestions: List easy section suggestions and add difficulty indicator

Reason:

This was just a POC. Other patches, appropriate for production have already been merged to address the task requirements.

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

@SBisson Confirmed "Quick" infochip descriptions as seen below. I will move this to Sign-off. Thanks for all your work!

Test Result - est Wiki

Status: ✅ PASS
Environment: Test Wiki
OS: macOS Sequoia 15.6.1
Browser: Chrome 139
Device: MBA
Emulated Device: NA

Test Artifact(s):

https://test.wikipedia.org/w/index.php?title=Special:ContentTranslation&active-list=suggestions&from=en&to=hi&filter-type=automatic&filter-id=previous-edits&page=Wankhede%20Stadium#/sx/section-selector

Test Steps

Test Case 1: Ensure "Quick" indicator is displayed for easy sections

  1. Open SX workflow on the Minerva skin.
  2. Navigate to the section selection step.
  3. Observe the sections marked as easy to translate.
  4. AC1: Confirm that a "Quick" label is displayed inline with the section title.
DesktopMobile
2025-09-05_12-06-17.png (1,022×866 px, 110 KB)
2025-09-05_12-07-17.png (917×858 px, 98 KB)

Test Case 2: Ensure correct styling of "Quick" indicator

  1. Locate a section with the "Quick" label.
  2. Inspect the InfoChip component.
  3. AC2: Confirm that the label uses text color #202122 and background color #DFF2EB.

2025-09-05_12-36-46.png (892×877 px, 129 KB)

  1. AC3: Confirm that the label has no border or icon.

See AC2

Test Case 3: Ensure correct placement of "Quick" indicator

  1. Compare section title spacing with and without the "Quick" label.
  2. AC4: Confirm that the "Quick" label appears inline with the section title with exactly 8px spacing.

2025-09-05_12-47-09.png (1,019×867 px, 191 KB)

Test Case 4: Ensure layout stability

  1. Switch between different sections in the section selection step.
  2. AC5: Confirm that no layout shifts occur when the "Quick" label appears.

  1. AC6: Confirm that section titles are not truncated when the "Quick" label is shown.

See AC5

GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.
GMikesell-WMF moved this task from Needs QA to Design Signoff on the LPL Hypothesis board.