Skip to content

Commit 29befbc

Browse files
authored
feat(schedule): add input form to schedule (#2405)
* feat(schedule): add input form to schedule * change placeholder
1 parent 9cf8aae commit 29befbc

File tree

2 files changed

+10
-3
lines changed
  • apps/sim
    • app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/starter
    • blocks/blocks

2 files changed

+10
-3
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/starter/input-format.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ export function FieldFormat({
9191
placeholder = 'fieldName',
9292
showType = true,
9393
showValue = false,
94-
valuePlaceholder = 'Enter test value',
95-
config,
94+
valuePlaceholder = 'Enter default value',
9695
}: FieldFormatProps) {
9796
const [storeValue, setStoreValue] = useSubBlockValue<Field[]>(blockId, subBlockId)
9897
const valueInputRefs = useRef<Record<string, HTMLInputElement | HTMLTextAreaElement>>({})
@@ -454,7 +453,6 @@ export function FieldFormat({
454453
)
455454
}
456455

457-
// Export specific components for backward compatibility
458456
export function InputFormat(props: Omit<FieldFormatProps, 'title' | 'placeholder'>) {
459457
return <FieldFormat {...props} title='Input' placeholder='firstName' />
460458
}

apps/sim/blocks/blocks/schedule.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,15 @@ export const ScheduleBlock: BlockConfig = {
155155
condition: { field: 'scheduleType', value: ['minutes', 'hourly'], not: true },
156156
},
157157

158+
{
159+
id: 'inputFormat',
160+
title: 'Input Format',
161+
type: 'input-format',
162+
description:
163+
'Define input parameters that will be available when the schedule triggers. Use Value to set default values for scheduled executions.',
164+
mode: 'trigger',
165+
},
166+
158167
{
159168
id: 'scheduleSave',
160169
type: 'schedule-save',

0 commit comments

Comments
 (0)