Page MenuHomePhabricator

Annotate (add a html class) the source and target of the paragraph move
Closed, DuplicatePublic

Description

copy/paste from mw.org

It is hard to see where the paragraph comes from when they are move.

Steps to reproduce

Go to https://www.mediawiki.org/w/index.php?title=Project%3ASandbox&type=revision&diff=2511283&oldid=2511280&visualdiff

Proposed solution:

Add a hidden html element with a class (e.g. source -moved-paragraph1) in the origin paragraph, and a css class in the destination paragraph (e.g. dest-moved-paragraph1).
Highlight both paragraphs when a user hovers over the source or target paragraph.
This also allows users to use gadgets and css to better annotate such move for their own purposes. For instance if a paragraph is moved from a very far. It could then be possible to make it jump to the source, rather than scroll down manually.

It might also be beneficial to look into the work https://phabricator.wikimedia.org/T140340 and https://phabricator.wikimedia.org/T139603 to make sure the changes are somewhat consistent between different diff software.