Repository navigation
[Diagram Editor] Configurable section template instances - #243
Open
ArizmendiWan wants to merge 6 commits into
Open
ArizmendiWan wants to merge 6 commits into
ArizmendiWan wants to merge 6 commits into
Conversation
Let template authors declare configuration and port schemas, bind operation fields to template properties, and configure each section instance independently. Use React JSONSchema Form for schema authoring and data entry, including inline titles for alternatives. Signed-off-by: ArizmendiWan <2311602492@qq.com>
Share field actions across node and section forms, preserve typed choices and nullable values, and show type warnings when binding template properties. Simplify how declared port schemas are loaded and checked. Signed-off-by: ArizmendiWan <2311602492@qq.com>
Signed-off-by: ArizmendiWan <2311602492@qq.com>
…ename Use the declared type on either end of a section connection when checking compatibility, falling back to inference for undeclared ports. Update bindings and instance configs when a template property is renamed, and reuse form controls for field actions. Signed-off-by: ArizmendiWan <2311602492@qq.com>
Signed-off-by: ArizmendiWan <2311602492@qq.com>
ArizmendiWan
force-pushed
the
section-config
branch
from
November 25, 2026 23:19
0e54fa2 to
65cf1a8
Compare
ArizmendiWan
marked this pull request as ready for review
November 25, 2026 23:20
Signed-off-by: ArizmendiWan <2311602492@qq.com>
Collaborator
Author
|
Reworked this PR to use React JSONSchema Form (RJSF) for defining template properties and configuring section instances. |
This branch has not been deployed
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.
Closes #83.
Section templates can now expose configuration properties to the workflow that uses them. In the Template panel, authors can define a property’s type, default, and constraints, then link it to a configuration field on a node, script, or nested section. The link menu flags incompatible types and still allows the selection. Removing a link restores the field’s original value.
In the workflow, selecting a section instance opens its configuration in the operation panel. Two instances of a template containing a single Multiply node can use different factors. The editor flags invalid values at the field, and the executor checks the instance configuration when it builds the workflow.
Authors can also declare a schema on each section input or output. The editor uses declarations to check connections and infers the types of undeclared ports. The Template panel shows all ports together.
Screenshots
The scale template defines factor as a required integer from 1 to 10. The same panel lists its input and output.
Selecting the input node lets the author declare its type as number. The product output keeps its inferred type.
The link button in Multiply’s Config field lists factor and its integer type. The field currently holds 1.
Selecting factor replaces the displayed 1 with a blue chip. Removing the chip restores 1.
Double and Triple both use scale. Double sets factor to 2, and the selected Triple instance sets it to 3.
A request of 5 passes through both instances. The response is 30, and the timeline shows each call to Multiply.
Setting Triple’s factor to 0 shows the minimum error below the field. The executor also rejects that value when building the workflow.
GenAI Use
We follow OSRA's policy on GenAI tools.
Generated-by: Codex and Claude