refactor: remove placeholder join step
This commit is contained in:
@@ -31,8 +31,6 @@ const nodeColor = (data: WorkflowGraphNodeData): string => {
|
||||
return "#ef4444";
|
||||
case "foreach":
|
||||
return "#8b5cf6";
|
||||
case "join":
|
||||
return "#10b981";
|
||||
case "end":
|
||||
return "#6b7280";
|
||||
default:
|
||||
|
||||
@@ -7,7 +7,6 @@ export type WorkflowGraphNodeKind =
|
||||
| "condition"
|
||||
| "interrupt"
|
||||
| "foreach"
|
||||
| "join"
|
||||
| "end"
|
||||
| "unsupported";
|
||||
|
||||
@@ -94,8 +93,6 @@ const mapNodeKind = (type: unknown): WorkflowGraphNodeKind => {
|
||||
return "interrupt";
|
||||
case "foreach":
|
||||
return "foreach";
|
||||
case "join":
|
||||
return "join";
|
||||
case "end":
|
||||
return "end";
|
||||
default:
|
||||
@@ -119,7 +116,6 @@ const buildLabel = (
|
||||
return typeof node.kind === "string" ? node.kind : "Interrupt";
|
||||
}
|
||||
if (type === "foreach") return "For Each";
|
||||
if (type === "join") return "Join";
|
||||
if (type === "subgraph") {
|
||||
const workflowRef = typeof node.workflow === "string" ? node.workflow : undefined;
|
||||
if (workflowRef) {
|
||||
|
||||
@@ -46,7 +46,6 @@ describe("architectureCatalog", () => {
|
||||
"NodeUse",
|
||||
"Condition",
|
||||
"Foreach",
|
||||
"Join",
|
||||
"Subgraph",
|
||||
"Interrupt",
|
||||
"End",
|
||||
|
||||
@@ -524,7 +524,6 @@ export const architectureCatalog: FigureCatalogDefinition = defineFigureCatalog(
|
||||
"node-use": { x: 0, y: 0 },
|
||||
"condition": { x: 300, y: 0 },
|
||||
"foreach": { x: 600, y: 0 },
|
||||
"join": { x: 900, y: 0 },
|
||||
"subgraph": { x: 150, y: 210 },
|
||||
"interrupt": { x: 450, y: 210 },
|
||||
"end": { x: 750, y: 210 },
|
||||
@@ -542,7 +541,6 @@ export const architectureCatalog: FigureCatalogDefinition = defineFigureCatalog(
|
||||
},
|
||||
{ id: "condition", label: "Condition", summary: "Route true or false", kind: "decision", icon: "branch", evidencePointer: "src/wf_core/models/steps.py" },
|
||||
{ id: "foreach", label: "Foreach", summary: "Create item frames and barrier", kind: "loop", icon: "repeat", evidencePointer: "src/wf_core/models/steps.py" },
|
||||
{ id: "join", label: "Join", summary: "Close a branch or frame", kind: "operation", icon: "workflow", evidencePointer: "src/wf_core/models/steps.py" },
|
||||
{ id: "subgraph", label: "Subgraph", summary: "Enter a prepared child workflow", kind: "boundary", icon: "layers", evidencePointer: "src/wf_core/models/steps.py" },
|
||||
{ id: "interrupt", label: "Interrupt", summary: "Persist request and wait", kind: "boundary", icon: "pause", evidencePointer: "src/wf_core/models/steps.py", childFigureId: "interrupt-contract-detail" },
|
||||
{ id: "end", label: "End", summary: "Project a terminal outcome", kind: "terminal", icon: "stop", evidencePointer: "src/wf_core/models/steps.py" },
|
||||
|
||||
@@ -57,7 +57,6 @@ const stepKind = (step: JsonRecord): string => {
|
||||
"choose",
|
||||
"match",
|
||||
"foreach",
|
||||
"join",
|
||||
"end",
|
||||
]) {
|
||||
if (kind in step) return kind;
|
||||
|
||||
@@ -464,7 +464,6 @@ export interface WorkflowContractMap {
|
||||
| DraftUseStep
|
||||
| DraftForeachStep
|
||||
| DraftInterruptStep
|
||||
| DraftJoinStep
|
||||
| DraftEndStep
|
||||
| DraftWhenStep
|
||||
| DraftChooseStep
|
||||
@@ -1867,17 +1866,6 @@ export interface SchemaRef {
|
||||
type?: string | string[] | null;
|
||||
[k: string]: unknown;
|
||||
}
|
||||
/**
|
||||
* Draft step that emits the current core join node.
|
||||
*
|
||||
* This interface was referenced by `WorkflowContractMap`'s JSON-Schema
|
||||
* via the `definition` "DraftJoinStep".
|
||||
*/
|
||||
export interface DraftJoinStep {
|
||||
join?: {
|
||||
[k: string]: unknown;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Draft step that lowers to core `EndNode`.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user