Skip to content

fix: prevent battery charger status LED overlaps - #257

Open
anil08607 wants to merge 2 commits into
tscircuit:mainfrom
anil08607:fix/battery-charger-status-led-overlap1
Open

anil08607 wants to merge 2 commits into
tscircuit:mainfrom
anil08607:fix/battery-charger-status-led-overlap1

Conversation

@anil08607

Copy link
Copy Markdown
Contributor

Keep LED/resistor pairs on their connected side of the IC and check obstacle clearance before placement. This prevents R_CHG from overlapping U1 while preserving alignment and spacing.

Includes regression tests for rotated components and the updated SVG snapshot.

Validation: 114 tests passed, 1 skipped; type checking and formatting passed. Snapshot dobara verify kar liya—aur update needed nahi hai.

@vercel

vercel Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
matchpack Ready Ready Preview Sep 9, 2026 6:24pm UTC

Request Review

@rushabhcodes

Copy link
Copy Markdown
Contributor

@vreview

@vreview

vreview commented Sep 8, 2026 •

Copy link
Copy Markdown

Video review

Failed — the review could not finish. Tag the bot in a new comment to retry. The operator can inspect the job logs.

Reviewing commit bdf5b9e1.

This comment updates as work progresses.

Job: 1033400599-issue_comment-5587306716

} from "../../utils/offsetCollinearConnections"
import { getRotatedSize, rotatePinOffset } from "../../utils/rotatePinOffset"
import { getPlacementBounds } from "../AlignTestPointsSolver/placementsOverlap"
import type { ChipConnectedRailLoadPair } from "./getChipConnectedRailLoadPairs"

@mohan-bee mohan-bee Sep 8, 2026 •

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 are you using the getPlacementBounds from testpoint solver

@MustafaMulla29 MustafaMulla29 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.

Doesnt this look llike too guarded fix for only this test case?

@0hmX

0hmX commented Sep 9, 2026

Copy link
Copy Markdown

@vreview

@vreview

vreview commented Sep 9, 2026 •

Copy link
Copy Markdown

Video review

Complete

▶ Watch the video review

Reviewing commit e428ee08.

This comment updates as work progresses.

Job: 1033400599-issue_comment-5607204010

This branch was successfully deployed

1 active deployment
Preview — e428ee08 Deployed Sep 9, 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.

6 participants