Page MenuHomePhabricator

Surface nominated collections in Search view
Closed, ResolvedPublic2 Estimated Story Points

Assigned To
Authored By
SBisson
Oct 30 2025, 5:16 PM
Referenced Files
F71398906: 2025-12-31_15-28-07.mp4
Dec 31 2025, 11:30 PM
F71398904: 2025-12-31_15-28-47.mp4
Dec 31 2025, 11:30 PM
F71398878: 2025-12-31_15-23-04.webm
Dec 31 2025, 11:30 PM
F71398876: 2025-12-31_15-20-31.webm
Dec 31 2025, 11:30 PM
F70268381: IMG_6238.PNG
Nov 18 2025, 7:05 AM
F70268396: Screenshot 2025-11-18 at 12.32.10 PM.png
Nov 18 2025, 7:05 AM
F70268350: IMG_6237 2.PNG
Nov 18 2025, 7:05 AM
F70268307: Screenshot 2025-11-18 at 12.29.35 PM.png
Nov 18 2025, 7:05 AM

Description

Goal

Surface community prioritized collections in the Search view through two integration points to help users discover community-prioritized articles.

Design

This task covers two different surfaces for integrating nominated collections into the search journey:

Surface 1: Default search view (empty state)

Shows community priority articles when user hasn't started searching yet.

Screenshot 2025-11-18 at 12.29.35 PM.png (663×1,032 px, 144 KB)
IMG_6237 2.PNG (1,170×2,532 px, 873 KB)
Visibility
  • Section appears in default search view when no search query is entered
  • Priority order: Community Priorities > Recently edited by you > Nearby
  • If target language has a nominated collection → show "Community Priorities" (for all users, regardless of translation history)
  • Hides when user starts typing a search query
  • Only displays when the user's target language has a community nominated priority collection
Section content

Section header:

  • Label: "Community Priorities"
  • Description: "Articles the community selected as important to translate"

Article Display:

  • Shows 3 individual articles from nominated collection(s)
  • No collection badge displayed on articles
Placement
  • Positioned directly below language selector buttons
  • Appears in place of "Nearby" section for new users
  • For experienced users, "Recently edited by you" appears first instead
  • Clicking an article navigates to translation confirmation step
Visual Design
  • Follows existing pattern of "Nearby" and "Recently edited" sections
  • Header: @color-subtle (#72777d)
  • Description: @color-subtle, @font-size-small
Surface 2: Search Results View (Active Search)
Screenshot 2025-11-18 at 12.32.10 PM.png (670×483 px, 54 KB)
IMG_6238.PNG (1,170×2,532 px, 442 KB)

When user enters a search query, show visual indicators on articles that belong to the community-nominated priority collection.

Visibility
  • Badge appears on search result articles that are part of the target language's community priority collection
  • Shows for all users (both new and experienced) during active search
  • Only appears when search query is entered (not in empty state)
  • Badge displays regardless of user's translation history
Badge design

Badge label:

  • Text: "Community priority"
  • Icon: cdxIconUserGroup (user group icon, left of text)
Visual treatment:
  • Background: @background-color-progressive-subtle (light blue)
  • Text color: @color-progressive (blue)
  • Icon color: @color-progressive (blue)
  • Border-radius: @border-radius-pill (fully rounded)
  • Padding: @spacing-12 (vertical), @spacing-50 (horizontal)
  • Font-size: @font-size-small
  • Font-weight: @font-weight-normal
  • No box-shadow (flat appearance)
Placement
  • Badge appears in article metadata row
  • Positioned before the language count indicator
  • Layout: [Community Priority badge] • [language count]
  • Separator: Standard dot separator
Interaction
  • Badge is non-interactive (no hover state, no click action)
  • Purely informational indicator
  • Clicking the article card navigates to translation confirmation step

Below is the updated version with all acceptance criteria consolidated within each test case, while preserving scope, intent, and required formatting. No design-related checks have been introduced.


Derived Requirement

Ensure that community-nominated priority collections are functionally surfaced in the Search view to support article discovery and navigation. When the target language has a nominated collection, eligible articles must be exposed in the default (empty) search state and correctly identified during active search. When no nominated collection exists, search behavior must remain unchanged.

Test Steps

Test Case 1: Surface Community Priority Articles in Default Search View (Empty State)

Preconditions

  • The user has selected a target language that has a community-nominated priority collection.
  • No search query has been entered.
  1. Open Wikipedia using the Minerva skin.
  2. Navigate to the Search view.
  3. Ensure the search input field is empty.
  4. Observe the content displayed in the default search view.
  5. Select one of the surfaced articles sourced from the nominated collection.
  6. ✅❓❌⬜ AC1: Confirm that community-nominated priority articles are displayed only when no search query is entered and the target language has a nominated collection, and that selecting an article navigates to the translation confirmation step.

Test Case 2: Hide Community Priority Content When Search Becomes Active

Preconditions

  • The target language has a community-nominated priority collection.
  1. Open the Search view with no query entered.
  2. Begin typing a search query into the search input field.
  3. Observe the Search view content as results load.
  4. ✅❓❌⬜ AC2: Confirm that community priority content shown in the empty search state is no longer displayed once a search query is entered.

Test Case 3: Identify Community Priority Articles in Active Search Results

Preconditions

  • The target language has a community-nominated priority collection.
  1. Navigate to the Search view.
  2. Enter a valid search query.
  3. Review the list of returned search results.
  4. Select a result that belongs to the community-nominated priority collection.
  5. ✅❓❌⬜ AC3: Confirm that community-priority articles are identifiable during active search and that selecting such an article navigates to the translation confirmation step.

Test Case 4: Preserve Default Search Behavior When No Nominated Collection Exists

Preconditions

  • The selected target language does not have a community-nominated priority collection.
  1. Open Wikipedia using the Minerva skin.
  2. Navigate to the Search view with an empty search query.
  3. Observe the default search view content.
  4. Enter a search query and observe the search results.
  5. ✅❓❌⬜ AC4: Confirm that no community-priority content or indicators are shown in either empty or active search states and that search behavior and navigation match the current implementation.

QA Results - TestWiki

Event Timeline

Nikerabbit moved this task from Needs Triage to Dashboard on the ContentTranslation board.
SBisson raised the priority of this task from Medium to High.Nov 18 2025, 1:56 PM
SBisson moved this task from Incoming to Prioritized on the LPL Hypothesis board.
SBisson changed the task status from Open to In Progress.Nov 20 2025, 2:17 PM
SBisson assigned this task to eamedina.
SBisson moved this task from Prioritized to In-progress on the LPL Hypothesis board.
eamedina set the point value for this task to 2.Nov 24 2025, 2:18 PM

Change #1208058 had a related patch set uploaded (by Eamedina; author: Eamedina):

[mediawiki/extensions/ContentTranslation@master] CX: surface nominated collections in search view

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

Change #1212194 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ContentTranslation@master] Article search: community priority badge

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

Change #1212194 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Article search: community priority badge

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

Change #1213553 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20251201

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

Change #1213553 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20251201

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

Change #1214036 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ContentTranslation@wmf/1.46.0-wmf.5] CX3 Build 1.0.0+20251201

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

Change #1214036 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@wmf/1.46.0-wmf.5] CX3 Build 1.0.0+20251201

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

Mentioned in SAL (#wikimedia-operations) [2025-12-03T14:15:05Z] <sbisson@deploy2002> Started scap sync-world: Backport for [[gerrit:1214036|CX3 Build 1.0.0+20251201 (T408842 T408844)]]

Mentioned in SAL (#wikimedia-operations) [2025-12-03T14:17:16Z] <sbisson@deploy2002> sbisson: Backport for [[gerrit:1214036|CX3 Build 1.0.0+20251201 (T408842 T408844)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-12-03T14:27:06Z] <sbisson@deploy2002> Finished scap sync-world: Backport for [[gerrit:1214036|CX3 Build 1.0.0+20251201 (T408842 T408844)]] (duration: 12m 01s)

Change #1215260 had a related patch set uploaded (by Eamedina; author: Eamedina):

[mediawiki/extensions/ContentTranslation@master] Article search: surface nominated collections (JSON files)

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

Change #1215261 had a related patch set uploaded (by Eamedina; author: Eamedina):

[mediawiki/extensions/ContentTranslation@master] Article search: surface nominated collections

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

Change #1215261 abandoned by Eamedina:

[mediawiki/extensions/ContentTranslation@master] Article search: surface nominated collections

Reason:

Abandon in favor of I1cdce3c00cd4c9b3b6bb8d744d966f0ef00740de

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

Change #1215260 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Article search: surface nominated collections (JSON files)

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

Change #1216643 had a related patch set uploaded (by Sbisson; author: Eamedina):

[mediawiki/extensions/ContentTranslation@wmf/1.46.0-wmf.5] Article search: surface nominated collections (JSON files)

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

Change #1216643 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@wmf/1.46.0-wmf.5] Article search: surface nominated collections (JSON files)

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

Mentioned in SAL (#wikimedia-operations) [2025-12-09T14:09:35Z] <sbisson@deploy2002> Started scap sync-world: Backport for [[gerrit:1216643|Article search: surface nominated collections (JSON files) (T408842)]]

Mentioned in SAL (#wikimedia-operations) [2025-12-09T15:05:27Z] <sbisson@deploy2002> sbisson: Backport for [[gerrit:1216643|Article search: surface nominated collections (JSON files) (T408842)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-12-09T15:19:00Z] <sbisson@deploy2002> Finished scap sync-world: Backport for [[gerrit:1216643|Article search: surface nominated collections (JSON files) (T408842)]] (duration: 69m 26s)

Change #1208058 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Article search: surface nominated collections

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

Change #1218297 had a related patch set uploaded (by Eamedina; author: Eamedina):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20251215

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

Change #1218297 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20251215

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

Change #1218762 had a related patch set uploaded (by Sbisson; author: Eamedina):

[mediawiki/extensions/ContentTranslation@wmf/1.46.0-wmf.5] CX3 Build 1.0.0+20251215

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

Change #1218762 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@wmf/1.46.0-wmf.5] CX3 Build 1.0.0+20251215

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

Mentioned in SAL (#wikimedia-operations) [2025-12-16T14:39:56Z] <sbisson@deploy2002> Started scap sync-world: Backport for [[gerrit:1218762|CX3 Build 1.0.0+20251215 (T408842 T411779)]]

Mentioned in SAL (#wikimedia-operations) [2025-12-16T14:42:15Z] <sbisson@deploy2002> sbisson: Backport for [[gerrit:1218762|CX3 Build 1.0.0+20251215 (T408842 T411779)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-12-16T14:47:24Z] <sbisson@deploy2002> Finished scap sync-world: Backport for [[gerrit:1218762|CX3 Build 1.0.0+20251215 (T408842 T411779)]] (duration: 07m 27s)

@eamedina Confirmed surface nominated collections in Search view, as seen in the videos below. I will move this to Sign-off. Thanks for all your work!

Test Result - TestWiki

Status: ✅ PASS
Environment: TestWiki
OS: macOS Tahoe 26.1
Browser: Chrome 143
Device: MBA
Emulated Device: NA

Test Artifact(s):

Test Steps

Test Case 1: Surface Community Priority Articles in Default Search View (Empty State)

Preconditions

  • The user has selected a target language that has a community-nominated priority collection.
  • No search query has been entered.
  1. Open Wikipedia using the Minerva skin.
  2. Navigate to the Search view.
  3. Ensure the search input field is empty.
  4. Observe the content displayed in the default search view.
  5. Select one of the surfaced articles sourced from the nominated collection.
  6. AC1: Confirm that community-nominated priority articles are displayed only when no search query is entered and the target language has a nominated collection, and that selecting an article navigates to the translation confirmation step.
DesktopMobile

Test Case 2: Hide Community Priority Content When Search Becomes Active

Preconditions

  • The target language has a community-nominated priority collection.
  1. Open the Search view with no query entered.
  2. Begin typing a search query into the search input field.
  3. Observe the Search view content as results load.
  4. AC2: Confirm that community priority content shown in the empty search state is no longer displayed once a search query is entered.

See AC1

Test Case 3: Identify Community Priority Articles in Active Search Results

Preconditions

  • The target language has a community-nominated priority collection.
  1. Navigate to the Search view.
  2. Enter a valid search query.
  3. Review the list of returned search results.
  4. Select a result that belongs to the community-nominated priority collection.
  5. AC3: Confirm that community-priority articles are identifiable during active search and that selecting such an article navigates to the translation confirmation step.

See AC1

Test Case 4: Preserve Default Search Behavior When No Nominated Collection Exists

Preconditions

  • The selected target language does not have a community-nominated priority collection.
  1. Open Wikipedia using the Minerva skin.
  2. Navigate to the Search view with an empty search query.
  3. Observe the default search view content.
  4. Enter a search query and observe the search results.
  5. AC4: Confirm that no community-priority content or indicators are shown in either empty or active search states and that search behavior and navigation match the current implementation.
DesktopMobile
GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.
GMikesell-WMF moved this task from Needs QA to Design Signoff on the LPL Hypothesis board.

Looks good to me, moving it to product signoff