Hide explain code button if user signed out
What does this MR do and why?
Hides the explain code button (AI Genie) if the user is signed out.
Screenshots or screen recordings
| before | after |
|---|---|
![]() |
![]() |
![]() |
How to set up and validate locally
- Sign out of GitLab
- Enable the following feature flags:
explain_codeexplain_code_snippetopenai_experimentationai_experimentation_api
- Open a file containing Source Code.
- Highlight some of the Source Code.
- The
(?)button should not be displayed.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Jacques Erasmus


