Use Duo Chat for explain code feature
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 |
---|---|---|
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.
- Open a source code file via the repository files browser
- Select some source code
- Click on the explain this code (?) button
- The GitLab Duo chat should open and explain the selected snippet
Related to #426246
Edited by Jacques Erasmus