Skip to content

Comment on multiple lines in a diff

What's this issue all about? (Background and context)

Commenting on a range of lines (multi-line comments) is a common desire when feedback relates to more than a single line. It is also a favorite feature of customers who previously used Phabricator, Crucible and the like.

What are the overarching goals for the research?

  • Understand how competitors approach the UX of multi-line comments.
  • Design and test a prototype to validate discoverability, and usability of the proposed solution. This will allow us to decide where to start building. It should include:
    • interaction of leaving multi-line comments
    • overlapping multi-line comments
    • multi-line comments in combination with multi-line suggestions

What hypotheses and/or assumptions do you have?

  • The “drag-release” gesture, used by some competitors, is an intuitive way to start a multi-line comment.
  • Written and visual indicators of the comment range allow users to quickly understand which lines the comment refers to.
  • Users understand if a line has been removed or added when written as -11 or +11.

What research questions are you trying to answer?

  • Which parts of the design are easily understood? And which raise the most questions?
  • Is the “drag-release” gesture intuitive?

What persona, persona segment, or customer type experiences the problem most acutely?

What business decisions will be made based on this information?

  • We'll scope the first iteration of the multi-line comments feature based on this research.

What, if any, relevant prior research already exists?

Who will be leading the research?

@pedroms - Product Designer

What timescales do you have in mind for the research?

1 week

Relevant links (script, prototype, notes, etc.)

TODO Checklist

Competition

Name Comment Docs Screenshot/Video
GitHub Click-and-drag, scrolls view. Doesn't allow commenting over collapsed regions. Doesn't highlight the comment range when viewing, but indicates range in text at top of comment. Comments are attached to the bottom of the range. Docs Usage
Onboarding
image
Gerrit Select a code block or line with mouse or keyboard and press 'c' or click on the popup comment icon. Allows commenting over collapsed regions. Comments are attached to the bottom of the range. Highlights comment range when hovering. Docs image
Phabricator Click-and-drag, scrolls view. Comments are attached to the bottom of the range. Highlights comment range when hovering. Docs image
Crucible Click-and-drag, scrolls view. Highlights comment range when hovering. Docs
Review board Click-and-drag, scrolls view. Allows commenting over collapsed regions. Comments are attached to the top of the range. New comments made on the 1st line of an existing multi-line comment will apply to the whole range of the existing comment. Docs image
Azure DevOps Not supported
Bitbucket Not supported
Reviewable Not supported

Links / references

Edited by Katherine Okpara