Page MenuHomePhabricator

Reserve space for the "Related articles" container
Closed, ResolvedPublic0 Estimated Story Points

Description

It is EXTREMELY annoying when you scroll down to the bottom of the page to use the "Desktop" link, and then have it disappear from under your finger/cursor because "Related articles" have loaded in.

Developer notes

  • The reserved space is different for mobile or desktop but should always be fixed.
  • The reserved space should be hidden when the client-nojs class is present in the page

QA

You can QA on https://en.m.wikipedia.beta.wmflabs.org/wiki/Dog OR https://en.m.wikipedia.org/wiki/Dog

  • Scroll quickly to the bottom of the page and poise yourself to click the "desktop view" link.
  • Wait until related articles loads, but do not move your finger.
  • After RelatedArticles has loaded make sure your finger is still hovering over "desktop view".

QA Results - Beta

ACStatusDetails
1T223844#7491301

QA Results - Prod

ACStatusDetails
1T223844#7491303

Event Timeline

Jdlrobson subscribed.
Aklapper added a subscriber: phuedx.

@phuedx: A good first task is a self-contained, non-controversial task with a clear approach. It should be well-described with pointers to help a completely new contributor. Given the current short task description I'm removing the good first task tag. Please add details what exactly has to happen where and how for a new contributor, and then add back the good first task project tag. Thanks a lot in advance!

Change 699928 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/RelatedArticles@master] Show card placeholders while loading

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

Change 699928 abandoned by Bartosz Dziewoński:

[mediawiki/extensions/RelatedArticles@master] Show card placeholders while loading

Reason:

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

Change 705033 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/RelatedArticles@master] Simplify the RelatedArticles extension to use WVUI

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

Change 705033 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/RelatedArticles@master] Simplify the RelatedArticles extension to use WVUI

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

Change 736871 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/RelatedArticles@master] Fix loading of related articles via IntersectionObserver

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

Change 736830 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/RelatedArticles@wmf/1.38.0-wmf.7] Fix loading of related articles via IntersectionObserver

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

Change 736871 merged by jenkins-bot:

[mediawiki/extensions/RelatedArticles@master] Fix loading of related articles via IntersectionObserver

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

Change 736830 merged by jenkins-bot:

[mediawiki/extensions/RelatedArticles@wmf/1.38.0-wmf.7] Fix loading of related articles via IntersectionObserver

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

Jdlrobson updated the task description. (Show Details)
Jdlrobson set the point value for this task to 0.
Jdlrobson updated the task description. (Show Details)

Mentioned in SAL (#wikimedia-operations) [2021-11-04T23:22:56Z] <cjming@deploy1002> Synchronized php-1.38.0-wmf.7/extensions/RelatedArticles: Backport: [[gerrit:736830|Fix loading of related articles via IntersectionObserver (T223844)]] (duration: 00m 55s)

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Big Sur
Browser: Chrome
Device: MBP
Emulated Device: NA

Test Artifact(s):

QA Steps

You can QA on https://en.m.wikipedia.beta.wmflabs.org/wiki/Dog OR https://en.m.wikipedia.org/wiki/Dog

Scroll quickly to the bottom of the page and poise yourself to click the "desktop view" link.
Wait until related articles loads, but do not move your finger.
✅ AC1: After RelatedArticles has loaded make sure your finger is still hovering over "desktop view".

Screen Recording 2021-11-08 at 4.38.24 PM.mov.gif (898×414 px, 305 KB)

Test Result - Prod

Status: ✅ PASS
Environment: enwiki
OS: macOS Big Sur
Browser: Chrome
Device: MBP
Emulated Device: NA

Test Artifact(s):

QA Steps

You can QA on https://en.m.wikipedia.beta.wmflabs.org/wiki/Dog OR https://en.m.wikipedia.org/wiki/Dog

Scroll quickly to the bottom of the page and poise yourself to click the "desktop view" link.
Wait until related articles loads, but do not move your finger.
✅ AC1: After RelatedArticles has loaded make sure your finger is still hovering over "desktop view".

Screen Recording 2021-11-08 at 4.44.29 PM.mov.gif (898×414 px, 229 KB)

Edtadros updated the task description. (Show Details)
Edtadros subscribed.

I just wanted to say that I haven't accidentally clicked on a related article while trying to switch to desktop for weeks now, and I'm really happy about it. Thanks for fixing this.

Glad it made a difference! Thanks for sharing!

@Jdlrobson @Volker_E wondering if it would be possible to add some kind of basic loading indicator here? it looks a bit broken currently before the related articles load:

Screen Shot 2022-01-26 at 1.33.47 PM.png (1×843 px, 82 KB)

@alexhollender, yeh a loader would make sense. Can you open a ticket with some mocks?