Skip to content

Add support for diff suggestions in content editor

Himanshu Kapoor requested to merge 406726-suggest-changes into master

What does this MR do and why?

Add support for diff suggestions in content editor

Changelog: added

Screenshots or screen recordings

Screen Recording 2023-06-22 at 22.00.14.mov

How to set up and validate locally

  1. Enable feature flag :content_editor_on_issues.
  2. Go to an MR diff.
  3. Add a comment on a code diff.
  4. Click the "Insert suggestion" icon in the toolbar.
  5. A suggestion box should appear in the content editor.
  6. The green part (inserted code) is editable by the user and the red part (deleted code) can be adjusted by incrementing/decrementing the line start/end buttons.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #406726 (closed)

Edited by Himanshu Kapoor

Merge request reports