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

Add job agent #1672

Merged
merged 3 commits into from
Jan 28, 2025
Merged

Add job agent #1672

merged 3 commits into from
Jan 28, 2025

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Jan 28, 2025

Important

Adds global workflow handling by checking against globalWorkflowIds and updates UI components for better file management.

  • Global Workflow Handling:
    • Introduces globalWorkflowIds in env.ts to manage global workflows.
    • Checks for global workflows in WorkflowPage.tsx, WorkflowHeader.tsx, useWorkflowQuery.ts, useWorkflowRunQuery.ts, and useWorkflowRunTimelineQuery.ts.
    • Adds template=true parameter for global workflows in API requests.
    • Disables save button in WorkflowHeader.tsx for global workflows.
  • UI Enhancements:
    • Adds Cross2Icon and FileIcon to FileUpload.tsx for better file management UI.
    • Adjusts button styles and layout in FileUpload.tsx for improved user experience.

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

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Add job application agent with new page, file upload, and run history tracking, updating navigation and environment configurations.
>
>   - **New Features**:
>     - Add `JobsPage` in `router.tsx` for job applications, allowing users to upload resumes and submit job URLs.
>     - Implement `JobAgentFileUpload` for handling file uploads with a 10MB limit.
>     - Add `JobsRunHistory` to track job application runs.
>   - **Routing and Navigation**:
>     - Update `SideNav.tsx` to enable the "Jobs" link.
>     - Replace `ComingSoonPage` with `JobsPage` in `router.tsx`.
>   - **Environment and Configuration**:
>     - Add `JOB_APPLICATION_WORKFLOW_WPID` to `constants.ts` for workflow identification.
>     - Introduce `globalWorkflowIds` in `env.ts` to manage global workflows.
>   - **Miscellaneous**:
>     - Remove unused `statusDropdownItems` in `FormsRunHistory.tsx`.
>     - Update `FileUpload.tsx` to include new icons and reset functionality.
>
> <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 686cd8507f941cd7eba78fa8c9956f8123269cf3. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Add job application agent with new page, file upload, and run history tracking, updating navigation and environment configurations.
>
>   - **New Features**:
>     - Add `JobsPage` in `router.tsx` for job applications, allowing users to upload resumes and submit job URLs.
>     - Implement `JobAgentFileUpload` for handling file uploads with a 10MB limit.
>     - Add `JobsRunHistory` to track job application runs.
>   - **Routing and Navigation**:
>     - Update `SideNav.tsx` to enable the "Jobs" link.
>     - Replace `ComingSoonPage` with `JobsPage` in `router.tsx`.
>   - **Environment and Configuration**:
>     - Add `JOB_APPLICATION_WORKFLOW_WPID` to `constants.ts` for workflow identification.
>     - Introduce `globalWorkflowIds` in `env.ts` to manage global workflows.
>   - **Miscellaneous**:
>     - Remove unused `statusDropdownItems` in `FormsRunHistory.tsx`.
>     - Update `FileUpload.tsx` to include new icons and reset functionality.
>
> <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 686cd8507f941cd7eba78fa8c9956f8123269cf3. 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 77908a2 in 13 seconds

More details
  • Looked at 236 lines of code in 7 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern-frontend/src/util/env.ts:36
  • Draft comment:
    Consider logging a warning when JSON parsing fails in getGlobalWorkflowIds to aid in debugging.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The code in getGlobalWorkflowIds function is parsing a JSON string from an environment variable. If the parsing fails, it returns an empty array, which is a safe fallback. However, it would be beneficial to log a warning when the parsing fails to help with debugging.

Workflow ID: wflow_4FOghNR9Lfivt9XC


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 77908a2 in 1 minute and 20 seconds

More details
  • Looked at 266 lines of code in 8 files
  • Skipped 0 files when reviewing.
  • Skipped posting 7 drafted comments based on config settings.
1. skyvern-frontend/src/components/FileUpload.tsx:115
  • Draft comment:
    Redundant comment: // redundant check for ts compiler can be removed for clarity.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The code in skyvern-frontend/src/components/FileUpload.tsx has a redundant comment that can be removed for clarity.
2. skyvern-frontend/src/routes/workflows/WorkflowPage.tsx:53
  • Draft comment:
    Consider refactoring the isGlobalWorkflow check into a utility function as it is repeated in multiple files.
  • Reason this comment was not posted:
    Confidence changes required: 30%
    The code in skyvern-frontend/src/routes/workflows/WorkflowPage.tsx has a potential issue with the isGlobalWorkflow check. It is repeated in multiple files and can be refactored into a utility function for better maintainability.
3. skyvern-frontend/src/routes/workflows/hooks/useWorkflowQuery.ts:17
  • Draft comment:
    Consider refactoring the isGlobalWorkflow check into a utility function as it is repeated in multiple files.
  • Reason this comment was not posted:
    Confidence changes required: 30%
    The code in skyvern-frontend/src/routes/workflows/hooks/useWorkflowQuery.ts has a potential issue with the isGlobalWorkflow check. It is repeated in multiple files and can be refactored into a utility function for better maintainability.
4. skyvern-frontend/src/routes/workflows/hooks/useWorkflowRunQuery.ts:20
  • Draft comment:
    Consider refactoring the isGlobalWorkflow check into a utility function as it is repeated in multiple files.
  • Reason this comment was not posted:
    Confidence changes required: 30%
    The code in skyvern-frontend/src/routes/workflows/hooks/useWorkflowRunQuery.ts has a potential issue with the isGlobalWorkflow check. It is repeated in multiple files and can be refactored into a utility function for better maintainability.
5. skyvern-frontend/src/routes/workflows/hooks/useWorkflowRunTimelineQuery.ts:19
  • Draft comment:
    Consider refactoring the isGlobalWorkflow check into a utility function as it is repeated in multiple files.
  • Reason this comment was not posted:
    Confidence changes required: 30%
    The code in skyvern-frontend/src/routes/workflows/hooks/useWorkflowRunTimelineQuery.ts has a potential issue with the isGlobalWorkflow check. It is repeated in multiple files and can be refactored into a utility function for better maintainability.
6. skyvern-frontend/src/routes/workflows/editor/WorkflowHeader.tsx:34
  • Draft comment:
    Consider refactoring the isGlobalWorkflow check into a utility function as it is repeated in multiple files.
  • Reason this comment was not posted:
    Confidence changes required: 30%
    The code in skyvern-frontend/src/routes/workflows/editor/WorkflowHeader.tsx has a potential issue with the isGlobalWorkflow check. It is repeated in multiple files and can be refactored into a utility function for better maintainability.
7. skyvern/forge/sdk/workflow/models/block.py:2106
  • Draft comment:
    Remove or address the commented-out section in the execute function if not needed.
  • Reason this comment was not posted:
    Confidence changes required: 20%
    In skyvern/forge/sdk/workflow/models/block.py, the execute function in the TaskV2Block class has a redundant commented-out section that should be removed or addressed if not needed.

Workflow ID: wflow_IOeKozrQadeilnal


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 66d2a21 in 26 seconds

More details
  • Looked at 30 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/forge/sdk/workflow/models/block.py:52
  • Draft comment:
    ProxyLocation is still used in the code but has been removed from the imports. Re-add the import statement for ProxyLocation.
  • Reason this comment was not posted:
    Comment looked like it was already resolved.

Workflow ID: wflow_p9x7oDl7qzXiPAeg


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

@msalihaltun msalihaltun merged commit f7cd429 into main Jan 28, 2025
7 checks passed
@msalihaltun msalihaltun deleted the salih/job-agent branch January 28, 2025 22:38
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