-
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
Fix parameters being lost on save bug #818
Conversation
…src/' <!-- ELLIPSIS_HIDDEN --> | 🚀 | This description was created by [Ellipsis](https://www.ellipsis.dev) for commit 378c6890dbaa6d20e772cf175dc1a642edb9475f | |--------|--------| fix: resolve parameter loss on save in WorkflowEditor ### Summary: Fixes parameter loss on save in `WorkflowEditor.tsx` by filtering and converting parameters, and updates types for optional SMTP parameters in email nodes. **Key points**: - **Behavior**: - Fixes parameter loss on save in `WorkflowEditor.tsx` by filtering and converting parameters using `convertEchoParameters()`. - Handles `aws_secret`, `bitwarden_sensitive_information`, and `context` parameter types. - **Types**: - Updates `SendEmailNodeData` in `types.ts` to include optional SMTP parameter keys. - Modifies `SendEmailBlock` in `workflowTypes.ts` to make SMTP parameters optional. - Adds new parameter types in `workflowYamlTypes.ts` for `AWSSecretParameterYAML`, `ContextParameterYAML`, and `BitwardenSensitiveInformationParameterYAML`. - **Functions**: - Adds `convertEchoParameters()` in `workflowEditorUtils.ts` to handle parameter conversion. ---- Generated with ❤️ by [ellipsis.dev](https://www.ellipsis.dev) <!-- 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 3c54830 in 17 seconds
More details
- Looked at
246
lines of code in5
files - Skipped
0
files when reviewing. - Skipped posting
3
drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/nodes/SendEmailNode/types.ts:11
- Draft comment:
The addition of optional SMTP parameter keys aligns with the changes inSendEmailBlock
and is consistent with the PR description. - Reason this comment was not posted:
Confidence changes required:10%
ThesmtpHostSecretParameterKey
,smtpPortSecretParameterKey
,smtpUsernameSecretParameterKey
, andsmtpPasswordSecretParameterKey
are being added as optional fields inSendEmailNodeData
. This is consistent with the changes inSendEmailBlock
where these fields are made optional. The change is appropriate and aligns with the PR description.
2. skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts:578
- Draft comment:
TheconvertEchoParameters
function is well-implemented, handling specific parameter types and including a check for unknown types. - Reason this comment was not posted:
Confidence changes required:10%
TheconvertEchoParameters
function is correctly implemented to handle the conversion of specific parameter types. It includes a check for unknown parameter types, which is a good practice to catch potential errors.
3. skyvern-frontend/src/routes/workflows/types/workflowTypes.ts:172
- Draft comment:
The update to make SMTP parameters optional inSendEmailBlock
aligns with changes inSendEmailNodeData
and is consistent with the PR description. - Reason this comment was not posted:
Confidence changes required:10%
TheSendEmailBlock
type has been updated to make SMTP parameters optional, which aligns with the changes inSendEmailNodeData
. This is consistent with the PR description and ensures flexibility in handling email nodes.
Workflow ID: wflow_LO9j2vCCCOpk0UfJ
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 3c54830 in 29 seconds
More details
- Looked at
245
lines of code in5
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts:578
- Draft comment:
Consider adding a return type annotation toconvertEchoParameters
for better readability and maintainability. - Reason this comment was not posted:
Confidence changes required:50%
TheconvertEchoParameters
function inworkflowEditorUtils.ts
is missing a return type annotation. Adding it will improve code readability and maintainability.
2. skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts:471
- Draft comment:
Consider adding a return type annotation togetWorkflowBlock
for better readability and maintainability. - Reason this comment was not posted:
Confidence changes required:50%
ThegetWorkflowBlock
function inworkflowEditorUtils.ts
is missing a return type annotation. Adding it will improve code readability and maintainability.
Workflow ID: wflow_WLyO9LPSeNKYTM8h
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
fix: resolve parameter loss on save in WorkflowEditor
Summary:
Fixes parameter loss in
WorkflowEditor.tsx
and updates types for optional SMTP parameters by introducingconvertEchoParameters()
.Key points:
WorkflowEditor.tsx
by filtering and converting parameters usingconvertEchoParameters()
.aws_secret
,bitwarden_sensitive_information
, andcontext
parameter types.SendEmailNodeData
intypes.ts
to include optional SMTP parameter keys.SendEmailBlock
inworkflowTypes.ts
to make SMTP parameters optional.workflowYamlTypes.ts
forAWSSecretParameterYAML
,ContextParameterYAML
, andBitwardenSensitiveInformationParameterYAML
.convertEchoParameters()
inworkflowEditorUtils.ts
to handle parameter conversion.Generated with ❤️ by ellipsis.dev