Page MenuHomePhabricator

[Android user story] Category slide
Open, HighPublic3 Estimated Story Points

Assigned To
Authored By
HNordeenWMF
Sep 18 2026, 10:06 PM
Referenced Files
F109998885: 2026-10-23_09-43-59.webm
Fri, Oct 23, 5:30 PM
F109998137: 2026-10-23_09-30-34.webm
Fri, Oct 23, 5:30 PM
F109996563: 2026-10-23_09-18-20.webm
Fri, Oct 23, 5:30 PM
F109996139: 2026-10-23_09-01-12.webm
Fri, Oct 23, 5:30 PM
F109994906: 2026-10-23_08-32-20.webm
Fri, Oct 23, 5:30 PM
F110002312: screen-20261023-101950-1792775926922.webm
Fri, Oct 23, 5:30 PM
F109994567: 2026-10-23_07-58-15.webm
Fri, Oct 23, 5:30 PM
F109994527: 2026-10-23_07-57-11.webm
Fri, Oct 23, 5:30 PM

Description

Background

Last year we highlighted 3-5 “interesting” categories that the user had visited. https://phabricator.wikimedia.org/T405306 This is a separate slide from the new "Topics" slides we’re adding. We heard the following feedback last year:

  • Make sure categories show diverse interests: Is there a way to collapse categories upwards if they're closely associated so users get more of their niche interests?

Since we now have topics, we’ll lean into “categories” as a way to highlight one niche interest that they had

User Story

As a Wikipedia reader, I want to see the one interesting category that I read articles under last year, so I can feel like my reading is quirky and unique.

Requirements

  • Eligibility
    • User must have read 2 or more articles under one category to see this slide
    • If a user is not eligible, suppress this slide
  • Take all categories that the user has read 2 or more articles under and filter to those with 2+ spaces in the category name. If the user has no categories available with this filter (due to language, or usage), fallback to all categories without this requirement
  • Randomly select one category to show the user

Design

Copy

row 16 https://docs.google.com/spreadsheets/d/1O6x3_19wRpkp6IZ03CIjQDhSYaS4r9ETCzIhARjqfUQ/edit?usp=sharing


Derived Requirements

  1. Ensure the Category slide appears when the user has read at least two distinct articles in the same category during the Year in Review reporting period.
  2. Ensure the Category slide is omitted when no category contains at least two articles the user has read.
  3. Ensure the displayed category is selected only from eligible categories whose names contain at least two spaces, when any such categories exist.
  4. Ensure categories with fewer than two spaces remain eligible when no eligible category name contains at least two spaces.
  5. Ensure the Category slide displays exactly one category randomly selected from the applicable eligible categories.

Test Steps

Test Case 1: Verify the Category slide appears at the two-article threshold

  1. Prepare a reading history with exactly two distinct articles in one category and no other eligible categories.
  2. Open Year in Review.
  3. Navigate through the slides.
  4. ✅❓❌⬜ AC1: The Category slide displays the category shared by the two articles.

Test Case 2: Verify the Category slide is suppressed below the threshold

  1. Prepare a reading history with articles belonging to different categories, with no category containing two read articles.
  2. Open Year in Review.
  3. Navigate through the complete slide sequence.
  4. ✅❓❌⬜ AC2: The slide sequence contains no Category slide.

Test Case 3: Verify the Category slide is suppressed without reading history

  1. Prepare a user with no articles read during the reporting period.
  2. Open Year in Review.
  3. Navigate through the available slides.
  4. ✅❓❌⬜ AC3: The slide sequence contains no Category slide.

Test Case 4: Verify categories with at least two spaces take priority

  1. Prepare an eligible category whose name contains exactly two spaces.
  2. Prepare additional eligible categories whose names contain zero spaces or one space.
  3. Ensure no other eligible category name contains at least two spaces.
  4. Open Year in Review and navigate to the Category slide.
  5. ✅❓❌⬜ AC4: The slide displays the eligible category whose name contains exactly two spaces.

Test Case 5: Verify fallback when eligible category names contain fewer than two spaces

  1. Prepare a reading history with exactly one eligible category whose name contains one space.
  2. Open Year in Review and navigate to the Category slide.
  3. Repeat with an eligible category whose name contains no spaces.
  4. ✅❓❌⬜ AC5: The Category slide displays the sole eligible category in each fallback scenario.

Test Case 6: Verify the space filter does not override article eligibility

  1. Prepare a category whose name contains at least two spaces with only one read article.
  2. Prepare another category whose name contains fewer than two spaces with two distinct read articles.
  3. Ensure no other categories qualify.
  4. Open Year in Review and navigate to the Category slide.
  5. ✅❓❌⬜ AC6: The slide displays the category with two read articles despite its name containing fewer than two spaces.

QA Results - wikipedia-50614-beta-2026-10-20

Event Timeline

HNordeenWMF lowered the priority of this task from Medium to Low.Oct 2 2026, 3:17 PM
SChekfa-WMF updated the task description. (Show Details)
SChekfa-WMF subscribed.
HNordeenWMF raised the priority of this task from Low to High.Thu, Oct 15, 2:02 PM
GOlson-WMF changed the point value for this task from 2 to 3.Wed, Oct 21, 2:24 PM

@Dbrant @HNordeenWMF @ABorbaWMF Can you please review AC1 & AC5? Thanks!

Status: ✅ PASS / ❓ Need More Info / ❌ FAIL
Environment: wikipedia-50614-beta-2026-10-20.apk
OS: V 16.0
Browser: N/A
Device: MBA
Emulated Device: BrowserStack- Samsung Galaxy S26/Google Pixel 10 XL Pro

Test Artifact(s):

Test Steps

Test Case 1: Verify the Category slide appears at the two-article threshold

  1. Prepare a reading history with exactly two distinct articles in one category and no other eligible categories.
  2. Open Year in Review.
  3. Navigate through the slides.
  4. ❓AC1: The Category slide displays the category shared by the two articles.
  • When you first search an article as a new user, it goes to collective YiR. Is that fine?**
  • When I selected 2 articles, flipped the on/off YiR and killed the app, it still went to collective YiR. It wasn't until I added a 3rd article**
❓Galaxy S26 Ultra- First search 2 articles❓ Toggle YiR/Kill App- 2 articles✅ Toggle YiR- 3 Articles
Google Pixel 10 XL Pro- only with 3 articles, not 2

Test Case 2: Verify the Category slide is suppressed below the threshold

  1. Prepare a reading history with articles belonging to different categories, with no category containing two read articles.
  2. Open Year in Review.
  3. Navigate through the complete slide sequence.
  4. ✅ AC2: The slide sequence contains no Category slide.
Samsung Galaxy S26
}

Test Case 3: Verify the Category slide is suppressed without reading history

  1. Prepare a user with no articles read during the reporting period.
  2. Open Year in Review.
  3. Navigate through the available slides.
  4. ✅ AC3: The slide sequence contains no Category slide.
Samsung Galaxy S26
}

Test Case 4: Verify categories with at least two spaces take priority

  1. Prepare an eligible category whose name contains exactly two spaces.
  2. Prepare additional eligible categories whose names contain zero spaces or one space.
  3. Ensure no other eligible category name contains at least two spaces.
  4. Open Year in Review and navigate to the Category slide.
  5. ✅ AC4: The slide displays the eligible category whose name contains exactly two spaces.
Samsung Galaxy S26

Test Case 5: Verify fallback when eligible category names contain fewer than two spaces

  1. Prepare a reading history with exactly one eligible category whose name contains one space.
  2. Open Year in Review and navigate to the Category slide.
  3. Repeat with an eligible category whose name contains no spaces.
  4. ❓ AC5: The Category slide displays the sole eligible category in each fallback scenario.
  • I chose "Noble gases" 1 space category for Helium and Neon. I then chose the 0 space category "Halogens" for Fluorine and Chlorine. The category slide was "Gases with Color", which was 2 spaces. Is that fine?
Samsung Galaxy S26

Test Case 6: Verify the space filter does not override article eligibility

  1. Prepare a category whose name contains at least two spaces with only one read article.
  2. Prepare another category whose name contains fewer than two spaces with two distinct read articles.
  3. Ensure no other categories qualify.
  4. Open Year in Review and navigate to the Category slide.
  5. ✅ AC6: The slide displays the category with two read articles despite its name containing fewer than two spaces.
Samsung Galaxy S26

When you first search an article as a new user, it goes to collective YiR. Is that fine?

Correct!

When I selected 2 articles, flipped the on/off YiR and killed the app, it still went to collective YiR. It wasn't until I added a 3rd article

Exactly right.

The category slide was "Gases with Color", which was 2 spaces. Is that fine?

Also correct!

Sounds good to me. I will move to this to Sign-off, Thanks for all your work!