Page MenuHomePhabricator

SX: Navigation to Pick a sentence step takes a long time
Closed, ResolvedPublic

Description

When the user selects a draft translation to continue, it takes several seconds to navigate to the "Pick a sentence" step. During this waiting time, there is no loading indicator displayed to the user, leaving the user wondering if their action (click) was indeed submitted.

Additionally, now that the quick tutorial step is skipped for users that have already created at least one section translation (this change has not yet been deployed to production), the same issue occurs when selecting a lead section to translate.

Issue on greek (el) production wiki for draft translations:

Issue on local dev environment for lead section translations:

This task proposes to navigate immediately to the "Pick a sentence" step, and display a loading indicator there while the data needed for translation are being loaded in the background.

Event Timeline

ngkountas triaged this task as Medium priority.Jul 24 2023, 11:04 AM

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

[mediawiki/extensions/ContentTranslation@master] SX: Add spinner inside "Pick a sentence" step until data are loaded

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

Screencast for continuing draft translation, after submitted fix:

Change 940872 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX: Add spinner inside "Pick a sentence" step until data are loaded

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

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

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

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

This latest fix for the loading time introduces a bug for non-lead section translations. That is that if the "Pick a sentence" step loads first time with such a non-lead section, no proposed MT is displayed at the bottom of the page for the section title, but the "Retry MT" card is displayed instead. Screencast of the issue on local development environment:

A fix will soon be submitted for this bug.

Screencast after fixing the above issue (on local dev environment):

Change 948563 merged by jenkins-bot:

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

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

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

[mediawiki/extensions/ContentTranslation@master] SX: Move MT provider initialization functionality to composable

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

Change 948583 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX: Move MT provider initialization functionality to composable

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

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

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

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

Change 954671 merged by jenkins-bot:

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

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

The issue is now fixed in production for both draft translations and new lead section translations.

Screencast from greek (el) wiki:

ngkountas changed the task status from In Progress to Open.Sep 8 2023, 9:32 AM