Page MenuHomePhabricator

[anon prefs] TOC pinned / unpinned status should persist across page views for anonymous users
Closed, ResolvedPublic3 Estimated Story PointsFeature

Description

NOTE: Blocked on T339268

Description

If someone collapses/hides the table of contents, it should remain hidden as they navigate to other pages. Note: this task should be blocked on T311160.

Original feature request

Hi. Please change the behaviour of the TOC hiding. When clicking on "hide" in the sidebar TOC, it disappears, and wide screen TOP opening button uppears instead. But when opening another article or refreshing this one, the TOC returns. It is not convenient to click the hiding button all the time, if you prefer it always hidden. Thank you.

QA Results - Beta

ACStatusDetails
1T316060#9173301

QA Results - Prod

ACStatusDetails
1T316060#9189625

Related Objects

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes

Thanks @Jdlrobson is this planned to be available to logged-out users? What made you list it as stalled?

This is blocked on generalizing the code for allowing storage of basic preferences for anonymous users that we use for fixed width toggle. When we rolled that out there were some concerns from the performance team about the viability of that solution as a long term solution. The details are in T331681.

Once T331681 is resolved, fixing this becomes trivial and this would unblock various things including this, dark mode, and user font size.

Test wiki created on Patch demo by Jdlrobson using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/1165364832/w

Jdlrobson changed the task status from Stalled to Open.Jun 15 2023, 5:25 PM
Jdlrobson updated the task description. (Show Details)
Jdlrobson set the point value for this task to 3.Jun 15 2023, 5:30 PM
Jdlrobson renamed this task from [Feature request] TOC pinned / unpinned status should persist across page views for anonymous users to Client preferences: TOC pinned / unpinned status should persist across page views for anonymous users.Jun 20 2023, 4:38 PM
Jdlrobson renamed this task from Client preferences: TOC pinned / unpinned status should persist across page views for anonymous users to [anon prefs] TOC pinned / unpinned status should persist across page views for anonymous users.Jun 20 2023, 5:09 PM
Jdlrobson raised the priority of this task from Medium to High.

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

[mediawiki/skins/Vector@master] POC: TOC pinned

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

Change 937196 abandoned by Jdlrobson:

[mediawiki/skins/Vector@master] POC: TOC pinned

Reason:

Unlicking for now.

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

ovasileva lowered the priority of this task from High to Medium.Jul 17 2023, 5:43 PM
Jdlrobson raised the priority of this task from Medium to High.Aug 7 2023, 5:39 PM

High because we want to validate the new system is working as expected.

Change 937196 restored by Jdlrobson:

[mediawiki/skins/Vector@master] POC: TOC pinned

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

Change 937196 abandoned by Jdlrobson:

[mediawiki/skins/Vector@master] POC: TOC pinned

Reason:

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

Jdlrobson lowered the priority of this task from High to Medium.Aug 11 2023, 4:30 PM

@ovasileva i've marked this one as medium as it's a lower relative priority than https://phabricator.wikimedia.org/T343928 and https://phabricator.wikimedia.org/T342277. The two higher priorities are important as they test capabilities as well as fixing bugs.

Jdlrobson added a subscriber: Mabualruz.

Change 956864 had a related patch set uploaded (by Mabualruz; author: Mabualruz):

[mediawiki/skins/Vector@master] [anon prefs] TOC pinned / unpinned

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

Seems this one was 99% done already, previous POC patch done by @Jdlrobson was 100% on the mark only needed to remove Zebra support

Change 956864 merged by jenkins-bot:

[mediawiki/skins/Vector@master] [anon prefs] TOC pinned / unpinned

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

Edtadros subscribed.

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Ventura
Browser: Chrome
Device: MBA
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1: If someone collapses/hides the table of contents, it should remain hidden as they navigate to other pages

screenshot 14.mov.gif (854×1 px, 1 MB)

@ovasileva or @Jdlrobson Hi, please could you suggest what wording the Tech News entry should use? IIUC, it's something like this:

Recent changes

  • The Vector 2022 skin will now remember the pinned/unpinned status for the Table of Contents for all logged-out users.

Thanks! (P.s. Drafts always help, otherwise I have to read and understand entire task-threads!)

Edtadros removed Edtadros as the assignee of this task.

Test Result - Prod

Status: ✅ PASS
Environment: enwiki
OS: macOS Ventura
Browser: Chrome
Device: MBA
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1: If someone collapses/hides the table of contents, it should remain hidden as they navigate to other pages

screenshot 32.mov.gif (850×1 px, 2 MB)

Test wiki on Patch demo by Jdlrobson using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/1165364832/w/