Status: backlog Priority: P1 Created: 2026-02-25 Blocked by: viz-labels-system
The existing Visualizer component in visualizer.cljs is used by Fulcro Inspect and other libraries. It needs enhanced rendering to show UML-standard labels and executable content annotations, but its public API (ui-visualizer, Visualizer) must remain compatible.
chart/transition-label (from viz-labels-system) instead of inline label constructionevent [guardName] / actions instead of event [cond]:diagram/condition is displayed when present:diagram/label show an activity compartment:
entry / actionName lines for each labeled on-entry childexit / actionName lines for each labeled on-exit childui-visualizer factory and Visualizer defsc remain public with same props interface:diagram/label/:diagram/condition render as beforesrc/main/com/fulcrologic/statecharts/visualization/visualizer.cljs — enhance chart->elk-tree label logic, add activity compartment rendering to state boxesReplace the inline label construction in chart->elk-tree (lines 40-46) and use-chart-elements (lines 113-119) with calls to chart/transition-label. Add entry/exit label extraction using chart/state-entry-labels and chart/state-exit-labels. In the state rendering section (lines 386-439), add the activity compartment div below the label div when entry/exit labels exist.
:viz build compiles without errors or new warningsUse the existing :viz demo app (shadow-cljs watch viz + server on port 8081).
demo_registry.clj that uses choice macro with named predicates and (on-entry {} (script {:expr f :diagram/label "load-data"})) — call it :label-demo:label-demo in chart picker → verify transitions show event [predName] not event [cond]entry / load-data in the activity compartment:basic-states-demo) → verify they render identically to before (no regressions)ui-visualizer still works with same computed props interfaceCan you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |