Skip to content

word-diff or word-level highlighting for suggestion diff

Problem to solve

Gitlab introduced in 11.6 merge comments with change suggestions.

https://about.gitlab.com/2018/12/22/gitlab-11-6-released/#suggested-changes

When the user clicks on the button to suggest a change of a very long line and carries out only a small change, the reviewer cannot easily recognize the suggested change from the diff, because the changed letters are not highlighted with higher saturation color as in other diffs in Gitlab.

Target audience

  • developers
  • prose writer (PhD Thesis on Gitlab)
  • documentation writer
  • other people who do not work with programming source code, but with text.

Further details

Proposal

When viewing a suggested change, the changed words should be highlighted.

image

What does success look like, and how can we measure that?

People can spot in no time what the change suggestion is about.

Links / references

Edited by James Ramsay (ex-GitLab)