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
Screenshot_2023-04-13_at_16.53.27 Screenshot_2023-04-13_at_16.54.00
Screen_Recording_2023-04-13_at_16.13.56.2023-04-13_16_14_40

How to set up and validate locally

  1. Sign out of GitLab
  2. Enable the following feature flags:
    • explain_code
    • explain_code_snippet
    • openai_experimentation
    • ai_experimentation_api
  3. Open a file containing Source Code.
  4. Highlight some of the Source Code.
  5. 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.

Edited by Jacques Erasmus

Merge request reports

Loading