Page MenuHomePhabricator

Visual indicator that an article in a list is part of a nominated collection
Open, In Progress, HighPublic

Description

Goal

Visually distinguish articles that are part of community priority collections throughout the Content Translation tool. This indicator appears consistently across all article lists: Suggestions, Bookmarked, Drafts(In progress), and published translations.

Design

When an article belongs to a community priority collection, display an inline badge in the metadata row to inform users of its significance.

Visibility

  • Shows on any article card when the article is part of a community priority collection
  • Applies to all list surfaces:
    • Suggestions list (hidden when a priority collection filter is active, since all visible articles already belong to that collection)
    • Bookmarked articles
    • Draft translations
    • Published translations
  • Displays for all users regardless of translation history

Visual Design

The "Community Priority" badge appears consistently across all article lists:

In Progress (Drafts)PublishedSuggestions (For you)
Screenshot 2025-11-26 at 4.46.58 PM.png (1×1 px, 444 KB)
Screenshot 2025-11-26 at 4.47.09 PM.png (1×1 px, 577 KB)
Screenshot 2025-11-26 at 4.47.22 PM.png (1×1 px, 466 KB)

Badge:

  • Text: "Community Priority"
  • Icon: cdxIconUserGroup (user group icon, left of text)
  • Background: @background-color-progressive-subtle (light blue tint)
  • Text color: @color-progressive (blue)
  • Icon color: @color-progressive (blue)
  • Font-size: @font-size-small (inherits from metadata row)
  • Font-weight: @font-weight-normal
  • Padding: @spacing-12 @spacing-50
  • Border-radius: @border-radius-pill (pill shape)
  • Gap between icon and text: @spacing-25

Placement

  • Positioned inline within the metadata row
  • Appears before other metadata items (progress %, dates)
  • Separated from other metadata by bullet separator (•)

Interaction

  • Non-interactive (no hover states, no click actions)
  • Purely informational indicator
  • Users interact with the article card as normal

Consistency

This badge treatment matches the proposed search results indicator to maintain (T408842) visual consistency when users encounter community priority articles across different surfaces.

Related visual updates

Collection name chips in suggestion cards:
Current styling uses a light background (#f1f4fd) with progressive blue border (#36c) but black text. To align with the new community priority badge:

Current (Production)Proposed
Screenshot 2025-11-26 at 4.29.34 PM.png (1×1 px, 254 KB)
Screenshot 2025-11-26 at 4.39.19 PM.png (1×1 px, 323 KB)
PropertyCurrentProposed
Background#f1f4fd@background-color-progressive-subtle
Border#36cNone
TextBlack@color-progressive
IconGray@color-progressive

Badge priority logic in "All collections" filter

Screenshot 2025-11-26 at 4.45.34 PM.png (814×1 px, 133 KB)

When "All Collections" filter is active:

  1. Regular collection articles: Display the collection name chip (e.g., "Essential Articles", "Wiki99/agriculture")
  2. Community priority collection articles: Display "Community Priority" badge instead of the collection name

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.Wed, Nov 26, 1:31 PM
SBisson moved this task from Incoming to Prioritized on the LPL Hypothesis board.
SBisson changed the task status from Open to In Progress.Wed, Nov 26, 5:25 PM
SBisson claimed this task.
SBisson moved this task from Prioritized to In-progress on the LPL Hypothesis board.

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

[research/recommendation-api@master] Support checking collection membership by language and titles

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

Change #1212678 merged by jenkins-bot:

[research/recommendation-api@master] Support checking collection membership by language and titles

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

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

[mediawiki/extensions/ContentTranslation@master] Favorites: add comunity priority badge

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

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

[operations/deployment-charts@master] Update rec-api to 2025-12-02-200719-production

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

Change #1214195 merged by jenkins-bot:

[operations/deployment-charts@master] Update rec-api to 2025-12-02-200719-production

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

Change #1214120 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Community priority badge: suggestions, favorites, drafts, published

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

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

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

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

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

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

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

Change #1216835 merged by jenkins-bot:

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

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

Change #1217181 merged by jenkins-bot:

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

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

Mentioned in SAL (#wikimedia-operations) [2025-12-10T14:07:02Z] <sbisson@deploy2002> sbisson: Backport for [[gerrit:1217181|CX3 Build 1.0.0+20251209 (T384485 T408845 T409332 T409337 T409338 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-10T14:13:57Z] <sbisson@deploy2002> Finished scap sync-world: Backport for [[gerrit:1217181|CX3 Build 1.0.0+20251209 (T384485 T408845 T409332 T409337 T409338 T411779)]] (duration: 09m 01s)