-
Notifications
You must be signed in to change notification settings - Fork 836
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
Frontend for complete if empty #1676
Conversation
…src/' <!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Adds `completeIfEmpty` feature to LoopNode, allowing it to complete if loop value is empty, with UI and data model updates. > > - **Behavior**: > - Adds a `Checkbox` in `LoopNode.tsx` to toggle `completeIfEmpty` for LoopNode. > - Updates `LoopNodeData` in `types.ts` to include `completeIfEmpty` boolean. > - Modifies `convertToNode()` and `getWorkflowBlocksUtil()` in `workflowEditorUtils.ts` to handle `completeIfEmpty`. > - **Data Models**: > - Adds `completeIfEmpty` to `ForLoopBlock` in `workflowTypes.ts`. > - Updates `ForLoopBlockYAML` in `workflowYamlTypes.ts` to include `complete_if_empty`. > > <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 9b52913061d2f101b0a74451338bf6340aa66552. 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! Reviewed everything up to 2c9b855 in 15 seconds
More details
- Looked at
121
lines of code in5
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts:147
- Draft comment:
Verify the change in margin from 200 to 225 to ensure it doesn't cause layout issues. - Reason this comment was not posted:
Confidence changes required:50%
The margin change from 200 to 225 in the layout function might affect the overall layout of the nodes. This change should be verified to ensure it doesn't cause any unintended layout issues.
Workflow ID: wflow_8aeFvCYrqRLLPrhw
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.
👍 Looks good to me! Incremental review on 2c9b855 in 20 seconds
More details
- Looked at
121
lines of code in5
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts:1633
- Draft comment:
Ensure 'complete_if_empty' is set to a default value in case it's undefined to prevent potential issues during YAML conversion. - Reason this comment was not posted:
Confidence changes required:50%
The PR introduces a new feature 'Complete if Empty' for LoopNode, which is reflected in the UI and data structures. The changes are consistent across the codebase, ensuring that the new feature is integrated into the existing workflow system. However, there is a minor issue with the default value of 'complete_if_empty' in the YAML conversion function.
Workflow ID: wflow_gagyOrXjDRBMqJ49
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Important
Adds a feature to LoopNode allowing completion if loop value is empty, with UI, data model, and workflow logic updates.
Checkbox
inLoopNode.tsx
to togglecompleteIfEmpty
for loop nodes.LoopNodeData
intypes.ts
to includecompleteIfEmpty
boolean.convertToNode()
andgetWorkflowBlocksUtil()
inworkflowEditorUtils.ts
to handlecompleteIfEmpty
.complete_if_empty
toForLoopBlock
inworkflowTypes.ts
andForLoopBlockYAML
inworkflowYamlTypes.ts
.marginy
inlayout()
inworkflowEditorUtils.ts
from 200 to 225.This description was created by for 2c9b855. It will automatically update as commits are pushed.