Skyvern-AI / skyvern

Automate browser-based workflows with LLMs and Computer Vision
https://www.skyvern.com
GNU Affero General Public License v3.0
10.78k stars 739 forks source link

Add secret parameter to workflow #1150

Closed wintonzheng closed 3 weeks ago

wintonzheng commented 3 weeks ago

[!IMPORTANT] Add support for 'secret' parameter type in workflow editor, including UI updates and YAML conversion logic.

  • Behavior:
    • Add support for secret parameter type in FlowRenderer.tsx, WorkflowEditor.tsx, WorkflowParameterAddPanel.tsx, WorkflowParameterEditPanel.tsx, and WorkflowParametersPanel.tsx.
    • Update convertToParametersYAML() in FlowRenderer.tsx to handle secret parameters.
    • Modify handleSave() in FlowRenderer.tsx to include secret parameters in the save process.
  • UI Components:
    • Add UI elements for secret parameters in WorkflowParameterAddPanel.tsx and WorkflowParameterEditPanel.tsx.
    • Update dropdown in WorkflowParametersPanel.tsx to include secret parameter option.
  • Types:
    • Update ParametersState type in FlowRenderer.tsx to include secret parameter structure.
  • Utils:
    • Update convertEchoParameters() in workflowEditorUtils.ts to exclude secret parameters from echo conversion.

This description was created by Ellipsis for 1115ce988ad091d5e585c10c3995472f3409b045. It will automatically update as commits are pushed.