Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend the SELECT input with a radio-button option #5591

Open
anna-geller opened this issue Oct 22, 2024 · 5 comments
Open

Extend the SELECT input with a radio-button option #5591

anna-geller opened this issue Oct 22, 2024 · 5 comments
Assignees
Labels
area/backend Needs backend code changes area/frontend Needs frontend code changes enhancement New feature or request good first issue Great issue for new contributors

Comments

@anna-geller
Copy link
Member

anna-geller commented Oct 22, 2024

Feature description

Using this flow:

id: choose_your_cloud
namespace: company.team

inputs:
  - id: cloud
    type: SELECT
    allowCustomValue: true
    values:
      - AWS
      - GCP
      - Azure
      - Oracle

tasks:
  - id: hello
    type: io.kestra.plugin.core.log.Log
    message: Hello {{ inputs.cloud }}

You can see the SELECT will be by default shown as a dropdown:

image

For some use cases, a radio button might be more desirable. We can add an ENUM option displayType: RADIO_BUTTON:

id: choose_your_cloud
namespace: company.team

inputs:
  - id: cloud
    type: SELECT
    allowCustomValue: true
    displayType: RADIO_BUTTON # default is DROPDOWN
    values:
      - AWS
      - GCP
      - Azure
      - Oracle

tasks:
  - id: hello
    type: io.kestra.plugin.core.log.Log
    message: Hello {{ inputs.cloud }}

DROPDOWN should stay as the default option as it's more compact.


Note: Adding the ENUM property has a small backend part.

@anna-geller anna-geller added area/backend Needs backend code changes enhancement New feature or request area/frontend Needs frontend code changes good first issue Great issue for new contributors labels Oct 22, 2024
@Pk9697
Copy link

Pk9697 commented Oct 22, 2024

/assign

@MilosPaunovic
Copy link
Member

@Pk9697 Why don't we close the other issue you're assigned to first, and then you can take over this one.

@SanjyotX
Copy link

/assign

@Ben8t
Copy link
Member

Ben8t commented Oct 23, 2024

@SanjyotX I assigned you to another one minutes ago, let's go one by one, when that is completed, I'm perfectly happy with you taking over this one, also.

@yoyounik
Copy link
Contributor

Hii @anna-geller i wanted to contribute to this work, can it be assigned to me ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backend Needs backend code changes area/frontend Needs frontend code changes enhancement New feature or request good first issue Great issue for new contributors
Projects
Status: Backlog
Development

No branches or pull requests

6 participants