From fe6d0ea7a2fd7bf0e546ac40ed72db9d67156936 Mon Sep 17 00:00:00 2001 From: zintaen Date: Mon, 2 Nov 2026 05:01:06 +0700 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=A8=20[feat]=20visual:=20a=20node's?= =?UTF-8?q?=20`logo`=20draws=20the=20product's=20official=20mark=20on=20it?= =?UTF-8?q?s=20card?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A map node can carry `logo`, an SVG or PNG path relative to the map file like an intake source's `logo`. embed_logos inlines it, and the card shows it on a small white tile where the kind sigil sits (the details panel too). Card size, colour and layout do not change; a node without `logo` renders as before. Co-Authored-By: Claude Opus 5.5 --- skills/visual/assets/template.html | 7 +++++-- skills/visual/references/schema.md | 2 ++ skills/visual/scripts/visual.py | 9 ++++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/skills/visual/assets/template.html b/skills/visual/assets/template.html index 12eec105..a9b4dbce 100644 --- a/skills/visual/assets/template.html +++ b/skills/visual/assets/template.html @@ -195,6 +195,8 @@ .flowing svg .edge { opacity: .8; } @keyframes flowdash { to { stroke-dashoffset: -160; } } /* intake badges and the view tour: a ticket dot rides the loop while flow is on */ + svg .n-logo { fill: #fff; stroke: var(--border-2); stroke-width: .8; } + .ph .big.logo { background: #fff !important; box-shadow: inset 0 0 0 1px var(--border-2); } svg .intake-chip { fill: #fff; stroke: var(--border-2); stroke-width: 1.2; } svg .intake-tx { fill: var(--muted); font: 600 10.5px var(--sans); } svg .intake-chip.dashed { fill: var(--panel); stroke: var(--w-feeds); stroke-dasharray: 3 3; } @@ -1188,7 +1190,8 @@ else s += ` `; s += ` -${SIGIL[n.k]} +${n.logo ? `