Page MenuHomePhabricator

Update page title of custom list to include list name
Open, HighPublic2 Estimated Story Points

Description

Background

We're moving to a world where instead of Saved the title will be Saved / <Custom List Title> and the custom list title will no longer be on a separate line. Additionally, on mobile we want the line to wrap to max 2 lines and then truncate with ellipses

Notes for engineers

This is a bit tricky, because the page title is being set in SpecialReadingLists.php which currently does not concern itself with the reading list in question. It shouldn't be hard, but we will have to look up the custom list name via ID and make sure we're not doing anything silly like exposing security holes

For the text wrap, look into line clamp and text overflow - you should be able to target the page title in the special page stylesheet (please ensure the styles are not leaking out of the special page, but they shouldn't)

User story

As a logged in Wikipedia user, I can see the page title shift when I navigate to a custom collection that goes from "Saved" (default, all items view) to "Saved / [name of custom collection]"

Design requirements

image.png (914×314 px, 40 KB)

Again this should probably be an exported wireframe but alas I don't know how to do that 😭
List (10).png (384×699 px, 103 KB)
mobile wrapping behavior


Requirements

Acceptance criteria

  • Page title reflects name of custom list on custom list pages
  • Custom list title is removed from subheader
  • Page title of parent Saved "all items" page is unchanged
  • On mobile, text wraps to two lines and then truncates with ellipses as shown in design (desktop optional)

QA strategy

  • Risky change? Med risk - I suspect this will be cached, so we should make sure we get it right before letting it ride the train
  • QA by: QS, PM, and/or design
  • QA in: Patchdemo, beta, and production
  • Test steps: Add if needed.

Communication criteria

Add if this needs an announcement or discussion.

Rollback plan

If this is somehow broken it will (hopefully) be limited to the scope of the user, so plan our response accordingly - we may need to backport a fix but assuming the page title is cached HTML, we will be a bit at the mercy of the slow moving cache. Proceed accordingly and scope changes to this area only to limit the blast radius

Event Timeline

SToyofuku-WMF triaged this task as High priority.EditedJul 13 2026, 5:28 PM

Note that on mobile it would be <Custom List Title> and on desktop it would be Saved / <Custom List Title>

This has been updated - now it's Saved / <Custom List Title> on both platforms

SToyofuku-WMF renamed this task from [WIP] Update page title of custom list to include list name to Update page title of custom list to include list name.Jul 13 2026, 7:55 PM
SToyofuku-WMF updated the task description. (Show Details)

Change #1310590 had a related patch set uploaded (by Stoyofuku-wmf; author: Stoyofuku-wmf):

[mediawiki/extensions/ReadingLists@master] [Draft] Add custom list title to special page title

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

SToyofuku-WMF set the point value for this task to 2.Jul 14 2026, 5:31 PM

Change #1311539 had a related patch set uploaded (by LorenMora; author: LorenMora):

[mediawiki/extensions/ReadingLists@master] Update page title of custom list to include list name

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

Updated the image (to remove the grayed out text) so that there is no confusion during QA process.

Change #1311539 merged by jenkins-bot:

[mediawiki/extensions/ReadingLists@master] Update page title of custom list to include list name

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

Change #1310590 abandoned by Stoyofuku-wmf:

[mediawiki/extensions/ReadingLists@master] [Draft] Add custom list title to special page title

Reason:

Completed in Id73809b0ed0736a79daec46694318fe2050ab310

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

This looks good to me on the beta cluster:

Screenshot 2026-08-06 at 5.01.31 PM.png (2,896×1,682 px, 406 KB)

Screenshot 2026-08-06 at 5.02.25 PM.png (2,896×1,682 px, 1 MB)