Skip to content

Add phototransistor schematic symbol - #452

Closed
ShayanMuhammad-CS wants to merge 1 commit into
tscircuit:mainfrom
ShayanMuhammad-CS:add-phototransistor-symbol
Closed

ShayanMuhammad-CS wants to merge 1 commit into
tscircuit:mainfrom
ShayanMuhammad-CS:add-phototransistor-symbol

Conversation

@ShayanMuhammad-CS

Copy link
Copy Markdown

Summary

  • Adds the missing phototransistor schematic symbol (phototransistor_horz / phototransistor_vert).
  • The source SVG asset already existed under assets/symbols/, but was misnamed phototransistory.svg and had never been processed into a generated symbol, so it wasn't usable via the library.
  • Renamed the asset to phototransistor.svg, generated the symbol via the existing SVG-processing pipeline, and labeled the ports collector/emitter to match the convention used by the other bipolar transistor symbols (e.g. npn_bipolar_transistor).

Test plan

  • bun install
  • bun run build
  • bun run format
  • bun test — all 15 test files pass, including the new auto-generated snapshot entries for phototransistor_horz / phototransistor_vert
  • Verified rendered SVG output via the local dev server (bun run dev) shows a correct phototransistor symbol (circle body, light-arrow indicators, collector/emitter leads)

The phototransistor asset SVG existed (misnamed "phototransistory.svg")
but was never wired up into a generated symbol. Fix the filename typo
and generate the horz/vert symbol variants with descriptive
collector/emitter port labels, matching the convention used by the
other bipolar transistor symbols.
@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the tscircuit Team on Vercel.

A member of the Team first needs to authorize it.

@ShayanMuhammad-CS

Copy link
Copy Markdown
Author

All required checks are green (Bun Test, Format Check, Type Check, Snapshot Validation). The one red status is the Vercel deploy preview, which is blocked pending maintainer authorization for first-time external contributors — not an issue with the change itself.

@seveibar @mohan-bee could one of you take a look and merge when you get a chance? Happy to make any adjustments if the port labeling or orientation choice (horz/vert, matching photodiode) should be different.

@ShayanMuhammad-CS

Copy link
Copy Markdown
Author

Closing this as it's been idle for a while and I'm trimming my open PRs. Thanks for the project!

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.

1 participant