feat(frontend): 统一「采用」动词族——替换整章/加到章末/替换这段,弃「回填」(UX P1-2)

This commit is contained in:
Yaojia Wang
2026-07-10 18:00:28 +02:00
parent ceae24740a
commit 59d7c75737
4 changed files with 8 additions and 8 deletions

View File

@@ -292,7 +292,7 @@ export function ChapterRewritePanel({
size="sm"
>
<Check className="h-4 w-4" aria-hidden="true" />
</Button>
) : null}
{rewrite.isStreaming ? (

View File

@@ -65,7 +65,7 @@ export function ContinuePanel({
<div className="flex items-center justify-between gap-3">
<SectionHeader
title="续写候选"
description="承接本章前文续写;点「再来一个」多生成几版,选中意的插入正文。"
description="承接本章前文续写;点「再来一个」多生成几版,选中意的加到章末。"
/>
<Button onClick={onClose} variant="ghost" size="icon" aria-label="关闭续写">
<X className="h-4 w-4" aria-hidden="true" />
@@ -104,7 +104,7 @@ export function ContinuePanel({
size="sm"
>
<Check className="h-4 w-4" aria-hidden="true" />
</Button>
</div>
<p className="whitespace-pre-wrap text-sm text-ink">{text}</p>

View File

@@ -14,9 +14,9 @@ import {
// 对已落库的 ai 产出气泡挂「再接受」(复用编辑器既有 DRAFT-only HITL 回调,不绕验收事务);
// clarify 气泡与进行中(未落库/流式)气泡不挂。
export const ACCEPT_LABEL: Record<AcceptAction, string> = {
replace_chapter: "接受这版(替换整章)",
append_draft: "插入正文(章末)",
refill_segment: "回填选段",
replace_chapter: "采用(替换整章)",
append_draft: "采用(加到章末)",
refill_segment: "采用(替换这段)",
};
interface ConversationThreadProps {

View File

@@ -208,7 +208,7 @@ export function RefinePanel({
<div className="flex items-center justify-between gap-3">
<SectionHeader
title="润色 / 再沟通"
description="对选中段回炉;不满意可追加意见让 AI 再改一版,满意后接受回填。"
description="对选中段回炉;不满意可追加意见让 AI 再改一版,满意后采用替换这段。"
/>
<Button onClick={onClose} variant="ghost" size="icon" aria-label="关闭润色">
<X className="h-4 w-4" aria-hidden="true" />
@@ -307,7 +307,7 @@ export function RefinePanel({
size="sm"
>
<Check className="h-4 w-4" aria-hidden="true" />
</Button>
{busy || clarifying ? (
<ThinkingIndicator