mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-12 16:02:56 +00:00
capitalize AI Decision labels to match AI Agent (#11583)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
71901852fb
commit
c75113a235
@@ -55,7 +55,7 @@
|
||||
case 'aiagent':
|
||||
return 'AI Agent'
|
||||
case 'aidecision':
|
||||
return 'AI decision'
|
||||
return 'AI Decision'
|
||||
default:
|
||||
return stepDetail.id
|
||||
}
|
||||
|
||||
@@ -252,7 +252,7 @@
|
||||
<Badge color="indigo">AI Agent</Badge>
|
||||
{@render summaryInput()}
|
||||
{:else if flowModuleValue.type === 'aidecision'}
|
||||
<Badge color="indigo">AI decision</Badge>
|
||||
<Badge color="indigo">AI Decision</Badge>
|
||||
{@render summaryInput()}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -184,7 +184,7 @@
|
||||
...(customUi?.aiAgent != false
|
||||
? ([
|
||||
['AI Agent', 'aiagent'],
|
||||
['AI decision', 'aidecision']
|
||||
['AI Decision', 'aidecision']
|
||||
] as [string, string][])
|
||||
: [])
|
||||
]
|
||||
|
||||
@@ -253,7 +253,7 @@
|
||||
/>
|
||||
{#if !nestedAgent}
|
||||
<TopLevelNode
|
||||
label="AI decision"
|
||||
label="AI Decision"
|
||||
chevron={false}
|
||||
onSelect={() => {
|
||||
dispatch('pickAiDecisionTool')
|
||||
@@ -338,7 +338,7 @@
|
||||
}}
|
||||
/>
|
||||
<TopLevelNode
|
||||
label="AI decision"
|
||||
label="AI Decision"
|
||||
onSelect={() => {
|
||||
dispatch('close')
|
||||
dispatch('new', { kind: 'aidecision' })
|
||||
|
||||
@@ -279,7 +279,7 @@
|
||||
{nodeState}
|
||||
label={mod.summary ||
|
||||
(mod.value.type === 'aiagent' ? (mod.value.agent ?? 'AI Agent') : undefined) ||
|
||||
(mod.value.type === 'aidecision' ? 'AI decision' : undefined) ||
|
||||
(mod.value.type === 'aidecision' ? 'AI Decision' : undefined) ||
|
||||
(mod.id === 'preprocessor'
|
||||
? 'Preprocessor'
|
||||
: mod.id.startsWith('failure')
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
'Branch to one': { icon: GitBranch },
|
||||
'Branch to all': { icon: GitBranch },
|
||||
'AI Agent': { icon: BotIcon, showChevron: true, iconClass: 'text-ai' },
|
||||
'AI decision': { icon: Scale, iconClass: 'text-ai' },
|
||||
'AI Decision': { icon: Scale, iconClass: 'text-ai' },
|
||||
'AI Sandbox': { icon: BotIcon, showChevron: true, iconClass: 'text-ai' },
|
||||
'Claude Code': { icon: BotIcon, iconClass: 'text-ai' },
|
||||
MCP: { icon: Plug },
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
if (type === 'flow') return 'Flow'
|
||||
if (type === 'identity') return 'Identity'
|
||||
if (type === 'aiagent') return 'AI Agent'
|
||||
if (type === 'aidecision') return 'AI decision'
|
||||
if (type === 'aidecision') return 'AI Decision'
|
||||
return mod.id
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user