diff --git a/libs/domains/audit-logs/feature/src/lib/utils/target-type-selection-utils.spec.ts b/libs/domains/audit-logs/feature/src/lib/utils/target-type-selection-utils.spec.ts
index b57b940f1c9..5bd83b5941b 100644
--- a/libs/domains/audit-logs/feature/src/lib/utils/target-type-selection-utils.spec.ts
+++ b/libs/domains/audit-logs/feature/src/lib/utils/target-type-selection-utils.spec.ts
@@ -1,6 +1,6 @@
import { OrganizationEventApi, OrganizationEventTargetType } from 'qovery-typescript-axios'
import { type SelectedItem } from '@qovery/shared/ui'
-import { computeMenusToDisplay } from './target-type-selection-utils'
+import { computeMenusToDisplay, getTargetTypeLabel } from './target-type-selection-utils'
const mockGetOrganizationEventTargets = jest.spyOn(OrganizationEventApi.prototype, 'getOrganizationEventTargets')
@@ -8,7 +8,7 @@ const targetTypeItem: SelectedItem = {
filterKey: 'target_type',
item: {
value: OrganizationEventTargetType.AGENTIC_WORKFLOW,
- name: 'Agentic workflow',
+ name: 'Agent task',
},
}
@@ -85,3 +85,13 @@ describe('computeMenusToDisplay', () => {
)
})
})
+
+describe('getTargetTypeLabel', () => {
+ it('uses the Agent task product name for the agentic workflow API type', () => {
+ expect(getTargetTypeLabel(OrganizationEventTargetType.AGENTIC_WORKFLOW)).toBe('Agent task')
+ })
+
+ it('formats other API target types', () => {
+ expect(getTargetTypeLabel(OrganizationEventTargetType.CONTAINER_REGISTRY)).toBe('Container registry')
+ })
+})
diff --git a/libs/domains/audit-logs/feature/src/lib/utils/target-type-selection-utils.tsx b/libs/domains/audit-logs/feature/src/lib/utils/target-type-selection-utils.tsx
index e56246307e6..807c1dc989f 100644
--- a/libs/domains/audit-logs/feature/src/lib/utils/target-type-selection-utils.tsx
+++ b/libs/domains/audit-logs/feature/src/lib/utils/target-type-selection-utils.tsx
@@ -6,6 +6,7 @@ import {
type NavigationLevel,
type SelectedItem,
} from '@qovery/shared/ui'
+import { upperCaseFirstLetter } from '@qovery/shared/util-js'
const SERVICE_TARGET_TYPES: ReadonlySet
= new Set([
OrganizationEventTargetType.AGENTIC_WORKFLOW,
@@ -17,6 +18,12 @@ const SERVICE_TARGET_TYPES: ReadonlySet = new Set([
OrganizationEventTargetType.TERRAFORM,
])
+export function getTargetTypeLabel(targetType: string) {
+ return targetType === OrganizationEventTargetType.AGENTIC_WORKFLOW
+ ? 'Agent task'
+ : upperCaseFirstLetter(targetType).replace(/_/g, ' ')
+}
+
function getTargetTypeSelected(selectedItems: SelectedItem[]): OrganizationEventTargetType | undefined {
const selectedTargetType = selectedItems.find((selectedItem) => {
return selectedItem.filterKey === 'target_type'
diff --git a/libs/domains/service-settings/feature/src/lib/agentic-workflow-settings/agentic-workflow-settings.tsx b/libs/domains/service-settings/feature/src/lib/agentic-workflow-settings/agentic-workflow-settings.tsx
index 74c09ee972e..17ac517f938 100644
--- a/libs/domains/service-settings/feature/src/lib/agentic-workflow-settings/agentic-workflow-settings.tsx
+++ b/libs/domains/service-settings/feature/src/lib/agentic-workflow-settings/agentic-workflow-settings.tsx
@@ -42,19 +42,19 @@ interface FormValues {
}
const PAGE_CONTENT: Record = {
- general: { title: 'General settings', description: 'Configure the workflow name, description, and availability.' },
+ general: { title: 'General settings', description: 'Configure the agent task name, description, and availability.' },
'ai-configuration': {
title: 'AI configuration',
- description: 'Configure the model and instructions used by this workflow.',
+ description: 'Configure the model and instructions used by this agent task.',
},
connections: {
title: 'Connections',
- description: 'Configure the Git repositories, MCP servers, and Dockerfile fragment available to the workflow.',
+ description: 'Configure the Git repositories, MCP servers, and Dockerfile fragment available to the agent task.',
},
- outputs: { title: 'Outputs', description: 'Configure the webhooks called when the workflow produces an output.' },
+ outputs: { title: 'Outputs', description: 'Configure the webhooks called when the agent task produces an output.' },
governance: {
title: 'Governance',
- description: 'Control the hosts and webhook source addresses allowed for this workflow.',
+ description: 'Control the hosts and webhook source addresses allowed for this agent task.',
},
}
@@ -241,7 +241,7 @@ export function AgenticWorkflowSettings({ page }: AgenticWorkflowSettingsProps)
name="name"
label="Name"
value={values.name}
- error={!values.name.trim() ? 'Please enter a workflow name.' : undefined}
+ error={!values.name.trim() ? 'Please enter an agent task name.' : undefined}
onChange={(event) => form.setValue('name', event.currentTarget.value, { shouldDirty: true })}
/>
form.setValue('enabled', value, { shouldDirty: true })}
/>
Resources
- Configure the compute resources allocated to the workflow.
+ Configure the compute resources allocated to the agent task.
{(['cpu', 'ram', 'gpu', 'storage'] as const).map((name) => (
@@ -303,7 +303,7 @@ export function AgenticWorkflowSettings({ page }: AgenticWorkflowSettingsProps)
Git repositories
- Select the repositories and branches the workflow can access.
+ Select the repositories and branches the agent task can access.