Page MenuHomePhabricator

Mandatory source collection (sources flag behavior)
Closed, ResolvedPublic2 Estimated Story Points

Description

Goal

This task defines the mandatory version of T415484 for article types that carry the sources flag from T415485.

Behavior

  • Reuse the same UI, source validation, and source-checking behavior as T415484.
  • Add a red asterisk to Add sources when the article type carries the sources flag.
  • Use Codex error text color token (text-color / error; code token --color-error).
  • Disable Continue until the local community's source requirement is met.
  • Show a short persistent helper message below Continue to explain the disabled state.
  • Keep alternative pathways linked from this screen. Those flows will be handled in a separate task.

Helper text

Examples:

  • Empty state: Animal articles on this wiki require sources.
  • Requirement not yet met: 1 of 2 sources added.

Designs

image.png (1,179×2,556 px, 273 KB)

image.png (1,179×2,556 px, 245 KB)

Notes

  • This task only describes the mandatory behavior delta from T415484.
  • All other source states and interaction patterns should remain the same as T415484.

Event Timeline

eamedina changed the task status from Open to In Progress.Mar 12 2026, 8:09 PM
eamedina claimed this task.
eamedina triaged this task as High priority.
eamedina moved this task from Prioritized to In-progress on the LPL Hypothesis board.

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

[mediawiki/extensions/ArticleGuidance@master] Align SourcesStep UI with specs when sources are mandatory

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

Change #1253494 merged by jenkins-bot:

[mediawiki/extensions/ArticleGuidance@master] Align SourcesStep UI with specs when sources are mandatory

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