Skip to content

feat: render suggestions in MR webview

Tomas Vik requested to merge 371-webview-suggestions into main

This MR improves the UI of a suggestion in a webview MR comment:

Extension_Development_Host_-_MR_7_rename_a_few_ch______test-project

web webview before webview after
image Extension_Development_Host_-_MR_7_rename_a_few_ch______test-project Extension_Development_Host_-_MR_7_rename_a_few_ch______test-project

The trickiest part was to change the markup of the suggestion directly within the Vue component where we set the markup using v-safe-html.

I opted for a simpler solution where we manipulate the DOM in a browser. Alternative was to parse the HTML into a virtual doma and manipulate it before initializing the Vue component.

Related to #371 (closed)

Merge request reports

Loading