Page MenuHomePhabricator

Responsive adjustments to language selection in translation dashboard lists
Closed, ResolvedPublic

Assigned To
Authored By
Pginer-WMF
Nov 21 2023, 3:52 PM
Referenced Files
F59555397: 2025-04-29_11-42-21.png
Apr 29 2025, 6:48 PM
F59555393: 2025-04-29_11-39-04.png
Apr 29 2025, 6:48 PM
F58515187: 2025-02-27_15-30-06.mp4.gif
Feb 27 2025, 11:41 PM
F58515184: 2025-02-27_15-28-49.mp4.gif
Feb 27 2025, 11:41 PM
F58514278: 2025-02-27_12-47-08.png
Feb 27 2025, 11:41 PM
F58514275: 2025-02-27_12-46-36.png
Feb 27 2025, 11:41 PM
F58514271: 2025-02-27_12-45-57.png
Feb 27 2025, 11:41 PM
F58514256: 2025-02-27_12-43-14.png
Feb 27 2025, 11:41 PM

Description

After the responsive adjustments (T319181), the lists of suggestions, in-progress, and translated articles adapt to different screen sizes.

MobileTablet VerticalTablet HorizontalDesktop
bn.m.wikipedia.org_w_index.php_title=Special_ContentTranslation&from=en&to=bn(Wiki Mobile) (1).png (568×320 px, 46 KB)
bn.m.wikipedia.org_w_index.php_title=%E0%A6%AC%E0%A6%BF%E0%A6%B6%E0%A7%87%E0%A6%B7_%E0%A6%AC%E0%A6%BF%E0%A6%B7%E0%A6%AF%E0%A6%BC%E0%A6%AC%E0%A6%B8%E0%A7%8D%E0%A6%A4%E0%A7%81_%E0%A6%85%E0%A6%A8%E0%A7%81%E0%A6%AC%E0%A6%BE%E0%A6%A6&from=en&to=.png (1×768 px, 158 KB)
bn.m.wikipedia.org_w_index.php_title=Special_ContentTranslation&from=en&to=bn(Wiki Tablet) (1).png (767×1 px, 103 KB)
bn.m.wikipedia.org_w_index.php_title=Special_ContentTranslation&from=en&to=bn(Wiki Desktop).png (900×1 px, 163 KB)

Currently, the language pair selector to filter the list presents some issues about the (a) language pair position and (b) list of languages dialog adjustments

A) Language pair position

For all screen sizes, it is shown in a separate line below the list header. This layout was only intended for narrow sizes. On other sizes, the selector is expected to be integrated in the list header.

Based on the specs from the responsive adjustments (T319181), the mockups below show the expected layout for the selector:

MobileTablet VerticalTablet HorizontalDesktop
Mobile.png (896×320 px, 89 KB)
TabletV.png (784×768 px, 88 KB)
TabletH.png (768×1 px, 75 KB)
Desktop - Suggestions.png (900×1 px, 115 KB)

B) List of languages dialog adjustments

For sizes largest than narrow, the list of languages is shown as a dialog. Currently, it is not possible to close the dialog by taping outside. When the list of languages is shown as a dialog it is expected that an overlay with the standard style (Base20 (#54595D), Opacity: 85% ) is provided behind the dialog, and tapping on it closes the dialog.

List of languages responsive behaviour based on T253303:

Wide screenNarrow screen
Group.png (572×904 px, 41 KB)
mobile.png (669×348 px, 34 KB)

Derived Requirements

  1. Language Pair Selector Positioning:
    • On narrow screens (mobile view), the language pair selector should be displayed below the list header.
    • On tablet vertical, tablet horizontal, and desktop views, the language pair selector should be integrated within the list header, following the responsive adjustments in T319181.
  1. Language List Dialog Behavior:
    • For wide screens (tablet horizontal and desktop), the list of languages should appear as a dialog.
    • The dialog should have a standard overlay with the color Base20 (#54595D) and 85% opacity.
    • Tapping outside the dialog should close it, ensuring a consistent UI behavior.
Test Steps

Test Case 1: Ensure Correct Positioning of the Language Pair Selector

  1. Open the Translation Dashboard on different screen sizes (mobile, tablet vertical, tablet horizontal, and desktop).
  2. Observe the position of the language pair selector.
  3. ✅❓❌⬜ AC1: Confirm that on mobile, the selector appears below the list header.
  4. ✅❓❌⬜ AC2: Confirm that on tablet vertical, tablet horizontal, and desktop, the selector is integrated within the list header.

Test Case 2: Validate Language List Dialog Behavior on Wide Screens

  1. Open the Translation Dashboard on a tablet horizontal or desktop screen.
  2. Click on the language pair selector to open the list of languages.
  3. ✅❓❌⬜ AC3: Confirm that the list of languages appears as a dialog with a dark overlay (Base20 #54595D, 85% opacity).
  4. ✅❓❌⬜ AC4: Tap outside the dialog and confirm that it closes correctly.

QA Results - Test Wiki & Local

Event Timeline

Pginer-WMF triaged this task as Medium priority.
Pginer-WMF moved this task from Backlog to Core workflow on the SectionTranslation board.

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

[mediawiki/extensions/ContentTranslation@master] Adjust language selector to the current screen size

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

Change #1118145 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Adjust language selector to the corresponding screen size

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

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

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

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

Change #1120157 merged by jenkins-bot:

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

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

@ngkountas As per conversation I will be moving this back to the backlog since part B still needs to be worked on. Test cases 1,2 and 4 or passing as seen in the screenshots/gifs below, thanks!

Test Result - TestWiki

Status:❓Need More Info for AC3
Environment: TestWiki
OS: macOS Sonoma 15.3.1
Browser: Chrome 133
Device: MBA
Emulated Device: Mobile, Tablet Vertical, Tablet Horizontal, Desktop

Test Artifact(s):
https://test.wikipedia.org/w/index.php?title=Special:ContentTranslation&active-list=suggestions&filter-id=previous-edits&filter-type=automatic&from=ms&to=stq&unified-dashboard=true#/

Test Steps

Test Case 1: Ensure Correct Positioning of the Language Pair Selector

  1. Open the Translation Dashboard on different screen sizes (mobile, tablet vertical, tablet horizontal, and desktop).
  2. Observe the position of the language pair selector.
  3. AC1: Confirm that on mobile, the selector appears below the list header.
Mobile- Vertical
2025-02-27_12-43-14.png (795×696 px, 119 KB)
  1. AC2: Confirm that on tablet vertical, tablet horizontal, and desktop, the selector is integrated within the list header.
Tablet -VerticalTablet-HorizontalDesktop
2025-02-27_12-45-57.png (803×691 px, 125 KB)
2025-02-27_12-46-36.png (705×850 px, 111 KB)
2025-02-27_12-47-08.png (847×1 px, 173 KB)

Test Case 2: Validate Language List Dialog Behavior on Wide Screens

  1. Open the Translation Dashboard on a tablet horizontal or desktop screen.
  2. Click on the language pair selector to open the list of languages.
  3. AC3: Confirm that the list of languages appears as a dialog with a dark overlay (Base20 #54595D, 85% opacity).

Pending, move to backlog

  1. AC4: Tap outside the dialog and confirm that it closes correctly.
DesktopMobile
2025-02-27_15-28-49.mp4.gif (608×1 px, 738 KB)
2025-02-27_15-30-06.mp4.gif (566×656 px, 348 KB)

@Pginer-WMF regarding the part B) of the task and specifically for the overlay, instead of the proposed backdrop color (Base20 #54595D, 85% opacity or rgba(84, 89, 93, 0.85)), can we use codex @background-color-backdrop-dark (rgba( 0, 0, 0, 0.65 )) design token for better consistency?

@Pginer-WMF regarding the part B) of the task and specifically for the overlay, instead of the proposed backdrop color (Base20 #54595D, 85% opacity or rgba(84, 89, 93, 0.85)), can we use codex @background-color-backdrop-dark (rgba( 0, 0, 0, 0.65 )) design token for better consistency?

Yes. Makes perfect sense to use the Codex standard one now that it is available.

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

[mediawiki/extensions/ContentTranslation@master] SXTranslationListLanguageSelector: Fix backdrop color on desktop

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

Change #1135969 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SXTranslationListLanguageSelector: Fix backdrop color for desktop devices

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

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

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

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

Change #1136452 merged by jenkins-bot:

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

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

@ngkountas Confirmed that the list of languages appears as a dialog with a codex @background-color-backdrop-dark (rgba( 0, 0, 0, 0.65 ) as mentioned from T351734#10610886, seen in the screenshots below. I will mark this as Sign-off. Thanks for all your work!

Test Result - Test Wiki

Status: ✅ PASS
Environment: test.wikipedia.beta.wmflabs.org
OS: macOS Sequoia 15.3.2
Browser: Chrome 135
Device: MBA
Emulated Device: NA

Test Artifact(s):

Test Case 2: Validate Language List Dialog Behavior on Wide Screens

  1. Open the Translation Dashboard on a tablet horizontal or desktop screen.
  2. Click on the language pair selector to open the list of languages.
  3. AC3: Confirm that the list of languages appears as a dialog with a codex @background-color-backdrop-dark (rgba( 0, 0, 0, 0.65 ).
DesktopMobile
2025-04-29_11-39-04.png (1×1 px, 353 KB)
2025-04-29_11-42-21.png (1×2 px, 283 KB)
GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.
GMikesell-WMF moved this task from Needs QA to Design Signoff on the LPL Hypothesis board.