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

Skyvern Forms UI #1330

Merged
merged 1 commit into from
Dec 5, 2024
Merged

Skyvern Forms UI #1330

merged 1 commit into from
Dec 5, 2024

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Dec 5, 2024

Important

This PR adds new UI components for form management, updates routing, and refactors task management in Skyvern.

  • New Features:
    • Adds FormsPage, FormsPageLayout, and FormsRunHistory for form management.
    • Introduces ComingSoonPage for future features like Jobs, Invoices, Purchasing, and Government.
  • Routing:
    • Updates router.tsx to include new routes for forms and upcoming features.
    • Changes default navigation to /tasks instead of /create.
  • UI Components:
    • Adds NavLinkGroup and StatusFilterDropdown for navigation and filtering.
    • Introduces new icons: BagIcon, GovernmentIcon, ReceiptIcon, ToolIcon.
  • Task Management:
    • Refactors CreateNewTaskForm, RetryTask, and TaskDetails to support new form features.
    • Updates TaskHistory and TasksPage for new filtering and navigation options.
  • Miscellaneous:
    • Updates Header and SideNav for improved navigation and external links.
    • Modifies CreateTaskRequest type to include optional fields.

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

…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Adds new UI components for form management, updates routing, and refactors task management in Skyvern.
>
>   - **New Features**:
>     - Adds `FormsPage`, `FormsPageLayout`, and `FormsRunHistory` for form management.
>     - Introduces `ComingSoonPage` for future features like Jobs, Invoices, Purchasing, and Government.
>   - **Routing**:
>     - Updates `router.tsx` and `cloud/router.tsx` to include new routes for forms and upcoming features.
>     - Changes default navigation to `/tasks` instead of `/create`.
>   - **UI Components**:
>     - Adds `NavLinkGroup` and `StatusFilterDropdown` for navigation and filtering.
>     - Introduces new icons: `BagIcon`, `GovernmentIcon`, `ReceiptIcon`, `ToolIcon`.
>   - **Task Management**:
>     - Refactors `CreateNewTaskForm`, `RetryTask`, and `TaskDetails` to support new form features.
>     - Updates `TaskHistory` and `TasksPage` for new filtering and navigation options.
>   - **Miscellaneous**:
>     - Updates `Header` and `SideNav` for improved navigation and external links.
>     - Modifies `CreateTaskRequest` type to include optional fields.
>
> <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 2568009fcb837a52e35c3b84a3db91b8b5ce3862. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
@wintonzheng wintonzheng force-pushed the salih/skyvern-forms-ui branch from fdb5ddf to 1176f0e Compare December 5, 2024 19:50
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.

❌ Changes requested. Incremental review on 1176f0e in 1 minute and 6 seconds

More details
  • Looked at 1017 lines of code in 18 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 drafted comments based on config settings.
1. skyvern-frontend/src/api/types.ts:95
  • Draft comment:
    The CreateTaskRequest type has been updated to make several fields optional. Ensure that the createTaskRequestObject function reflects these changes by making fields optional where necessary.
  • Reason this comment was not posted:
    Comment did not seem useful.
2. skyvern-frontend/src/components/StatusFilterDropdown.tsx:34
  • Draft comment:
    Ensure that Status values are unique since item.value is used as a key. This is important to avoid potential issues with key uniqueness.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The StatusFilterDropdown component uses item.value as a key, which is fine as long as Status values are unique. Ensure that Status values are unique to avoid potential issues.
3. skyvern-frontend/src/routes/tasks/list/TaskHistory.tsx:116
  • Draft comment:
    Ensure that task_id is unique since it is used as a key. This is important to avoid potential issues with key uniqueness.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The TaskHistory component uses task.task_id as a key, which is appropriate if task_id is unique. Ensure that task_id is unique to avoid potential issues.

Workflow ID: wflow_ndVhj618H71UvAIl


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

{links.map((link) => {
return (
<NavLink
key={link.to}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using link.to as a key might not be unique if the same route is used multiple times. Consider using a combination of link.to and link.label or another unique identifier.

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 1176f0e in 1 minute and 34 seconds

More details
  • Looked at 1019 lines of code in 18 files
  • Skipped 0 files when reviewing.
  • Skipped posting 4 drafted comments based on config settings.
1. skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx:89
  • Draft comment:
    The title field is optional in CreateTaskRequest, so assigning null here is unnecessary. Consider removing this assignment.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The CreateTaskRequest type has been updated to make several fields optional, but the createTaskRequestObject function in CreateNewTaskForm.tsx still assigns null to some fields. This is unnecessary since the fields are already optional.
2. skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx:19
  • Draft comment:
    The useToast import is unused and can be removed to clean up the code.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The useToast hook is imported but not used in CreateNewTaskForm.tsx. This is likely a leftover from a previous implementation and should be removed to clean up the code.
3. skyvern-frontend/src/router.tsx:36
  • Draft comment:
    Ensure that all references to TaskList are updated to TasksPage to avoid any broken imports or references.
  • Reason this comment was not posted:
    Confidence changes required: 30%
    The TaskList component has been removed and replaced with TasksPage. Ensure that all references to TaskList are updated to TasksPage to avoid any broken imports or references.
4. skyvern-frontend/src/router.tsx:33
  • Draft comment:
    Ensure that all references to TaskList are updated to TasksPage to avoid any broken imports or references.
  • Reason this comment was not posted:
    Confidence changes required: 30%
    The TaskList component has been removed and replaced with TasksPage. Ensure that all references to TaskList are updated to TasksPage to avoid any broken imports or references.

Workflow ID: wflow_y3QuXhl7US7of3OR


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

@msalihaltun msalihaltun merged commit a225920 into main Dec 5, 2024
2 checks passed
@msalihaltun msalihaltun deleted the salih/skyvern-forms-ui branch December 5, 2024 19:56
satansdeer pushed a commit to satansdeer/skyvern that referenced this pull request Dec 12, 2024
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