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
- 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.
- Ensure the Category slide is omitted when no category contains at least two articles the user has read.
- Ensure the displayed category is selected only from eligible categories whose names contain at least two spaces, when any such categories exist.
- Ensure categories with fewer than two spaces remain eligible when no eligible category name contains at least two spaces.
- 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
- Prepare a reading history with exactly two distinct articles in one category and no other eligible categories.
- Open Year in Review.
- Navigate through the slides.
- ✅❓❌⬜ AC1: The Category slide displays the category shared by the two articles.
Test Case 2: Verify the Category slide is suppressed below the threshold
- Prepare a reading history with articles belonging to different categories, with no category containing two read articles.
- Open Year in Review.
- Navigate through the complete slide sequence.
- ✅❓❌⬜ AC2: The slide sequence contains no Category slide.
Test Case 3: Verify the Category slide is suppressed without reading history
- Prepare a user with no articles read during the reporting period.
- Open Year in Review.
- Navigate through the available slides.
- ✅❓❌⬜ AC3: The slide sequence contains no Category slide.
Test Case 4: Verify categories with at least two spaces take priority
- Prepare an eligible category whose name contains exactly two spaces.
- Prepare additional eligible categories whose names contain zero spaces or one space.
- Ensure no other eligible category name contains at least two spaces.
- Open Year in Review and navigate to the Category slide.
- ✅❓❌⬜ 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
- Prepare a reading history with exactly one eligible category whose name contains one space.
- Open Year in Review and navigate to the Category slide.
- Repeat with an eligible category whose name contains no spaces.
- ✅❓❌⬜ 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
- Prepare a category whose name contains at least two spaces with only one read article.
- Prepare another category whose name contains fewer than two spaces with two distinct read articles.
- Ensure no other categories qualify.
- Open Year in Review and navigate to the Category slide.
- ✅❓❌⬜ 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
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T438568#12467240 |
| 2 | ✅ | T438568#12467210 |
| 3 | ✅ | T438568#12467210 |
| 4 | ✅ | T438568#12467210 |
| 5 | ✅ | T438568#12467240 |
| 6 | ✅ | T438568#12467210 |