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

Conversation

ykeremy
Copy link
Contributor

@ykeremy ykeremy commented Jul 11, 2024

🚀 This description was created by Ellipsis for commit 8152022

Summary:

Introduced a new 'Workflows' tab with routing, components, API integrations, pagination, loading states, and a FileUpload component with error handling using toast notifications.

Key points:

  • Introduced a new 'Workflows' tab with routing, components, API integrations, pagination, and loading states.
  • Added WorkflowsPageLayout, Workflows, and WorkflowPage components in skyvern-frontend/src/routes/workflows/.
  • Updated skyvern-frontend/cloud/router.tsx and skyvern-frontend/src/router.tsx to include new routes for workflows.
  • Modified skyvern-frontend/cloud/routes/root/SideNav.tsx to add a 'Workflows (Beta)' link.
  • Introduced FileUpload component in skyvern-frontend/src/components/FileUpload.tsx for handling file inputs with error handling using a toast notification.
  • Added Checkbox component in skyvern-frontend/src/components/ui/checkbox.tsx.
  • Updated skyvern-frontend/package.json to include @radix-ui/react-checkbox dependency.
  • Adjusted CSS variables in skyvern-frontend/cloud/index.css for better theming.
  • Enabled Sentry only in production in skyvern-frontend/cloud/index.tsx.
  • Added types for workflow parameters and responses in skyvern-frontend/src/api/types.ts.
  • Implemented pagination and loading states in skyvern-frontend/src/routes/workflows/WorkflowPage.tsx and skyvern-frontend/src/routes/workflows/Workflows.tsx.
  • Updated RunWorkflowForm in skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx to invalidate workflowRuns query on success.
  • Updated skyvern-frontend/src/routes/workflows/WorkflowRun.tsx to handle cases where a workflow run does not have any tasks.
  • Updated pyproject.toml to upgrade litellm to version 1.41.12.

Generated with ❤️ by ellipsis.dev

ykeremy added 3 commits July 11, 2024 09:59
<!-- ELLIPSIS_HIDDEN -->

| 🚀 | This description was created by [Ellipsis](https://www.ellipsis.dev) for commit d6fb3b10d334b87412cd692095b339b40e72f982  |
|--------|--------|

### Summary:
Introduced a new 'Workflows' tab with routing, components, API integrations, pagination, loading states, and added a `FileUpload` component with error handling using a toast notification.

**Key points**:
- Introduced a new 'Workflows' tab with routing, components, API integrations, pagination, and loading states.
- Added `WorkflowsPageLayout`, `Workflows`, and `WorkflowPage` components in `skyvern-frontend/src/routes/workflows/`.
- Updated `skyvern-frontend/cloud/router.tsx` and `skyvern-frontend/src/router.tsx` to include new routes for workflows.
- Modified `skyvern-frontend/cloud/routes/root/SideNav.tsx` to add a 'Workflows (Beta)' link.
- Introduced `FileUpload` component in `skyvern-frontend/src/components/FileUpload.tsx` for handling file inputs with error handling using a toast notification.
- Added `Checkbox` component in `skyvern-frontend/src/components/ui/checkbox.tsx`.
- Updated `skyvern-frontend/package.json` to include `@radix-ui/react-checkbox` dependency.
- Adjusted CSS variables in `skyvern-frontend/cloud/index.css` for better theming.
- Enabled Sentry only in production in `skyvern-frontend/cloud/index.tsx`.
- Added types for workflow parameters and responses in `skyvern-frontend/src/api/types.ts`.
- Implemented pagination and loading states in `skyvern-frontend/src/routes/workflows/WorkflowPage.tsx` and `skyvern-frontend/src/routes/workflows/Workflows.tsx`.
- Updated `RunWorkflowForm` in `skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx` to invalidate `workflowRuns` query on success.
- Updated `skyvern-frontend/src/routes/workflows/WorkflowRun.tsx` to handle cases where a workflow run does not have any tasks.

----
Generated with ❤️ by [ellipsis.dev](https://www.ellipsis.dev)

<!-- ELLIPSIS_HIDDEN -->
<!-- ELLIPSIS_HIDDEN -->

| 🚀 | This description was created by [Ellipsis](https://www.ellipsis.dev) for commit d6fb3b10d334b87412cd692095b339b40e72f982  |
|--------|--------|

### Summary:
Introduced a new 'Workflows' tab with routing, components, API integrations, pagination, loading states, and added a `FileUpload` component with error handling using a toast notification.

**Key points**:
- Introduced a new 'Workflows' tab with routing, components, API integrations, pagination, and loading states.
- Added `WorkflowsPageLayout`, `Workflows`, and `WorkflowPage` components in `skyvern-frontend/src/routes/workflows/`.
- Updated `skyvern-frontend/cloud/router.tsx` and `skyvern-frontend/src/router.tsx` to include new routes for workflows.
- Modified `skyvern-frontend/cloud/routes/root/SideNav.tsx` to add a 'Workflows (Beta)' link.
- Introduced `FileUpload` component in `skyvern-frontend/src/components/FileUpload.tsx` for handling file inputs with error handling using a toast notification.
- Added `Checkbox` component in `skyvern-frontend/src/components/ui/checkbox.tsx`.
- Updated `skyvern-frontend/package.json` to include `@radix-ui/react-checkbox` dependency.
- Adjusted CSS variables in `skyvern-frontend/cloud/index.css` for better theming.
- Enabled Sentry only in production in `skyvern-frontend/cloud/index.tsx`.
- Added types for workflow parameters and responses in `skyvern-frontend/src/api/types.ts`.
- Implemented pagination and loading states in `skyvern-frontend/src/routes/workflows/WorkflowPage.tsx` and `skyvern-frontend/src/routes/workflows/Workflows.tsx`.
- Updated `RunWorkflowForm` in `skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx` to invalidate `workflowRuns` query on success.
- Updated `skyvern-frontend/src/routes/workflows/WorkflowRun.tsx` to handle cases where a workflow run does not have any tasks.

----
Generated with ❤️ by [ellipsis.dev](https://www.ellipsis.dev)

<!-- ELLIPSIS_HIDDEN -->
…src/'

<!-- ELLIPSIS_HIDDEN -->

| 🚀 | This description was created by [Ellipsis](https://www.ellipsis.dev) for commit d6fb3b10d334b87412cd692095b339b40e72f982  |
|--------|--------|

### Summary:
Introduced a new 'Workflows' tab with routing, components, API integrations, pagination, loading states, and added a `FileUpload` component with error handling using a toast notification.

**Key points**:
- Introduced a new 'Workflows' tab with routing, components, API integrations, pagination, and loading states.
- Added `WorkflowsPageLayout`, `Workflows`, and `WorkflowPage` components in `skyvern-frontend/src/routes/workflows/`.
- Updated `skyvern-frontend/cloud/router.tsx` and `skyvern-frontend/src/router.tsx` to include new routes for workflows.
- Modified `skyvern-frontend/cloud/routes/root/SideNav.tsx` to add a 'Workflows (Beta)' link.
- Introduced `FileUpload` component in `skyvern-frontend/src/components/FileUpload.tsx` for handling file inputs with error handling using a toast notification.
- Added `Checkbox` component in `skyvern-frontend/src/components/ui/checkbox.tsx`.
- Updated `skyvern-frontend/package.json` to include `@radix-ui/react-checkbox` dependency.
- Adjusted CSS variables in `skyvern-frontend/cloud/index.css` for better theming.
- Enabled Sentry only in production in `skyvern-frontend/cloud/index.tsx`.
- Added types for workflow parameters and responses in `skyvern-frontend/src/api/types.ts`.
- Implemented pagination and loading states in `skyvern-frontend/src/routes/workflows/WorkflowPage.tsx` and `skyvern-frontend/src/routes/workflows/Workflows.tsx`.
- Updated `RunWorkflowForm` in `skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx` to invalidate `workflowRuns` query on success.
- Updated `skyvern-frontend/src/routes/workflows/WorkflowRun.tsx` to handle cases where a workflow run does not have any tasks.

----
Generated with ❤️ by [ellipsis.dev](https://www.ellipsis.dev)

<!-- ELLIPSIS_HIDDEN -->
@ykeremy ykeremy added the sync label Jul 11, 2024
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to b74f0d1 in 1 minute and 6 seconds

More details
  • Looked at 1421 lines of code in 18 files
  • Skipped 1 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_eTjWy8OiN0TaHW6H


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

import { useParams } from "react-router-dom";
import { RunWorkflowForm } from "./RunWorkflowForm";

function defaultValue(type: WorkflowParameterType) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider reviewing the default values returned by the defaultValue function for json and file_url types. It might be more appropriate to return an empty object {} or an empty string "" for json, depending on how these values are expected to be used or required by the backend.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on b74f0d1 in 1 minute and 7 seconds

More details
  • Looked at 1406 lines of code in 17 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx:19
  • Draft comment:
    Consider changing the default value for JSON type parameters from null to an empty object {} or an empty array [] to avoid potential issues in workflows expecting an object or array.
    case "json":
      return {};
  • Reason this comment was not posted:
    Confidence of 40% on close inspection, compared to threshold of 50%.

Workflow ID: wflow_hiMug0Ql5lj4BSAa


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on b1220b8 in 36 seconds

More details
  • Looked at 12 lines of code in 1 files
  • Skipped 1 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern-frontend/package.json:22
  • Draft comment:
    The addition of @radix-ui/react-checkbox is appropriate for the new Checkbox component functionality.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The PR description mentions the addition of the @radix-ui/react-checkbox dependency, which is confirmed by the diff showing its addition in the package.json. This is a standard procedure when new components or functionalities that depend on external libraries are introduced. The version specified (^1.1.1) should be compatible with other @radix-ui components used in the project, assuming they follow semantic versioning. This addition seems appropriate and necessary for the new Checkbox component mentioned in the PR description.

Workflow ID: wflow_yD0JsLR5O4bVPfML


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on 8152022 in 51 seconds

More details
  • Looked at 13 lines of code in 1 files
  • Skipped 1 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. pyproject.toml:22
  • Draft comment:
    The PR description mentions significant changes to the frontend, including new components and routes, but the diff provided only shows a backend dependency update. Please ensure that the correct files are included in the PR for a comprehensive review.
  • Reason this comment was not posted:
    Confidence of 0% on close inspection, compared to threshold of 50%.

Workflow ID: wflow_P0jfRtrgzxiRHapW


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@msalihaltun msalihaltun merged commit 6d97634 into main Jul 11, 2024
2 checks passed
@msalihaltun msalihaltun deleted the salih/workflows-tab branch July 11, 2024 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants