Skip to content

Commit eaa658b

Browse files
committed
feat(terminal): added structured output; improvement(preview): note block
1 parent d8d4a61 commit eaa658b

File tree

10 files changed

+673
-17
lines changed

10 files changed

+673
-17
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/terminal/components/output-panel/components/output-context-menu.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ interface OutputContextMenuProps {
2222
onCopySelection: () => void
2323
onCopyAll: () => void
2424
onSearch: () => void
25+
structuredView: boolean
26+
onToggleStructuredView: () => void
2527
wrapText: boolean
2628
onToggleWrap: () => void
2729
openOnRun: boolean
@@ -42,6 +44,8 @@ export function OutputContextMenu({
4244
onCopySelection,
4345
onCopyAll,
4446
onSearch,
47+
structuredView,
48+
onToggleStructuredView,
4549
wrapText,
4650
onToggleWrap,
4751
openOnRun,
@@ -96,6 +100,9 @@ export function OutputContextMenu({
96100

97101
{/* Display settings - toggles don't close menu */}
98102
<PopoverDivider />
103+
<PopoverItem showCheck={structuredView} onClick={onToggleStructuredView}>
104+
Structured View
105+
</PopoverItem>
99106
<PopoverItem showCheck={wrapText} onClick={onToggleWrap}>
100107
Wrap Text
101108
</PopoverItem>

0 commit comments

Comments
 (0)