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

Avoid overflow in running workflow sidebar #1183

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Nov 13, 2024

Important

Prevent text overflow in WorkflowRun.tsx sidebar by adding min-w-0 and truncate attributes.

  • UI Improvements:
    • Add min-w-0 to the sidebar div in WorkflowRun.tsx to prevent overflow.
    • Add truncate and title attributes to span elements displaying currentRunningTask.request.url and currentRunningTask.created_at to handle text overflow.

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

…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Prevent overflow in `WorkflowRun.tsx` sidebar by adding `min-w-0` and `truncate` attributes.
>
>   - **UI Improvements**:
>     - Add `min-w-0` to the sidebar `div` in `WorkflowRun.tsx` to prevent overflow.
>     - Add `truncate` and `title` attributes to `span` elements displaying `currentRunningTask.request.url` and `currentRunningTask.created_at` to handle text overflow.
>
> <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 fe872ad10320a441be8396f976c534beff1b8c83. 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 ef118a5 in 12 seconds

More details
  • Looked at 37 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/WorkflowRun.tsx:381
  • Draft comment:
    Ensure title attribute is used consistently for all potentially truncated elements to provide full content on hover.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The use of min-w-0 and truncate is appropriate for preventing overflow issues in the sidebar. However, the title attribute should be used consistently for all elements that might be truncated to provide a tooltip with the full content.

Workflow ID: wflow_EQG6o3iwGSzwKO1B


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 ef118a5 in 17 seconds

More details
  • Looked at 37 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/WorkflowRun.tsx:381
  • Draft comment:
    Ensure the title attribute is used consistently for all truncated elements to provide full information on hover. This is done correctly here, but check other similar elements.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The use of min-w-0 and truncate is appropriate for preventing overflow, but the title attribute should be used consistently for all truncated elements to provide full information on hover.
2. skyvern-frontend/src/routes/workflows/WorkflowRun.tsx:396
  • Draft comment:
    Ensure the title attribute is used consistently for all truncated elements to provide full information on hover. This is done correctly here, but check other similar elements.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The use of min-w-0 and truncate is appropriate for preventing overflow, but the title attribute should be used consistently for all truncated elements to provide full information on hover.

Workflow ID: wflow_wT4kDzay5iiU8326


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

@msalihaltun msalihaltun merged commit 82ea39f into main Nov 13, 2024
2 checks passed
@msalihaltun msalihaltun deleted the salih/handle-url-overflow-in-workflow-run branch November 13, 2024 14:11
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