Page MenuHomePhabricator

Make it easier to unsubscribe from translation notifications
Closed, ResolvedPublic4 Estimated Story Points

Description

Currently to unsubscribe from translation notification, the user needs to deselect all the check boxes under Preferred contact methods.

image.png (708×1 px, 45 KB)

An Unsubscribe button in Special:TranslatorSignup instead would make things much more intuitive.

After this change is made, the FAQ here should be updated: https://meta.wikimedia.org/wiki/MediaWiki:Translatorsignup-summary

Event Timeline

image.png (851×1 px, 63 KB)

We can add an unsubscribe button in either one of the locations highlighted. This should remove all the "Preferred contact methods" in the back-end. This would automatically unsubscribe the user. We can leave the other saved user settings as is.

In terms of technical implementations, we can add another submit button (Unsubscribe button) and determine which was clicked: Update settings or unsubscribe.

This StackOverflow post shows how we do this with core PHP and we can use a similar approach with MediaWiki.

Wangombe changed the task status from Open to In Progress.Oct 18 2023, 8:14 AM
Wangombe claimed this task.

Another option could be to include one more option in the Contact frequency list: "None (Unsubscribed)"

A more explicit "unsubscribe" button could be added at the bottom (next to "Update settings") that will change the frequency to "None" and save the form.

This approach allows for people to both permanently or temporarily unsubscribe without having to adjust their contact preferences. That is, a user may prefer to be contacted by email and talk page normally but receive no notifications during the summer. With the proposed approach the user can adjust the right volume for their notifications in each period without having to re-state the preference for the channel.

In addition, it would be good to make the action buttons ("Update settings" and "Unsubscribe") a bit smarter:

  • If there are no changes, "update changes" should be disabled.
  • If the user already selected "None (Unsubscribed)", the "Unsubscribe" action should be disabled.

In this way, actions are shown as active only when it is meaningful. Simplifying the decision process.

A mockup illustrating the idea:

meta.wikimedia.org_wiki_Special_TranslatorSignup(Wiki Tablet) (2).png (768×1 px, 89 KB)

abi_ changed the point value for this task from 2 to 4.Oct 25 2023, 3:22 AM

Updating story points based on Pau's recommended changes.

Change 968283 had a related patch set uploaded (by Wangombe; author: Wangombe):

[mediawiki/extensions/TranslationNotifications@master] Simplify unsubscribe from translation notifications

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

Change 970721 had a related patch set uploaded (by Wangombe; author: Wangombe):

[mediawiki/extensions/TranslationNotifications@master] Change contact frequency to 'none' upon unsubscirption

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

Change 968283 merged by jenkins-bot:

[mediawiki/extensions/TranslationNotifications@master] Simplify unsubscribe from translation notifications

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

Change 970721 merged by jenkins-bot:

[mediawiki/extensions/TranslationNotifications@master] Change contact frequency to 'none' when un-subscribing

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

The first patch to incorporate the 'Unsubscribe' button on this ticket was deployed on Meta: https://meta.wikimedia.org/wiki/Special:TranslatorSignup

image.png (2×2 px, 412 KB)

The second patch to incorporate the none' contact frequency option is now available on https://www.mediawiki.org/wiki/Special:TranslatorSignup

image.png (2×2 px, 410 KB)

Tested: When a user clicks on 'Unsubscribe', the preferred contact methods remain intact while the contact frequency is changed to 'none' which is in line with the design requirements of this ticket. The FAQ section on MediaWiki:Translatorsignup-summary was also updated to remove the section describing how to unsubscribe from translation notifications.