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

feat(ui): custom dropdowns for strings in builder #7818

Merged
merged 10 commits into from
Mar 24, 2025

Conversation

psychedelicious
Copy link
Collaborator

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
Collaborator 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.

2 participants