kestra-io/kestra

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

クローズ

#2,072 opened on 2023/09/09

 (40 件のコメント) (0 件のリアクション) (1 人の担当者)Java (2,579 件のフォーク)batch import
area/frontendgood first issuekind/highlight

Repository metrics

Stars
 (26,854 個のスター)
PR merge metrics
 (平均マージ 1d 19h) (30d で 495 merged PRs)

説明

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

コントリビューターガイド