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

When typing an inline Python script, mention Namespace Files in a popup #6301

Open
2 tasks
anna-geller opened this issue Dec 4, 2024 · 2 comments
Open
2 tasks
Assignees
Labels
area/frontend Needs frontend code changes enhancement New feature or request

Comments

@anna-geller
Copy link
Member

Feature description

Problem

We hear feedback that despite our best efforts highlighting the existence of Namespace Files, some new users are not aware of it.

Idea

When typing a script inline in YAML, prompt the user with a popup window:

Did you know that you can manage your scripts as Namespace Files? Give it a try by expanding the left sidebar (Click on the Files icon) and adding a main.py file. Then reference it in your script as follows: small example flow with namespaceFiles.enabled set to true

  • Add a nice visual pointing the user to the Namespace Files left sidebar
  • The user could click on "Don't show again" — similar to what we do asking to enable basic auth
@anna-geller anna-geller added enhancement New feature or request area/frontend Needs frontend code changes labels Dec 4, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Issues Dec 4, 2024
@Nico-Kestra
Copy link
Member

A popup with a small animation on the Files button could be nice. What do you think?

https://www.figma.com/proto/ew0uXk0NRXJ2NBBJTNe2n1/01_UI?page-id=0%3A1&node-id=4854-43774&node-type=frame&viewport=-1260%2C-3102%2C1.28&t=SjRraiv4rrwskSUI-1&scaling=min-zoom&content-scaling=fixed&starting-point-node-id=681%3A5355

@anna-geller
Copy link
Member Author

nice, thx Nico

btw I didn't mean it literally

the text would need to have a code block:

Did you know that you can manage your scripts as Namespace Files? Click on the Files icon and add your script e.g. main.py file. Then reference it in your script as follows:

id: python
namespace: company.team
tasks:
  - id: example
    type: io.kestra.plugin.scripts.python.Commands
    namespaceFiles:
      enabled: true
    commands:
      - python main.py

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

No branches or pull requests

2 participants