mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-12 15:34:58 -05:00
fix(tool-input): correct workflow selector visibility and tighten (optional) spacing
- Set workflowId param to user-only in workflow_executor tool config so "Select Workflow" no longer shows "(optional)" indicator - Tighten (optional) label spacing with -ml-[3px] to counteract parent Label's gap-[6px], making it feel inline with the label text Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -91,7 +91,9 @@ export function ParameterWithLabel({
|
||||
{title}
|
||||
{isRequired && visibility === 'user-only' && <span className='ml-0.5'>*</span>}
|
||||
{visibility !== 'user-only' && (
|
||||
<span className='ml-[6px] text-[12px] text-[var(--text-tertiary)]'>(optional)</span>
|
||||
<span className='-ml-[3px] text-[12px] font-normal text-[var(--text-tertiary)]'>
|
||||
(optional)
|
||||
</span>
|
||||
)}
|
||||
</Label>
|
||||
<div className='flex min-w-0 flex-1 items-center justify-end gap-[6px]'>
|
||||
|
||||
@@ -84,7 +84,9 @@ export function ToolSubBlockRenderer({
|
||||
const labelSuffix = useMemo(
|
||||
() =>
|
||||
isOptionalForUser ? (
|
||||
<span className='ml-[6px] text-[12px] text-[var(--text-tertiary)]'>(optional)</span>
|
||||
<span className='-ml-[3px] text-[12px] font-normal text-[var(--text-tertiary)]'>
|
||||
(optional)
|
||||
</span>
|
||||
) : null,
|
||||
[isOptionalForUser]
|
||||
)
|
||||
|
||||
@@ -18,7 +18,7 @@ export const workflowExecutorTool: ToolConfig<
|
||||
workflowId: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
visibility: 'user-or-llm',
|
||||
visibility: 'user-only',
|
||||
description: 'The ID of the workflow to execute',
|
||||
},
|
||||
inputMapping: {
|
||||
|
||||
Reference in New Issue
Block a user