Page MenuHomePhabricator

[Reading Lists] Limit Reading List "save" button to main namespace
Closed, ResolvedPublic2 Estimated Story Points

Description

For our initial Reading List experiment, we want to limit the Reading List "save" icon to only appear in the main article namespace.

Currently, it appears on all namespaces like talk pages and template pages. Although there might be a use-case around this, we want the initial feature to focus on reading, and other namespaces are more associated with editing.

Additional, the community tech team is working on a Template recall and discovery project that allows people to "favourite" a template. This might collide with the reading list UI.

User story

As an editor, I don't want to be confused by multiple options to save a page for later.


Requirements

  • The "save" Reading List button is only visible on the main article namespace.
  • On the main article namespace, for users in the experiment, the watchstar is in the tools menu and the watchlist link is in the user menu dropdown per screenshot.

Screenshot 2025-08-25 at 3.16.56 PM.png (1,754×323 px, 92 KB)

NOTE: Using CSS e.g. .ns-0 and display: none; is likely the easiest way to implement this.

Requirement

Scope: Desktop web (Vector 2022).

  • The Reading List “save” (bookmark) button must only appear on pages in the main article namespace.
  • The button must not appear on non-main namespaces such as Talk, User, Template, or Category pages.
  • On main namespace pages, for users in the Reading List experiment:
    • The watchstar icon must appear in the tools menu.
    • The watchlist link must appear in the user menu dropdown.
  • For users outside the experiment or on non-main namespaces, the watchstar and watchlist display behavior must remain unchanged.

BDD

Feature: Restrict Reading List “save” button to main namespace

  Scenario: Viewing a main namespace article
    Given I am a user enrolled in the Reading List experiment
    And I view a page in the main article namespace
    Then the Reading List “save” (bookmark) button is visible
    And the watchstar appears in the tools menu
    And the watchlist link is in the user menu dropdown

  Scenario: Viewing a non-main namespace page
    Given I am a user enrolled in the Reading List experiment
    And I view a Talk, User, Template, or Category page
    Then the Reading List “save” button is not visible
    And the watchstar and watchlist behave as they normally do

Test Steps

Test Case 1: Reading List button visible in main namespace

  1. Log in as a user enrolled in the Reading List experiment.
  2. Open any main article page (e.g., https://en.wikipedia.org/wiki/Solar_energy).
  3. AC1: The Reading List “save” (bookmark) button is visible in the toolbar.
  4. AC2: The watchstar icon appears in the tools menu.
  5. AC3: The watchlist link is visible in the user menu dropdown.

Test Case 2: Reading List button hidden in non-main namespaces

  1. Open a Talk page, Template page, or User page (e.g., https://en.wikipedia.org/wiki/Talk:Solar_energy).
  2. AC4: The Reading List “save” button is not visible.
  3. AC5: The watchstar and watchlist display normally (no UI change from baseline).

QA Results - Beta

QA Results - Prod

This task was created by Version 1.0.0 of the Reader Experience team task template using phabulous.

Event Timeline

Jdrewniak moved this task from Incoming to Needs refinement on the Reader Experience Team board.

On the main article namespace, for users in the experiment, the watchstar is in the tools menu and the watchlist link is in the user menu dropdown per screenshot.

Do we want to always put the watchlist in the tools menu and user dropdown for all namespaces if the user is in the experiment? (e.g. for consistency) or where do we want the watchlist / watchstar when the user is not in the main article namespace?

Change #1195263 had a related patch set uploaded (by Aude; author: Aude):

[mediawiki/extensions/ReadingLists@master] Limit bookmark icon button to main namespace

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

SToyofuku-WMF subscribed.

@aude taking your face off as you authored the patch - also, did you ever get an answer to your question from a couple months ago?

Do we want to always put the watchlist in the tools menu and user dropdown for all namespaces if the user is in the experiment? (e.g. for consistency) or where do we want the watchlist / watchstar when the user is not in the main article namespace?

Change #1195263 merged by jenkins-bot:

[mediawiki/extensions/ReadingLists@master] Limit bookmark icon button to main namespace

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

Hello and sorry, more tickets in QA for you

Edtadros subscribed.

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Tahoe 26.x
Browser: Chrome Canary (latest as of test date)
Device: MS
Emulated Device: NA

Test Case 1: Reading List button visible in main namespace

  1. Log in as a user enrolled in the Reading List experiment.
  2. Open any main article page (e.g., https://en.wikipedia.org/wiki/Solar_energy).
  3. AC1: The Reading List “save” (bookmark) button is visible in the toolbar.
  4. AC2: The watchstar link appears in the tools menu.
  5. AC3: The watchlist link is visible in the user menu dropdown.

screenshot 278.png (1,380×954 px, 384 KB)

Test Case 2: Reading List button hidden in non-main namespaces

  1. Open a Talk page, Template page, or User page (e.g., https://en.wikipedia.org/wiki/Talk:Solar_energy).
  2. AC4: The Reading List “save” button is not visible.
  3. AC5: The watchstar and watchlist display normally (no UI change from baseline).

screenshot 279.png (1,374×940 px, 236 KB)

Test Result - Prod

Status: ✅ PASS
Environment: testwiki
OS: macOS Tahoe 26.x
Browser: Chrome Canary (latest as of test date)
Device: MS
Emulated Device: NA

Test Case 1: Reading List button visible in main namespace

  1. Log in as a user enrolled in the Reading List experiment.
  2. Open any main article page (e.g., https://en.wikipedia.org/wiki/Solar_energy).
  3. AC1: The Reading List “save” (bookmark) button is visible in the toolbar.
  4. AC2: The watchstar link appears in the tools menu.
  5. AC3: The watchlist link is visible in the user menu dropdown.

screenshot 280.png (1,581×979 px, 471 KB)

Test Case 2: Reading List button hidden in non-main namespaces

  1. Open a Talk page, Template page, or User page (e.g., https://en.wikipedia.org/wiki/Talk:Solar_energy).
  2. AC4: The Reading List “save” button is not visible.
  3. AC5: The watchstar and watchlist display normally (no UI change from baseline).

screenshot 281.png (1,593×889 px, 217 KB)

HFan-WMF claimed this task.