-
Notifications
You must be signed in to change notification settings - Fork 789
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
Adjust task placeholders #933
Conversation
…src/' <!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > UI adjustments and placeholder text updates across multiple components in the Skyvern frontend to improve consistency and readability. > > - **UI Adjustments**: > - Update `MultiSelect` component in `multi-select.tsx` to reduce minimum height and adjust placeholder text size. > - Adjust placeholder text and input sizes in `CreateNewTaskForm.tsx` and `SavedTaskForm.tsx`. > - Update input field styles in `DownloadNode.tsx`, `FileParserNode.tsx`, `SendEmailNode.tsx`, `TaskNode.tsx`, `TextPromptNode.tsx`, and `UploadNode.tsx` to use smaller text size. > - **Placeholder Text Updates**: > - Change placeholder text in `CreateNewTaskForm.tsx` and `SavedTaskForm.tsx` for clarity and consistency. > - Use `fieldPlaceholders` in `TaskNode.tsx` for consistent placeholder text across fields. > - **Schema and Error Handling**: > - Update `taskFormTypes.ts` to allow `maxStepsOverride` to be `null` and refine JSON validation for `extractedInformationSchema` and `errorCodeMapping`. > > <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 066d0255f37dae4cce56056c0c59b95e72ff84a6. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
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 f88c605 in 47 seconds
More details
- Looked at
623
lines of code in11
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx:185
- Draft comment:
The fallback toMAX_STEPS_DEFAULT
whenmaxStepsOverride
isnull
is unnecessary since the default is alreadynull
. Consider removing the fallback to avoid confusion or unintended behavior. - Reason this comment was not posted:
Confidence changes required:50%
The code changes in the PR involve updating placeholder text and input sizes across multiple components. The changes are consistent with the PR description, which aims to improve UI consistency and readability. However, there is a potential issue with the handling ofmaxStepsOverride
in theSavedTaskForm.tsx
file. ThemaxStepsOverride
is set tonull
by default, but when sending the request, it uses a fallback toMAX_STEPS_DEFAULT
ifmaxStepsOverride
isnull
. This fallback is unnecessary since the default value is alreadynull
. This could lead to confusion or unintended behavior if the default is expected to benull
.
2. skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx:121
- Draft comment:
Ensure that the default value ofmaxStepsOverride
is consistently handled across the application to avoid unexpected behavior. The logic here is correct, but consistency is key. - Reason this comment was not posted:
Confidence changes required:30%
The PR updates placeholder text and input sizes across multiple components. In theCreateNewTaskForm.tsx
, themaxStepsOverride
is set tonull
by default, which aligns with the schema update. However, when sending the request, the code checks ifmaxStepsOverride
is notnull
and not equal toMAX_STEPS_DEFAULT
before including it in the headers. This logic is correct, but it's important to ensure that the default value ofmaxStepsOverride
is consistently handled across the application to avoid any unexpected behavior.
Workflow ID: wflow_y8X0hc3rBksh8nJm
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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! Incremental review on f88c605 in 52 seconds
More details
- Looked at
623
lines of code in11
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx:186
- Draft comment:
Ensure consistency between the placeholder logic and the header value forx-max-steps-override
. The placeholder suggestsnull
if empty, but the header defaults toMAX_STEPS_DEFAULT
. - Reason this comment was not posted:
Comment did not seem useful.
2. skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx:129
- Draft comment:
Good consistency between the placeholder logic and the header value forx-max-steps-override
. The placeholder suggestsnull
if empty, and the header correctly usesformValues.maxStepsOverride
. - Reason this comment was not posted:
Confidence changes required:0%
The PR description mentions updating placeholder text for clarity and consistency. In theCreateNewTaskForm.tsx
, the placeholder for themaxStepsOverride
input field is updated to reflect the default value. However, in themutation
function, the header value forx-max-steps-override
is set toformValues.maxStepsOverride
, which is consistent with the placeholder logic that sets it tonull
if empty. This is correct and should be noted as a positive change.
Workflow ID: wflow_cBWuCHxApbcknZi7
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Important
UI adjustments and placeholder text updates across multiple components in the Skyvern frontend to improve consistency and readability.
MultiSelect
component inmulti-select.tsx
to reduce minimum height and adjust placeholder text size.CreateNewTaskForm.tsx
andSavedTaskForm.tsx
.DownloadNode.tsx
,FileParserNode.tsx
,SendEmailNode.tsx
,TaskNode.tsx
,TextPromptNode.tsx
, andUploadNode.tsx
to use smaller text size.CreateNewTaskForm.tsx
andSavedTaskForm.tsx
for clarity and consistency.fieldPlaceholders
inTaskNode.tsx
for consistent placeholder text across fields.taskFormTypes.ts
to allowmaxStepsOverride
to benull
and refine JSON validation forextractedInformationSchema
anderrorCodeMapping
.This description was created by for f88c605. It will automatically update as commits are pushed.