Page MenuHomePhabricator

Allow ToC to appear on all namespaces for testing purposes
Closed, ResolvedPublic2 Estimated Story Points

Description

Background

We would like to test the table of contents across all namespaces so that we can determine what specific use cases we need to account for across namespaces and projects

Acceptance criteria

  • Turn on ToC across all namespaces so that we can QA in production using the url parameter

QA steps

QA Results - Beta

ACStatusDetails
1T304168#7830273

QA Results - Prod

ACStatusDetails
1T304168#7845777

Event Timeline

Jdlrobson subscribed.

Relaxing the logic in SkinVector22:isTableOfContentsVisibleInSidebar is all that's needed here.

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

[mediawiki/skins/Vector@master] Enable table of contents on all namespaces

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

Change 773575 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Enable table of contents on all namespaces

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

hi @Jdlrobson -- I didn't test this thoroughly enough before my trigger-happy merging. I am trying to verify on beta cluster that this is working properly but I haven't yet encountered a non-main namespace page where I can see the new TOC. Is there something I'm missing in terms of config or page content to see it?

Test Result - Beta

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

Test Artifact(s):

QA Steps

✅ AC1: Navigate to a special page on beta cluster to see new sticky TOC in sidebar (click on hamburger menu to toggle menus)
https://en.wikipedia.beta.wmflabs.org/wiki/Talk:Albert_Einstein

Screen Recording 2022-04-04 at 3.54.06 PM.mov.gif (1×1 px, 247 KB)

https://en.wikipedia.beta.wmflabs.org/wiki/Talk:Dog
Screen Recording 2022-04-04 at 3.54.25 PM.mov.gif (1×1 px, 336 KB)

https://en.wikipedia.beta.wmflabs.org/wiki/Talk:Cats
@ovasileva, it showed up for me.
Screen Recording 2022-04-04 at 3.54.58 PM.mov.gif (1×1 px, 442 KB)

Edtadros subscribed.

Test Result - Prod

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

Test Artifact(s):

QA Steps

✅ AC1: Navigate to a special page on beta cluster to see new sticky TOC in sidebar (click on hamburger menu to toggle menus)
https://en.wikipedia.org/wiki/Talk:Albert_Einstein?tableofcontents=1

Screen Shot 2022-04-11 at 9.57.13 AM.png (491×863 px, 106 KB)

https://en.wikipedia.org/wiki/Talk:Dog?tableofcontents=1
Screen Shot 2022-04-11 at 9.57.41 AM.png (638×707 px, 121 KB)

https://en.wikipedia.org/wiki/Talk:Cats?tableofcontents=1
Screen Shot 2022-04-11 at 9.57.58 AM.png (565×747 px, 117 KB)