From 8df5ebff6928c635017cc7d9730c85d80a62d5a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Sat, 5 Sep 2026 12:47:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96=E8=81=94=E5=90=88=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=E5=8A=A8=E4=BD=9C=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除旧识别状态回退与重复分支 统一联合步骤的运行中和完成态显示 --- .../components/WorkflowActionCard.tsx | 23 +++++++------------ 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/components/WorkflowActionCard.tsx b/apps/ai-game-creator-shell/src/view/ui-editor/components/WorkflowActionCard.tsx index 1945f62db..c62ebdfa1 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/components/WorkflowActionCard.tsx +++ b/apps/ai-game-creator-shell/src/view/ui-editor/components/WorkflowActionCard.tsx @@ -6,22 +6,15 @@ export function WorkflowActionCard({ workflow: UiEditorWorkflowProjection; }) { const action = getStepAction(workflow); + const isReferenceStep = workflow.activeStep === 'reference-analysis'; + const isCombinedStep = workflow.activeStep === 'structure-recognition'; const running = - (workflow.activeStep === 'reference-analysis' && workflow.isSuggesting) || - (workflow.activeStep === 'structure-recognition' && - (workflow.isRecognizing || workflow.isBinding)); - const status = - workflow.activeStep === 'reference-analysis' - ? workflow.suggestionStatus - : workflow.activeStep === 'structure-recognition' - ? workflow.bindingStatus || workflow.recognitionStatus - : workflow.bindingStatus; - const hasRun = - workflow.activeStep === 'reference-analysis' - ? workflow.hasSuggested - : workflow.activeStep === 'structure-recognition' - ? workflow.hasBound - : workflow.hasBound; + (isReferenceStep && workflow.isSuggesting) || + (isCombinedStep && workflow.isBinding); + const status = isReferenceStep + ? workflow.suggestionStatus + : workflow.bindingStatus; + const hasRun = isReferenceStep ? workflow.hasSuggested : workflow.hasBound; return (