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

fix: show array type narrowing #5006

Closed
wants to merge 2 commits into from
Closed

Conversation

alpetric
Copy link
Contributor

@alpetric alpetric commented Jan 2, 2025

Currently narrowing a list/array input to be strings from an enum in the generated UI is not possible as documented below

https://www.windmill.dev/videos/advanced_parameters_enum.mp4


Important

Fix condition in ArrayTypeNarrowing.svelte to enable array type narrowing to string enums in the UI.

  • Behavior:
    • Modify condition in ArrayTypeNarrowing.svelte to show 'Items type' label and select when itemsType is 'resource' and canEditResourceType is true, or when itemsType is not 'resource'.
    • Enables narrowing of list/array input to strings from an enum in the UI.

This description was created by Ellipsis for 13446ef. It will automatically update as commits are pushed.

@alpetric alpetric requested a review from rubenfiszel as a code owner January 2, 2025 20:37
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Reviewed everything up to 13446ef in 56 seconds

More details
  • Looked at 13 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_S3u7AmDYrExoU2T3


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

frontend/src/lib/components/ArrayTypeNarrowing.svelte Outdated Show resolved Hide resolved
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
Copy link

cloudflare-workers-and-pages bot commented Jan 2, 2025

Deploying windmill with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7e58954
Status: ✅  Deploy successful!
Preview URL: https://59f3d44b.windmill.pages.dev
Branch Preview URL: https://alp-allow-edit-array-type.windmill.pages.dev

View logs

@alpetric alpetric closed this Jan 3, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jan 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant