Page MenuHomePhabricator

Last language used to start a new translation is not persisted in the new dashboard
Closed, ResolvedPublic

Description

When starting a new translation, users can search for an article in any language to be used as a source for the translation. Although defaults are provided, when users select a language, it may be convenient for the system to remember it for the next time. This is the case for the dashboard on desktop but not on mobile. Examples are captured below:

On desktop

Accessing Content Translation on Bangla Wikipedia the default source language is English. After using Catalan to start a translation, the next time Catalan is the default source language.

On mobile

Accessing Content Translation on Bangla Wikipedia the default source language is English. After using Catalan to start a translation, the next time English is still the default. That is, a user that always translates articles from Catalan would have to change the language every single time.

The expected behaviour would be for the selected language to be remembered for the next time. That is, for mobile to follow the current behaviour observed on desktop.

Derived Requirement

The new dashboard on mobile should persist the last used source language for starting a new translation, ensuring that:

  • When a user selects a source language different from the default, the system should remember this selection for future translations.
  • The behavior on mobile should match the desktop experience, where the last used source language is retained.
  • Users should not have to manually reselect their preferred source language each time they start a new translation.
Test Steps

Test Case 1: Ensure Last Used Source Language Persists on Mobile Dashboard

  1. Open Content Translation on Bangla Wikipedia (mobile version).
  2. Observe the default source language (e.g., English).
  3. Change the source language to Catalan (or any other language).
  4. Start a new translation using this language.
  5. Return to the dashboard and start another new translation.
  6. ✅❓❌⬜ AC1: Confirm that Catalan (or the previously selected language) remains the default source language instead of reverting to English.

QA Results - Test Wiki

ACStatusDetails
1T385880#10585245

Event Timeline

PWaigi-WMF moved this task from Backlog to Prioritized on the LPL Hypothesis board.

The expected behaviour would be for the selected language to be remembered for the next time. That is, for mobile to follow the current behaviour observed on desktop.

Is the expected behavior to replace original language entirely (like on desktop) or may more than one language be shown (like below)?

image.png (510×682 px, 82 KB)

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

[mediawiki/extensions/ContentTranslation@master] Persist last language used in article search language selector

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

Is the expected behavior to replace original language entirely (like on desktop) or may more than one language be shown (like below)?

I may have answered my own question. In the unified dashboard experience, the (coded) expected behavior is that a maximum of 3 options can be displayed for easy access: the default language plus 2 of the previously selected. I think we can agree that's better than restricting the user to just 1 option. The important detail is that from the 2 previously selected, we always ensure the last selected language is displayed, regardless of how many have been selected before.

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

[mediawiki/extensions/ContentTranslation@master] Unified Dashboard: Use languages from storage during initialization

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

Change #1118854 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Persist last language used in article search language selector

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

Change #1119717 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Unified Dashboard: Use languages from storage during initialization

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

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

@eamedina Confirmed that Catalan (or the previously selected language) remains the default source language instead of reverting to English as seen in the gifs. I will move this to sign-off. Thanks for all your work!

Test Result - TestWiki

Status: ✅ PASS
Environment: TestWiki
OS: macOS Sonoma 15.3.1
Browser: Chrome 133
Device: MBA
Emulated Device: NA

Test Artifact(s):

https://bn.wikipedia.org/wiki/%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#draft
https://bn.m.wikipedia.org/w/index.php?title=Special:ContentTranslation&active-list=draft&filter-id=previous-edits&filter-type=automatic&from=en&to=bn&unified-dashboard=true

Test Steps

Test Case 1: Ensure Last Used Source Language Persists on Mobile Dashboard

  1. Open Content Translation on Bangla Wikipedia (mobile version).
  2. Observe the default source language (e.g., English).
  3. Change the source language to Catalan (or any other language).
  4. Start a new translation using this language.
  5. Return to the dashboard and start another new translation.
  6. AC1: Confirm that Catalan (or the previously selected language) remains the default source language instead of reverting to English.
DesktopMobile
2025-02-26_13-47-48.mp4.gif (894×1 px, 2 MB)
2025-02-26_13-23-13.mp4.gif (806×986 px, 1 MB)
GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF moved this task from Needs QA to Design Signoff on the LPL Hypothesis board.