Skip to content

Add schematic-to-PCB component navigation callback - #262

Open
0hmX wants to merge 1 commit into
mainfrom
codex/go-to-pcb-view
Open

Add schematic-to-PCB component navigation callback#262
0hmX wants to merge 1 commit into
mainfrom
codex/go-to-pcb-view

Conversation

@0hmX

@0hmX 0hmX commented Aug 20, 2026

Copy link
Copy Markdown

Summary

Adds the producer-side API for navigating from a schematic component to its matching PCB component without coupling schematic-viewer to tabs or pcb-viewer.

  • adds the optional onNavigateToPcbComponent callback
  • resolves and emits schematic, source, and PCB component IDs
  • shows a compact, theme-matched Go to PCB View action only when a PCB representation exists
  • preserves existing component-click and popup behavior
  • exports the new callback options and viewer prop types

PR chain

Part 1 of 3 — merge first.

  1. This PR: schematic-viewer navigation callback
  2. tscircuit/pcb-viewer#963 — controlled component focus
  3. tscircuit/runframe#4668 — tab and focus integration

The downstream runframe integration requires releases containing parts 1 and 2 before its dependency versions can be updated.

Validation

  • bun test — 25 passed
  • bun run format:check
  • bun run build

@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
schematic-viewer Building Building Preview Aug 20, 2026 2:37pm

Request Review

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