-
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
Add parameterKeys to textPrompt #1191
Conversation
…src/' <!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Add `parameterKeys` support to `textPrompt` nodes and refactor `TaskNodeParametersPanel` to `ParametersMultiSelect`. > > - **Behavior**: > - Add `parameterKeys` to `textPrompt` nodes in `FlowRenderer.tsx`, `TextPromptNode.tsx`, and `types.ts`. > - Update `WorkflowParametersPanel.tsx` to handle `parameterKeys` for `textPrompt` nodes when parameters are deleted. > - Modify `getWorkflowBlock()` and `convertToNode()` in `workflowEditorUtils.ts` to include `parameterKeys` for `textPrompt` nodes. > - **Refactor**: > - Rename `TaskNodeParametersPanel` to `ParametersMultiSelect` and update imports in `TaskNode.tsx` and `TextPromptNode.tsx`. > > <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 78533597da77e61a956415a701ed9709dcfa8507. 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 820f7ad in 36 seconds
More details
- Looked at
205
lines of code in7
files - Skipped
0
files when reviewing. - Skipped posting
3
drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx:421
- Draft comment:
The TODO comment here is redundant and can be removed as the code already handlestextPrompt
nodes separately. - Reason this comment was not posted:
Confidence changes required:50%
The code inFlowRenderer.tsx
has a redundant comment that can be removed. The comment is a TODO note that is no longer necessary because the code is already handling thetextPrompt
node type separately.
2. skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts:204
- Draft comment:
The mapping forparameterKeys
is redundant here as it is already handled incommonData
. Consider removing it from this case. - Reason this comment was not posted:
Confidence changes required:50%
TheconvertToNode
function inworkflowEditorUtils.ts
has a redundant mapping forparameterKeys
in thetext_prompt
case. This mapping is already handled in thecommonData
object, so it can be removed from the specific case.
3. skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts:631
- Draft comment:
The mapping forparameter_keys
is redundant here as it is already handled inbase
. Consider removing it from this case. - Reason this comment was not posted:
Confidence changes required:50%
ThegetWorkflowBlock
function inworkflowEditorUtils.ts
has a redundant mapping forparameter_keys
in thetext_prompt
case. This mapping is already handled in thebase
object, so it can be removed from the specific case.
Workflow ID: wflow_mmLzMb3lRPFrQA1n
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 820f7ad in 51 seconds
More details
- Looked at
206
lines of code in7
files - Skipped
0
files when reviewing. - Skipped posting
5
drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx:421
- Draft comment:
Consider resolving the TypeScript issue mentioned in the comment by refining the type definitions or using type guards to ensure TypeScript correctly infers the types for bothtask
andtextPrompt
nodes. - Reason this comment was not posted:
Confidence changes required:50%
The PR introduces a new feature to handleparameterKeys
fortextPrompt
nodes. However, the code inFlowRenderer.tsx
has a comment indicating a TypeScript issue when combining conditions fortask
andtextPrompt
nodes. This suggests a potential type inference problem that should be addressed to ensure code maintainability and correctness.
2. skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNode.tsx:30
- Draft comment:
RefactoredTaskNodeParametersPanel
toParametersMultiSelect
and updated imports. Ensure all references are updated to avoid runtime errors. - Reason this comment was not posted:
Confidence changes required:20%
The PR refactorsTaskNodeParametersPanel
toParametersMultiSelect
and updates the imports accordingly. This is a straightforward refactor, and the changes are consistent across the files.
3. skyvern-frontend/src/routes/workflows/editor/nodes/TextPromptNode/TextPromptNode.tsx:100
- Draft comment:
ImplementedParametersMultiSelect
fortextPrompt
nodes to handleparameterKeys
. Ensure this aligns with the intended functionality and test thoroughly. - Reason this comment was not posted:
Confidence changes required:30%
The PR addsparameterKeys
totextPrompt
nodes, which is a new feature. The implementation inTextPromptNode.tsx
correctly uses theParametersMultiSelect
component to handle parameter selection. This is consistent with the intended functionality.
4. skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts:204
- Draft comment:
UpdatedconvertToNode
to includeparameterKeys
fortextPrompt
nodes. Ensure this is consistent with the data model and test for correct YAML conversion. - Reason this comment was not posted:
Confidence changes required:30%
The PR updates theconvertToNode
andgetWorkflowBlock
functions to handleparameterKeys
fortextPrompt
nodes. This ensures that the conversion between node data and YAML includes the newparameterKeys
field.
5. skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts:631
- Draft comment:
UpdatedgetWorkflowBlock
to includeparameterKeys
fortextPrompt
nodes. Verify that this change is correctly reflected in the YAML output. - Reason this comment was not posted:
Confidence changes required:30%
The PR updates thegetWorkflowBlock
function to includeparameterKeys
fortextPrompt
nodes. This ensures that the YAML representation of the workflow includes the new parameter keys.
Workflow ID: wflow_8E7zo5xpP57bMfyb
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Important
Add
parameterKeys
support totextPrompt
nodes and refactorTaskNodeParametersPanel
toParametersMultiSelect
.parameterKeys
totextPrompt
nodes inFlowRenderer.tsx
,TextPromptNode.tsx
, andtypes.ts
.WorkflowParametersPanel.tsx
to handleparameterKeys
fortextPrompt
nodes when parameters are deleted.getWorkflowBlock()
andconvertToNode()
inworkflowEditorUtils.ts
to includeparameterKeys
fortextPrompt
nodes.TaskNodeParametersPanel
toParametersMultiSelect
and update imports inTaskNode.tsx
andTextPromptNode.tsx
.This description was created by for 820f7ad. It will automatically update as commits are pushed.