-
Notifications
You must be signed in to change notification settings - Fork 836
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
Improve wait time input #1681
Improve wait time input #1681
Conversation
…src/' <!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Improves wait time input handling in `WaitNode` by using a standard input component, changing data type to string, and adding validation. > > - **Behavior**: > - Replaces `WorkflowBlockInput` with `Input` in `WaitNode.tsx` for wait time input. > - Changes `waitInSeconds` type from `number` to `string` in `WaitNodeData`. > - Adds validation for `waitInSeconds` to ensure it is a numeric string in `getWorkflowErrors()`. > - **Data Handling**: > - Converts `waitInSeconds` to string in `convertToNode()` and back to number in `getWorkflowBlock()`. > - **Imports**: > - Adds `isWaitNode` import in `workflowEditorUtils.ts`. > > <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 8ac2a6377ed74165647b56a4984530efdf833162. 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.
❌ Changes requested. Incremental review on 45b1c98 in 56 seconds
More details
- Looked at
108
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/nodes/WaitNode/types.ts:5
- Draft comment:
Consider convertingwaitInSeconds
to a number when used in calculations or logic to avoid potential type issues. - Reason this comment was not posted:
Marked as duplicate.
2. skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts:965
- Draft comment:
EnsurewaitInSeconds
is consistently converted to a number when used in logic or calculations.
wait_sec: parseInt(node.data.waitInSeconds, 10),
- Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_HMhyoNp20r5rCkt6
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.
skyvern-frontend/src/routes/workflows/editor/nodes/WaitNode/WaitNode.tsx
Show resolved
Hide resolved
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. Reviewed everything up to 45b1c98 in 1 minute and 44 seconds
More details
- Looked at
108
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/nodes/WaitNode/types.ts:5
- Draft comment:
EnsurewaitInSeconds
is consistently converted to a number where necessary, such as when using it in calculations or logic that requires a number. - Reason this comment was not posted:
Comment did not seem useful.
2. skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts:965
- Draft comment:
EnsurewaitInSeconds
is converted to a number wherever it is used in a numeric context, not just ingetWorkflowBlock
. - Reason this comment was not posted:
Comment did not seem useful.
Workflow ID: wflow_Q0OC9dkX7NzODp8E
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.
Important
Improves wait time input handling in
WaitNode
by changing input type to string and adding numeric validation.WorkflowBlockInput
withInput
inWaitNode.tsx
for wait time input.waitInSeconds
type fromnumber
tostring
intypes.ts
.getWorkflowErrors()
inworkflowEditorUtils.ts
.waitInSeconds
to string inconvertToNode()
inworkflowEditorUtils.ts
.waitInSeconds
back to number ingetWorkflowBlock()
inworkflowEditorUtils.ts
.isWaitNode
inworkflowEditorUtils.ts
.This description was created by for 45b1c98. It will automatically update as commits are pushed.