Page MenuHomePhabricator

The "missing relevant languages banner" with slow loading makes the interwiki links jump down
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Make sure you are logged in and have "relevant languages" defined
  • Go to any page where you may see the banner encouraging to translate the article into your "relevant languages"
  • Open the ULS drop-down menu
  • Pay attention to the top of the menu

What happens?:

  • If the connection is not very fast, you will have the part with the language list loaded first, and next the "missing relevant languages banner" loaded.
  • If you attempt to click quickly, while the banner is being loaded, you may end up clicking a different link

What should have happened instead?:
The banner should be loaded together with the list

Screencast

chrome_wtEHePnuMH.gif (538×381 px, 48 KB)

Derived Requirements

  1. Requirement 1: Synchronize Loading of Banner and Language List Ensure the "missing relevant languages" banner and the interwiki language list in the ULS drop-down menu load simultaneously.
Test Steps

Test Case 1: Validate Banner and Language List Load Together Without Layout Shifts

  1. Log in to the wiki and define "relevant languages" in your preferences.
  2. Navigate to a page displaying the "missing relevant languages" banner in the ULS drop-down menu.
  3. Open the ULS drop-down menu.
  4. Observe the loading behavior of the banner and the interwiki language list.
  5. ✅❓❌⬜ AC1: Confirm that the banner and interwiki language list load simultaneously without delay or separate rendering.

QA Results - Beta

ACStatusDetails
1T344028#10359701

Event Timeline

Nikerabbit edited projects, added ContentTranslation; removed SectionTranslation.
Nikerabbit moved this task from Needs Triage to Enhancements on the ContentTranslation board.

The feature was introduced with T290972, but I wonder if it is not a more recent regression…

As noted, that pop-up delay creates annoying misclicks.

User CSS to your global.css to stop misclicks:

.cx-uls-relevant-languages-banner {
	display: none;
}

That's exactly what I did (albeit using Stylish extension), but it would be great tp have a proper fix on this (or any traction at all).

This feature/bug is so annoying!

It has been an annoyance for around a year now, and I'm surprised it hasn't been fixed yet. I can't be the only one fed up about this.

Yes, supposedly I can suppress the bug manually by writing a CSS code, but it would be better to fix this for all users on the platform by default. It says "279,039 users are trying this feature."

It is a very cumbersome bug for multilingual editors in particular, which are very important editors on Wikipedia.

Fudge this is annoying. Kindly do the needful at your earliest convenience.

Hi I made an account here to want to add my opinion that this is a bit annoying. I accidentally click on a wrong language link many times because of this.

It would be great if some actual actions could happen to fix this easy-to-fix but quite annoying issue after so many reports.

It has been more than 1 year since it was introduced.

The author of the commit that introduced this regression (https://phabricator.wikimedia.org/T290972) seemed to imply this will only be fixed after *another rewrite*, which I personally think is bad, for lack of a better word.

Considering the impact and age of this bug, we really should fix it *now* and improve it further in the said re-write.

For the record, communities can and should hide this advertisement for ContentTranslation via common CSS, like we did in Russian Wikipedia:
https://ru.wikipedia.org/wiki/MediaWiki:Common.css#L-195

Hello, this "soon to be fixed issue" is still an issue over 2 years later. Can we make it before 2025? Starting to become ridiculous.

Change #1089517 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/extensions/ContentTranslation@master] Avoid banner flicker in relevantlanguages entrypoint:

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

Change #1089517 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Avoid banner flicker in relevantlanguages entrypoint

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

@santhosh I just want to confirm with you if this is what you are looking for "missing relevant languages banner" regarding the bug as seen in the gif?

UPDATE: T344028#10360583

Test Result - Beta|

Status: ✅ PASS
Environment: Beta
OS: macOS Sonoma 15.1
Browser: Chrome 131
Device: MBA
Emulated Device: NA

Test Artifact(s):

https://en.wikipedia.beta.wmflabs.org/wiki/Main_Page#p-lang-btn

Test Steps

Test Case 1: Validate Banner and Language List Load Together Without Layout Shifts

  1. Log in to the wiki and define "relevant languages" in your preferences.
  2. Navigate to a page displaying the "missing relevant languages" banner in the ULS drop-down menu.
  3. Open the ULS drop-down menu.
  4. Observe the loading behavior of the banner and the interwiki language list.
  5. AC1: Confirm that the banner and interwiki language list load simultaneously without delay or separate rendering.

2024-11-26_13-36-57.mp4.gif (1×974 px, 1004 KB)

GMikesell-WMF updated Other Assignee, added: GMikesell-WMF.
GMikesell-WMF updated the task description. (Show Details)

@GMikesell-WMF yes. you are right. The banner should be there in the language selector immediately after you open the selector.

GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.

Great! The UI element shows without jumps or other glitches.