Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
Thermo-nuclear review — workflow builder rounds 7 + inline {variable} tokens
Date: 2026-08-03 · Branch feat/automation · Uncommitted working tree (base ffcf47ef1)
Four independent reviewers: duplication/SSOT, structure, adversarial correctness, round-7 UI.
Original verdict: do not ship — five behaviour regressions, three of which meant the headline feature did not work in its most common usage. All findings now addressed; verification at the bottom.
Blockers (fixed)
- B1 — enum dropdowns replaced by a free-text box.
ValueFieldtested "is it text?" beforechoicesreachedLiteralControl, whose first rule ischoices → Select. Every enum column isprimitive/string, so status fields lost their dropdown and published asINCOMPLETE_CONFIG. Fixed structurally byfields/control.tspickControl— one ordered decision wherechoicesdisqualifies the free-text rule by construction. - B2 —
{did not open the menu mid-sentence.@tiptap/[email protected]defaultsallowedPrefixes: [" "], soHello {worked andPO#{did not.allowedPrefixes: nullis now threaded throughcreateMentionSuggestion. - B3 — Enter could not select from the menu. ProseMirror consults
editorProps.handleKeyDownbefore plugins, soVariableTextswallowing Enter for single-line mode also swallowed the popup's Enter.createMentionSuggestiongainedonActiveChange; the host now stands down while the popup is open. - B4 — a lone variable collapsed to a bare ref and broke saved workflows.
checkInputsaccepts any template for a text input but type-checks a bare ref, so anotify.messageholding one entity variable started failingTYPE_MISMATCH— and an already-saved template was silently rewritten on any keystroke.fromEditorPartsnow takescollapseSingleRef, true only where the ref is type-checked. Covered by a test. - B5 — widened cards desynced from the layout constant.
graph.tsstill hard-codedNODE_WIDTH = 440while cards grew to 540/500, so dropped nodes overlapped. Replaced byMAX_NODE_CARD_WIDTHfromnodes/kinds.ts;graph.test.tsnow derives its expectation instead of asserting480.
Structural (fixed)
ValueFieldis control selection only.pickControl(inline/chip/literal) plusfields/Field.tsxfor the label / required / issue-or-hint shell, which deleted three hand-copies includingClauseRow's degradedLabelled. The picker button now lives once infields/VariablePickerButton.tsx.VariableTextis controlled. It reconciles on content identity, ignoring labels. That deletedmine,revision,key={revision},signature(), the lazylivemount and its static preview — and with them the caret-at-end bug and the chip/shell CSS copied across packages.walkPathexported from@carbon/workflows; the verbatimwalkTypecopy inVariablePickeris gone.- One hop cap, one description helper.
MAX_PATHis exported fromvariableMenu.tsand consumed by the picker;describeVariableinlabelKeys.tsreplaced three copies of the "may be empty on this path" string and the incompatibility message. - One label builder.
VariableChipandvariableMenuItemsboth callrefLabel, so a reference reads identically as a chip and as an inline token.buildLabeldeleted. canCollapseenforced at the store.NODE_CAN_COLLAPSEis checked insetNodeExpanded, so nothing writesexpanded: falsefor a card that draws expanded.nodes/kinds.tsholds the macro-free per-kind facts (NODE_CARD_WIDTH,NODE_CAN_COLLAPSE) that layout and store code need.meta.tsreaches the translation catalog, which the unit-test runner cannot compile, so importing it fromgraph.tsbrokegraph.test.ts.
Smaller (fixed)
fieldPath is required; lookup rows look up match.N.field, which is what the checker
actually emits; the edge button is back to IconButton with an after: hit area instead of
a hand-rolled 20px one; the literal NUL byte in VariableText.tsx (which made git treat the
file as binary, so it never diffed) is now "\0"; Change variable / Pick a variable and
the stray-brace hint are translated; AGENTS.md corrected.
Deliberately not done
ports.tskeeps bothconditionPathLabelandconditionPortLabel. The "If" pill and the "Path 0" handle beside it are what was asked for, so the divergence is intended.- The stray-brace warning stays a field hint, not a
WorkflowIssue.WorkflowIssuehas no severity — every issue is fatal — and a literal{in a message is legal, so promoting it would block publishing valid workflows.
Verification
typecheck green for erp, @carbon/react, @carbon/tiptap, @carbon/workflows;
biome check clean but for the pre-existing NodeCard.tsx:103 warning; 45 erp workflow
tests and 302 @carbon/workflows tests pass. Not browser-verified.
Suspicions that did not pan out
mention.tsx's renderHTML override is correct for 2.27.2 and round-trips data-id;
StarterKit.configure({ bold, italic, strike, code: false }) uses real keys; the menu's
worst real case is 471 items built in ~0.33 ms into a virtualized list; EMPTY_LEFT
aliasing is harmless; itemsRef.current = … during render is the standard latest-ref
pattern; toEditorParts/partsToDoc is a genuine two-layer boundary, not duplication.