Inspired by a discussion with @matmarex, this task involves the work of ensuring people who are subscribed to a discussion are notified when someone else closes said discussion.
Where "close" in this context could mean the following (a non-exhaustive list):
- A template is added to mark the closure/resolution of a discussion (e.g. [{atop}](https://en.wikipedia.org/wiki/Template:Archive_top/sandbox?useskinversion=2) (T299516))
- Discussion is moved to an "archive" subpage:
- Discussion is deleted from the page
- Discussion is merged into another discussion (related: T298617)
//Note: this task is the first step towards us ensuring people are made aware when a discussion they have subscribed to has been changed in a way that could prevent them from receiving further notifications about it. See more in T314973.//
=== Story
**When** a discussion I am subscribed to, and expecting to receive notifications about, is moved to another page, deleted, or merged into another discussion, I want to be made aware that this change could impact my ability to receive notifications about this discussion **so that** I can: A) decide whether there is any action I need to take on my part to continue staying up to date about this discussion and B) avoid mistaking NOT receiving notifications about a discussion I previously subscribed to as evidence that there is no new activity within the discussion for me to see.
=== Requirements
- Notify the people who are subscribed to a discussion when one of the following things happens to said discussion: **A)** it is moved to another page, **B)** Deleted, or **C)** Merged into another discussion
-- **Ideally**, we would be able to suppress notifications about discussions that are moved by a bot. //See `===Open questions` below.//
-- //Note: it should not matter whether people initiated this subscription manually or automatically.//
- The notification people receive in the cases described above should contain the following:
-- //Information//
--- The username of the person who made the change that caused the notification people are seeing to be sent
--- The title of the discussion that was moved, deleted, or merged
--- A notice informing people they //may// no longer receive notifications about said discussion
-- //Actions//
--- View the diff that caused the notification people are seeing to be sent
--- Visit the user page of the person who made the change that caused the notification people are seeing to be sent
--- Elect to //stop// receiving notifications about all future "moves" of discussions I am subscribed to
--- Visit the page //from// which the discussion I was subscribe to has been moved
-- //Imagery/Iconography//
--- An [icon of some kind](https://doc.wikimedia.org/oojs-ui/master/demos/?page=icons&theme=wikimediaui&direction=ltr&platform=desktop#demo-section-alerts) that causes people to recognize this notification as being different from a notification about a new comment. //Maybe the "⚠️ alert" icon?//
- The notification people receive in the cases described above should read as follows:
-- Case #1: Single topic moved from its original location
--- Notification headline: `Topic "NAME" was removed from PAGE NAME`
--- Notification subtext: `You may no longer receive notifications about this topic.`
-- Case #2: >1 topics moved from the same original location
--- Notification headline: `# Topics were removed from PAGE NAME`
--- Notification subtext: `You may no longer receive notifications about these topics.`
- The call to action for muting future moving notification should appear within the notification card's {nav •••} menu and read as follows:
-- `Stop receiving notifications like this`
=== Open question
- [ ] 1. Is it possible to filter out/suppress/not notify people about discussions that are moved by bots? If so, how much complexity would implementing this add to this task?
=== Done
- [ ] Answers to all `Open questions` are documented
- [ ] All `Requirements are implemented
---
=== Related
- T298617