Page MenuHomePhabricator

can't access the "why?" link on contentTranslation
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

can't access the "why?" link, when I click it, it closes the whole "Initial translation" component.

Screenshot 2021-03-10 at 11.34.02.png (271×728 px, 69 KB)

Steps:

  1. start a translation of an article from portuguese to english (example)
  2. translate a paragraph of text
  3. on the top right corner, the "Initial translation" component will appear with the "Why?" link. Click it

Actual results:

  • the component closes and we can't access the link

Expected results:

  • the link opens on a new tab

The next step would be either (1 or 2):

  1. the component closes since the translated text is no longer selected
  2. the focus goes back to the translated paragraph keeping the component open

Event Timeline

I think the underlying issue is that interacting with the tools sidebar should not be consider as a complete loss of focus from the content. this is causing several issues with the MT limits too (T251887), showing them earlier than expected and creating confusion.

Change #1137079 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/ContentTranslation@master] CXTranslationToolbar: Ensure toolbar stays open on link click

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

abi_ set the point value for this task to 2.

Screenshot 2025-04-17 at 15.56.08.png (368×734 px, 46 KB)

When I click on "red circle" area, it will close the toolbar, is this expected?

Change #1137079 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CXTranslationToolbar: Ensure toolbar stays open on link click

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

PWaigi-WMF subscribed.

Tested; link opens as expected.