Page MenuHomePhabricator

Add the first version of progress bar to Contributions tab
Closed, ResolvedPublic

Description

NOTE: This is the temporary version of the progress bar while we wait for the new progress bar codex component to be approved, and when it is we will work on T411426: Add progress bar to Contributions tab to use it.

User stories:

As an event organizer, I want to be able to set a goal for my event, so that participants are motivated to join and contribute based on the goal, and so that I can have a clear story of the event outcome based on the goal.

As an event participant, I want to know how my contributions help accomplish the goals of the event, so that I can understand the impact of my edits and of the event overall.

Acceptance Criteria:

  • Given that an event has a goal set,
    • A progress bar should be displayed in the Contributions tab for EventDetails
      • And it should have the following text & formatting:
        • Header: "Progress to goal" (in bold)
        • Description: "This event has a goal of {X}." where {X} is the goal target with the metric label (e.g. "2,000 articles edited")
        • Progress bar should display the current progress towards the goal
        • Numeric text below the bar showing current/goal (e.g. "1000/2000")

Visual example:

Progress against goal in Contributions tab
Screenshot 2026-03-12 at 14.44.04.png (827×447 px, 97 KB)

Event Timeline

Change #1249904 had a related patch set uploaded (by Cmelo; author: Cmelo):

[mediawiki/extensions/CampaignEvents@master] Add progress bar to contributions tab in event detials

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

Aklapper added a project: CampaignEvents.

@cmelo: Assuming this task is about the CampaignEvents code project, hence adding that project tag so other people who don't know or don't care about team tags can also find this task when searching via projects or looking at workboards. Please set appropriate project tags when possible. Thanks!

@cmelo: Assuming this task is about the CampaignEvents code project, hence adding that project tag so other people who don't know or don't care about team tags can also find this task when searching via projects or looking at workboards. Please set appropriate project tags when possible. Thanks!

ok, thanks.

Change #1249904 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Add progress bar to contributions tab in event details

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

Tested:

Given that an event has a goal set,

  • A progress bar should be displayed in the Contributions tab for EventDetails

And it should have the following text & formatting:

  • Header: "Progress to goal" (in bold)
  • Description: "This event has a goal of {X}." where {X} is the goal target with the metric label (e.g. "2,000 articles edited")
  • Progress bar should display the current progress towards the goal
  • Numeric text below the bar showing current/goal (e.g. "1000/2000")

Also, 100% completion shows:

  • Full progress bar
  • Numeric text below the bar showing complete current/goal (e.g. "3000/2000")