This task involves the work of designing and implementing the alert that people will see if/when a new comment is posted in a discussion they are currently drafting a comment using the Reply Tool within.
Story
As someone who is drafting a comment using the Reply Tool, I want to know when someone changes the content of the discussion I am drafting a comment within, and what they have changed, so that I can decide whether or not to make changes to the comment I'm drafting prior to publishing it.
Requirements
Meta
- The alert should be presented in such a way that people:
- Are aware of its presence, but are not distracted by it
- Understood they have the option to engage with the alert, but do not feel obligated to
User experience
- The moment a qualifying change has been made, show an alert in/around the Reply Tool informing people that the page has changed from the version they are looking at.
- The alert should contain the following text:
- # new comments added to this discussion.
- Note: in cases where >10 new comments have been posted, show 10+ rather that the actual number of new comments that have been posted.
- # new comments added to this discussion.
- The alert should offer people the ability to:
- Show the new comment(s) that have been posted
- Ignore dismiss the alert
- Note: if after someone elects to dismiss the new comment alert another new comment is published in the discussion they are drafting a reply within, another new comment alert will NOT be shown unless they decide to reload the page.
- One alert should be shown regardless of the number of new comments that have been posted in the time after the talk page was loaded and you opened the Reply Tool and the cadence at which these comments were posted.
- Said another way:
- If after you open the Reply Tool, two new comments are posted in the discussion you are in, only show one alert and
- If after you open the Reply Tool, Comment A is posted and then one minute later Comment B is posted, only show one alert
- Said another way:
Open questions
- 1. What information about the new comments that have been posted ought to be included within the alert?
- E.g. The usernames of the people who have posted new comments, the number of new comments that have been posted since the last time you reloaded the page, relative timestamps (Peter added a comment seven seconds ago), etc.
- As discussed during the team's 2 February meeting, initially the alert will simply show the number of new comments that have been posted (up to 10).
- 2. Should people be able to dismiss the alert? Should the alert remain visible until someone either A) publishes the comment they were drafting or B) opts to "show" the new comments that have been posted.
- 3. How do we visually relate the alert to the discussion it is about? This becomes more complex when the discussion you are composing a comment within is NOT the only discussion visible to you on the page.
-
4. What happens when a comment within the discussion you are replying in gets deleted while you are drafting a comment?This is being discussed in T300502#7663489.