Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement workflows tab, workflow runs view, ability to run workflows from UI #582

Merged
merged 5 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ python-multipart = "^0.0.6"
toml = "^0.10.2"
jinja2 = "^3.1.2"
uvicorn = {extras = ["standard"], version = "^0.24.0.post1"}
litellm = "1.41.12"
litellm = "1.35.35"
duckduckgo-search = "^3.8.0"
selenium = "^4.13.0"
bs4 = "^0.0.1"
Expand Down
201 changes: 201 additions & 0 deletions skyvern-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions skyvern-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@hookform/resolvers": "^3.3.4",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-aspect-ratio": "^1.0.3",
"@radix-ui/react-checkbox": "^1.1.1",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-icons": "^1.3.0",
Expand Down
40 changes: 39 additions & 1 deletion skyvern-frontend/src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,21 @@ export type ApiKeyApiResponse = {
valid: boolean;
};

export const WorkflowParameterType = {
String: "string",
Integer: "integer",
Float: "float",
Boolean: "boolean",
JSON: "json",
FileURL: "file_url",
} as const;

export type WorkflowParameterType =
(typeof WorkflowParameterType)[keyof typeof WorkflowParameterType];

export type WorkflowParameter = {
workflow_parameter_id: string;
workflow_parameter_type?: string;
workflow_parameter_type: WorkflowParameterType;
key: string;
description: string | null;
workflow_id: string;
Expand Down Expand Up @@ -144,6 +156,7 @@ export type WorkflowBlock = {
export type WorkflowApiResponse = {
workflow_id: string;
organization_id: string;
is_saved_task: boolean;
title: string;
workflow_permanent_id: string;
version: number;
Expand Down Expand Up @@ -204,3 +217,28 @@ export type Action = {
stepId: string;
index: number;
};

export type WorkflowRunApiResponse = {
workflow_permanent_id: string;
workflow_run_id: string;
workflow_id: string;
status: Status;
proxy_location: string;
webhook_callback_url: string;
created_at: string;
modified_at: string;
};

export type WorkflowRunStatusApiResponse = {
workflow_id: string;
workflow_run_id: string;
status: Status;
proxy_location: string;
webhook_callback_url: string | null;
created_at: string;
modified_at: string;
parameters: Record<string, unknown>;
screenshot_urls: Array<string> | null;
recording_url: string | null;
outputs: Record<string, unknown> | null;
};
Loading
Loading