Page MenuHomePhabricator

Add messaging to show how to opt out in post-publication dialog
Closed, ResolvedPublic

Description

User story:

As an event participant, I want to know how I can hide the post-publication dialog, so that I can choose to opt out of seeing the dialog for events in which I do not need it or would find it annoying to see after every edit.

Acceptance criteria

If a user is registered for one event that is active:

  • Given a user is registered for one active event,
    • When the “Associate this edit with an event?” dialog is displayed,
      • Then the dialog must show a footer with the text: “You can hide this message in your event preferences.”
        • And the text “event preferences” must link to Special:RegisterForEvent for that event.

If a user is registered for more than one active event:

  • Given a user is registered for more than one active event,
    • When the dialog is displayed before the user has selected an event,
      • Then the footer must read: “You can choose to hide this message after you select an event.”
  • When the user selects an event from the list,
    • Then the footer should update to display the text: “You can hide this message in your event preferences.”
      • And the text “event preferences” must link to Special:RegisterForEvent for the selected event.
  • If the user changes their selected event,
    • Then the footer link should update to that event's preferences.
Designs
One active event Multiple active events
footer_oneevent (3).png (393×851 px, 139 KB)
Captura de pantalla 2025-11-17 a la(s) 4.54.48 p. m..png (1,104×1,154 px, 426 KB)

Event Timeline

JFernandez-WMF renamed this task from Placeholder: Add messaging to show how to opt out in post-publication dialog to Add messaging to show how to opt out in post-publication dialog.Nov 17 2025, 8:00 PM
JFernandez-WMF updated the task description. (Show Details)

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

[mediawiki/extensions/CampaignEvents@master] Message to show how to opt out in post-publication dialog

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

Test wiki created on Patch demo by CMelo (WMF) using patch(es) linked to this task:
https://67885131ca.catalyst.wmcloud.org/w/

Test wiki created on Patch demo by CMelo (WMF) using patch(es) linked to this task:
https://ab03eefa0e.catalyst.wmcloud.org/w/

Test wiki on Patch demo by CMelo (WMF) using patch(es) linked to this task was deleted:

https://ab03eefa0e.catalyst.wmcloud.org/w/

Daimona subscribed.

QA results

Note that the AC below talk about "active events", but strictly speaking, that would be "events that are currently tracking contributions", not just "active". At any rate, the intent is obvious.

If a user is registered for one event that is active:

  • Given a user is registered for one active event,
    • When the “Associate this edit with an event?” dialog is displayed,
      • Then the dialog must show a footer with the text: “You can hide this message in your event preferences.”

✅ The message is there in the footer.

  • And the text “event preferences” must link to Special:RegisterForEvent for that event.

✅ It does.

If a user is registered for more than one active event:

  • Given a user is registered for more than one active event,
    • When the dialog is displayed before the user has selected an event,
      • Then the footer must read: “You can choose to hide this message after you select an event.”

✅ The message is there in the footer.

  • When the user selects an event from the list,
    • Then the footer should update to display the text: “You can hide this message in your event preferences.”

✅ The message footer updates.

  • And the text “event preferences” must link to Special:RegisterForEvent for the selected event.

✅ Same as the single-event scenario.

  • If the user changes their selected event,
    • Then the footer link should update to that event's preferences.

✅ This too works correctly.

Change #1239398 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Message to show how to opt out in post-publication dialog

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

Test wiki on Patch demo by CMelo (WMF) using patch(es) linked to this task was deleted:

https://67885131ca.catalyst.wmcloud.org/w/