diff --git a/docs/AUTHORING-DEVELOPMENT.md b/docs/AUTHORING-DEVELOPMENT.md index d88f8bf..c11c633 100644 --- a/docs/AUTHORING-DEVELOPMENT.md +++ b/docs/AUTHORING-DEVELOPMENT.md @@ -102,3 +102,11 @@ Model paths in the footprint exports use `${KIPRJMOD}/models//` w `set_paper {paper:"A3"}` changes the landscape sheet format through the same revisioned transaction as UI edits. Supported formats are A4, A3, A2, A1 and A0. Existing documents without a paper field retain A4 and unchanged native export bytes. Paper changes preserve circuit geometry, survive save/restore and can be undone. The Sheet control exposes the operation; this does not add multi-sheet support or automatic page/body/text collision checking. Every live-state update clears native attribution. A native response only mounts if its requested revision, report revision and view request generation still match the current view. Switching to live preview or accepting an SSE update invalidates an in-flight native response, preventing late replies from replacing current content. + +### Explicit unused pins + +`set_no_connect {endpoint:{reference:"U7",pin:"4"},enabled:true}` places a native KiCad no-connect marker anchored to the exact pin. `enabled:false` removes that intent before reconnecting. The Unused pins controls call the same revisioned endpoint; `/state.author.noConnects` reports the marked pins. Markers follow component movement, persist, support undo and render as blue crosses in the local preview and native export. + +This is not an ERC exclusion. The transaction rejects a marked endpoint with a label, any touching exported wire segment or a coincident second pin. Removing a marker and connecting its pin may be one atomic transaction. Native ERC and engineering review still decide whether leaving that particular pin unused is correct. No output pin is marked automatically. + +SSE responses carry `Cache-Control: no-cache, no-transform` as well as `X-Accel-Buffering: no`. The workspace proxy otherwise gzip-compresses the stream without flushing small events, so a saved revision can leave the browser stale. Verify an actual browser state event and paint acknowledgment through the deployed route, including compression negotiation; direct-loopback success alone does not validate a proxy route. diff --git a/src/author.rs b/src/author.rs index 6146696..e4e0ca8 100644 --- a/src/author.rs +++ b/src/author.rs @@ -185,6 +185,9 @@ pub struct Document { pub components: BTreeMap, pub connections: Vec, pub labels: Vec