From 78284e448c07a79c4ea209dcf37b77932fda3261 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Thu, 12 Mar 2026 00:07:42 -0700 Subject: [PATCH] fix(rsocials): remove duplicate port labels in campaign workflow nodes SVG text labels were rendering alongside HTML span labels, causing each input/output name to appear twice on drag & drop nodes. Co-Authored-By: Claude Opus 4.6 --- .../components/folk-campaign-workflow.ts | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/modules/rsocials/components/folk-campaign-workflow.ts b/modules/rsocials/components/folk-campaign-workflow.ts index 41d027e..614ba34 100644 --- a/modules/rsocials/components/folk-campaign-workflow.ts +++ b/modules/rsocials/components/folk-campaign-workflow.ts @@ -399,17 +399,6 @@ class FolkCampaignWorkflow extends HTMLElement { `; } - // Port labels - let portLabelHtml = ''; - for (const inp of def.inputs) { - const y = getPortY(node, inp.name, 'input'); - portLabelHtml += `${inp.name}`; - } - for (const out of def.outputs) { - const y = getPortY(node, out.name, 'output'); - portLabelHtml += `${out.name}`; - } - return ` @@ -430,7 +419,6 @@ class FolkCampaignWorkflow extends HTMLElement { ${portsHtml} - ${portLabelHtml} `; } @@ -567,24 +555,6 @@ class FolkCampaignWorkflow extends HTMLElement { c.setAttribute('cy', String(y)); }); }); - const labels = g.querySelectorAll('text'); - let labelIdx = 0; - for (const inp of def.inputs) { - if (labels[labelIdx]) { - const y = getPortY(node, inp.name, 'input'); - labels[labelIdx].setAttribute('x', String(node.position.x + 14)); - labels[labelIdx].setAttribute('y', String(y + 4)); - } - labelIdx++; - } - for (const out of def.outputs) { - if (labels[labelIdx]) { - const y = getPortY(node, out.name, 'output'); - labels[labelIdx].setAttribute('x', String(node.position.x + NODE_WIDTH - 14)); - labels[labelIdx].setAttribute('y', String(y + 4)); - } - labelIdx++; - } } private refreshConfigPanel() {