Skip to content

Adding cancel button to AI Agent form

Darby Frey requested to merge ai-agent-form-cancel into master

What does this MR do and why?

This MR cleans up the UI and adds a cancel button to the AI agent form, which will take the user back to either the list view or the agent show view, depending on the state.

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

Screenshot_2024-03-07_at_5.32.12_PM

Screenshot_2024-03-07_at_5.32.03_PM

How to set up and validate locally

  1. Ensure you have an EE license activated

  2. Enable the feature flag

    Feature.enable(:agent_registry)
  3. Load /-/ml/agents for any project (for example /flightjs/Flight/-/ml/agents) and click Create agent

  4. Ensure the cancel button shows and clicking it returns you to the empty state view

  5. Click on Create agent again and input an Agent Name and Prompt and click Create agent.

  6. Load the edit screen at /-/ml/agents/ID/edit. Ensure the agent name and prompt you just created are shown in the input fields.

  7. Click the cancel button and ensure it returns you to the show view (with the chat window)

Merge request reports