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

Fix tooltip weird behavior in editable titles #1268

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Nov 26, 2024

Important

Refactor EditableNodeTitle to fix tooltip behavior by separating editing and non-editing rendering logic.

  • Behavior:
    • Refactor EditableNodeTitle in EditableNodeTitle.tsx to separate rendering logic for editing and non-editing states.
    • Tooltip is only rendered when editing is false, fixing weird behavior during title editing.
  • Components:
    • Uses TooltipProvider, Tooltip, TooltipTrigger, and TooltipContent for non-editing state.
    • Uses HorizontallyResizingInput for editing state.

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

…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Refactor `EditableNodeTitle` to fix tooltip behavior by separating editing and non-editing rendering logic.
>
>   - **Behavior**:
>     - Refactor `EditableNodeTitle` in `EditableNodeTitle.tsx` to separate rendering logic for editing and non-editing states.
>     - Tooltip is only rendered when `editing` is `false`, fixing weird behavior during title editing.
>   - **Components**:
>     - Uses `TooltipProvider`, `Tooltip`, `TooltipTrigger`, and `TooltipContent` for non-editing state.
>     - Uses `HorizontallyResizingInput` for editing state.
>
> <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 1d0a5fb8b2b4d5bafb206b639ba253e901a47ded. 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 7101faa in 23 seconds

More details
  • Looked at 100 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/components/EditableNodeTitle.tsx:28
  • Draft comment:
    The refactoring separates the editing and non-editing states, which is a good practice for clarity and maintainability. However, the TooltipProvider and Tooltip components are not necessary when editing is true, and the current implementation correctly avoids rendering them in that state.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The refactoring separates the editing and non-editing states, which is a good practice for clarity and maintainability. However, the TooltipProvider and Tooltip components are not necessary when editing is true, and the current implementation correctly avoids rendering them in that state.

Workflow ID: wflow_7Fb3VJe3FxSRoEnH


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! Reviewed everything up to 7101faa in 28 seconds

More details
  • Looked at 100 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/nodes/components/EditableNodeTitle.tsx:28
  • Draft comment:
    Good separation of editing and non-editing states for clarity and maintainability.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The refactoring separates the editing and non-editing states, which is a good practice for clarity and maintainability.
2. skyvern-frontend/src/routes/workflows/editor/nodes/components/EditableNodeTitle.tsx:54
  • Draft comment:
    Ensure that the onBlur and onKeyDown handlers are efficient and correctly handle all edge cases.
  • Reason this comment was not posted:
    Confidence changes required: 33%
    The onBlur and onKeyDown handlers are well-implemented, but it's important to ensure that the logic is correct and efficient.

Workflow ID: wflow_J2ZR1VulBq99O1TF


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@msalihaltun msalihaltun merged commit 80f2d5a into main Nov 26, 2024
2 checks passed
@msalihaltun msalihaltun deleted the salih/fix-weird-tooltip-behavior branch November 26, 2024 16:49
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