Add support for diff suggestions in content editor
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
- Enable feature flag
:content_editor_on_issues
. - Go to an MR diff.
- Add a comment on a code diff.
- Click the "Insert suggestion" icon in the toolbar.
- A suggestion box should appear in the content editor.
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #406726 (closed)
Edited by Himanshu Kapoor