Skip to content

feat(wire): winding label + pin/connection editor in Wire Configuration#2

Closed
gpitel wants to merge 3 commits into
OpenMagnetics:mainfrom
gpitel:claude/winding-connection-editor
Closed

feat(wire): winding label + pin/connection editor in Wire Configuration#2
gpitel wants to merge 3 commits into
OpenMagnetics:mainfrom
gpitel:claude/winding-connection-editor

Conversation

@gpitel

@gpitel gpitel commented Jun 13, 2026

Copy link
Copy Markdown

What

Adds a winding label + connection editor to the Wire Configuration panel (BasicLabelPinSelector.vue), so a winding's name and its connections can be edited directly in the builder. Each connection row exposes Name (pinName), Type (terminal type) and Length (lead length).

Notes

  • Connections are MAS metadata (functionalDescription[].connections), so edits do not invalidate the wound geometry (no cleanCoil()).
  • Name is a dropdown when the bobbin declares a pin list, otherwise a free-text input (no format restriction).
  • Type is a dropdown over the MAS ConnectionType enum (Pin / Screw / SMT / Flying Lead).
  • Length is entered in mm and stored as MAS length in metres; leaving it blank omits the key.
  • Connection count is clamped to 2 x numberParallels (physical wire ends), minimum 2.
  • Renaming a winding propagates into construction references (groups/sections/layersDescription, turnsDescription, bobbin connections) so name-matched derived views stay consistent.

Screenshots

Before/after of the Wire Configuration panel are in the comments below.

@gpitel

gpitel commented Jun 13, 2026

Copy link
Copy Markdown
Author

Wire Configuration panel — winding label + connection editor: before / after

Adds an editor for the winding's Label and a per-connection table — Name (pin), Type (terminal type), and Length (lead length, mm).

Before After

@gpitel gpitel marked this pull request as ready for review June 13, 2026 19:11
@gpitel gpitel force-pushed the claude/winding-connection-editor branch 5 times, most recently from 01addfd to 9132cc2 Compare June 14, 2026 15:14
…ration

Adds BasicLabelPinSelector.vue to edit a winding's name and its connections
(pin name, terminal type and lead length) in the Wire Configuration panel.
Connections are MAS metadata, so edits don't invalidate the wound geometry. The
pin field is a dropdown when the bobbin declares pins, otherwise a free-text
input; lead length is entered in mm and stored in metres, and the connection
count is clamped to 2x numberParallels. Renaming a winding propagates to the
construction references so name-matched derived views stay consistent.
@gpitel gpitel force-pushed the claude/winding-connection-editor branch from 9132cc2 to 5224d52 Compare June 14, 2026 15:17
grantpitel and others added 2 commits June 14, 2026 22:49
Extends the Wire Configuration pin/connection editor (BasicLabelPinSelector)
with a blind (internal winding-to-winding) connection:
- add "Blind" to the connection Type dropdown
- when a row's type is Blind, render the Name field as an <input list> +
  <datalist> combobox: free text to mint a node id, plus a dropdown of blind
  node ids already used on any winding (pick one to join this winding to it)
- disable the Length input on blind rows (an internal joint has no lead length)

Two windings sharing the same Blind pinName are joined. "Blind" is a local
string value (not yet in the generated MAS.ts ConnectionType enum) and
round-trips to MAS verbatim.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
feat(wire): blind (winding-to-winding) connection type in pin editor
@gpitel

gpitel commented Jun 16, 2026

Copy link
Copy Markdown
Author

Superseded by #3 — the clean feature/blind-connection-editor branch (full Wire Configuration editor incl. Blind connections, with working inline before/after screenshots). This PR's before/after were posted as GitHub user-attachments in a comment, which have since started returning 403 (broken). Closing in favor of #3.

@gpitel gpitel closed this Jun 16, 2026
@gpitel gpitel deleted the claude/winding-connection-editor branch June 16, 2026 17:32
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.

1 participant