kestra-io/kestra

[UI] Add arrow description in conditional branching on the `Switch` task

已關閉

#2,072 建立於 2023年9月9日

 (40 則留言) (0 個反應) (1 位負責人)Java (2,579 個分叉)batch import
area/frontendgood first issuekind/highlight

倉庫指標

星標
 (26,854 顆星)
PR 合併指標
 (平均合併 1天 19小時) (30 天內合併 495 個 PR)

描述

Feature description

Consider the following workflow:

id: switch
namespace: dev

inputs:
  - name: language
    type: STRING
    defaults: English

tasks:

  - id: render-language
    type: io.kestra.core.tasks.flows.Switch
    value: "{{ inputs.language }}"
    cases:
      French:
        - id: french
          type: io.kestra.core.tasks.debugs.Return
          format: "The input is {{ inputs.language }}"
      German:
        - id: german
          type: io.kestra.core.tasks.debugs.Return
          format: "The input is {{ inputs.language }}"
    defaults:
      - id: english
        type: io.kestra.core.tasks.debugs.Return
        format: "The input is {{ inputs.language }}"

It would be user-friendly if the cases can be added next to the arrows as follows:

image

貢獻者指南