[go: up one dir, main page]

Skip to content

Use positive/negative sentiment feedback component for AI comment feedback

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

As a follow up to #521724 (closed) this issue proposes an alternative to using the standard emoji reactions in favor of feedback mechanisms that could be reused by GitLab Duo features:

  • An area for actions related to the AI response
  • An area for feedback associated to the specific response
  • Controls would be specific per user

image

Tooltips to inform usage

This approach of using buttons conveys action but in doing so it might not be clear to all what 👍 and 👎 mean. To help with that scenario we would display tooltips on hover of the buttons.

This example is specific to the goals of #521724 (closed). By using buttons & tooltips we achieve the messaging goals with fewer elements visible at one time on the screen.

Mention GitLabDuo for questions Positive feedback
image image

Feedback capture

To give user feedback that the rating was received we could use a toast.

Additionally the industry uses this feedback pattern of thumbs up/down as a way to invoke a feedback form. This is optional for the goals of #521724 (closed). There are valid concerns that I share that having a form could be a burden from capturing the general sentiment even if the description is optional.

Toast Could open form that on Submit would show toast (optional)
image image

Rated state

When a rating is received, the simplest thing to do is to treat the thumbs up/down button as toggle buttons like we do with our editor toolbar for actions like bold/italic/strikethrough.

This allows the user to change their mind on the rating. Once selected I don't think a user can remove the fact that they rated a diff comment. In the example below it is showing a rating of "positive feedback".

image

Alongside emoji reactions

#521724 (closed) correctly recognizes that users do want to give feedback to the responses. However we risk conflating what emoji reactions already means to users and having a feedback capture for AI responses. By introducing a separate mechanism for AI response actions and feedback we don't need to create extra logic/conditions around emoji reactions #521724 (comment 2382085575).

We could have a dedicated feedback component to add to the GitLab Duo feedback.

The example below shows how the feedback mechanism with a positive feedback rated would sit along side emoji reactions. By using icons and emojis these concepts of rating and reaction are separated.

image

Edited by 🤖 GitLab Bot 🤖