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

Show downloaded files in workflow run #1321

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Dec 4, 2024

Important

Add display of downloaded files in workflow run UI by updating API response and rendering in WorkflowRun.tsx.

  • API Changes:
    • Add downloaded_file_urls to WorkflowRunStatusApiResponse in types.ts.
  • UI Changes:
    • In WorkflowRun.tsx, display downloaded files section if workflowRunIsFinalized.
    • Render list of file URLs with FileIcon and link in WorkflowRun.tsx.
    • Show message "No files downloaded" if fileUrls is empty in WorkflowRun.tsx.

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

…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Add display of downloaded files in workflow run UI by updating API response and rendering in `WorkflowRun.tsx`.
>
>   - **API Changes**:
>     - Add `downloaded_file_urls` to `WorkflowRunStatusApiResponse` in `types.ts`.
>   - **UI Changes**:
>     - In `WorkflowRun.tsx`, display downloaded files section if `workflowRunIsFinalized`.
>     - Render list of file URLs with `FileIcon` and link in `WorkflowRun.tsx`.
>     - Show message "No files downloaded" if `fileUrls` is empty in `WorkflowRun.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 80212eb7df6a1de9b7a7043e4e92dff1840b1e2b. 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 9416c59 in 9 seconds

More details
  • Looked at 64 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.tsx:640
  • Draft comment:
    Using the URL as a key in the map function can lead to potential issues if URLs are not unique. Consider using a more descriptive and unique key if possible.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The code correctly checks if the workflow run is finalized before displaying the downloaded files. However, the use of key in the map function should be more descriptive to avoid potential issues with React's reconciliation process.

Workflow ID: wflow_ZD1ZsEF4GAUoaHbJ


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 9416c59 in 31 seconds

More details
  • Looked at 64 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/WorkflowRun.tsx:641
  • Draft comment:
    Use h-6 w-6 instead of size-6 for the FileIcon component to correctly apply Tailwind CSS classes for size.
  • Reason this comment was not posted:
    Marked as duplicate.
2. skyvern-frontend/src/routes/workflows/WorkflowRun.tsx:52
  • Draft comment:
    Use h-6 w-6 instead of size-6 for the FileIcon component to correctly apply Tailwind CSS classes for size. This issue is also present on line 641.
  • Reason this comment was not posted:
    Comment was on unchanged code.

Workflow ID: wflow_ObIqGWgbyUi35nLn


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

@msalihaltun msalihaltun merged commit fc56299 into main Dec 4, 2024
2 checks passed
@msalihaltun msalihaltun deleted the salih/show-workflow-run-downloaded-files branch December 4, 2024 20:39
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