Skip to content

feat(defaults): default winding names to 'Winding N'#9

Open
gpitel wants to merge 1 commit into
OpenMagnetics:mainfrom
gpitel:feature/winding-name-default-upstream
Open

feat(defaults): default winding names to 'Winding N'#9
gpitel wants to merge 1 commit into
OpenMagnetics:mainfrom
gpitel:feature/winding-name-default-upstream

Conversation

@gpitel

@gpitel gpitel commented Jun 27, 2026

Copy link
Copy Markdown

Summary

Default the template windings to Winding 1 / Winding 2 instead of the isolation-side ordinals (Primary / Secondary). Only the human-readable winding name defaults change — the isolationSide enum values are untouched.

Why

Winding names are user-facing, editable labels (Design Requirements, magnetic summary, winding selectors). Defaulting them to Winding N keeps them from colliding with the isolation-side tags (which are also Primary/Secondary), so a row like "Winding 2 → Primary" reads unambiguously.

Pairs with OpenMagnetics/WebFrontend#23, which surfaces these names in the Turns Ratios + Isolation Sides rows and names dynamically-added windings the same way.

🤖 Generated with Claude Code

Name the default template windings 'Winding 1/2' instead of the isolation-side
ordinals (Primary/Secondary); the isolationSide enum values are unchanged.

Pairs with WebFrontend #23, which surfaces and edits these names in the
Design Requirements rows.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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