Skip to content

Commit 23e9ee7

Browse files
author
aadamgough
committed
removed comments
1 parent 604947d commit 23e9ee7

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,12 @@ import { WorkflowPreview } from '@/app/workspace/[workspaceId]/w/components/work
77
import type { WorkflowState } from '@/stores/workflows/workflow/types'
88

99
interface ExpandedWorkflowPreviewProps {
10-
/** Whether the modal is open */
1110
isOpen: boolean
12-
/** Callback when closing the modal */
1311
onClose: () => void
14-
/** The workflow state to display */
1512
workflowState: WorkflowState
16-
/** Title for the modal header */
1713
title?: string
1814
}
1915

20-
/**
21-
* Expanded workflow preview modal with clickable blocks.
22-
* Shows the workflow preview at full size with a pinned panel
23-
* displaying subblock values when a block is clicked.
24-
*/
2516
export function ExpandedWorkflowPreview({
2617
isOpen,
2718
onClose,
@@ -33,7 +24,6 @@ export function ExpandedWorkflowPreview({
3324
const selectedBlock = selectedBlockId ? workflowState.blocks?.[selectedBlockId] : null
3425

3526
const handleNodeClick = (blockId: string) => {
36-
// Toggle selection if clicking the same block
3727
if (selectedBlockId === blockId) {
3828
setSelectedBlockId(null)
3929
} else {

apps/sim/app/workspace/[workspaceId]/w/components/workflow-preview/components/pinned-sub-blocks/pinned-sub-blocks.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ import { getBlock } from '@/blocks'
88
import type { BlockConfig, SubBlockConfig } from '@/blocks/types'
99
import type { BlockState } from '@/stores/workflows/workflow/types'
1010

11-
/**
12-
* Expandable section for displaying large subblock values.
13-
* Supports inline expansion and fullscreen modal view.
14-
*/
1511
function ExpandableValue({ title, value }: { title: string; value: unknown }) {
1612
const [isExpanded, setIsExpanded] = useState(false)
1713
const [isModalOpen, setIsModalOpen] = useState(false)
@@ -90,10 +86,6 @@ function ExpandableValue({ title, value }: { title: string; value: unknown }) {
9086
)
9187
}
9288

93-
/**
94-
* Format a subblock value for display.
95-
* Handles various types including objects, arrays, booleans, etc.
96-
*/
9789
function formatSubBlockValue(value: unknown): string {
9890
if (value === null || value === undefined || value === '') {
9991
return '—'
@@ -190,16 +182,10 @@ function SubBlockRow({
190182
}
191183

192184
interface PinnedSubBlocksProps {
193-
/** The block state containing subblock values */
194185
block: BlockState
195-
/** Callback when closing the panel */
196186
onClose: () => void
197187
}
198188

199-
/**
200-
* Pinned panel displaying all subblock values for a selected block.
201-
* Overlays the workflow preview canvas in the top-right corner.
202-
*/
203189
export function PinnedSubBlocks({ block, onClose }: PinnedSubBlocksProps) {
204190
const blockConfig = getBlock(block.type) as BlockConfig | undefined
205191

0 commit comments

Comments
 (0)