Skip to content

Commit 3a8840e

Browse files
committed
fix(workflow): shorten human block catalog label
1 parent 1422c5c commit 3a8840e

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

apps/sim/blocks/blocks/human_in_the_loop.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { ResponseBlockOutput } from '@/tools/response/types'
44

55
export const HumanInTheLoopBlock: BlockConfig<ResponseBlockOutput> = {
66
type: 'human_in_the_loop',
7-
name: 'Human in the Loop',
7+
name: 'Human',
88
description: 'Pause workflow execution and wait for human input',
99
longDescription:
1010
'Combines response and start functionality. Sends structured responses and allows workflow to resume from this point.',
@@ -15,6 +15,7 @@ export const HumanInTheLoopBlock: BlockConfig<ResponseBlockOutput> = {
1515
canvasPresentation: {
1616
typeLabel: 'Human',
1717
defaultTitle: 'Wait for Input',
18+
defaultName: 'Human in the Loop',
1819
},
1920
subBlocks: [
2021
// Operation dropdown hidden - block defaults to human approval mode

apps/sim/lib/workflows/blocks/canvas-presentation.test.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@ describe('resolveCanvasBlockPresentation', () => {
5252

5353
it('uses a static semantic title for a block without an operation selector', () => {
5454
const humanConfig = {
55-
name: 'Human in the Loop',
55+
name: 'Human',
5656
subBlocks: [],
5757
canvasPresentation: {
5858
typeLabel: 'Human',
5959
defaultTitle: 'Wait for Input',
60+
defaultName: 'Human in the Loop',
6061
},
6162
} as Pick<BlockConfig, 'name' | 'subBlocks' | 'canvasPresentation'>
6263

@@ -67,5 +68,11 @@ describe('resolveCanvasBlockPresentation', () => {
6768
operationSubBlockId: undefined,
6869
operationRowTitle: undefined,
6970
})
71+
72+
expect(resolveCanvasBlockPresentation(humanConfig, 'Human 1', {})).toMatchObject({
73+
title: 'Wait for Input',
74+
typeLabel: 'Human',
75+
usesDefaultTitle: true,
76+
})
7077
})
7178
})

0 commit comments

Comments
 (0)