Page MenuHomePhorge

Display warning about commenting on a task which is closed as a duplicate
Open, Needs TriagePublic

Description

Upstreaming from https://phabricator.wikimedia.org/T354769

Launchpad.net shows a warning above the comment field to logged-in users for tasks closed as a duplicate:

This task is a duplicate of T1234567. Comment here only if you think that it is not a duplicate.

This can make it clearer to users (who may have followed an anchor link and not see the task status at the top) not to fragment conversations, and thus save triagers' time explaining how things are supposed to work in Phorge.

Event Timeline

Maybe put the warning above the box, so it catches all actions, not just comments?

Maybe put the warning above the box, so it catches all actions, not just comments?

That's another option (and would allow additional text formatting). My personal preference for a placeholder text is probably based on not using additional screen estate, especially on small screens. The main question in any case though is how to get the current EditEngine in an acceptable (sufficiently performant) way.