-
Notifications
You must be signed in to change notification settings - Fork 823
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 workflows settings in start node #1270
Conversation
…src/' <!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Add workflow settings to the start node, enabling configuration of `webhookCallbackUrl`, `proxyLocation`, and `persistBrowserSession` in the workflow editor. > > - **Behavior**: > - Add `webhookCallbackUrl`, `proxyLocation`, and `persistBrowserSession` settings to the start node in `StartNode.tsx`. > - Update `RunWorkflowForm`, `CreateNewTaskForm`, and `SavedTaskForm` to include `proxyLocation` and `persistBrowserSession` settings. > - Modify `getRunWorkflowRequestBody()` in `RunWorkflowForm.tsx` to handle new settings. > - **Workflow Editor**: > - Update `FlowRenderer` and `WorkflowEditor` to handle new workflow settings. > - Add `getWorkflowSettings()` in `workflowEditorUtils.ts` to extract settings from nodes. > - **Types**: > - Add `WorkflowSettings` type in `workflowTypes.ts` and `workflowYamlTypes.ts`. > - Update `StartNodeData` in `types.ts` to include workflow settings. > - **Misc**: > - Add `className` prop to `ProxySelector` component. > > <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 fc6f1576f309de1915520f351d90307a5c4f6fd3. 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! Incremental review on f9a7156 in 1 minute and 21 seconds
More details
- Looked at
669
lines of code in13
files - Skipped
0
files when reviewing. - Skipped posting
6
drafted comments based on config settings.
1. skyvern-frontend/src/components/ProxySelector.tsx:16
- Draft comment:
Consider providing a default value for theclassName
prop to avoid potential styling issues if it's not provided. - Reason this comment was not posted:
Confidence changes required:50%
TheProxySelector
component is missing a default value for theclassName
prop. This could lead to unexpected styling issues if the prop is not provided.
2. skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx:518
- Draft comment:
TheclassName
prop forProxySelector
is consistently set tow-48
across multiple files. Ensure this width is appropriate for all use cases. - Reason this comment was not posted:
Confidence changes required:20%
TheProxySelector
component is used in multiple files with theclassName
prop set tow-48
. This is consistent acrossCreateNewTaskForm.tsx
,SavedTaskForm.tsx
, andRunWorkflowForm.tsx
. Ensure this width is appropriate for all use cases.
3. skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx:690
- Draft comment:
TheclassName
prop forProxySelector
is consistently set tow-48
across multiple files. Ensure this width is appropriate for all use cases. - Reason this comment was not posted:
Confidence changes required:20%
TheProxySelector
component is used in multiple files with theclassName
prop set tow-48
. This is consistent acrossCreateNewTaskForm.tsx
,SavedTaskForm.tsx
, andRunWorkflowForm.tsx
. Ensure this width is appropriate for all use cases.
4. skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx:114
- Draft comment:
Ensure thatinitialSettings
provides the correct default values forwebhookCallbackUrl
andproxyLocation
. - Reason this comment was not posted:
Confidence changes required:20%
TheRunWorkflowForm
component initializeswebhookCallbackUrl
andproxyLocation
frominitialSettings
. This ensures that the form starts with the correct default values.
5. skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx:99
- Draft comment:
Ensure thatProxyLocation.Residential
and an empty string are the intended default values forproxyLocation
andwebhookCallbackUrl
, respectively. - Reason this comment was not posted:
Confidence changes required:20%
TheWorkflowRunParameters
component sets default values forproxyLocation
andwebhookCallbackUrl
usingProxyLocation.Residential
and an empty string, respectively. This is consistent with other parts of the code.
6. skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx:279
- Draft comment:
Ensure thatgetWorkflowSettings
correctly extracts the intended settings from nodes. - Reason this comment was not posted:
Confidence changes required:20%
TheFlowRenderer
component usesgetWorkflowSettings
to extract settings from nodes. This ensures that the workflow settings are correctly retrieved and used.
Workflow ID: wflow_OpXk0buHiMBORwGe
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! Reviewed everything up to f9a7156 in 1 minute and 54 seconds
More details
- Looked at
669
lines of code in13
files - Skipped
0
files when reviewing. - Skipped posting
5
drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/WorkflowEditor.tsx:10
- Draft comment:
Remove unused importProxyLocation
. - Reason this comment was not posted:
Confidence changes required:10%
The import statement forProxyLocation
is not used in this file. Removing unused imports is a good practice to keep the code clean and maintainable.
2. skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx:40
- Draft comment:
Remove unused importProxyLocation
. - Reason this comment was not posted:
Confidence changes required:10%
The import statement forProxyLocation
is not used in this file. Removing unused imports is a good practice to keep the code clean and maintainable.
3. skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/StartNode.tsx:10
- Draft comment:
Remove unused importProxyLocation
. - Reason this comment was not posted:
Confidence changes required:10%
The import statement forProxyLocation
is not used in this file. Removing unused imports is a good practice to keep the code clean and maintainable.
4. skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/types.ts:1
- Draft comment:
Remove unused importProxyLocation
. - Reason this comment was not posted:
Confidence changes required:10%
The import statement forProxyLocation
is not used in this file. Removing unused imports is a good practice to keep the code clean and maintainable.
5. skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts:82
- Draft comment:
Remove unused importProxyLocation
. - Reason this comment was not posted:
Confidence changes required:10%
The import statement forProxyLocation
is not used in this file. Removing unused imports is a good practice to keep the code clean and maintainable.
Workflow ID: wflow_Ovv6oshF08kVdmfG
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Important
Add workflow settings to the start node, enabling configuration of
webhookCallbackUrl
,proxyLocation
, andpersistBrowserSession
.webhookCallbackUrl
,proxyLocation
, andpersistBrowserSession
settings to the start node inStartNode.tsx
.RunWorkflowForm
,CreateNewTaskForm
, andSavedTaskForm
to includeproxyLocation
andpersistBrowserSession
settings.getRunWorkflowRequestBody()
inRunWorkflowForm.tsx
to handle new settings.FlowRenderer
andWorkflowEditor
to handle new workflow settings.getWorkflowSettings()
inworkflowEditorUtils.ts
to extract settings from nodes.WorkflowSettings
type inworkflowTypes.ts
andworkflowYamlTypes.ts
.StartNodeData
intypes.ts
to include workflow settings.className
prop toProxySelector
component.This description was created by for f9a7156. It will automatically update as commits are pushed.