Skip to content

Conversation

@psychedelicious
Copy link
Contributor

Summary

Add support for custom dropdowns for string fields in Builder. Workflow Builders can choose this for the string component and add options to it.

Screen.Recording.2025-03-21.at.6.08.08.pm.mov

Related Issues / Discussions

n/a

QA Instructions

Try it out.

Merge Plan

n/a

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@github-actions github-actions bot added the frontend PRs that change frontend files label Mar 21, 2025
@psychedelicious psychedelicious force-pushed the psyche/feat/ui/workflow-builder-dropdowns branch from 1490578 to 03a0506 Compare March 24, 2025 02:13
@psychedelicious
Copy link
Contributor Author

I've fixed a couple minor issues and cleaned up the code.

I tried to find a way to generalize this to be extended to other field types (e.g. floats, integers, models) and other UI widgets (e.g. radio options), but I don't think there's a good way to do it without compromising runtime and compile-time type safety. There is too much variation between field types.

So other field types will need their own implementations for both logic and UI. Technically, implementing other field types is pretty straightforward, but figuring out a reasonable UX may be challenging.

@psychedelicious psychedelicious merged commit 2b08691 into main Mar 24, 2025
15 checks passed
@psychedelicious psychedelicious deleted the psyche/feat/ui/workflow-builder-dropdowns branch March 24, 2025 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend PRs that change frontend files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants