Skip to content

fix: update SOT89 dimensions and snapshots for consistency#429

Open
rushabhcodes wants to merge 2 commits intotscircuit:mainfrom
rushabhcodes:fix-sot89
Open

fix: update SOT89 dimensions and snapshots for consistency#429
rushabhcodes wants to merge 2 commits intotscircuit:mainfrom
rushabhcodes:fix-sot89

Conversation

@rushabhcodes
Copy link
Contributor

This pull request makes a small change to the default width value in the sot89_def schema definition, updating it from "4.20mm" to "4.00mm".

Copy link
Member

@techmannih techmannih left a comment

Choose a reason for hiding this comment

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

Difference snapshot file not updating 🧐

@ShiboSoftwareDev
Copy link
Contributor

is there a bug in the kicad parity test? why does it still match after we change the dimensions?

@rushabhcodes
Copy link
Contributor Author

is there a bug in the kicad parity test? why does it still match after we change the dimensions?

I changed the body width, the kicad test only compares pads length and width

Copilot AI review requested due to automatic review settings March 19, 2026 18:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the default SOT-89 footprint width parameter to improve dimensional consistency, and refreshes the affected SVG snapshot outputs used by the test suite.

Changes:

  • Update sot89_def.w default from 4.20mm to 4.00mm.
  • Regenerate/update SOT-89-related SVG snapshots to reflect the new default geometry.

Reviewed changes

Copilot reviewed 1 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/fn/sot89.ts Changes the default width (w) used when generating SOT-89 footprints.
tests/kicad-parity/__snapshots__/sot89.snap.svg Updated parity snapshot for SOT-89 rendering.
tests/kicad-parity/__snapshots__/sot89_5.snap.svg Updated parity snapshot for 5-pin SOT-89 rendering.
tests/__snapshots__/sot89_5.snap.svg Updated unit-test snapshot for 5-pin SOT-89 rendering.
tests/__snapshots__/sot89_3.snap.svg Updated unit-test snapshot for 3-pin SOT-89 rendering.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

4 participants