Skip to content

Use Duo Chat for explain code feature

Jacques Erasmus requested to merge 426246-explai-code-duo-chat into master

What does this MR do and why?

The MR updates the Explain Code feature to use the Duo Chat component and removes the ai_genie.vue and related components.

The experience will now be similar to how the /explain slash command works in VSCode and Web IDE.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After VSCode
Screenshot_2024-01-30_at_15.00.13 Screenshot_2024-01-30_at_14.56.28 Screenshot_2024-01-30_at_15.14.58

How to set up and validate locally

Note: Testing these changes locally would require AI related feature flags to be enabled and the AI gateway to be set up locally.

  1. Open a source code file via the repository files browser
  2. Select some source code
  3. Click on the explain this code (?) button
  4. The GitLab Duo chat should open and explain the selected snippet

Related to #426246

Edited by Jacques Erasmus

Merge request reports