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 overflow in workflow run timeline #1434

Merged
merged 1 commit into from
Dec 24, 2024
Merged

Fix overflow in workflow run timeline #1434

merged 1 commit into from
Dec 24, 2024

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Dec 24, 2024

Important

Fixes UI overflow and adds unique keys to React components in workflow run timeline.

  • UI Fixes:
    • Adjust max-h from 42rem to 40rem in WorkflowRunOverview.tsx to fix overflow issue.
  • React Key Fixes:
    • Add key prop to WorkflowRunTimelineBlockItem in WorkflowRunTimelineBlockItem.tsx for unique identification of mapped components.

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

…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Fixes UI overflow and adds unique keys to React components in workflow run timeline.
>
>   - **UI Fixes**:
>     - Adjust `max-h` from `42rem` to `40rem` in `WorkflowRunOverview.tsx` to fix overflow issue.
>   - **React Key Fixes**:
>     - Add `key` prop to `WorkflowRunTimelineBlockItem` in `WorkflowRunTimelineBlockItem.tsx` for unique identification of mapped components.
>
> <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 c0719d9b2b16d35c22559f8fba0220dcbd2d815c. 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 0893445 in 11 seconds

More details
  • Looked at 26 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineBlockItem.tsx:48
  • Draft comment:
    The key prop is correctly set to block.workflow_run_block_id to ensure uniqueness among sibling components.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The PR description mentions adding unique keys to React components, and the code changes reflect this. The key prop is correctly added to the WorkflowRunTimelineBlockItem component in the WorkflowRunTimelineBlockItem.tsx file. The key is set to block.workflow_run_block_id, which is appropriate for ensuring uniqueness among sibling components.

Workflow ID: wflow_BbHSJdY5emNqHeeP


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 0893445 in 12 seconds

More details
  • Looked at 26 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineBlockItem.tsx:48
  • Draft comment:
    Ensure block.workflow_run_block_id is unique among sibling components to avoid React key collision issues.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR description mentions adding unique keys to React components, and the code changes reflect this. However, there is a potential issue with the key usage in the WorkflowRunTimelineBlockItem.tsx file. The key prop should be unique among siblings, and while block.workflow_run_block_id is likely unique, it's important to ensure this is the case. Additionally, the key prop for ActionCard uses action.action_id, which should also be verified for uniqueness.

Workflow ID: wflow_pADg9GH0AmQHlKzY


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

@msalihaltun msalihaltun merged commit e198132 into main Dec 24, 2024
2 checks passed
@msalihaltun msalihaltun deleted the salih/fix-overflow branch December 24, 2024 08:08
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