From 893177fce6ace33c3bb52ac725971ad4bc551829 Mon Sep 17 00:00:00 2001 From: Aaron Perez Date: Thu, 9 Apr 2026 20:08:55 -0500 Subject: [PATCH] [NO-TICKET] Bump + test deps (#5443) Co-authored-by: Shuchang Zheng Co-authored-by: Claude Opus 4.6 (1M context) --- skyvern-frontend/package-lock.json | 9 +++++---- skyvern-frontend/package.json | 2 +- .../src/components/BrowserStream.tsx | 2 +- .../src/components/FloatingWindow.tsx | 2 +- .../src/components/ModelSelector.tsx | 2 +- .../src/components/TriggerTypeFilterDropdown.tsx | 4 ++-- skyvern-frontend/src/components/ui/badge.tsx | 3 ++- skyvern-frontend/src/components/ui/button.tsx | 3 ++- skyvern-frontend/src/components/ui/input.tsx | 3 +-- .../src/components/ui/multi-select.tsx | 3 ++- skyvern-frontend/src/components/ui/textarea.tsx | 3 +-- .../src/hooks/useLocalStorageFormDefault.ts | 2 +- .../src/routes/history/RunHistory.tsx | 2 +- .../src/routes/tasks/detail/TaskParameters.tsx | 4 ++-- .../src/routes/workflows/WorkflowPage.tsx | 2 +- .../src/routes/workflows/Workflows.tsx | 2 +- .../routes/workflows/components/BlockOutputs.tsx | 4 ++-- .../workflows/copilot/WorkflowCopilotChat.tsx | 2 +- .../src/routes/workflows/editor/Workspace.tsx | 2 +- .../nodes/ConditionalNode/ConditionalNode.tsx | 4 ++-- .../editor/nodes/ConditionalNode/types.ts | 2 +- .../LoginNode/LoginBlockCredentialSelector.tsx | 6 ++++-- .../editor/nodes/StartNode/StartNode.tsx | 2 +- .../editor/panels/WorkflowParameterEditPanel.tsx | 8 ++++---- .../src/routes/workflows/editor/utils.ts | 2 +- .../workflows/editor/workflowEditorUtils.ts | 14 +++++++------- .../hooks/useBrowserSessionRateLimit.ts | 2 +- .../routes/workflows/workflowRun/ActionCard.tsx | 2 +- .../workflowRun/RunParametersDialog.tsx | 4 ++-- .../workflowRun/WorkflowPostRunParameters.tsx | 16 ++++++++-------- .../workflows/workflowRun/WorkflowRunCode.tsx | 4 ++-- .../workflows/workflowRun/WorkflowRunOutput.tsx | 2 +- .../workflowRun/WorkflowRunTimelineBlockItem.tsx | 4 +++- .../WorkflowRunTimelineItemInfoSection.tsx | 4 ++-- .../src/store/WorkflowHasChangesStore.ts | 4 ++-- 35 files changed, 71 insertions(+), 65 deletions(-) diff --git a/skyvern-frontend/package-lock.json b/skyvern-frontend/package-lock.json index 29aa240cb..b209763d1 100644 --- a/skyvern-frontend/package-lock.json +++ b/skyvern-frontend/package-lock.json @@ -85,7 +85,7 @@ "eslint-plugin-react-refresh": "^0.4.5", "lint-staged": "^15.5.2", "postcss": "^8.4.37", - "prettier": "^3.2.5", + "prettier": "^3.8.1", "prettier-plugin-tailwindcss": "^0.6.5", "tailwindcss": "^3.4.17", "typescript": "^5.5.3", @@ -7640,10 +7640,11 @@ } }, "node_modules/prettier": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", - "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.1.tgz", + "integrity": "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==", "dev": true, + "license": "MIT", "bin": { "prettier": "bin/prettier.cjs" }, diff --git a/skyvern-frontend/package.json b/skyvern-frontend/package.json index cd95ebf1d..5022123b5 100644 --- a/skyvern-frontend/package.json +++ b/skyvern-frontend/package.json @@ -96,7 +96,7 @@ "eslint-plugin-react-refresh": "^0.4.5", "lint-staged": "^15.5.2", "postcss": "^8.4.37", - "prettier": "^3.2.5", + "prettier": "^3.8.1", "prettier-plugin-tailwindcss": "^0.6.5", "tailwindcss": "^3.4.17", "typescript": "^5.5.3", diff --git a/skyvern-frontend/src/components/BrowserStream.tsx b/skyvern-frontend/src/components/BrowserStream.tsx index 8da472678..64e915dec 100644 --- a/skyvern-frontend/src/components/BrowserStream.tsx +++ b/skyvern-frontend/src/components/BrowserStream.tsx @@ -239,7 +239,7 @@ function BrowserStream({ useEffect(() => { settingsStore.setIsUsingABrowser(isReady); settingsStore.setBrowserSessionId( - isReady ? browserSessionId ?? null : null, + isReady ? (browserSessionId ?? null) : null, ); // eslint-disable-next-line react-hooks/exhaustive-deps }, [isReady, browserSessionId]); diff --git a/skyvern-frontend/src/components/FloatingWindow.tsx b/skyvern-frontend/src/components/FloatingWindow.tsx index 3cf256a18..042c5b0f7 100644 --- a/skyvern-frontend/src/components/FloatingWindow.tsx +++ b/skyvern-frontend/src/components/FloatingWindow.tsx @@ -566,7 +566,7 @@ function FloatingWindow({ onStart={() => setIsDragging(true)} onDrag={(_, data) => onDrag(data)} onStop={() => setIsDragging(false)} - bounds={bounded ?? true ? "parent" : undefined} + bounds={(bounded ?? true) ? "parent" : undefined} disabled={isResizing} > i.value === values[0])?.label ?? - "All Runs" + ? (triggerTypeDropdownItems.find((i) => i.value === values[0])?.label ?? + "All Runs") : `${values.length} types`; return ( diff --git a/skyvern-frontend/src/components/ui/badge.tsx b/skyvern-frontend/src/components/ui/badge.tsx index a62720750..6521b28eb 100644 --- a/skyvern-frontend/src/components/ui/badge.tsx +++ b/skyvern-frontend/src/components/ui/badge.tsx @@ -5,7 +5,8 @@ import { cn } from "@/util/utils"; import { badgeVariants } from "./badge-variants"; export interface BadgeProps - extends React.HTMLAttributes, + extends + React.HTMLAttributes, VariantProps {} function Badge({ className, variant, ...props }: BadgeProps) { diff --git a/skyvern-frontend/src/components/ui/button.tsx b/skyvern-frontend/src/components/ui/button.tsx index 824394b49..fd32dbdc2 100644 --- a/skyvern-frontend/src/components/ui/button.tsx +++ b/skyvern-frontend/src/components/ui/button.tsx @@ -6,7 +6,8 @@ import { cn } from "@/util/utils"; import { buttonVariants } from "./button-variants"; export interface ButtonProps - extends React.ButtonHTMLAttributes, + extends + React.ButtonHTMLAttributes, VariantProps { asChild?: boolean; } diff --git a/skyvern-frontend/src/components/ui/input.tsx b/skyvern-frontend/src/components/ui/input.tsx index 76c9c30f4..2bbee3d59 100644 --- a/skyvern-frontend/src/components/ui/input.tsx +++ b/skyvern-frontend/src/components/ui/input.tsx @@ -2,8 +2,7 @@ import * as React from "react"; import { cn } from "@/util/utils"; -export interface InputProps - extends React.InputHTMLAttributes {} +export interface InputProps extends React.InputHTMLAttributes {} const Input = React.forwardRef( ({ className, type, ...props }, ref) => { diff --git a/skyvern-frontend/src/components/ui/multi-select.tsx b/skyvern-frontend/src/components/ui/multi-select.tsx index d5aa43c49..f22c961eb 100644 --- a/skyvern-frontend/src/components/ui/multi-select.tsx +++ b/skyvern-frontend/src/components/ui/multi-select.tsx @@ -51,7 +51,8 @@ const multiSelectVariants = cva("m-1", { * Props for MultiSelect component */ interface MultiSelectProps - extends React.ButtonHTMLAttributes, + extends + React.ButtonHTMLAttributes, VariantProps { /** * An array of option objects to be displayed in the multi-select component. diff --git a/skyvern-frontend/src/components/ui/textarea.tsx b/skyvern-frontend/src/components/ui/textarea.tsx index 568256b3c..345010463 100644 --- a/skyvern-frontend/src/components/ui/textarea.tsx +++ b/skyvern-frontend/src/components/ui/textarea.tsx @@ -2,8 +2,7 @@ import * as React from "react"; import { cn } from "@/util/utils"; -export interface TextareaProps - extends React.TextareaHTMLAttributes {} +export interface TextareaProps extends React.TextareaHTMLAttributes {} const Textarea = React.forwardRef( ({ className, ...props }, ref) => { diff --git a/skyvern-frontend/src/hooks/useLocalStorageFormDefault.ts b/skyvern-frontend/src/hooks/useLocalStorageFormDefault.ts index 131b35f59..cfb54d03d 100644 --- a/skyvern-frontend/src/hooks/useLocalStorageFormDefault.ts +++ b/skyvern-frontend/src/hooks/useLocalStorageFormDefault.ts @@ -15,6 +15,6 @@ export function useLocalStorageFormDefault( return useMemo(() => { if (typeof window === "undefined") return fallback ?? null; const value = localStorage.getItem(storageKey); - return value !== null ? value : fallback ?? null; + return value !== null ? value : (fallback ?? null); }, [storageKey, fallback]); } diff --git a/skyvern-frontend/src/routes/history/RunHistory.tsx b/skyvern-frontend/src/routes/history/RunHistory.tsx index 43217c24e..5fe574e92 100644 --- a/skyvern-frontend/src/routes/history/RunHistory.tsx +++ b/skyvern-frontend/src/routes/history/RunHistory.tsx @@ -193,7 +193,7 @@ function RunHistory() { {run.title ?? ""} ) : ( - run.title ?? "" + (run.title ?? "") ); return ( diff --git a/skyvern-frontend/src/routes/tasks/detail/TaskParameters.tsx b/skyvern-frontend/src/routes/tasks/detail/TaskParameters.tsx index 811919f3e..81d69b64d 100644 --- a/skyvern-frontend/src/routes/tasks/detail/TaskParameters.tsx +++ b/skyvern-frontend/src/routes/tasks/detail/TaskParameters.tsx @@ -74,7 +74,7 @@ function TaskParameters() { value={ typeof task.request.navigation_payload === "object" ? JSON.stringify(task.request.navigation_payload, null, 2) - : task.request.navigation_payload ?? "" + : (task.request.navigation_payload ?? "") } readOnly minHeight="96px" @@ -110,7 +110,7 @@ function TaskParameters() { null, 2, ) - : task.request.extracted_information_schema ?? "" + : (task.request.extracted_information_schema ?? "") } readOnly minHeight="96px" diff --git a/skyvern-frontend/src/routes/workflows/WorkflowPage.tsx b/skyvern-frontend/src/routes/workflows/WorkflowPage.tsx index 66453d5ad..318cf7611 100644 --- a/skyvern-frontend/src/routes/workflows/WorkflowPage.tsx +++ b/skyvern-frontend/src/routes/workflows/WorkflowPage.tsx @@ -225,7 +225,7 @@ function WorkflowPage() { {workflowRun.workflow_run_id ?? ""} ) : ( - workflowRun.workflow_run_id ?? "" + (workflowRun.workflow_run_id ?? "") ); const isExpanded = expandedRows.has( diff --git a/skyvern-frontend/src/routes/workflows/Workflows.tsx b/skyvern-frontend/src/routes/workflows/Workflows.tsx index 1ebf73e6f..e9436e617 100644 --- a/skyvern-frontend/src/routes/workflows/Workflows.tsx +++ b/skyvern-frontend/src/routes/workflows/Workflows.tsx @@ -602,7 +602,7 @@ function Workflows() { key: param.key, value: param.parameter_type === "workflow" - ? param.default_value ?? "" + ? (param.default_value ?? "") : "", description: param.description ?? null, })); diff --git a/skyvern-frontend/src/routes/workflows/components/BlockOutputs.tsx b/skyvern-frontend/src/routes/workflows/components/BlockOutputs.tsx index 9334cc2cc..27c2c7b48 100644 --- a/skyvern-frontend/src/routes/workflows/components/BlockOutputs.tsx +++ b/skyvern-frontend/src/routes/workflows/components/BlockOutputs.tsx @@ -31,7 +31,7 @@ function BlockOutputs({ const [overrideHasError, setOverrideHasError] = useState(false); const useOverride = useBlockOutputStore((state) => workflowPermanentId - ? state.useOverrides[workflowPermanentId]?.[blockLabel] ?? false + ? (state.useOverrides[workflowPermanentId]?.[blockLabel] ?? false) : false, ); @@ -158,7 +158,7 @@ function BlockOutputs({ fullHeight onChange={(value) => { try { - JSON.parse(value), setOverrideHasError(false); + (JSON.parse(value), setOverrideHasError(false)); } catch { setOverrideHasError(true); return; diff --git a/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsx b/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsx index c4bcc1a0f..4bf6873a3 100644 --- a/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsx +++ b/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsx @@ -456,7 +456,7 @@ export function WorkflowCopilotChat({ ai_fallback: saveData.settings.aiFallback ?? true, code_version: saveData.settings.runWith === "code" - ? saveData.settings.codeVersion ?? 2 + ? (saveData.settings.codeVersion ?? 2) : undefined, workflow_definition: { version: saveData.workflowDefinitionVersion, diff --git a/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx b/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx index a0d590b3a..ad59cc996 100644 --- a/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx @@ -1981,7 +1981,7 @@ function Workspace({ adaptive_caching: false, code_version: saveData.settings.runWith === "code" - ? saveData.settings.codeVersion ?? 2 + ? (saveData.settings.codeVersion ?? 2) : null, run_sequentially: saveData.settings.runSequentially, sequential_key: saveData.settings.sequentialKey, diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/ConditionalNode/ConditionalNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/ConditionalNode/ConditionalNode.tsx index 78e890682..ddb0c2ac8 100644 --- a/skyvern-frontend/src/routes/workflows/editor/nodes/ConditionalNode/ConditionalNode.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/nodes/ConditionalNode/ConditionalNode.tsx @@ -408,7 +408,7 @@ function ConditionalNodeComponent({ id, data }: NodeProps) { // If the deleted branch was active, switch to the first branch const newActiveBranchId = data.activeBranchId === branchId - ? updatedBranches[0]?.id ?? null + ? (updatedBranches[0]?.id ?? null) : data.activeBranchId; update({ @@ -789,7 +789,7 @@ function ConditionalNodeComponent({ id, data }: NodeProps) { value={ activeBranch.is_default ? "Executed when no other condition matches" - : activeBranch.criteria?.expression ?? "" + : (activeBranch.criteria?.expression ?? "") } disabled={!data.editable || activeBranch.is_default} onChange={(value) => { diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/ConditionalNode/types.ts b/skyvern-frontend/src/routes/workflows/editor/nodes/ConditionalNode/types.ts index a97148462..2fe00ef59 100644 --- a/skyvern-frontend/src/routes/workflows/editor/nodes/ConditionalNode/types.ts +++ b/skyvern-frontend/src/routes/workflows/editor/nodes/ConditionalNode/types.ts @@ -29,7 +29,7 @@ export function createBranchCondition( return { id: overrides.id ?? nanoid(), criteria: - overrides.is_default ?? false + (overrides.is_default ?? false) ? null : overrides.criteria ? { diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginBlockCredentialSelector.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginBlockCredentialSelector.tsx index c7b54f289..97839dc3f 100644 --- a/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginBlockCredentialSelector.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginBlockCredentialSelector.tsx @@ -140,7 +140,7 @@ function LoginBlockCredentialSelector({ totpIdentifier: credential.credential_type === "password" && "totp_identifier" in credential.credential - ? credential.credential.totp_identifier ?? null + ? (credential.credential.totp_identifier ?? null) : null, })); @@ -171,7 +171,9 @@ function LoginBlockCredentialSelector({ <> ) : null} - {workflowRun.run_with ?? workflow?.run_with ? ( + {(workflowRun.run_with ?? workflow?.run_with) ? (

Run With

diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunCode.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunCode.tsx index 269c0795d..d898063f4 100644 --- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunCode.tsx +++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunCode.tsx @@ -294,10 +294,10 @@ function WorkflowRunCode(props?: Props) { // "Used" = the version that existed before this run created new ones, // OR the currentVersion if the run didn't generate anything (just used cache) const usedVersion = didGenerate - ? versions.find( + ? (versions.find( (v) => v.version < earliestGeneratedVersion! && v.run_id !== workflowRunId, - )?.version ?? null + )?.version ?? null) : currentVersion; // Edit button shown when not in edit mode and there's a script to edit diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx index 6dce7f0d5..f1bd45212 100644 --- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx +++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx @@ -86,7 +86,7 @@ function WorkflowRunOutput() { value={ activeBlock.status === "canceled" ? "This block was cancelled" - : activeBlock.failure_reason ?? "" + : (activeBlock.failure_reason ?? "") } readOnly /> diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineBlockItem.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineBlockItem.tsx index 9afdd0b46..9de92e7ed 100644 --- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineBlockItem.tsx +++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineBlockItem.tsx @@ -666,7 +666,9 @@ function WorkflowRunTimelineBlockItem({
{loopIterationGroups.map((group, groupIndex) => { const loopValueFromIterable = - group.index !== null ? loopValues[group.index] ?? null : null; + group.index !== null + ? (loopValues[group.index] ?? null) + : null; const iterationNumber = group.index !== null ? group.index + 1 : groupIndex + 1; const currentValuePreview = truncateValue( diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineItemInfoSection.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineItemInfoSection.tsx index c0747e5bb..bba1ce66d 100644 --- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineItemInfoSection.tsx +++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineItemInfoSection.tsx @@ -124,7 +124,7 @@ function WorkflowRunTimelineItemInfoSection({ activeItem }: Props) { value={ item.status === "canceled" ? "This block was cancelled" - : item.failure_reason ?? "" + : (item.failure_reason ?? "") } readOnly /> @@ -232,7 +232,7 @@ function WorkflowRunTimelineItemInfoSection({ activeItem }: Props) { value={ item.status === "canceled" ? "This block was cancelled" - : item.failure_reason ?? "" + : (item.failure_reason ?? "") } readOnly /> diff --git a/skyvern-frontend/src/store/WorkflowHasChangesStore.ts b/skyvern-frontend/src/store/WorkflowHasChangesStore.ts index 29ff8f602..d67f6f4d1 100644 --- a/skyvern-frontend/src/store/WorkflowHasChangesStore.ts +++ b/skyvern-frontend/src/store/WorkflowHasChangesStore.ts @@ -157,7 +157,7 @@ const useWorkflowSave = (opts?: WorkflowSaveOpts) => { ai_fallback: saveData.settings.aiFallback ?? true, code_version: saveData.settings.runWith === "code" - ? saveData.settings.codeVersion ?? 2 + ? (saveData.settings.codeVersion ?? 2) : undefined, workflow_definition: { version: saveData.workflowDefinitionVersion, @@ -255,7 +255,7 @@ const useWorkflowSave = (opts?: WorkflowSaveOpts) => { const loc = err.loc ?.filter((part) => part !== "body" && part !== "__root__") .join(" -> "); - return loc ? `${loc}: ${err.msg}` : err.msg ?? "Unknown error"; + return loc ? `${loc}: ${err.msg}` : (err.msg ?? "Unknown error"); }) .join("; "); } else {