Page MenuHomePhabricator

Surface nominated collections in Search view
Open, In Progress, HighPublic2 Estimated Story Points

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 (1×663 px, 144 KB)
IMG_6237 2.PNG (2×1 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 (483×670 px, 54 KB)
IMG_6238.PNG (2×1 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

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.Tue, Nov 18, 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.Thu, Nov 20, 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.Mon, Nov 24, 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