fix: 修复生成链路三个阻塞问题
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful in 1m29s
CI/CD Pipeline / Frontend Lint (push) Successful in 32s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 34s
CI/CD Pipeline / Unit Tests (push) Successful in 1m50s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Successful in 1m39s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 1m51s
CI/CD Pipeline / Integration Tests (push) Successful in 1m30s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m21s
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Failing after 1505h38m42s
CI Build & Deploy Pipeline / Deploy Production (pull_request) Failing after 1505h38m45s
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Failing after 1505h38m47s
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Failing after 1505h38m49s
CI Build & Deploy Pipeline / Production Browser E2E (push) Failing after 1505h39m17s
CI Build & Deploy Pipeline / Build Production Worker Image (push) Failing after 1505h39m21s
CI Build & Deploy Pipeline / Build Production Web Image (push) Failing after 1505h39m23s
CI Build & Deploy Pipeline / Build Production API Image (push) Failing after 1505h39m25s
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Failing after 1505h40m27s
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Failing after 1505h40m27s
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Failing after 1505h40m28s
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Failing after 1505h40m30s
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Failing after 1505h40m32s
CI Build & Deploy Pipeline / Staging API Integration Tests (push) Failing after 1505h42m0s
CI Build & Deploy Pipeline / Staging E2E Tests (push) Failing after 1505h42m0s
CI Build & Deploy Pipeline / Build Staging Worker Image (push) Failing after 1505h42m4s
CI Build & Deploy Pipeline / Build Staging Web Image (push) Failing after 1505h42m6s
CI Build & Deploy Pipeline / Build Staging API Image (push) Failing after 1505h42m8s
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Failing after 1506h10m31s
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1506h12m11s
CI Build & Deploy Pipeline / Deploy Production (push) Failing after 1506h11m2s
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Failing after 1506h13m45s

1. EditingPlanner.css: 状态栏 display:none → flex 布局,恢复「生成历史」按钮可见
2. main.tsx: 添加 <AntApp> 包裹,修复 antd v5 message.xxx() toast 不显示
3. EditingPlanner.tsx: handleGoToGenerate 先重置计划状态为 draft,
   解决 failed 状态计划无法更新配置和触发生成的问题

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
CI Bot
2026-07-15 21:46:37 +08:00
parent 989a8221f2
commit 4dbd7968f0
3 changed files with 32 additions and 5 deletions
+4 -2
View File
@@ -6,7 +6,7 @@ import React from "react";
import ReactDOM from "react-dom/client";
import { RouterProvider } from "react-router-dom";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { ConfigProvider } from "antd";
import { ConfigProvider, App as AntApp } from "antd";
import zhCN from "antd/locale/zh_CN";
import router from "./router";
import "./index.css";
@@ -91,7 +91,9 @@ ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<QueryClientProvider client={queryClient}>
<ConfigProvider locale={zhCN} theme={theme}>
<RouterProvider router={router} />
<AntApp>
<RouterProvider router={router} />
</AntApp>
</ConfigProvider>
</QueryClientProvider>
</React.StrictMode>,
@@ -1812,7 +1812,27 @@
═══════════════════════════════════════ */
.ep-status-bar {
display: none;
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px 16px;
background: var(--ep-bg-card, #fff);
border-bottom: 1px solid var(--ep-border, #e8e8e8);
font-size: 12px;
color: var(--text-secondary, #666);
flex-shrink: 0;
}
.ep-status-left,
.ep-status-right {
display: flex;
align-items: center;
gap: 4px;
}
.ep-status-sep {
margin: 0 4px;
opacity: 0.35;
}
/* ═══════════════════════════════════════
@@ -955,14 +955,19 @@ const EditingPlanner: React.FC = () => {
let planId = loadedPlanId;
if (planId) {
// 已有计划 → 更新配置(不传 status,避免非 draft 状态被后端拒绝)
// 已有计划 → 先重置状态为 draft(failed/editing 等非 draft 状态会被后端拒绝更新和生成)
try {
await updateEditPlan(planId, { status: "draft" });
} catch (resetErr) {
console.warn("[状态重置跳过]", resetErr);
}
// 再更新配置
try {
await updateEditPlan(planId, {
config,
total_duration: totalDuration,
});
} catch (updateErr) {
// 非 draft 状态(如 failed/editing)PUT 会被拒绝,忽略继续生成
console.warn("[计划更新跳过]", updateErr);
}
} else {