Fixed the margin on the banner in GitLab chat
What does this MR do and why?
The MR changes the two things in GitLab chat:
- DRY change: moved the legal warning into
AiGenieChat
component instead of supplying it via a slot in every chat implementation. - Style change: the MR fixes the visual bug where "Responses generated by AI" legal warning had an unnecessary margin on the right side (see the
Before
screenshots)
Screenshots or screen recordings
Before | After | |
---|---|---|
GitLab chat | ||
Explain Code |
How to set up and validate locally
- Follow the instructions to enable the AI features in your local GDK
To test the GitLab chat:
- Follow the instructions on setting up the GitLab chat locally
- Enable the
:super_sidebar_nav
feature flag (Feature.enable(:anthropic_experimentation)
in your rails console - Enable the new super sidebar in your settings via the web interface:
- Open the GitLab chat in Help -> Ask GitLab Chat
- Make sure the "Responses generated by AI" legal warning is rendered as provided on the "After" screenshot
To test the Explain Code:
- Go to a code file (
/flightjs/Flight/-/blob/master/index.js
, for example) - Select some code and click the
❓ icon in the gutter on the left side of the selected code - Check that the shown "Code Explanation" drawer looks like presented on the "After" screenshot
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 Denys Mishunov