kestra-io/kestra

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

Geschlossen

#2.072 geöffnet am 09.09.2023

 (40 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Java (2.579 Forks)batch import
area/frontendgood first issuekind/highlight

Repository-Metriken

Stars
 (26.854 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 1T 19h) (495 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide