Skip to content

Custom port labels#293

Merged
milanofthe merged 5 commits into
mainfrom
feature/custom-port-labels
May 18, 2026
Merged

Custom port labels#293
milanofthe merged 5 commits into
mainfrom
feature/custom-port-labels

Conversation

@milanofthe
Copy link
Copy Markdown
Member

@milanofthe milanofthe commented May 18, 2026

Closes #289.

Summary

  • New updateNodePortName(nodeId, direction, index, name) store action writes the new label directly to node.{inputs|outputs}[index].name. Port names are already part of NodeInstance and persist in the .pvm file — no new params introduced.
  • For Interface blocks the write is redirected to the parent Subsystem (with the direction flipped, since Interface input ↔ Subsystem output). The Interface itself derives its port names from the parent at read time, so custom labels propagate both ways automatically.
  • Properties dialog gets a third view (alongside Properties / Python Code) — toggled via a tag icon in the header. Title swaps to "Port Labels", body shows one input per port with the default name as placeholder. Code view and Port-Labels view are mutually exclusive.
  • Hidden for blocks whose port names are already driven by a regular param (Scope.labels, Spectrum.labels, Adder.operations, Divider.operations) — there the param is the single source of truth.
  • Separator between input and output entries when both exist; spans full dialog width like other section separators.

@milanofthe milanofthe merged commit b5cdda6 into main May 18, 2026
4 checks passed
@milanofthe milanofthe deleted the feature/custom-port-labels branch May 18, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Possibility to add custom subsystem input/output labels

1 participant