Skip to content

Commit 5e9fe80

Browse files
committed
fix(workflows): simplify comparison headings and badges
1 parent ea45bdd commit 5e9fe80

3 files changed

Lines changed: 3 additions & 13 deletions

File tree

‎apps/sim/app/workspace/[workspaceId]/w/components/preview/components/preview-workflow/components/block/block.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ function WorkflowPreviewBlockInner({ id, data }: NodeProps<WorkflowPreviewBlockN
458458
)}
459459
>
460460
{/* Comparison label above the card */}
461-
{diffStatus && <DiffStatusLabel status={diffStatus} count={changedFieldSet.size} />}
461+
{diffStatus && <DiffStatusLabel status={diffStatus} />}
462462
{/* Selection ring overlay (takes priority over execution rings) */}
463463
{isPreviewSelected && (
464464
<div className='pointer-events-none absolute inset-0 z-40 rounded-2xl ring-[1.5px] ring-[var(--text-secondary)]' />

‎apps/sim/app/workspace/[workspaceId]/w/components/preview/components/preview-workflow/components/diff-label/diff-label.tsx‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@ const DIFF_LABEL_CLASS: Record<BlockDiffStatus, string> = {
1818

1919
interface DiffStatusLabelProps {
2020
status: BlockDiffStatus
21-
/** How many fields changed on a modified block; shown after the label when known */
22-
count?: number
2321
}
2422

2523
/**
2624
* The comparison label floating above a canvas card or container: the same
2725
* chrome wherever it appears so a block and a loop read as one system.
2826
*/
29-
export function DiffStatusLabel({ status, count }: DiffStatusLabelProps) {
27+
export function DiffStatusLabel({ status }: DiffStatusLabelProps) {
3028
return (
3129
<div
3230
className={cn(
@@ -35,7 +33,6 @@ export function DiffStatusLabel({ status, count }: DiffStatusLabelProps) {
3533
)}
3634
>
3735
{DIFF_LABEL[status]}
38-
{status === 'modified' && count ? ` · ${count}` : null}
3936
</div>
4037
)
4138
}

‎apps/sim/ee/workspace-forking/components/fork-sync/fork-comparison-modal.tsx‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use client'
22

3-
import { ArrowRight } from '@sim/emcn/icons'
43
import type { ForkWorkflowComparison } from '@/lib/api/contracts/workspace-fork'
54
import { WorkflowComparisonModal } from '@/app/workspace/[workspaceId]/w/components/workflow-diff'
65
import { useDeploymentVersionState } from '@/hooks/queries/workflows'
@@ -35,13 +34,7 @@ export function ForkComparisonModal({
3534
onOpenChange={(open) => {
3635
if (!open) onClose()
3736
}}
38-
header={
39-
<div className='flex items-center gap-2'>
40-
<span>Last Sync</span>
41-
<ArrowRight className='size-[14px] text-[var(--text-icon)]' />
42-
<span>Now</span>
43-
</div>
44-
}
37+
header='Compare versions'
4538
baseState={base.data ?? null}
4639
targetState={target.data ?? null}
4740
isLoading={base.isLoading || target.isLoading}

0 commit comments

Comments
 (0)