Skip to content

feat: add path autocomplete for scripts and flows#7751

Open
N48LL wants to merge 2 commits intowindmill-labs:mainfrom
N48LL:main
Open

feat: add path autocomplete for scripts and flows#7751
N48LL wants to merge 2 commits intowindmill-labs:mainfrom
N48LL:main

Conversation

@N48LL
Copy link

@N48LL N48LL commented Jan 31, 2026

Adds path autocomplete to the name input field when creating scripts and flows. After selecting a folder, focusing the name input shows existing subfolders as suggestions, making it easier to navigate nested folder structures.

The component fetches paths from both scripts and flows so folders are visible regardless of which type created them. Only shows directory suggestions (not filenames) for clean level-by-level navigation.

Adding the same for resources and variables would require new backend endpoints (resources/list_paths, variables/list_paths) since the current list endpoints return full objects with values, which would be inefficient and potentially insecure for this purpose. But let's see if this feature is even welcome first. For our team it would help a lot as we manage dozens of client integrations with many customer specific resources and secrets organized in the same multi-level folder structure.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 31, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

let inputEl: HTMLInputElement | undefined = $state()

async function loadPaths() {
if (loaded || !workspace || !['script', 'flow', 'app'].includes(kind)) return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: The loadPaths() function restricts fetching paths to types 'script', 'flow', and 'app'. Confirm that this is the intended behavior and consider adding a comment or documentation if more types are to be supported in the future.

@N48LL
Copy link
Author

N48LL commented Jan 31, 2026

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Feb 7, 2026
@rubenfiszel
Copy link
Contributor

Thanks for the contribution

@diegoimbert can you take a look please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants