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

Put success/failure indicators in block items of timelines #1680

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Jan 30, 2025

Important

Add success and failure indicators to timeline block items and adjust scroll behavior in WorkflowRunTimelineBlockItem.tsx, ActionCard.tsx, and ThoughtCard.tsx.

  • UI Enhancements:
    • Add success (CheckCircledIcon) and failure (CrossCircledIcon) indicators in WorkflowRunTimelineBlockItem.tsx for block statuses.
    • Add success and failure indicators in ActionCard.tsx based on action status.
  • Behavior Changes:
    • Change scrollIntoView block option from center to start in ActionCard.tsx, ThoughtCard.tsx, and WorkflowRunTimelineBlockItem.tsx for smoother scrolling.
  • Misc:
    • Import CheckCircledIcon and CrossCircledIcon in WorkflowRunTimelineBlockItem.tsx and ActionCard.tsx.

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

…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Add success/failure indicators to timeline block items and adjust scroll behavior in `WorkflowRunTimelineBlockItem.tsx`, `ActionCard.tsx`, and `ThoughtCard.tsx`.
>
>   - **Indicators**:
>     - Add success/failure indicators in `WorkflowRunTimelineBlockItem.tsx` using `CheckCircledIcon` and `CrossCircledIcon` based on block status.
>     - Add success/failure indicators in `ActionCard.tsx` using `CheckCircledIcon` and `CrossCircledIcon` based on action status.
>   - **Scroll Behavior**:
>     - Change `scrollIntoView` block option from `center` to `start` in `ActionCard.tsx`, `ThoughtCard.tsx`, and `WorkflowRunTimelineBlockItem.tsx`.
>
> <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 3cb0252ee77e759879898f1c215e03ce5b24e6bf. 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 e43599a in 21 seconds

More details
  • Looked at 120 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 4 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx:22
  • Draft comment:
    The change from block: "center" to block: "start" is consistent with the PR's intent to adjust scroll behavior. Ensure this aligns with the desired UX.
  • Reason this comment was not posted:
    Confidence changes required: 20%
    The use of scrollIntoView with block: "start" is consistent across multiple files. This change is intentional and aligns with the PR's goal to adjust the scroll behavior. No issues here.
2. skyvern-frontend/src/routes/workflows/workflowRun/ThoughtCard.tsx:18
  • Draft comment:
    The change from block: "center" to block: "start" is consistent with the PR's intent to adjust scroll behavior. Ensure this aligns with the desired UX.
  • Reason this comment was not posted:
    Confidence changes required: 20%
    The use of scrollIntoView with block: "start" is consistent across multiple files. This change is intentional and aligns with the PR's goal to adjust the scroll behavior. No issues here.
3. skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineBlockItem.tsx:64
  • Draft comment:
    The change from block: "center" to block: "start" is consistent with the PR's intent to adjust scroll behavior. Ensure this aligns with the desired UX.
  • Reason this comment was not posted:
    Confidence changes required: 20%
    The use of scrollIntoView with block: "start" is consistent across multiple files. This change is intentional and aligns with the PR's goal to adjust the scroll behavior. No issues here.
4. skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineBlockItem.tsx:71
  • Draft comment:
    Consider refactoring the logic for determining showSuccessIndicator and showFailureIndicator into a utility function to avoid repetition and improve maintainability. This logic is also present in ActionCard.tsx.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR introduces success and failure indicators using icons. This is a new feature and seems to be implemented correctly. However, the logic for determining success and failure is repeated in multiple places.

Workflow ID: wflow_LkfiykRVi3caCVtM


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 e43599a in 23 seconds

More details
  • Looked at 120 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx:22
  • Draft comment:
    Ensure that changing block: "center" to block: "start" in scrollIntoView aligns with the intended user experience, as this affects how elements are scrolled into view.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The use of scrollIntoView with block: "start" is consistent across multiple files. This change is intentional and aligns with the PR's goal to adjust the scroll behavior.
2. skyvern-frontend/src/routes/workflows/workflowRun/ThoughtCard.tsx:18
  • Draft comment:
    Ensure that changing block: "center" to block: "start" in scrollIntoView aligns with the intended user experience, as this affects how elements are scrolled into view.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The use of scrollIntoView with block: "start" is consistent across multiple files. This change is intentional and aligns with the PR's goal to adjust the scroll behavior.
3. skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineBlockItem.tsx:64
  • Draft comment:
    Ensure that changing block: "center" to block: "start" in scrollIntoView aligns with the intended user experience, as this affects how elements are scrolled into view.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The use of scrollIntoView with block: "start" is consistent across multiple files. This change is intentional and aligns with the PR's goal to adjust the scroll behavior.

Workflow ID: wflow_BcVTnqicHlt7mj2o


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

@msalihaltun msalihaltun merged commit 8f3d7c8 into main Jan 30, 2025
7 checks passed
@msalihaltun msalihaltun deleted the salih/show-success-fail-in-block-card branch January 30, 2025 13:28
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