From 8fa05be41637148e13d61c91231c43a9cc8ddbdf Mon Sep 17 00:00:00 2001 From: GitLab Duo Date: Wed, 10 Sep 2025 09:30:49 +0000 Subject: [PATCH] Duo Workflow: Resolve issue #557569 --- .../components/ai_catalog_agent_run_form.vue | 2 +- .../execute_ai_catalog_agent.mutation.graphql | 8 ++- .../catalog/pages/ai_catalog_agents_run.vue | 64 +++++++++++++------ ee/spec/frontend/ai/catalog/mock_data.js | 34 +++++++--- .../pages/ai_catalog_agents_run_spec.js | 57 +++++++++++++---- locale/gitlab.pot | 21 +++--- 6 files changed, 131 insertions(+), 55 deletions(-) diff --git a/ee/app/assets/javascripts/ai/catalog/components/ai_catalog_agent_run_form.vue b/ee/app/assets/javascripts/ai/catalog/components/ai_catalog_agent_run_form.vue index c65cbe70aef0b4..8de863a49df260 100644 --- a/ee/app/assets/javascripts/ai/catalog/components/ai_catalog_agent_run_form.vue +++ b/ee/app/assets/javascripts/ai/catalog/components/ai_catalog_agent_run_form.vue @@ -53,7 +53,7 @@ export default { fields: { userPrompt: { validators: createFieldValidators({ - requiredLabel: s__('AICatalog|User Prompt is required.'), + requiredLabel: s__('AICatalog|User prompt is required.'), maxLength: MAX_LENGTH_PROMPT, }), }, diff --git a/ee/app/assets/javascripts/ai/catalog/graphql/mutations/execute_ai_catalog_agent.mutation.graphql b/ee/app/assets/javascripts/ai/catalog/graphql/mutations/execute_ai_catalog_agent.mutation.graphql index 3505aa6e427d36..8c26c2b58146e6 100644 --- a/ee/app/assets/javascripts/ai/catalog/graphql/mutations/execute_ai_catalog_agent.mutation.graphql +++ b/ee/app/assets/javascripts/ai/catalog/graphql/mutations/execute_ai_catalog_agent.mutation.graphql @@ -1,6 +1,12 @@ mutation executeAiCatalogAgent($input: AiCatalogAgentExecuteInput!) { aiCatalogAgentExecute(input: $input) { errors - flowConfig + workflow { + id + project { + id + fullPath + } + } } } diff --git a/ee/app/assets/javascripts/ai/catalog/pages/ai_catalog_agents_run.vue b/ee/app/assets/javascripts/ai/catalog/pages/ai_catalog_agents_run.vue index 4271d2e52aa2c5..80e3dd4dba4b77 100644 --- a/ee/app/assets/javascripts/ai/catalog/pages/ai_catalog_agents_run.vue +++ b/ee/app/assets/javascripts/ai/catalog/pages/ai_catalog_agents_run.vue @@ -1,19 +1,19 @@