Skip to content

Automate browser based workflows with AI

Change the default font size in code editor to be 12 (#1021)

Shuchang Zheng437f70427f04
diff --git a/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx b/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx
index 7ffd5cfcb..2de858925 100644
--- a/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx
+++ b/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx
@@ -293,7 +293,6 @@ function CreateNewTaskForm({ initialValues }: Props) {
<CodeEditor
{...field}
language="json"
- fontSize={12}
minHeight="96px"
maxHeight="500px"
value={
@@ -388,7 +387,6 @@ function CreateNewTaskForm({ initialValues }: Props) {
<CodeEditor
{...field}
language="json"
- fontSize={12}
minHeight="96px"
maxHeight="500px"
value={field.value === null ? "" : field.value}
@@ -509,7 +507,6 @@ function CreateNewTaskForm({ initialValues }: Props) {
<CodeEditor
{...field}
language="json"
- fontSize={12}
minHeight="96px"
maxHeight="500px"
value={field.value === null ? "" : field.value}
diff --git a/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx b/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx
index 0a3abce9f..6fc2b262d 100644
--- a/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx
+++ b/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx
@@ -462,7 +462,6 @@ function SavedTaskForm({ initialValues }: Props) {
<CodeEditor
{...field}
language="json"
- fontSize={12}
minHeight="96px"
maxHeight="500px"
value={
@@ -557,7 +556,6 @@ function SavedTaskForm({ initialValues }: Props) {
<CodeEditor
{...field}
language="json"
- fontSize={14}
minHeight="96px"
maxHeight="500px"
value={
@@ -683,7 +681,6 @@ function SavedTaskForm({ initialValues }: Props) {
<CodeEditor
{...field}
language="json"
- fontSize={12}
minHeight="96px"
maxHeight="500px"
value={field.value === null ? "" : field.value}
diff --git a/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx b/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx
index 52ac9b749..d4ece11b6 100644
--- a/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx
+++ b/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx
@@ -125,7 +125,6 @@ function TaskDetails() {
language="json"
value={JSON.stringify(task.extracted_information, null, 2)}
readOnly
- fontSize={12}
minHeight={"96px"}
maxHeight={"500px"}
className="w-full"
@@ -149,7 +148,6 @@ function TaskDetails() {
language="json"
value={JSON.stringify(task.failure_reason, null, 2)}
readOnly
- fontSize={12}
minHeight={"96px"}
maxHeight={"500px"}
className="w-full"
diff --git a/skyvern-frontend/src/routes/tasks/detail/TaskParameters.tsx b/skyvern-frontend/src/routes/tasks/detail/TaskParameters.tsx
index a6b22ca31..c5580096b 100644
--- a/skyvern-frontend/src/routes/tasks/detail/TaskParameters.tsx
+++ b/skyvern-frontend/src/routes/tasks/detail/TaskParameters.tsx
@@ -76,7 +76,6 @@ function TaskParameters() {
readOnly
minHeight="96px"
maxHeight="500px"
- fontSize={12}
/>
</div>
<div className="flex gap-16">
@@ -113,7 +112,6 @@ function TaskParameters() {
readOnly
minHeight="96px"
maxHeight="500px"
- fontSize={12}
/>
</div>
</section>
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowParameterInput.tsx b/skyvern-frontend/src/routes/workflows/WorkflowParameterInput.tsx
index 514b71ae2..4bef85961 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowParameterInput.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowParameterInput.tsx
@@ -21,7 +21,6 @@ function WorkflowParameterInput({ type, value, onChange }: Props) {
value={
typeof value === "string" ? value : JSON.stringify(value, null, 2)
}
- fontSize={12}
/>
);
}
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
index 3066ee2f6..ae97457ca 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
@@ -494,7 +494,6 @@ function WorkflowRun() {
value={JSON.stringify(value, null, 2)}
readOnly
language="json"
- fontSize={12}
minHeight="96px"
maxHeight="500px"
/>
diff --git a/skyvern-frontend/src/routes/workflows/components/CodeEditor.tsx b/skyvern-frontend/src/routes/workflows/components/CodeEditor.tsx
index 129275126..eef4f3af0 100644
--- a/skyvern-frontend/src/routes/workflows/components/CodeEditor.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/CodeEditor.tsx
@@ -23,7 +23,7 @@ function CodeEditor({
language,
className,
readOnly = false,
- fontSize = 8,
+ fontSize = 12,
}: Props) {
const extensions =
language === "json"
diff --git a/skyvern-frontend/src/routes/workflows/components/DataSchema.tsx b/skyvern-frontend/src/routes/workflows/components/DataSchema.tsx
index 489513268..38d331f82 100644
--- a/skyvern-frontend/src/routes/workflows/components/DataSchema.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/DataSchema.tsx
@@ -41,6 +41,7 @@ function DataSchema({ value, onChange }: Props) {
// TODO
}}
className="nowheel nopan"
+ fontSize={8}
/>
</div>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/CodeBlockNode/CodeBlockNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/CodeBlockNode/CodeBlockNode.tsx
index 1100189e9..594f6b64d 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/CodeBlockNode/CodeBlockNode.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/CodeBlockNode/CodeBlockNode.tsx
@@ -70,6 +70,7 @@ function CodeBlockNode({ id, data }: NodeProps<CodeBlockNode>) {
updateNodeData(id, { code: value });
}}
className="nopan"
+ fontSize={8}
/>
</div>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNode.tsx
index 0dd28213b..987528e0e 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNode.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNode.tsx
@@ -223,6 +223,7 @@ function TaskNode({ id, data }: NodeProps<TaskNode>) {
handleChange("dataSchema", value);
}}
className="nowheel nopan"
+ fontSize={8}
/>
</div>
)}
@@ -324,6 +325,7 @@ function TaskNode({ id, data }: NodeProps<TaskNode>) {
handleChange("errorCodeMapping", value);
}}
className="nowheel nopan"
+ fontSize={8}
/>
</div>
)}
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/TextPromptNode/TextPromptNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/TextPromptNode/TextPromptNode.tsx
index c8a808f68..55df7ef5f 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/TextPromptNode/TextPromptNode.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/TextPromptNode/TextPromptNode.tsx
@@ -115,6 +115,7 @@ function TextPromptNode({ id, data }: NodeProps<TextPromptNode>) {
updateNodeData(id, { jsonSchema: value });
}}
className="nowheel nopan"
+ fontSize={8}
/>
</div>
)}