User stories:
Setting goals:
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.
Editing goals:
As an event organizer, I want to be able to edit goals for my event, so that that I can respond to trends that I am seeing during the event (such as a goal being too ambitious or not ambitious enough) and therefore set the most inspiring yet realistic targets for my event.
Acceptance Criteria:
- Collaborative contributions, goal setting, and P&E Dashboard should be in a new section between "Event details" and "Questions for participants"
- Section header: Impact statistics
- Section description:
Collect statistics on the impact of your events. You can do this by [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Extension:CampaignEvents/Registration/Collaborative_contributions#Organizers:_How_to_set_up_collaborative_contributions turning on contribution statistics] and/or adding the [https://meta.wikimedia.org/wiki/Special:MyLanguage/Programs_%26_Events_Dashboard Programs & Events Dashboard] link. If you turn on Contribution statistics, you can set a shared goal to inspire your participants. Progress against the goal will be publicly viewable.
- Section order:
- Collaborative contributions (preserve helper text below field)
- Goal-setting
- P&E Dashboard link (preserve helper text below field)
- Given that an event has Collaborative Contributions enabled,
- An organizer should be able to optionally set or edit an event goal in Special:EnableEventRegistration and Special:EditEventRegistration
- And event goal is off by default
- Note: We will start with only 1 goal for MVP, but we may allow multiple goals later (with one data point per goal)
- The field for event goal should be directly below the toggle to turn on/off collaborative contributions.
- Event goal should be in the following format:
- 1 task type as a dropdown
- Label: "Goal metric"
- Placeholder: "Choose an option"
- Options should be from the data that is already tracked by collaborative contributions (i.e., number of articles created, number of articles edited, total edits, bytes added/removed, links added/removed)
- If nothing added, the placeholder text should be: "Choose an option" and the target field must be disabled
- Quantitative value (integer) as second selection
- Label: "Target number"
- Should validate that it is an integer
- Minimum number of 1, no maximum number
- If nothing added, the placeholder text should be: "Add a number"
- 1 task type as a dropdown
- If Goal Metric is select and Target is empty and the user tries to submit the form
- Then a message is shown in the field without submiting the form sayng: "Please fill out this field."
- If Goal Metric is select and Target is less then 1 and the user tries to submit the form
- Then a message is shown in the field without submiting the form sayng: "Value must be greater than or equal to 1."
- If only 1 of the 2 fields is selected, then error message should be: "You need to fill in both required fields to set a goal." [This is still valid but only in the API]
- Note that the event goal is editable by the organizer at any time
- These are the messages for each of the Goal Metric options in the dropdown
- Number of articles created
- Number of articles edited
- Total edits
- Bytes added
- Bytes removed
- Links added
- Links removed
- These changes should be behind a feature flag
Visual example:
| Organizer sets goal in Enable event registration form |
