Page MenuHomePhabricator

Visual indicator that an article in a list is part of a nominated collection
Closed, ResolvedPublic4 Estimated Story Points

Assigned To
Authored By
SBisson
Oct 30 2025, 5:36 PM
Referenced Files
F71578762: 2026-01-20_11-52-46.png
Jan 20 2026, 11:10 PM
F71578760: 2026-01-20_11-52-30.png
Jan 20 2026, 11:10 PM
F71578758: 2026-01-20_11-52-25.png
Jan 20 2026, 11:10 PM
F71578755: 2026-01-20_11-47-49.mp4
Jan 20 2026, 11:10 PM
F71578753: 2026-01-20_11-46-54.mp4
Jan 20 2026, 11:10 PM
F71288008: 2025-12-26_15-52-13.png
Dec 27 2025, 1:12 AM
F71288000: 2025-12-26_15-49-01.webm
Dec 27 2025, 1:12 AM
F71287983: 2025-12-26_16-48-52.mp4
Dec 27 2025, 1:12 AM

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

Derived Requirement

Provide a consistent, non-interactive visual indicator that clearly identifies articles belonging to a community priority (nominated) collection across all Content Translation article list surfaces, ensuring correct visibility rules, placement, styling, and priority behavior without altering existing interactions when no such collection applies.

Test Steps

Test Case 1: Display badge for community priority articles across all lists

  1. Open the Content Translation dashboard.
  2. Navigate to each list surface: Suggestions, Bookmarked, Drafts (In progress), and Published translations.
  3. Identify articles that belong to a community priority collection.
  4. Observe the metadata row for those articles.
  5. ✅❓❌⬜ AC1: Confirm that a “Community Priority” badge is displayed for all articles that are part of a community priority collection across all list surfaces.

Test Case 2: Hide badge in Suggestions when priority collection filter is active

  1. Activate a specific community priority collection filter in the Suggestions view.
  2. Review the list of visible article cards.
  3. Observe the metadata row for each article.
  4. ✅❓❌⬜ AC2: Confirm that the “Community Priority” badge is hidden when a priority collection filter is active, since all visible articles already belong to that collection.

Test Case 3: Verify badge placement and separation

  1. Locate an article card that displays the “Community Priority” badge.
  2. Observe the metadata row layout.
  3. Check the order of metadata elements.
  4. ✅❓❌⬜ AC3: Confirm that the badge appears inline within the metadata row, before other metadata items (such as progress percentage or dates), and is separated from subsequent metadata by a bullet (•).

Test Case 4: Confirm badge is non-interactive

  1. Hover over the “Community Priority” badge.
  2. Attempt to click the badge.
  3. Observe any visual or functional changes.
  4. ✅❓❌⬜ AC4: Confirm that the badge has no hover state, click action, or interaction, and does not affect normal interaction with the article card.

Test Case 6: Display badge for all users regardless of history

  1. Access Content Translation as a new user with no prior translations.
  2. Access Content Translation as a returning user with translation history.
  3. Compare article cards that belong to community priority collections.
  4. ✅❓❌⬜ AC6: Confirm that the “Community Priority” badge displays consistently for all users regardless of translation history.

Test Case 7: Apply badge priority logic in “All Collections” filter

  1. Activate the “All Collections” filter.
  2. Identify articles from regular collections and from community priority collections.
  3. Observe the metadata row for each article.
  4. ✅❓❌⬜ AC7: Confirm that regular collection articles display their collection name chip, while community priority collection articles display the “Community Priority” badge instead of the collection name.

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 26 2025, 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.Nov 26 2025, 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)

@SBisson Please review AC1 and AC3, thanks!

Test Result - TestWiki

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

Test Artifact(s):

Test Steps

Test Case 1: Display badge for community priority articles across all lists

  1. Open the Content Translation dashboard.
  2. Navigate to each list surface: Suggestions, Bookmarked, Drafts (In progress), and Published translations.
  3. Identify articles that belong to a community priority collection.
  4. Observe the metadata row for those articles.
  5. AC1: Confirm that a “Community Priority” badge is displayed for all articles that are part of a community priority collection across all list surfaces.

Shows in Suggestions and Bookmark.

When you refresh, the bookmark article save loses the "Community priority"

In progress, "Community priority", does not show, unless you click in it. Also Published does not show "Community priority"

Test Case 2: Hide badge in Suggestions when priority collection filter is active

  1. Activate a specific community priority collection filter in the Suggestions view.
  2. Review the list of visible article cards.
  3. Observe the metadata row for each article.
  4. AC2: Confirm that the “Community Priority” badge is hidden when a priority collection filter is active, since all visible articles already belong to that collection.

2025-12-26_15-41-16.png (980×1 px, 184 KB)

Test Case 3: Verify badge placement and separation

  1. Locate an article card that displays the “Community Priority” badge.
  2. Observe the metadata row layout.
  3. Check the order of metadata elements.
  4. AC3: Confirm that the badge appears inline within the metadata row, before other metadata items (such as progress percentage or dates), and is separated from subsequent metadata by a bullet (•).

Doesn't match what it is in the task description

2025-12-26_15-44-03.png (434×953 px, 63 KB)

Test Case 4: Confirm badge is non-interactive

  1. Hover over the “Community Priority” badge.
  2. Attempt to click the badge.
  3. Observe any visual or functional changes.
  4. AC4: Confirm that the badge has no hover state, click action, or interaction, and does not affect normal interaction with the article card.

Test Case 6: Display badge for all users regardless of history

  1. Access Content Translation as a new user with no prior translations.
  2. Access Content Translation as a returning user with translation history.
  3. Compare article cards that belong to community priority collections.
  4. AC6: Confirm that the “Community Priority” badge displays consistently for all users regardless of translation history.

Test Case 7: Apply badge priority logic in “All Collections” filter

  1. Activate the “All Collections” filter.
  2. Identify articles from regular collections and from community priority collections.
  3. Observe the metadata row for each article.
  4. AC7: Confirm that regular collection articles display their collection name chip, while community priority collection articles display the “Community Priority” badge instead of the collection name.

2025-12-26_15-52-13.png (979×1 px, 228 KB)

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

[mediawiki/extensions/ContentTranslation@master] Fix loading of multiple featured collections

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

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

[mediawiki/extensions/ContentTranslation@master] Fix loading of multiple featured collections

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

Change #1224707 abandoned by Sbisson:

[mediawiki/extensions/ContentTranslation@master] Fix loading of multiple featured collections

Reason:

In favour of Idc21792378831d5fd72d673d461746561045616d

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

Change #1224972 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Fix loading of multiple featured collections

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

Change #1225595 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

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

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

Change #1225595 merged by jenkins-bot:

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

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

@SBisson AC1 and AC3 are Resolved. I will move this to Sign-off. The only thing the "Community priority", is above the language , not like in the task descriptions. The location of the badge is consistent so it's up to you if that is ok or not. Thanks for all your help!

Test Result - TestWiki

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

Test Artifact(s):

Test Steps

Test Case 1: Display badge for community priority articles across all lists

  1. Open the Content Translation dashboard.
  2. Navigate to each list surface: Suggestions, Bookmarked, Drafts (In progress), and Published translations.
  3. Identify articles that belong to a community priority collection.
  4. Observe the metadata row for those articles.
  5. AC1: Confirm that a “Community Priority” badge is displayed for all articles that are part of a community priority collection across all list surfaces.

Refresh

Test Case 3: Verify badge placement and separation

  1. Locate an article card that displays the “Community Priority” badge.
  2. Observe the metadata row layout.
  3. Check the order of metadata elements.
  4. AC3: Confirm that the badge appears inline within the metadata row, before other metadata items (such as progress percentage or dates), and is separated from subsequent metadata by a bullet (•).
SuggestionsIn ProgressPublished
2026-01-20_11-52-25.png (915×1 px, 174 KB)
2026-01-20_11-52-30.png (955×996 px, 181 KB)
2026-01-20_11-52-46.png (1×1 px, 223 KB)
GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF moved this task from Needs QA to Design Signoff on the LPL Hypothesis board.
Nikerabbit set the point value for this task to 4.Feb 18 2026, 1:46 PM
SGautam_WMF subscribed.

Looks fine to me, moving it to product signoff