feat(dashboard): U8 — node editor authoring for foreach/step-review/parse-steps/code, rework edge inspector, template round-trip

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-06-04 11:50:45 -07:00
parent 0a3cc50f6f
commit ad5cd579be
12 changed files with 1303 additions and 46 deletions

View File

@@ -307,6 +307,73 @@
border-style: dashed;
}
/* ── Step-inversion nodes (KTD-3/4/12/15, U8) ── */
.wf-node-step-execute {
border-color: var(--accent, var(--ws-info));
}
.wf-node-step-review {
border-color: var(--ws-info);
}
.wf-node-parse-steps {
border-color: var(--ws-info);
}
.wf-node-code {
border-color: var(--text-muted);
font-family: var(--font-mono, monospace);
}
/* A foreach renders as a React Flow group node containing its template
* subgraph. Children are positioned inside the group's box. */
.wf-foreach-group {
width: 100%;
height: 100%;
box-sizing: border-box;
border: 1px dashed var(--accent, var(--ws-info));
border-radius: var(--radius-md);
background: color-mix(in srgb, var(--accent, var(--ws-info)) 6%, transparent);
padding: var(--space-xs);
}
.wf-foreach-group.wf-node--error {
border-color: var(--ws-error);
}
.wf-foreach-header {
display: inline-flex;
align-items: center;
gap: var(--space-xs);
font-size: 0.8rem;
color: var(--text);
}
.wf-foreach-empty {
margin-top: var(--space-sm);
padding: var(--space-sm);
border: 1px dashed var(--border);
border-radius: var(--radius-sm);
font-size: 0.7rem;
color: var(--text-muted);
text-align: center;
}
/* Rework edges (KTD-5): dashed accent stroke with a loop affordance. */
.wf-edge-rework .react-flow__edge-path {
stroke: var(--accent, var(--ws-info));
stroke-dasharray: 5 4;
stroke-width: 2;
}
.wf-code-source {
font-family: var(--font-mono, monospace);
font-size: 0.72rem;
white-space: pre;
overflow-x: auto;
}
.wf-node-icon {
display: inline-flex;
color: var(--text-muted);