Adding cancel button to AI Agent form
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
How to set up and validate locally
-
Ensure you have an EE license activated
-
Enable the feature flag
Feature.enable(:agent_registry)
-
Load
/-/ml/agents
for any project (for example/flightjs/Flight/-/ml/agents
) and clickCreate agent
-
Ensure the
cancel
button shows and clicking it returns you to the empty state view -
Click on
Create agent
again and input an Agent Name and Prompt and clickCreate agent
. -
Load the edit screen at
/-/ml/agents/ID/edit
. Ensure the agent name and prompt you just created are shown in the input fields. -
Click the
cancel
button and ensure it returns you to the show view (with the chat window)