简化联合工作流动作状态
移除旧识别状态回退与重复分支 统一联合步骤的运行中和完成态显示
This commit is contained in:
@@ -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 (
|
||||
<section className="shrink-0 border-b border-(--platform-subpanel-border) bg-(--platform-subpanel-fill) px-4 py-3">
|
||||
|
||||
Reference in New Issue
Block a user