PgFlowDashboard.Components.DependencyGraph (PgFlow v0.1.0)

Copy Markdown View Source

Server-rendered SVG DAG visualization component.

Renders a directed acyclic graph showing flow step dependencies.

Summary

Functions

Renders a dependency graph for a flow.

Functions

dependency_graph(assigns)

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)
  • step_states (:map) - Defaults to %{}.
  • highlighted_step (:any) - Defaults to nil.
  • on_click (:any) - Defaults to nil.