DurableDashboard.Path (DurableDashboard v0.1.0-rc)

Copy Markdown View Source

Path helpers for the dashboard.

base_path is the full mount prefix the host's router declares with dashboard_routes/2 — e.g. "/dashboard" or "/admin/durable". These helpers append the per-page suffix.

Usage

# Workflow definitions list
<.link navigate={Path.workflows(@base_path)}>Workflows</.link>

# Executions for a specific workflow definition
<.link navigate={Path.workflow_executions(@base_path, name)}>...</.link>

# All executions, filterable
<.link navigate={Path.executions(@base_path)}>Executions</.link>

# Single execution detail (and its tabs)
<.link navigate={Path.execution(@base_path, exec.id)}>...</.link>
<.link patch={Path.execution_tab(@base_path, exec.id, "logs")}>Logs</.link>

Summary

Functions

base(base_path)

@spec base(String.t()) :: String.t()

execution(base_path, id)

@spec execution(String.t(), String.t()) :: String.t()

execution_tab(base_path, id, tab)

@spec execution_tab(String.t(), String.t(), String.t() | atom()) :: String.t()

executions(base_path)

@spec executions(String.t()) :: String.t()

inputs(base_path)

@spec inputs(String.t()) :: String.t()

overview(base_path)

@spec overview(String.t()) :: String.t()

schedules(base_path)

@spec schedules(String.t()) :: String.t()

settings(base_path)

@spec settings(String.t()) :: String.t()

workflow(base_path, id)

This function is deprecated. Use execution/2 instead.
@spec workflow(String.t(), String.t()) :: String.t()

workflow_executions(base_path, name)

@spec workflow_executions(String.t(), String.t()) :: String.t()

workflow_tab(base_path, id, tab)

This function is deprecated. Use execution_tab/3 instead.
@spec workflow_tab(String.t(), String.t(), String.t() | atom()) :: String.t()

workflows(base_path)

@spec workflows(String.t()) :: String.t()