-
Notifications
You must be signed in to change notification settings - Fork 777
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
render complete criterion in task block #1384
Conversation
…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 -->
There was a problem hiding this 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 in7
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:
TheterminateCriterion
field is added to theTaskNode
data but is not rendered in the UI. Consider adding a UI element forterminateCriterion
similar tocompleteCriterion
. - 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.
There was a problem hiding this 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 in7
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, |
There was a problem hiding this comment.
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.
Important
Add
completeCriterion
andterminateCriterion
fields toTaskNode
for enhanced task completion criteria handling.completeCriterion
andterminateCriterion
fields toTaskNode
inTaskNode.tsx
.completeCriterion
input inTaskNode
UI.TaskNodeData
type intypes.ts
to includecompleteCriterion
andterminateCriterion
.convertToNode()
andgetWorkflowBlock()
inworkflowEditorUtils.ts
to handle new fields.TaskBlockYAML
type inworkflowYamlTypes.ts
to includecompleteCriterion
andterminateCriterion
.This description was created by for 88ed706. It will automatically update as commits are pushed.