Feat: Add ai legal disclaimer to new agent session and new flow trigger pages
What does this MR do and why?
This MR does the following:
- Adds the
Betaexperiment badge to the Automate page headers:Agent sessionsandFlow triggers. - Adds legal disclaimer to the bottom of the sub-children pages:
Agent sessions > NewandFlow triggers > New. - Adds y-axis border to agent sessions list since this no longer hidden under a FF and to help separate all the white spacing gaps.
- Fix margin on
Agent sessions > Newpage that made it not align with theFlow triggers > Newpage.
Related Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/562399
References
Screenshots or screen recordings
| Page | Before | After |
|---|---|---|
| Agent sessions | ![]() |
![]() |
| Agent sessions > New | ![]() |
![]() |
| Flow triggers | ![]() |
![]() |
| Flow triggers > New | ![]() |
![]() |
How to set up and validate locally
- Make sure you have AI features enabled https://docs.gitlab.com/development/ai_features/
- Turn on the following feature flags:
duo_workflow,duo_workflow_in_ci, andai_flow_triggers - Navigate to a project with that has AI features enabled (see Step 1).
- In the left side panel, you will see Automate with a tanuki icon.
- Click the dropdown and select Agent sessions. This will load your agent sessions in that project.
- If you need to populate flows, run the rake task for your project (ee/lib/tasks/gitlab/duo_workflow/duo_workflow.rake)
bundle exec rake "gitlab:duo_workflow:populate[50,20,1,gitlab-duo/test]". - Validate session items now have a border. Validate there is now a page header/title along with the experiment tag labeled
Beta. - Click on the
New sessionbutton on the top right of the page. - When on the
New sessionpage, validate the disclaimer appears at the bottom and that the page has the appropriate margins. - In the left side panel, under the
Automatedropdown select Flow triggers. This will load your flow triggers in that project. - Validate there is now an experiment tag labeled
Betanext to the page header. - Click on the
Create flow triggerbutton on the top right of the page. - When on the
Create flow triggerpage, validate the disclaimer appears at the bottom.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #562399
Edited by Lindsey Shelton







