Skip to content

Conversation

dieriba
Copy link
Contributor

@dieriba dieriba commented Oct 15, 2025

Summary

Implements environment variables feature for Windmill flows as requested in issue #6832.

Changes

Backend:

  • Added env_variables field to FlowValue struct
  • Updated OpenAPI schema

Frontend:

  • Transformed FlowConstants.svelte into environment variables manager
  • Updated PropPicker system to support env context
  • Updated all flow module components to pass env variables
  • Added env declarations to SimpleEditor for TypeScript autocomplete

How to Test

  1. Open a flow in the editor
  2. Click the $ icon (Environment Variables)
  3. Add environment variables (e.g., API_KEY=test)
  4. Reference them in flow steps using env.API_KEY
  5. Verify env variables appear in prop picker alongside flow_input and result

🤖 Generated with Claude Code

github-actions bot and others added 2 commits October 15, 2025 11:11
- Add env_variables field to FlowValue struct in backend
- Update OpenAPI schema to include env_variables field
- Transform FlowConstants.svelte into environment variables manager UI
  - Replace static inputs viewer with env variable key-value editor
  - Add ability to create, edit, and delete environment variables
  - Variables are stored in flow definition and can be referenced as env.FOO
- Update PropPickerWrapper and PropPickerResult to support env context
- Update all PropPickerWrapper usages across flow modules to pass env variables
- Add env declaration to SimpleEditor extraLib for TypeScript autocomplete
- Update FlowStickyNode tooltip from 'Static Inputs' to 'Environment Variables'

Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 17, 2025

Deploying windmill with  Cloudflare Pages  Cloudflare Pages

Latest commit: 51e2dcd
Status: ✅  Deploy successful!
Preview URL: https://0a0edd9b.windmill.pages.dev
Branch Preview URL: https://claude-issue-6832-20251015-1.windmill.pages.dev

View logs

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