Page MenuHomePhabricator

Add first version of progress bar to post-publication dialog
Closed, ResolvedPublic

Description

NOTE: This is the temporary version of the progress bar while we wait for the new progress bar component to be approved, and when it is we will work on T411429: Add progress bar to post-publication dialog 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 a registered participant is making an edit that qualifies to be added to the event,
    • A progress bar should be displayed in the post-publication dialog,
      • 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 the progress bar will not be updated to show their contribution (since the edit has not been processed)

Visual example:

NOTE: This is NOT up-to-date

Progress against goal in association dialog
post_publish_popup (7).png (1Γ—2 px, 925 KB)

Event Timeline

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

[mediawiki/extensions/CampaignEvents@master] Add progress bar to post-edit modal

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

@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 #1249917 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Add progress bar to post-edit modal

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

Testing is inconsistent for me, this doesn't seem to show up a lot of the time on my local build, am I missing something @Daimona / @cmelo

Screenshot 2026-03-23 at 12.15.31.png (1Γ—2 px, 515 KB)

{F73531411}

Testing is inconsistent for me, this doesn't seem to show up a lot of the time on my local build, am I missing something @Daimona / @cmelo

Is this always for the same event (with a goal enabled) or different events? Have you tried clearing caches?

Testing is inconsistent for me, this doesn't seem to show up a lot of the time on my local build, am I missing something @Daimona / @cmelo

Is this always for the same event (with a goal enabled) or different events? Have you tried clearing caches?

Same event. will try a cache clear and try again

Cache clear, same result on 2 different events with two different users.

Ah, I see. You are editing using VE I assume. We aren't loading goal data from the client side. I'll make a patch.

Change #1259157 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@master] ListOwnEventsForEditHandler: include goal progress data

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

Change #1259157 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] ListOwnEventsForEditHandler: include goal progress data

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

ifried subscribed.

This has been tested as part of the general release, so I'm marking it done.