You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(storybook): adornment slot Option A/B comparison with full header context
- Add Option A (inside border) vs Option B (on border) placement diagrams
to both BaseNode V2 and LoopNode V2 anatomy pages
- LoopNode V2 diagrams use full interactive header mocks (iteration picker +
Sequential badge + real adornment icons) so header crowding is visible
- Pros/cons bullet lists per option; two-point trade-off callout covering
canvas density and the topRight badge / header crowding tension
- Default Option B anatomy demo to All-selected state
- Switch Demo page to Option B pill (LoopExecutionCanvasNodePill) and
rename story to "Demo - Option B"
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
<h3className="text-sm font-semibold">Option A — Inside border</h3>
686
+
<ulclassName="mt-1.5 space-y-1 text-[12px]">
687
+
<liclassName="flex items-start gap-1.5"><spanclassName="mt-0.5 text-emerald-500">✓</span><spanclassName="text-foreground-muted">Never overflows node bounds — safe for dense canvas layouts where nodes sit close together.</span></li>
688
+
<liclassName="flex items-start gap-1.5"><spanclassName="mt-0.5 text-emerald-500">✓</span><spanclassName="text-foreground-muted">Predictable hit area — all interactions stay within the node boundary.</span></li>
689
+
<liclassName="flex items-start gap-1.5"><spanclassName="mt-0.5 text-red-400">✗</span><spanclassName="text-foreground-muted">Competes with node content near corners, reducing usable space.</span></li>
690
+
<liclassName="flex items-start gap-1.5"><spanclassName="mt-0.5 text-red-400">✗</span><spanclassName="text-foreground-muted">Badge can visually merge with the node background, reducing contrast.</span></li>
<h3className="text-sm font-semibold">Option B — On border</h3>
745
+
<ulclassName="mt-1.5 space-y-1 text-[12px]">
746
+
<liclassName="flex items-start gap-1.5"><spanclassName="mt-0.5 text-emerald-500">✓</span><spanclassName="text-foreground-muted">Familiar notification badge pattern — immediately recognisable to most users.</span></li>
747
+
<liclassName="flex items-start gap-1.5"><spanclassName="mt-0.5 text-emerald-500">✓</span><spanclassName="text-foreground-muted">Pops clearly against both the node background and the canvas — stronger contrast.</span></li>
748
+
<liclassName="flex items-start gap-1.5"><spanclassName="mt-0.5 text-red-400">✗</span><spanclassName="text-foreground-muted">Extends slightly outside node bounds — may overlap adjacent nodes or edges at tight spacing.</span></li>
749
+
<liclassName="flex items-start gap-1.5"><spanclassName="mt-0.5 text-red-400">✗</span><spanclassName="text-foreground-muted">Canvas layout needs to account for the overflow margin around each node.</span></li>
Option A is the safer choice when canvas nodes are densely packed, since badges never stray outside the node boundary. Option B is more visually distinct and follows a pattern users already recognise from notification systems, but requires the canvas layout to reserve a small overflow margin around each node to avoid clipping into neighbours.
0 commit comments