Skip to content

fix: require series connectivity before diode/resistor alignment - #192

Open
MustafaMulla29 wants to merge 3 commits into
test/diode-resistor-topology-reprofrom
fix/diode-resistor-series-topology
Open

MustafaMulla29 wants to merge 3 commits into
test/diode-resistor-topology-reprofrom
fix/diode-resistor-series-topology

Conversation

@MustafaMulla29

Copy link
Copy Markdown
Contributor

Stacked on #191.

Parallel diode/resistor pairs and separate branches on a common supply should not receive series-alignment advice. Resolve actual connected terminals through the existing source connectivity index, require a non-rail junction with exactly two terminals and distinct outer nets, then check the pin geometry. Ambiguous or multiply drawn placements are not guessed from nearby wire endpoints.

This removes the global nearest-pin search and duplicate findings from multiple wire segments. Component types and source IDs establish the topology; names and pin labels are used only in diagnostics. The native repro now shows zero warnings for the parallel and branched cases and one for the misaligned series pair. Existing direct-wire and named-net series tests still pass.

Validation: 163 tests passed; TypeScript and formatting checks passed (two existing oversized-fixture notices). Snapshots retain their diagnostic sections, including zero counts.

@vercel

vercel Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
circuit-json-schematic-placement-analysis Ready Ready Preview Oct 6, 2026 5:15pm UTC

Request Review

@seveibar seveibar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why would these be removed? There are snapshots updated that didn't change

CleanShot 2026-10-06 at 09 11 47@2x

Copy link
Copy Markdown
Contributor Author

@seveibar You're right—the parallel layout should still be flagged. This removes incorrect series-alignment advice; #198 adds the proper parallel-layout warning for this exact D1/R4 case. #192 shouldn't land without that replacement. The unchanged-looking Trellis snapshots only changed because global issue numbers shifted.

This branch was successfully deployed

1 active deployment
Preview — 61b13eb4 Deployed Oct 6, 2026 by vercel[bot]
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.

2 participants