From 2c3e285b7bfe16f18c9f36ddbf0da0dd873bd131 Mon Sep 17 00:00:00 2001 From: Kerem Yilmaz Date: Wed, 11 Sep 2024 11:04:43 -0700 Subject: [PATCH] Show message that workflows feature is experimental (#812) --- .../src/routes/workflows/Workflows.tsx | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/skyvern-frontend/src/routes/workflows/Workflows.tsx b/skyvern-frontend/src/routes/workflows/Workflows.tsx index 79b459be..a24489d1 100644 --- a/skyvern-frontend/src/routes/workflows/Workflows.tsx +++ b/skyvern-frontend/src/routes/workflows/Workflows.tsx @@ -28,6 +28,7 @@ import { useCredentialGetter } from "@/hooks/useCredentialGetter"; import { basicTimeFormat } from "@/util/timeFormat"; import { cn } from "@/util/utils"; import { + ExclamationTriangleIcon, Pencil2Icon, PlayIcon, PlusIcon, @@ -39,6 +40,7 @@ import { stringify as convertToYAML } from "yaml"; import { DeleteWorkflowButton } from "./editor/DeleteWorkflowButton"; import { WorkflowCreateYAMLRequest } from "./types/workflowYamlTypes"; import { WorkflowTitle } from "./WorkflowTitle"; +import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; const emptyWorkflowRequest: WorkflowCreateYAMLRequest = { title: "New Workflow", @@ -143,8 +145,37 @@ function Workflows() { navigate(path); } + const showExperimentalMessage = + workflows?.length === 0 && workflowsPage === 1; + return (
+ {showExperimentalMessage && ( + + +
+ + Experimental Feature +
+
+ + Workflows are still in experimental mode. Please{" "} + { + + book a demo + + }{" "} + if you'd like to learn more. If you're feeling adventurous, create + your first workflow! + +
+ )} +

Workflows