Skip to content

Document wire harness drawings - #1058

Open
seveibar wants to merge 2 commits into
mainfrom
harness-drawing-docs
Open

seveibar wants to merge 2 commits into
mainfrom
harness-drawing-docs

Conversation

@seveibar

@seveibar seveibar commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Documents the wire harness drawing API that landed in tscircuit/core#5792: a guide with ten examples, and reference pages for the four new elements.

[Complete manufacturing sheet from the guide](https://raw.githubusercontent.com/tscircuit/docs/b638b98fbc18f1fe5b7486f70cc720b6ef5d133a/static/img/elements/assembly-drawing-harness-motor-cable.svg)

Pages

  • New guide: guides/wire-harness-drawings walks from a bare cable to a complete A4 manufacturing sheet. Its examples cover a pin-to-pin cable, a flat reversed cable, a mixed-pitch adapter with a wiring list, mixed wire gauges with a parts list and balloons, empty cavities, a shuffled eight-wire pinout, two cables on one sheet, a moulded USB-C cable, and view notes.
  • New references: <assembly.cablewire />, <assembly.drawing.harnessview />, <assembly.drawing.wiringtable /> and <assembly.drawing.bomtable />.
  • Updated: <assembly.cable /> gains the wiring and length props with an example; <assembly.drawing.page /> lists the new children.

How the previews are sourced

Every example is a CircuitPreview with its code and a committed SVG, following the existing drawing pages, so the pages render before the hosted evaluator catches up. Only the Code and Drawing tabs are shown.

  • Examples live in src/data/drawing-previews/harness-examples.ts.
  • scripts/render-assembly-drawing-previews.ts now renders them too and accepts page names to render a subset.
  • The SVGs were rendered by the drawing endpoint of Render wire harness drawings from TSX svg.tscircuit.com#3021, which is now merged and deployed: all ten examples also render from their TSX on svg.tscircuit.com.

Notes for review

  • The guide says harness drawings need tscircuit 0.0.3290 or later. tsci export <file> --drawing <page> was run against that release and 0.0.3300 with the guide's manufacturing sheet.
  • Connector designators in the examples are kept to three characters. Longer names overlap the pin numbers until the hosted renderer picks up Fit long connector designators in harness views circuit-json-to-drawing#23.

https://claude.ai/code/session_01P5Dw8uDxsoYbX4gqKk2QNf


Generated by Claude Code

Adds a wire harness drawings guide with ten examples and reference pages for
assembly.cablewire, assembly.drawing.harnessview, wiringtable and bomtable.
The cable and drawing page references cover the new props and children.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P5Dw8uDxsoYbX4gqKk2QNf
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Nov 27, 2026 1:41am UTC

Request Review

@github-actions

Copy link
Copy Markdown

This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs.

This branch was successfully deployed

1 active deployment
Preview — b665b1ef Deployed Nov 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants