Page MenuHomePhabricator

When opening a diff, highlight newly added comments
Open, Needs TriagePublicFeature

Description

Basically, when there were many changes on a page you watch since you last visited it, you can show the diff of all these changes (using history or watchlist).
However, the diff often shows additions and removals mixed and much context is hidden (cf. T231698) because that's how diffs work. There are also novel VisualEditor-VisualDiffs, but they aren't optimal either.

So I propose that when you open a diff of a discussion (a page that would make use of the tools), the new comments (identified by the signature and timestamp where the comment timestamp is strictly greater than the timestamp of the base revision) are somehow highlighted on the page. (Motivation: These are the comments I am more likely to respond to.)

Event Timeline

matej_suchanek changed the subtype of this task from "Task" to "Feature Request".May 1 2021, 10:17 AM

Change 614907 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/DiscussionTools@master] POC: Show new comments on diff page

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

Test wiki created on Patch Demo by ESanders (WMF) using patch(es) linked to this task:

https://patchdemo.wmflabs.org/wikis/465a55a295/w/

We built something similar when creating infrastructure for the topic subscriptions feature, so this should be mostly design work:

https://patchdemo.wmflabs.org/wikis/465a55a295/w/index.php?title=Talk%3AMain_Page&type=revision&diff=21&oldid=20