From f24fee942b2a215a1e4b620272d5975d8634f6d3 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Mon, 9 Mar 2026 19:19:46 -0700 Subject: [PATCH] feat(rflows): fix text-click drag, smart source labels, Pay by buttons - Prevent foreignObject HTML clicks from starting node drag (select + inline edit instead) - New source nodes get personalized "{username}'s stream to {flowName}" label - Replace source type
-
-
`; +
+
+ + + +
`; if (d.sourceType === "card") { html += ``; } @@ -3124,6 +3133,19 @@ class FolkFlowsApp extends HTMLElement { }); }); + // Pay-by buttons (source nodes) + overlay.querySelectorAll("[data-icp-source-type]").forEach((btn) => { + btn.addEventListener("click", (e: Event) => { + e.stopPropagation(); + (node.data as SourceNodeData).sourceType = (btn as HTMLElement).dataset.icpSourceType as any; + const body = overlay.querySelector(".icp-body") as HTMLElement; + if (body) body.innerHTML = this.renderInlineConfigContent(node); + this.attachInlineConfigFieldListeners(overlay, node); + this.redrawNodeOnly(node); + this.redrawEdges(); + }); + }); + // Range sliders overlay.querySelectorAll("[data-icp-range]").forEach((el) => { const input = el as HTMLInputElement; @@ -3326,10 +3348,12 @@ class FolkFlowsApp extends HTMLElement {
-
-
`; +
+
+ + + +
`; if (d.sourceType === "card") { html += `
-
Source Type
+
Pay by
${["card", "safe_wallet", "ridentity"].map((t) => `