← Commit history

demo: the fusion card loop honours proof too - the label said proves all 3 while the handler ran the single-surface path

John Lauer ·1278a8cc68 ·2mo ago ·parent cdee907
1 file changed +5
web-control-demo.html+5
@@ -1998,6 +1998,11 @@ for (const w of mine) {   ].forEach(function (s) {     var cc = card("grp-fusion", "verb", labelOf(s));     PART_CARDS.push({ cc: cc, label: labelFnOf(s) });+    // The KiCad loop honours `proof` and this one did not, so the Fusion library+    // card carried the "proves all 3" LABEL while still running the ordinary+    // single-surface path. The label promised three artifacts and the handler+    // delivered one - the exact mismatch this card exists to eliminate.+    if (s.proof) { cc.btn.onclick = function () { showFusionLibraryProof(cc); }; return; }     cc.btn.onclick = function () {       // fallback stays a FUNCTION: its args reference paths the stage step produces.       showSurface(cc, { showCmd: s.cmd, showArgs: s.args, stage: s.stage, fallback: s.fallback, pickTitle: "fusion", stateCmd: "fusion_state", startCmd: "fusion_start", windowInfoCmd: "fusion_window_info", note: s.note,