pcbjam/wasm/bindings
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Gergő Törcsvári 9315f56760
libs: peer lib edits reach the running editor + "placed symbol updated" toast
synced-source subscribes to its SyncStack: remote changes (self-save echoes
consumed via a selfPushed flag) debounce per kind into kicadLibsReload — a
new embind export (pcbjam_libs_reload.h, all three TUs) that drops the lib's
plugin cache (LIBRARY_MANAGER::ReloadLibraryEntry), reloads it, and mails
MAIL_RELOAD_LIB with the nickname so the symbol tree force-refreshes (the
plugin's modify hash is a pinned constant, so a plain sync would skip it).

After the reload, kicadLibsSymbolUsage (new eeschema embind: placed
SCH_SYMBOL count across unique screens) gates LIB_ITEM_UPDATED_EVENT, and
WasmTool shows an amber toast when a PLACED symbol changed — placed copies
keep the previous version until updated from the library.

syncedScopeLibsSource gives PROJECT sessions the synced source under
VITE_LIBS_SOURCE=synced (remote contract for lib listing/createLib, lazy
per-lib SyncStacks for item ops/presync) so realtime reaches open
schematics; previously project sessions silently fell back to the per-item
remote source. Unit tests cover reload debounce, self-echo skip, per-kind
routing, usage-gated event, and the no-Module no-op.

Bumps kicad (MAIL_RELOAD_LIB force-refresh payload).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013QRWoXiM9uuo1enXGhAYku
2026-07-10 09:26:07 +02:00
..
calculator_embind.cpp add calculator build 2026-05-28 17:28:17 +02:00
collab_common.h refactor(collab): dedup embind collab/presence layer into shared headers (collab_common.h + collab_presence_core.h) 2026-07-10 09:17:32 +02:00
collab_presence_core.h fix(collab): re-push viewport on canvas resize — comment pins sat offset until pan/zoom 2026-07-10 09:25:14 +02:00
collab_presence_style.h feat(collab): follow-user (collab-presence 0008) + chip depth-layer fix 2026-07-10 09:25:13 +02:00
eeschema_embind.cpp libs: peer lib edits reach the running editor + "placed symbol updated" toast 2026-07-10 09:26:07 +02:00
kicad_editor_embind.cpp libs: peer lib edits reach the running editor + "placed symbol updated" toast 2026-07-10 09:26:07 +02:00
pcbjam_libs_reload.h libs: peer lib edits reach the running editor + "placed symbol updated" toast 2026-07-10 09:26:07 +02:00
pcbnew_embind.cpp libs: peer lib edits reach the running editor + "placed symbol updated" toast 2026-07-10 09:26:07 +02:00
pl_editor_embind.cpp feat: standalone save/load routing + VITE_DOC_SOURCE ydoc mode 2026-06-12 14:05:40 +02:00
sym_convert_embind.cpp sym_convert wasm diet: 31.3->11.05 MB via kiface prune + link-order shims (ysync 0009) 2026-07-10 09:25:14 +02:00