feat(frontend): 统一「采用」动词族——替换整章/加到章末/替换这段,弃「回填」(UX P1-2)
This commit is contained in:
@@ -292,7 +292,7 @@ export function ChapterRewritePanel({
|
|||||||
size="sm"
|
size="sm"
|
||||||
>
|
>
|
||||||
<Check className="h-4 w-4" aria-hidden="true" />
|
<Check className="h-4 w-4" aria-hidden="true" />
|
||||||
接受最新版
|
采用(替换整章)
|
||||||
</Button>
|
</Button>
|
||||||
) : null}
|
) : null}
|
||||||
{rewrite.isStreaming ? (
|
{rewrite.isStreaming ? (
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ export function ContinuePanel({
|
|||||||
<div className="flex items-center justify-between gap-3">
|
<div className="flex items-center justify-between gap-3">
|
||||||
<SectionHeader
|
<SectionHeader
|
||||||
title="续写候选"
|
title="续写候选"
|
||||||
description="承接本章前文续写;点「再来一个」多生成几版,选中意的插入正文。"
|
description="承接本章前文续写;点「再来一个」多生成几版,选中意的加到章末。"
|
||||||
/>
|
/>
|
||||||
<Button onClick={onClose} variant="ghost" size="icon" aria-label="关闭续写">
|
<Button onClick={onClose} variant="ghost" size="icon" aria-label="关闭续写">
|
||||||
<X className="h-4 w-4" aria-hidden="true" />
|
<X className="h-4 w-4" aria-hidden="true" />
|
||||||
@@ -104,7 +104,7 @@ export function ContinuePanel({
|
|||||||
size="sm"
|
size="sm"
|
||||||
>
|
>
|
||||||
<Check className="h-4 w-4" aria-hidden="true" />
|
<Check className="h-4 w-4" aria-hidden="true" />
|
||||||
插入正文
|
采用(加到章末)
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<p className="whitespace-pre-wrap text-sm text-ink">{text}</p>
|
<p className="whitespace-pre-wrap text-sm text-ink">{text}</p>
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ import {
|
|||||||
// 对已落库的 ai 产出气泡挂「再接受」(复用编辑器既有 DRAFT-only HITL 回调,不绕验收事务);
|
// 对已落库的 ai 产出气泡挂「再接受」(复用编辑器既有 DRAFT-only HITL 回调,不绕验收事务);
|
||||||
// clarify 气泡与进行中(未落库/流式)气泡不挂。
|
// clarify 气泡与进行中(未落库/流式)气泡不挂。
|
||||||
export const ACCEPT_LABEL: Record<AcceptAction, string> = {
|
export const ACCEPT_LABEL: Record<AcceptAction, string> = {
|
||||||
replace_chapter: "接受这版(替换整章)",
|
replace_chapter: "采用(替换整章)",
|
||||||
append_draft: "插入正文(章末)",
|
append_draft: "采用(加到章末)",
|
||||||
refill_segment: "回填选段",
|
refill_segment: "采用(替换这段)",
|
||||||
};
|
};
|
||||||
|
|
||||||
interface ConversationThreadProps {
|
interface ConversationThreadProps {
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ export function RefinePanel({
|
|||||||
<div className="flex items-center justify-between gap-3">
|
<div className="flex items-center justify-between gap-3">
|
||||||
<SectionHeader
|
<SectionHeader
|
||||||
title="润色 / 再沟通"
|
title="润色 / 再沟通"
|
||||||
description="对选中段回炉;不满意可追加意见让 AI 再改一版,满意后接受回填。"
|
description="对选中段回炉;不满意可追加意见让 AI 再改一版,满意后采用替换这段。"
|
||||||
/>
|
/>
|
||||||
<Button onClick={onClose} variant="ghost" size="icon" aria-label="关闭润色">
|
<Button onClick={onClose} variant="ghost" size="icon" aria-label="关闭润色">
|
||||||
<X className="h-4 w-4" aria-hidden="true" />
|
<X className="h-4 w-4" aria-hidden="true" />
|
||||||
@@ -307,7 +307,7 @@ export function RefinePanel({
|
|||||||
size="sm"
|
size="sm"
|
||||||
>
|
>
|
||||||
<Check className="h-4 w-4" aria-hidden="true" />
|
<Check className="h-4 w-4" aria-hidden="true" />
|
||||||
接受回填
|
采用(替换这段)
|
||||||
</Button>
|
</Button>
|
||||||
{busy || clarifying ? (
|
{busy || clarifying ? (
|
||||||
<ThinkingIndicator
|
<ThinkingIndicator
|
||||||
|
|||||||
Reference in New Issue
Block a user