From 163a6627baf466227df5b8732276a51b4451338e Mon Sep 17 00:00:00 2001 From: seaislee1209 Date: Wed, 17 Jun 2026 03:35:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(core/frontend):=20=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E8=B6=B4=E5=B7=A6=E4=BE=A7=E6=98=BE=E7=A4=BA=E6=9C=80=E8=BF=91?= =?UTF-8?q?=E4=B8=80=E7=89=88(=E9=87=8D=E6=96=B0=E7=94=9F=E6=88=90?= =?UTF-8?q?=E5=8D=B3=E6=9B=B4=E6=96=B0)+=20=E5=88=86=E9=95=9C=E5=8D=A1?= =?UTF-8?q?=E8=A1=A5=E7=BB=93=E6=9E=84=E5=8C=96=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - currentScript 改「最近一版」而非「采用版优先」:右侧 agent 重新生成后左侧立即显示新稿(下游故事板/视频仍按后端 is_adopted,互不影响) - 分镜卡补「标记」行:镜型(钩子/痛点/卖点/CTA)+ 商品露出,只读展示 ScriptDraft 结构化字段 Co-Authored-By: Claude Opus 4.8 (1M context) --- core/frontend/src/routes/pipeline.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/core/frontend/src/routes/pipeline.tsx b/core/frontend/src/routes/pipeline.tsx index e168ed6..099dd80 100644 --- a/core/frontend/src/routes/pipeline.tsx +++ b/core/frontend/src/routes/pipeline.tsx @@ -412,10 +412,11 @@ export function PipelinePage(props: { const frameUrl = (f?: { asset: string; asset_url?: string } | null): string => f?.asset_url || assetUrl(f?.asset); const segUrl = (s?: { adopted_asset?: string | null; adopted_asset_url?: string } | null): string => s?.adopted_asset_url || assetUrl(s?.adopted_asset); - // ── Stage 1:脚本(采用版优先,否则最近一版)+ 镜头列表 ── + // ── Stage 1:脚本(显示最近一版,采用状态用 badge 标)+ 镜头列表 ── + // 取最近一版而非「采用版优先」:右侧 agent 重新生成后(新版未采用),左侧要立刻显示新稿供 review, + // 否则会一直停在旧的已采用版,看着像「没更新」。下游故事板/视频仍按后端 is_adopted 取,互不影响。 const scripts = [...(project.script_versions ?? [])]; const currentScript = - scripts.find((s) => s.is_adopted) || [...scripts].sort((a, b) => (b.created_at || "").localeCompare(a.created_at || ""))[0] || null; const scriptAdopted = Boolean(currentScript?.is_adopted); @@ -1834,6 +1835,17 @@ export function PipelinePage(props: { }} >{visualShown} + {/* ScriptDraft 结构化字段:镜型(钩子/痛点/卖点/CTA)+ 商品露出方式(只读展示) */} + {(shot.role || shot.product_exposure) ? ( +
+ 标记 +
+ {shot.role ? `镜型·${shot.role}` : ""} + {shot.role && shot.product_exposure ? " " : ""} + {shot.product_exposure ? `露出·${shot.product_exposure}` : ""} +
+
+ ) : null} {/* 行34 · 该卡之后挂着的本地草稿分镜(点「添加分镜」插入,可编辑,有内容失焦才落库) */}