docs: added plugins documentation (#10989)

(Should be merged after the next release)

Closes DX-1294
This commit is contained in:
Shahed Nasser
2025-01-27 09:32:53 +00:00
committed by GitHub
parent 0c5f21e893
commit c26ef84cae
26 changed files with 2901 additions and 52 deletions
@@ -8,6 +8,7 @@ import { WorkflowDiagramLegend } from "../Common/Legend"
export const WorkflowDiagramList = ({
workflow,
hideLegend = false,
}: WorkflowDiagramCommonProps) => {
const clusters = createNodeClusters(workflow.steps)
@@ -20,7 +21,7 @@ export const WorkflowDiagramList = ({
<WorkflowDiagramListDepth cluster={cluster} next={next} key={depth} />
)
})}
<WorkflowDiagramLegend />
{!hideLegend && <WorkflowDiagramLegend />}
</div>
)
}
@@ -6,9 +6,13 @@ import { Loading } from "../.."
import { WorkflowDiagramCanvas } from "./Canvas"
import { WorkflowDiagramList } from "./List"
export type WorkflowDiagramCommonOptionsProps = {
hideLegend?: boolean
}
export type WorkflowDiagramCommonProps = {
workflow: Workflow
}
} & WorkflowDiagramCommonOptionsProps
export type WorkflowDiagramType = "canvas" | "list"