kestra-io / kestra

:zap: Workflow Automation Platform. Orchestrate & Schedule code in any language, run anywhere, 500+ plugins. Alternative to Zapier, Rundeck, Camunda, Airflow...
https://kestra.io
Apache License 2.0
12.98k stars 1.13k forks source link

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

Open anna-geller opened 1 year ago

anna-geller commented 1 year ago

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

anna-geller commented 9 months ago

quick win if supported by our graph library

AnkitAnandMastery17 commented 1 month ago

@anna-geller hey, can i work on this issue?

anna-geller commented 1 month ago

Yes for sure! We'd love your contribution