fix(web): 大纲生成只替换目标卷+重排确认+窗口徽标用lucide + 伏笔看板中文化/单一登记入口/Field表单

This commit is contained in:
Yaojia Wang
2026-06-30 08:56:23 +02:00
parent f0f925b195
commit 68606b84dc
9 changed files with 214 additions and 142 deletions

View File

@@ -1,7 +1,7 @@
"use client";
import Link from "next/link";
import { PenLine } from "lucide-react";
import { Flag, PenLine } from "lucide-react";
import { Badge } from "@/components/ui/Badge";
import type { OutlineChapterView } from "@/lib/api/types";
@@ -16,7 +16,7 @@ interface OutlineChapterRowProps {
projectId: string;
}
// 单章大纲行UX §6.7):章号 + beats + 伏笔窗口徽标(+ 「写此章」入口。
// 单章大纲行UX §6.7):章号 + beats + 伏笔窗口徽标(lucide Flag 图标+ 「写此章」入口。
// 接近回收窗口的徽标用琥珀 + 「可回收」提示a11y图标 + 文案,不单靠色)。
export function OutlineChapterRow({ chapter, projectId }: OutlineChapterRowProps) {
const windows = chapter.foreshadow_windows ?? [];
@@ -41,6 +41,7 @@ export function OutlineChapterRow({ chapter, projectId }: OutlineChapterRowProps
variant={close ? "warning" : "accent"}
title={close ? "进入回收窗口,建议本章安排回收" : undefined}
>
<Flag className="h-4 w-4" aria-hidden="true" />
{windowBadgeLabel(w)}
{close ? " · 可回收" : ""}
</Badge>