Skip to content

Added Label property to Ports.#32

Merged
lextatic merged 3 commits into
mainfrom
feature/port-names
Jun 3, 2026
Merged

Added Label property to Ports.#32
lextatic merged 3 commits into
mainfrom
feature/port-names

Conversation

@lextatic

@lextatic lextatic commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Added

  • Added Label property to ports so they can be easily customized.

@lextatic lextatic added the added New features label Jun 2, 2026
@lextatic lextatic requested a review from Copilot June 2, 2026 03:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This pull request introduces editor-facing port labeling in the Statescript runtime by adding a Label property to Port and extending Node.CreatePort<T> to set that label, then updates built-in nodes and documentation to use/describe labeled ports.

Changes:

  • Add Port.Label as an editor-facing label.
  • Extend Node.CreatePort<T> with an optional label parameter and assign it to created ports.
  • Update built-in node port definitions and docs/templates to use and document port labels.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
Forge/Statescript/Port.cs Adds Label property to all ports.
Forge/Statescript/Node.cs Extends CreatePort<T> to accept/assign an editor label.
Forge/Statescript/Nodes/StateNode.cs Supplies labels for standard State node ports.
Forge/Statescript/Nodes/State/TimerNode.cs Supplies label for the custom OnTimerEnd output.
Forge/Statescript/Nodes/State/EffectNode.cs Supplies label for the custom OnEffectEnd output.
Forge/Statescript/Nodes/ExitNode.cs Supplies label for the Exit node input port.
Forge/Statescript/Nodes/EntryNode.cs Supplies label for the Entry node output port.
Forge/Statescript/Nodes/ConditionNode.cs Supplies labels for Condition node ports.
Forge/Statescript/Nodes/ActionNode.cs Supplies labels for Action node ports.
docs/statescript/templates/state-node-template.md Notes that doc port names should match code labels.
docs/statescript/templates/condition-node-template.md Notes that doc port names should match code labels.
docs/statescript/templates/action-node-template.md Notes that doc port names should match code labels.
docs/statescript/subgraphs.md Documents labeling custom event/subgraph ports for editor integrations.
docs/statescript/nodes/state/README.md Documents how to label additional ports in custom state nodes.
docs/statescript/nodes/README.md Adds an overview section explaining port labels and how editors consume them.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Forge/Statescript/Node.cs
Comment thread Forge/Statescript/Nodes/StateNode.cs Outdated
Comment thread Forge/Statescript/Nodes/ActionNode.cs Outdated
Comment thread Forge/Statescript/Nodes/ConditionNode.cs Outdated
Comment thread Forge/Statescript/Nodes/EntryNode.cs Outdated
Comment thread Forge/Statescript/Nodes/ExitNode.cs Outdated
@lextatic lextatic merged commit 1c73dc6 into main Jun 3, 2026
1 check passed
@lextatic lextatic deleted the feature/port-names branch June 3, 2026 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

added New features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants