Skip to content

Commit a25b26e

Browse files
waleedlatif1claude
andcommitted
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>
1 parent 41ed859 commit a25b26e

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/components/tools/parameter.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ export function ParameterWithLabel({
9191
{title}
9292
{isRequired && visibility === 'user-only' && <span className='ml-0.5'>*</span>}
9393
{visibility !== 'user-only' && (
94-
<span className='ml-[6px] text-[12px] text-[var(--text-tertiary)]'>(optional)</span>
94+
<span className='-ml-[3px] text-[12px] font-normal text-[var(--text-tertiary)]'>
95+
(optional)
96+
</span>
9597
)}
9698
</Label>
9799
<div className='flex min-w-0 flex-1 items-center justify-end gap-[6px]'>

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/components/tools/sub-block-renderer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ export function ToolSubBlockRenderer({
8484
const labelSuffix = useMemo(
8585
() =>
8686
isOptionalForUser ? (
87-
<span className='ml-[6px] text-[12px] text-[var(--text-tertiary)]'>(optional)</span>
87+
<span className='-ml-[3px] text-[12px] font-normal text-[var(--text-tertiary)]'>
88+
(optional)
89+
</span>
8890
) : null,
8991
[isOptionalForUser]
9092
)

apps/sim/tools/workflow/executor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const workflowExecutorTool: ToolConfig<
1818
workflowId: {
1919
type: 'string',
2020
required: true,
21-
visibility: 'user-or-llm',
21+
visibility: 'user-only',
2222
description: 'The ID of the workflow to execute',
2323
},
2424
inputMapping: {

0 commit comments

Comments
 (0)