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

Frontend for complete if empty #1676

Merged
merged 1 commit into from
Jan 29, 2025
Merged

Frontend for complete if empty #1676

merged 1 commit into from
Jan 29, 2025

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Jan 29, 2025

Important

Adds a feature to LoopNode allowing completion if loop value is empty, with UI, data model, and workflow logic updates.

  • Behavior:
    • Adds a Checkbox in LoopNode.tsx to toggle completeIfEmpty for loop nodes.
    • Updates LoopNodeData in types.ts to include completeIfEmpty boolean.
    • Modifies convertToNode() and getWorkflowBlocksUtil() in workflowEditorUtils.ts to handle completeIfEmpty.
  • Data Models:
    • Adds complete_if_empty to ForLoopBlock in workflowTypes.ts and ForLoopBlockYAML in workflowYamlTypes.ts.
  • Layout:
    • Adjusts marginy in layout() in workflowEditorUtils.ts from 200 to 225.

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

…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 -->
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 2c9b855 in 15 seconds

More details
  • Looked at 121 lines of code in 5 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.

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 2c9b855 in 20 seconds

More details
  • Looked at 121 lines of code in 5 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.

@msalihaltun msalihaltun merged commit 04e2a2b into main Jan 29, 2025
7 checks passed
@msalihaltun msalihaltun deleted the salih/complete-if-empty branch January 29, 2025 20:57
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