pcbjam/tests/kicad
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Gergő Törcsvári 4f8c2d1f56
feat(eeschema): collab bridge read/emit + build fixes; apply WIP (yjs-bridge commit 3)
eeschema's half of the Yjs collaborative bridge, reusing the generic reconciler /
BroadcastChannel transport unchanged. Zero kicad-fork change: native SCH_ITEM uuid +
native SCHEMATIC_LISTENER. All in the wasm layer (wasm/bindings/eeschema_embind.cpp).

Working (verified in the web app):
- kicadCollabSnapshot(): enumerate sch.Hierarchy() -> LastScreen()->Items() as
  {id,type,x,y}; registers the listener on first call
- emit: SCHEMATIC_LISTENER subclass -> per-item delta via window.kicadCollab.onDelta;
  fires on real SCH_COMMIT::Push (a real wire move broadcasts added/removed/changed)

Apply is a documented follow-up (gated off so a peer tab can't crash): SCH_ITEM::Move
traps with 'indirect call signature mismatch' when invoked outside a KiCad tool
coroutine (Asyncify+fiber+exception-trampoline). Modify/Clone/GetPosition all work;
only the virtual Move write traps. Fix direction: route apply through TOOL_MANAGER.

Also: build-kicad-target.sh now force-relinks when only <app>_embind.cpp changed (the
embind .o isn't a make dep, so new bindings silently vanished), and adds the
expected/rtree/fmt thirdparty includes the eeschema bindings need.

Tests: eeschema-collab.spec.ts covers snapshot (green); apply/two-tab skipped with the
blocker noted. WasmTool gates collab to pl_editor only until eeschema apply works.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-05 13:56:41 +02:00
..
utils tests: load-pcb e2e for microwave + pic_programmer demos 2026-05-29 09:51:18 +02:00
calculator.spec.ts add calculator build 2026-05-28 17:28:17 +02:00
eeschema-collab.spec.ts feat(eeschema): collab bridge read/emit + build fixes; apply WIP (yjs-bridge commit 3) 2026-06-05 13:56:41 +02:00
eeschema-load.spec.ts fix(wasm): self-heal fiber trampoline so schematic load doesn't hang 2026-06-02 20:32:25 +02:00
eeschema-url-regex.spec.ts test(eeschema): guard URL-detection wxRegEx UTF-8 fix + bump wxwidgets 2026-06-02 20:32:25 +02:00
eeschema.spec.ts feat(schematic): eeschema WASM build + e2e harness 2026-05-29 16:01:17 +02:00
fixtures.ts Organize test logs into separate directories by test suite and file 2025-12-27 16:35:40 +01:00
gerbview.spec.ts feat: gerbview WASM port 2026-06-03 14:23:57 +02:00
load-pcb-probe.spec.ts tests: load-pcb e2e for microwave + pic_programmer demos 2026-05-29 09:51:18 +02:00
load-pcb.spec.ts test: 💍 fix test cases 2026-06-05 11:42:01 +02:00
pcbnew.spec.ts test: 💍 fix test cases 2026-06-05 11:42:01 +02:00
pl_editor-collab.spec.ts feat(pl_editor): Yjs collaborative bridge — differ/apply + generic reconciler (yjs-bridge commit 2) 2026-06-05 13:56:41 +02:00
pl_editor-load.spec.ts test(e2e): web-app tool open-path suite + pl_editor open/wizard-skip 2026-06-03 08:52:34 +02:00
pl_editor-uuid.spec.ts feat(pl_editor): add KIID m_Uuid + (uuid) to .kicad_wks format (yjs-bridge commit 1) 2026-06-05 13:56:38 +02:00
pl_editor.spec.ts test(e2e): web-app tool open-path suite + pl_editor open/wizard-skip 2026-06-03 08:52:34 +02:00
symbol_editor.spec.ts feat: symbol_editor WASM port 2026-06-02 13:37:26 +02:00