Server-rendered SVG DAG visualization component.
Renders a directed acyclic graph showing flow step dependencies.
Summary
Functions
Renders a dependency graph for a flow.
Adds each step's dependency slugs for dependency-graph rendering.
Functions
Renders a dependency graph for a flow.
Attributes
:steps- List of step maps with :step_slug and :deps keys:step_states- Optional map of step_slug => status for coloring:highlighted_step- Optional step slug to highlight
Attributes
steps(:list) (required)id(:string) - Defaults to"flow-dependency-graph".step_states(:map) - Defaults to%{}.highlighted_step(:any) - Defaults tonil.on_click(:any) - Defaults tonil.on_keydown(:any) - Defaults tonil.
@spec with_dependencies([PgFlow.Schema.Step.t()], [PgFlow.Schema.Dep.t()]) :: [map()]
Adds each step's dependency slugs for dependency-graph rendering.