feat: add built-in dashboard widget components - #43
Merged
Merged
Conversation
Base automatically changed from
feat/connection-validation-inspection
to
main
September 28, 2026 13:37
…omponents # Conflicts: # src/panel_flowdash/editor.py # tests/ui/test_ui.py
# Conflicts: # src/panel_flowdash/component_spec.py # tests/ui/test_ui.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
I added Select, MultiChoice, and Slider to the editor's
Widgets/palette. Their labels, fallback options, slider bounds, and step are configurable in the editor;options,start, andendinput ports override the configured fallbacks, and the current selection is available through aselectedoutput. Select and MultiChoice accept list-valued options through a single-connection port, which avoids the graph's normal multi-source List aggregation.include_builtin_components=Falsedisables the palette entries, and project components with the same IDs take precedence.In an editor, add a
Widgets/Select, setdefault_optionsto['A', 'B'], switch to dashboard view, and selectB;editor.graph.get_state(node_id).selectedupdates. An upstream List output can instead be wired to theoptionsinput. No new dependency is introduced in this PR. Becauseselectedis untyped, connecting it is checked against its current value (#44), so a Select holding strings cannot be wired into an Integer input until its options change.Before: FlowDash offered only project-defined components; a list-typed input always aggregated multiple edges. After: The three built-in controls appear by default, and a single-connection list options input accepts one List output without nesting its values.
Verified after merging
main: 344 Python tests passed, 2 skipped; 4 Chromium UI tests passed; pre-commit passed.AI Disclosure
Tool & Model: Kilo Code + GPT-6 Sol
Usage: Implemented and reviewed the built-in controls and their tests with AI assistance; verified the reported results locally.
Checklist