-
Notifications
You must be signed in to change notification settings - Fork 798
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
Skyvern Forms UI #1330
Conversation
…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 -->
fdb5ddf
to
1176f0e
Compare
There was a problem hiding this 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 in18
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:
TheCreateTaskRequest
type has been updated to make several fields optional. Ensure that thecreateTaskRequestObject
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 thatStatus
values are unique sinceitem.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%
TheStatusFilterDropdown
component usesitem.value
as a key, which is fine as long asStatus
values are unique. Ensure thatStatus
values are unique to avoid potential issues.
3. skyvern-frontend/src/routes/tasks/list/TaskHistory.tsx:116
- Draft comment:
Ensure thattask_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%
TheTaskHistory
component usestask.task_id
as a key, which is appropriate iftask_id
is unique. Ensure thattask_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} |
There was a problem hiding this comment.
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.
There was a problem hiding this 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 in18
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:
Thetitle
field is optional inCreateTaskRequest
, so assigningnull
here is unnecessary. Consider removing this assignment. - Reason this comment was not posted:
Confidence changes required:50%
TheCreateTaskRequest
type has been updated to make several fields optional, but thecreateTaskRequestObject
function inCreateNewTaskForm.tsx
still assignsnull
to some fields. This is unnecessary since the fields are already optional.
2. skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx:19
- Draft comment:
TheuseToast
import is unused and can be removed to clean up the code. - Reason this comment was not posted:
Confidence changes required:10%
TheuseToast
hook is imported but not used inCreateNewTaskForm.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 toTaskList
are updated toTasksPage
to avoid any broken imports or references. - Reason this comment was not posted:
Confidence changes required:30%
TheTaskList
component has been removed and replaced withTasksPage
. Ensure that all references toTaskList
are updated toTasksPage
to avoid any broken imports or references.
4. skyvern-frontend/src/router.tsx:33
- Draft comment:
Ensure that all references toTaskList
are updated toTasksPage
to avoid any broken imports or references. - Reason this comment was not posted:
Confidence changes required:30%
TheTaskList
component has been removed and replaced withTasksPage
. Ensure that all references toTaskList
are updated toTasksPage
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.
Important
This PR adds new UI components for form management, updates routing, and refactors task management in Skyvern.
FormsPage
,FormsPageLayout
, andFormsRunHistory
for form management.ComingSoonPage
for future features like Jobs, Invoices, Purchasing, and Government.router.tsx
to include new routes for forms and upcoming features./tasks
instead of/create
.NavLinkGroup
andStatusFilterDropdown
for navigation and filtering.BagIcon
,GovernmentIcon
,ReceiptIcon
,ToolIcon
.CreateNewTaskForm
,RetryTask
, andTaskDetails
to support new form features.TaskHistory
andTasksPage
for new filtering and navigation options.Header
andSideNav
for improved navigation and external links.CreateTaskRequest
type to include optional fields.This description was created by for 1176f0e. It will automatically update as commits are pushed.