From f8685832ff02880a578604af2fd2dd07aae105f4 Mon Sep 17 00:00:00 2001 From: Jonathan Dobson Date: Fri, 29 Aug 2025 10:21:40 -0400 Subject: [PATCH] update 'Scripts' -> 'Code'; update some other verbiage (#3316) --- .../src/routes/tasks/detail/ScrollableActionList.tsx | 2 +- .../src/routes/workflows/editor/WorkflowHeader.tsx | 2 +- .../src/routes/workflows/editor/Workspace.tsx | 8 ++++---- .../routes/workflows/editor/nodes/NodeActionMenu.tsx | 2 +- .../workflows/editor/nodes/StartNode/StartNode.tsx | 9 +++++---- .../editor/panels/WorkflowCacheKeyValuesPanel.tsx | 10 +++++----- skyvern-frontend/src/routes/workflows/editor/utils.ts | 10 +++++----- .../src/routes/workflows/workflowRun/ActionCard.tsx | 2 +- 8 files changed, 23 insertions(+), 22 deletions(-) diff --git a/skyvern-frontend/src/routes/tasks/detail/ScrollableActionList.tsx b/skyvern-frontend/src/routes/tasks/detail/ScrollableActionList.tsx index bbce8219..ea80808b 100644 --- a/skyvern-frontend/src/routes/tasks/detail/ScrollableActionList.tsx +++ b/skyvern-frontend/src/routes/tasks/detail/ScrollableActionList.tsx @@ -96,7 +96,7 @@ function ScrollableActionList({ - Scripted Execution + Code Execution diff --git a/skyvern-frontend/src/routes/workflows/editor/WorkflowHeader.tsx b/skyvern-frontend/src/routes/workflows/editor/WorkflowHeader.tsx index 97be0ceb..cc7b225c 100644 --- a/skyvern-frontend/src/routes/workflows/editor/WorkflowHeader.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/WorkflowHeader.tsx @@ -181,7 +181,7 @@ function WorkflowHeader({ } onCacheKeyValuesKeydown(e); }} - placeholder="Script Key Value" + placeholder="Code Key Value" value={chosenCacheKeyValue ?? undefined} onBlur={(e) => { onCacheKeyValuesBlurred(e.target.value); diff --git a/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx b/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx index 485360af..84883232 100644 --- a/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx @@ -324,7 +324,7 @@ function Workspace({ onError: (error: AxiosError) => { toast({ variant: "destructive", - title: "Failed to delete cache key value", + title: "Failed to delete code key value", description: error.message, }); setToDeleteCacheKeyValue(null); @@ -534,15 +534,15 @@ function Workspace({ > - Delete A Script Key Value + Delete A Code Key Value
{deleteCacheKeyValue.isPending ? ( - "Deleting script key value..." + "Deleting code key value..." ) : (
- Are you sure you want to delete this script key value? + Are you sure you want to delete this code key value?
- {showScriptText ?? "Show Script"} + {showScriptText ?? "Show Code"} )} diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/StartNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/StartNode.tsx index 4597ba1e..48690445 100644 --- a/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/StartNode.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/StartNode.tsx @@ -159,7 +159,7 @@ function StartNode({ id, data }: NodeProps) {
@@ -218,8 +218,8 @@ function StartNode({ id, data }: NodeProps) {
- - + + ) { {inputs.useScriptCache && (
- + +
-

Cached Scripts

+

Code Cache

- Given your script key,{" "} + Given your code key,{" "} {scriptKey} - , search for scripts using a script key value. For this script key + , search for saved code using a code key value. For this code key there {totalCount === 1 ? "is" : "are"}{" "} - {totalCount}{" "} - script key {totalCount === 1 ? "value" : "values"} + {totalCount} code + key {totalCount === 1 ? "value" : "values"} {filteredCount !== totalCount && ( <> {" "} diff --git a/skyvern-frontend/src/routes/workflows/editor/utils.ts b/skyvern-frontend/src/routes/workflows/editor/utils.ts index a120b8e2..ed78925a 100644 --- a/skyvern-frontend/src/routes/workflows/editor/utils.ts +++ b/skyvern-frontend/src/routes/workflows/editor/utils.ts @@ -98,10 +98,10 @@ const getInitialParameters = (workflow: WorkflowApiResponse) => { }; /** - * Attempt to construct a valid cache key value from the workflow parameters. + * Attempt to construct a valid code key value from the workflow parameters. */ const constructCacheKeyValue = ( - cacheKey: string, + codeKey: string, workflow: WorkflowApiResponse, ) => { const workflowParameters = getInitialParameters(workflow) @@ -119,14 +119,14 @@ const constructCacheKeyValue = ( continue; } - cacheKey = cacheKey.replace(`{{${name}}}`, value.toString()); + codeKey = codeKey.replace(`{{${name}}}`, value.toString()); } - if (cacheKey.includes("{") || cacheKey.includes("}")) { + if (codeKey.includes("{") || codeKey.includes("}")) { return ""; } - return cacheKey; + return codeKey; }; export { constructCacheKeyValue, getInitialParameters }; diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx index 069abd90..b87ce720 100644 --- a/skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx +++ b/skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx @@ -66,7 +66,7 @@ function ActionCard({ action, onClick, active, index }: Props) {
- Scripted Execution + Code Execution