Page MenuHomePhabricator

Add first version of progress bar to event page
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 T411428 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 AND the current user is logged-in
    • 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 Event page
Screenshot 2026-03-12 at 14.44.04.png (447×827 px, 97 KB)

Event Timeline

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

[mediawiki/extensions/CampaignEvents@master] Add progress bar on event page

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

@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.

Daimona subscribed.

I've updated the AC to mention that the user should be logged-in to see the progress bar, as otherwise they coudl get an outdated version from cache. This was one of the points noted in the investigation T407786: Investigation: Progress bar for goal-setting but was not copied over to the implementation tasks.

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

[mediawiki/extensions/CampaignEvents@master] Refactor GoalProgressFormatter and fix CampaignEventsServices getter

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

Change #1249914 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Add progress bar on event page

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

tested:

Given that an event has a goal set AND the current user is logged-in

  • 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")

And

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

Change #1256448 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Add unit tests for GoalProgressFormatter

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