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

Use free input for loop value parameter #1483

Merged
merged 1 commit into from
Jan 4, 2025

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Jan 4, 2025

Important

Replaces dropdown with free input for loop value in LoopNode.tsx and updates error handling in workflowEditorUtils.ts.

  • Behavior:
    • Replace dropdown with WorkflowBlockInput for loopValue in LoopNode.tsx.
    • Update error message in getWorkflowErrors() to "Loop value parameter is required."
  • UI Components:
    • Remove Select, SelectContent, SelectItem, SelectTrigger, SelectValue imports from LoopNode.tsx.
  • Error Handling:
    • Update error message for empty loop nodes in getWorkflowErrors() in workflowEditorUtils.ts.

This description was created by Ellipsis for 3b6c730. It will automatically update as commits are pushed.

…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Replaces dropdown with free input for loop value in `LoopNode.tsx` and updates error handling in `workflowEditorUtils.ts`.
>
>   - **Behavior**:
>     - Replaces dropdown with `WorkflowBlockInput` for `loopValue` in `LoopNode.tsx`.
>     - Updates error message in `getWorkflowErrors()` to "Loop value parameter is required."
>   - **UI Components**:
>     - Removes `Select`, `SelectContent`, `SelectItem`, `SelectTrigger`, `SelectValue` imports from `LoopNode.tsx`.
>   - **Error Handling**:
>     - Updates error message for empty loop nodes in `getWorkflowErrors()` in `workflowEditorUtils.ts`.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral)<sup> for b6ec8becfa53265a648b4cc02d0f29c3ffed5fcb. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
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! Reviewed everything up to 3b6c730 in 10 seconds

More details
  • Looked at 104 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts:1691
  • Draft comment:
    The error message for empty loop nodes has been updated to 'Loop value parameter is required.' This aligns with the PR description and is a valid change.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The PR description mentions updating the error message for empty loop nodes. The change in the code reflects this update, changing the message from 'Loop value parameter must be selected.' to 'Loop value parameter is required.' This aligns with the PR description and is a valid change.

Workflow ID: wflow_QwnjrA5NszbCmq65


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 3b6c730 in 21 seconds

More details
  • Looked at 104 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/nodes/LoopNode/LoopNode.tsx:12
  • Draft comment:
    Remove unused import useEdges.
  • Reason this comment was not posted:
    Comment looked like it was already resolved.

Workflow ID: wflow_EXr1Ch9xJh0YfWnN


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

@msalihaltun msalihaltun merged commit 1d49dad into main Jan 4, 2025
2 checks passed
@msalihaltun msalihaltun deleted the salih/free-input-for-loop-block branch January 4, 2025 10:54
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