diff options
| author | soryu <soryu@soryu.co> | 2026-02-22 15:23:24 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-02-22 15:26:46 +0000 |
| commit | 28f69e923cb7ee711b56fad07fb2d5b5220ce127 (patch) | |
| tree | 215dee64a2c70e26d76e5513fb789efaa4c2ee0b /makima/frontend/src/components/directives/DirectiveDAG.tsx | |
| parent | 6a34a6f3c423a7c57616762eb4cea2b7da52eaf3 (diff) | |
| download | soryu-28f69e923cb7ee711b56fad07fb2d5b5220ce127.tar.gz soryu-28f69e923cb7ee711b56fad07fb2d5b5220ce127.zip | |
fix: resolve frontend TypeScript build errors
- DirectiveDAG: fix layer rendering (afterSteps -> layer.steps with
StepNode), remove unused imports (StepNode re-added, BEFORE_TYPES
and OrchestratorStepNode removed)
- DirectiveDetail: remove dead virtualSteps code superseded by
specializedSteps
- useMultiTaskSubscription: remove duplicate backfilledTasksRef
declaration and dead backfillTask/convertTaskEventToEntry block
referencing non-existent TaskEvent and listTaskEvents
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'makima/frontend/src/components/directives/DirectiveDAG.tsx')
| -rw-r--r-- | makima/frontend/src/components/directives/DirectiveDAG.tsx | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/makima/frontend/src/components/directives/DirectiveDAG.tsx b/makima/frontend/src/components/directives/DirectiveDAG.tsx index 8c7def9..142df41 100644 --- a/makima/frontend/src/components/directives/DirectiveDAG.tsx +++ b/makima/frontend/src/components/directives/DirectiveDAG.tsx @@ -2,7 +2,6 @@ import { useMemo } from "react"; import type { DirectiveStep } from "../../lib/api"; import { StepNode } from "./StepNode"; import { - OrchestratorStepNode, type OrchestratorStepType, type OrchestratorStepStatus, } from "./OrchestratorStepNode"; @@ -35,13 +34,6 @@ interface Layer { steps: DirectiveStep[]; } -/** Types that should appear before the regular DAG steps */ -const BEFORE_TYPES = new Set<OrchestratorStepType>([ - "planning", - "replanning", - "plan-orders", -]); - function topoSort(steps: DirectiveStep[]): Layer[] { if (steps.length === 0) return []; @@ -97,14 +89,13 @@ export function DirectiveDAG({ steps, specializedSteps, onComplete, onFail, onSk </div> )} <div className="flex flex-wrap gap-3 justify-center"> - {afterSteps.map((vs) => ( - <OrchestratorStepNode - key={`${vs.type}-${vs.taskId}`} - type={vs.type} - taskId={vs.taskId} - status={vs.status} - label={vs.label} - hasQuestions={vs.hasQuestions} + {layer.steps.map((step) => ( + <StepNode + key={step.id} + step={step} + onComplete={onComplete ? () => onComplete(step.id) : undefined} + onFail={onFail ? () => onFail(step.id) : undefined} + onSkip={onSkip ? () => onSkip(step.id) : undefined} /> ))} </div> |
