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

render complete criterion in task block #1384

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Dec 13, 2024

Important

Add completeCriterion and terminateCriterion fields to TaskNode for enhanced task completion criteria handling.

  • Behavior:
    • Add completeCriterion and terminateCriterion fields to TaskNode in TaskNode.tsx.
    • Render completeCriterion input in TaskNode UI.
  • Data Handling:
    • Update TaskNodeData type in types.ts to include completeCriterion and terminateCriterion.
    • Modify convertToNode() and getWorkflowBlock() in workflowEditorUtils.ts to handle new fields.
  • YAML Conversion:
    • Update TaskBlockYAML type in workflowYamlTypes.ts to include completeCriterion and terminateCriterion.

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

…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Add `completeCriterion` and `terminateCriterion` fields to `TaskNode` for enhanced task completion criteria handling.
>
>   - **Behavior**:
>     - Add `completeCriterion` and `terminateCriterion` fields to `TaskNode` in `TaskNode.tsx`.
>     - Render `completeCriterion` input in `TaskNode` UI.
>   - **Data Handling**:
>     - Update `TaskNodeData` type in `types.ts` to include `completeCriterion` and `terminateCriterion`.
>     - Modify `convertToNode()` and `getWorkflowBlock()` in `workflowEditorUtils.ts` to handle new fields.
>   - **YAML Conversion**:
>     - Update `TaskBlockYAML` type in `workflowYamlTypes.ts` to include `completeCriterion` and `terminateCriterion`.
>
> <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 c2e67dce21e523632dd4fc381e5e01ad4999cc88. 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! Incremental review on 88ed706 in 28 seconds

More details
  • Looked at 154 lines of code in 7 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNode.tsx:225
  • Draft comment:
    The terminateCriterion field is added to the TaskNode data but is not rendered in the UI. Consider adding a UI element for terminateCriterion similar to completeCriterion.
  • Reason this comment was not posted:
    Comment was on unchanged code.

Workflow ID: wflow_OspaNs47prk7xNN5


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.

❌ Changes requested. Reviewed everything up to 88ed706 in 38 seconds

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

Workflow ID: wflow_Boa02hKJVtMJ0JAt


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.

@@ -51,6 +51,8 @@ function TaskNode({ id, data }: NodeProps<TaskNode>) {
url: data.url,
navigationGoal: data.navigationGoal,
dataExtractionGoal: data.dataExtractionGoal,
Copy link
Contributor

Choose a reason for hiding this comment

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

terminateCriterion is added to the TaskNode data but not rendered in the UI. Consider adding a UI element for it.

@msalihaltun msalihaltun merged commit 2d1a53f into main Dec 13, 2024
2 checks passed
@msalihaltun msalihaltun deleted the salih/render-complete-criterion-in-task-block branch December 13, 2024 14:09
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