Suggestion functionality requires workaround in merge request reviews
Problem Description
The suggestion functionality in merge request reviews is not working as expected. Users cannot directly use the "Insert suggestion" feature when reviewing code changes. Instead, they must first add a regular comment and then navigate backwards to convert it into a suggestion.
Current Behavior
- User opens a merge request and clicks the "Changes" tab
- User clicks on a line to add a comment
- User clicks the "Insert suggestion" icon in the toolbar
- Expected: Suggestion interface should appear immediately
- Actual: No suggestion interface appears, requiring the workaround below
Workaround Required
To create a suggestion, users must:
- Add a regular comment first
- Submit or start the review with the regular comment
- Go back to edit the comment
- Then convert it to a suggestion format
Impact
- User Experience: Creates friction in the code review process
- Efficiency: Adds unnecessary steps to a common workflow
- Adoption: May discourage use of the helpful suggestions feature
Steps to Reproduce
- Navigate to any merge request with code changes
- Click the "Changes" tab
- Click the comment icon on any line of code
- Click the "Insert suggestion" icon in the comment toolbar
- Observe that suggestion functionality doesn't activate
Expected Behavior
The "Insert suggestion" icon should immediately populate a code block with the current line content, allowing users to edit and suggest changes directly without requiring a workaround.
Edited by 🤖 GitLab Bot 🤖