Home / Patterns / Flow canvas
Flow canvas
The rule/flow builder: nodes, connectors with insert points, smart condition rows and live summary.
Canvas — nodes, edges, insert points, smart conditions
Summary
When new mail arrives · only when from contains "invoice" · move to Finance/Invoices
New mail arrives
watches INBOX every 90s
Only when
min score
invoice LLM
billing questions
Add a filter
Move to folder
Finance/Invoices
Add a step
dot-grid surface; 9px square handles; the + on a connector opens .flow-insert-menu; condition rows come in cond-field-kind / cond-category / cond-topic flavours
<div class="flowcanvas"><div class="flow-col">
<div class="flow-node"><div class="flow-head"><span class="flow-icon">▸</span>…</div>
<span class="flow-handle b"></span></div>
<div class="flow-edge"><button class="flow-insert" aria-label="Insert step">+</button></div>
<div class="cond-row cond-field-kind"><select class="cond-kind">…</select>
<span class="cond-field">…</span><input class="cond-value" value="invoice">
<button class="cond-remove">✕</button></div>
<div class="stepcard"><div class="flow-step-head">…</div><div class="stepfields">…</div></div>
</div></div>Pattern anatomy
| Class | Role |
|---|---|
| .flowcanvas | dot-grid surface (radial-gradient, 22px) |
| .flow-node / .flow-head / .flow-icon | node shell; .flow-icon.ai gets the blue AI square |
| .flow-edge / .flow-insert | connector + insert-on-connector + button (hidden until hover, always visible on touch) |
| .cond-row.k-* | smart condition rows; cond-category/cond-topic colour the kind selector blue |
| .stepcard / .stepfields | collapsible step with two-column field grid |
| .flow-summary | live plain-English bar above the canvas |
| .flow-seg | segmented radio (match all / any) |
Rendered with the P3 restoration. base.css sets select{width:100%}, and the pack's patterns.css carries an older condition-row block, so in the raw export the kind selector spans the whole row and the black/blue left rails are missing. Triage 0.1.0 merges the app's current rules (verbatim) into core/patterns.css at build time — this demo shows the intended inline compact selector. See AUDIT F11/P3.
Porting note. The canvas is a form, not a diagram library: nodes are ordered form groups in a flex column with decorative handles. Useful to copy if you need an auditable rule builder without a canvas framework.
Triage Design System v0.13.1-experiment — the central, app-agnostic UI design authority.
Source of truth: /tokens/tokens.json. Showcase chrome only:
site/.