Skip to content

Commit 342f944

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
refactor(emcn): preserve workflow action chrome after staging merge
1 parent 7819fea commit 342f944

14 files changed

Lines changed: 33 additions & 32 deletions

File tree

‎apps/sim/app/(landing)/components/hero/components/hero-platform-loop/stage-block-card.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ export function StageBlockCard({
373373
hasContentBelowHeader ? 'h-[40px]' : 'h-[48px]'
374374
)}
375375
>
376-
<span className='min-w-0 flex-1 truncate text-[var(--text-primary)] text-md'>
376+
<span className='min-w-0 flex-1 truncate text-[17px] text-[var(--text-primary)]'>
377377
{block.name}
378378
</span>
379379
<WorkflowTypeTag

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal/components/chat/chat.tsx‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,7 @@ export function ChatDeploy({
381381
</ChipModalField>
382382

383383
<div className='px-2'>
384-
<Label className='mb-[6.5px] block pl-0.5 text-[var(--text-primary)] text-small'>
385-
Output
386-
</Label>
384+
<Label className='mb-[6.5px] block pl-0.5 text-small'>Output</Label>
387385
<OutputSelect
388386
workflowId={workflowId}
389387
selectedOutputs={formData.selectedOutputBlocks}
@@ -573,10 +571,7 @@ export function IdentifierInput({
573571

574572
return (
575573
<div className='px-2'>
576-
<Label
577-
htmlFor='chat-url'
578-
className='mb-[6.5px] block pl-0.5 text-[var(--text-primary)] text-small'
579-
>
574+
<Label htmlFor='chat-url' className='mb-[6.5px] block pl-0.5 text-small'>
580575
URL
581576
</Label>
582577
<div

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ export function ConditionInput({
966966
disabled ||
967967
(!isRouterMode && isElseConditionTitle(block.title))
968968
}
969-
className='h-auto p-0'
969+
size='bare'
970970
>
971971
<Plus className='size-[14px]' />
972972
<span className='sr-only'>Add Block</span>
@@ -986,7 +986,7 @@ export function ConditionInput({
986986
disabled ||
987987
(!isRouterMode && isElseConditionTitle(block.title))
988988
}
989-
className='h-auto p-0'
989+
size='bare'
990990
>
991991
<ChevronUp className='size-[14px]' />
992992
<span className='sr-only'>Move Up</span>
@@ -1008,7 +1008,7 @@ export function ConditionInput({
10081008
isElseConditionTitle(conditionalBlocks[index + 1]?.title)) ||
10091009
(!isRouterMode && isElseConditionTitle(block.title))
10101010
}
1011-
className='h-auto p-0'
1011+
size='bare'
10121012
>
10131013
<ChevronDown className='size-[14px]' />
10141014
<span className='sr-only'>Move Down</span>
@@ -1025,7 +1025,7 @@ export function ConditionInput({
10251025
disabled={
10261026
isPreview || disabled || conditionalBlocks.length <= (isRouterMode ? 1 : 2)
10271027
}
1028-
className='h-auto p-0'
1028+
size='bare'
10291029
>
10301030
<Trash className='size-[14px]' />
10311031
<span className='sr-only'>Delete Block</span>

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/document-tag-entry/document-tag-entry.tsx‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -257,20 +257,15 @@ export function DocumentTagEntry({
257257

258258
const renderActions = (tag: DocumentTag) => (
259259
<>
260-
<Button
261-
variant='ghost'
262-
onClick={addTag}
263-
disabled={isReadOnly || !canAddMoreTags}
264-
className='h-auto p-0'
265-
>
260+
<Button variant='ghost' onClick={addTag} disabled={isReadOnly || !canAddMoreTags} size='bare'>
266261
<Plus className='size-[14px]' />
267262
<span className='sr-only'>Add Tag</span>
268263
</Button>
269264
<Button
270265
variant='ghost-destructive'
271266
onClick={() => removeTag(tag.id)}
272267
disabled={isReadOnly}
273-
className='h-auto p-0'
268+
size='bare'
274269
>
275270
<Trash className='size-[14px]' />
276271
<span className='sr-only'>Delete Tag</span>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export function EvalInput({
147147
variant='ghost'
148148
onClick={addMetric}
149149
disabled={isPreview || disabled}
150-
className='h-auto p-0'
150+
size='bare'
151151
>
152152
<Plus className='size-[14px]' />
153153
<span className='sr-only'>Add Metric</span>
@@ -162,7 +162,7 @@ export function EvalInput({
162162
variant='ghost-destructive'
163163
onClick={() => removeMetric(metric.id)}
164164
disabled={isPreview || disabled || metrics.length === 1}
165-
className='h-auto p-0'
165+
size='bare'
166166
>
167167
<Trash className='size-[14px]' />
168168
<span className='sr-only'>Delete Metric</span>

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/filter-builder/components/filter-rule-row.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,15 @@ export function FilterRuleRow({
129129

130130
const renderActions = () => (
131131
<>
132-
<Button variant='ghost' onClick={onAdd} disabled={isReadOnly} className='h-auto p-0'>
132+
<Button variant='ghost' onClick={onAdd} disabled={isReadOnly} size='bare'>
133133
<Plus className='size-[14px]' />
134134
<span className='sr-only'>Add Condition</span>
135135
</Button>
136136
<Button
137137
variant='ghost-destructive'
138138
onClick={() => onRemove(rule.id)}
139139
disabled={isReadOnly}
140-
className='h-auto p-0'
140+
size='bare'
141141
>
142142
<Trash className='size-[14px]' />
143143
<span className='sr-only'>Delete Condition</span>

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/knowledge-tag-filters/knowledge-tag-filters.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export function KnowledgeTagFilters({
257257
addFilter()
258258
}}
259259
disabled={isReadOnly}
260-
className='h-auto p-0'
260+
size='bare'
261261
>
262262
<Plus className='size-[14px]' />
263263
<span className='sr-only'>Add Filter</span>
@@ -269,7 +269,7 @@ export function KnowledgeTagFilters({
269269
removeFilter(filter.id)
270270
}}
271271
disabled={isReadOnly}
272-
className='h-auto p-0'
272+
size='bare'
273273
>
274274
<Trash className='size-[14px]' />
275275
<span className='sr-only'>Delete Filter</span>

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/sort-builder/components/sort-rule-row.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ export function SortRuleRow({
8888

8989
const renderActions = () => (
9090
<>
91-
<Button variant='ghost' onClick={onAdd} disabled={isReadOnly} className='h-auto p-0'>
91+
<Button variant='ghost' onClick={onAdd} disabled={isReadOnly} size='bare'>
9292
<Plus className='size-[14px]' />
9393
<span className='sr-only'>Add Sort</span>
9494
</Button>
9595
<Button
9696
variant='ghost-destructive'
9797
onClick={() => onRemove(rule.id)}
9898
disabled={isReadOnly}
99-
className='h-auto p-0'
99+
size='bare'
100100
>
101101
<Trash className='size-[14px]' />
102102
<span className='sr-only'>Delete Sort</span>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ export function FieldFormat({
412412
className='flex items-center gap-2 pl-2'
413413
onClick={(e) => e.stopPropagation()}
414414
>
415-
<Button variant='ghost' onClick={addField} disabled={isReadOnly} className='h-auto p-0'>
415+
<Button variant='ghost' onClick={addField} disabled={isReadOnly} size='bare'>
416416
<Plus className='size-[14px]' />
417417
<span className='sr-only'>Add {title}</span>
418418
</Button>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ export function VariablesInput({
422422
addAssignment()
423423
}}
424424
disabled={isReadOnly || allVariablesAssigned}
425-
className='h-auto p-0'
425+
size='bare'
426426
>
427427
<Plus className='size-[14px]' />
428428
<span className='sr-only'>Add Variable</span>
@@ -434,7 +434,7 @@ export function VariablesInput({
434434
removeAssignment(assignment.id)
435435
}}
436436
disabled={isReadOnly}
437-
className='h-auto p-0'
437+
size='bare'
438438
>
439439
<Trash className='size-[14px]' />
440440
<span className='sr-only'>Delete Variable</span>

0 commit comments

Comments
 (0)