Skip to content

Automate browser based workflows with AI

Make workflow run output JSON viewers resizable via drag (#SKY-7528) (#5070)

Shuchang Zhengf982728911d6
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx
index 6dce7f0d5..465625325 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx
@@ -94,30 +94,46 @@ function WorkflowRunOutput() {
) : showExtractedInformation ? (
<div className="space-y-2">
<h2>Extracted Information</h2>
- <CodeEditor
- language="json"
- value={JSON.stringify(
- (hasExtractedInformation(activeBlock.output) &&
- activeBlock.output.extracted_information) ??
+ <div
+ style={{
+ resize: "vertical",
+ overflow: "hidden",
+ minHeight: "96px",
+ height: "200px",
+ }}
+ >
+ <CodeEditor
+ language="json"
+ value={JSON.stringify(
+ (hasExtractedInformation(activeBlock.output) &&
+ activeBlock.output.extracted_information) ??
+ null,
null,
- null,
- 2,
- )}
- minHeight="96px"
- maxHeight="200px"
- readOnly
- />
+ 2,
+ )}
+ readOnly
+ fullHeight
+ />
+ </div>
</div>
) : activeBlock.output !== null ? (
<div className="space-y-2">
<h2>Output</h2>
- <CodeEditor
- language="json"
- value={JSON.stringify(activeBlock.output, null, 2)}
- minHeight="96px"
- maxHeight="200px"
- readOnly
- />
+ <div
+ style={{
+ resize: "vertical",
+ overflow: "hidden",
+ minHeight: "96px",
+ height: "200px",
+ }}
+ >
+ <CodeEditor
+ language="json"
+ value={JSON.stringify(activeBlock.output, null, 2)}
+ readOnly
+ fullHeight
+ />
+ </div>
</div>
) : (
<div>This block has no outputs</div>
@@ -129,26 +145,42 @@ function WorkflowRunOutput() {
<div className="rounded bg-slate-elevation2 p-6">
<div className="space-y-4">
<h1 className="text-lg font-bold">Task 2.0 Output</h1>
- <CodeEditor
- language="json"
- value={JSON.stringify(observerOutput, null, 2)}
- readOnly
- minHeight="96px"
- maxHeight="200px"
- />
+ <div
+ style={{
+ resize: "vertical",
+ overflow: "hidden",
+ minHeight: "96px",
+ height: "200px",
+ }}
+ >
+ <CodeEditor
+ language="json"
+ value={JSON.stringify(observerOutput, null, 2)}
+ readOnly
+ fullHeight
+ />
+ </div>
</div>
</div>
) : null}
<div className="rounded bg-slate-elevation2 p-6">
<div className="space-y-4">
<h1 className="text-lg font-bold">Workflow Run Outputs</h1>
- <CodeEditor
- language="json"
- value={outputs ? JSON.stringify(outputs, null, 2) : ""}
- readOnly
- minHeight="96px"
- maxHeight="200px"
- />
+ <div
+ style={{
+ resize: "vertical",
+ overflow: "hidden",
+ minHeight: "96px",
+ height: "200px",
+ }}
+ >
+ <CodeEditor
+ language="json"
+ value={outputs ? JSON.stringify(outputs, null, 2) : ""}
+ readOnly
+ fullHeight
+ />
+ </div>
</div>
</div>
<div className="rounded bg-slate-elevation2 p-6">