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

Add URL to action block #1292

Merged
merged 1 commit into from
Nov 29, 2024
Merged

Add URL to action block #1292

merged 1 commit into from
Nov 29, 2024

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Nov 29, 2024

Important

Adds an editable URL input field with a tooltip to ActionNode in ActionNode.tsx.

  • Behavior:
    • Adds a URL input field to ActionNode in ActionNode.tsx.
    • URL field is editable and updates node data via handleChange().
    • Tooltip added for URL field explaining its purpose.
  • UI:
    • Adds AutoResizingTextarea for URL input with placeholder from commonFieldPlaceholders.

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

…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Adds a URL input field to `ActionNode` in `ActionNode.tsx`, allowing users to specify a navigation URL with an explanatory tooltip.
>
>   - **Behavior**:
>     - Adds a URL input field to `ActionNode` in `ActionNode.tsx`.
>     - URL field is editable and updates node data via `handleChange()`.
>     - Tooltip added for URL field explaining its purpose.
>   - **UI**:
>     - Adds `AutoResizingTextarea` for URL input with placeholder from `commonFieldPlaceholders`.
>
> <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 b188fc9398adbd9bfe94da821dde96b2cf02811f. 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 562a947 in 27 seconds

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

Workflow ID: wflow_ZNCBg52MtMvp4zjk


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 562a947 in 1 minute and 27 seconds

More details
  • Looked at 80 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/nodes/ActionNode/ActionNode.tsx:99
  • Draft comment:
    Consider adding a type check for value in handleChange to ensure it matches the expected type for each key, preventing potential runtime errors.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The handleChange function is used multiple times to update state and node data. It is important to ensure that the editable check is consistently applied to prevent unintended updates when the node is not editable.

Workflow ID: wflow_jTl67OFc8dF0ekFU


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.

@@ -26,6 +26,8 @@ import {
commonHelpTooltipContent,
} from "../../constants";

const urlTooltip =
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider extracting this tooltip text to a shared constant since it's identical to the one in NavigationNode.

@msalihaltun msalihaltun merged commit 40571c0 into main Nov 29, 2024
2 checks passed
@msalihaltun msalihaltun deleted the salih/add-url-to-action-block branch November 29, 2024 13:58
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