fix(web): 审稿页支持切换章节并打通验收后审下一章

This commit is contained in:
Yaojia Wang
2026-06-29 16:52:43 +02:00
parent a2849bf6b7
commit ab3f9e17b1
3 changed files with 83 additions and 14 deletions

View File

@@ -1,13 +1,14 @@
"use client";
import Link from "next/link";
import { ArrowRight, CheckCircle2, ListTree } from "lucide-react";
import { ArrowRight, CheckCircle2, ClipboardCheck, ListTree } from "lucide-react";
import { Button } from "@/components/ui/Button";
import { StatusNote } from "@/components/ui/StatusNote";
import type { AcceptResponse } from "@/lib/api/types";
import { buildAcceptPreview } from "@/lib/review/accept-preview";
import { ThinkingIndicator } from "@/components/ThinkingIndicator";
import { reviewChapterHref } from "@/lib/review/chapterNav";
import { buttonClass } from "@/lib/ui/variants";
interface AcceptPanelProps {
@@ -85,6 +86,13 @@ export function AcceptPanel({
<ArrowRight className="h-4 w-4" aria-hidden="true" />
{chapterNo + 1}
</Link>
<Link
href={reviewChapterHref(projectId, chapterNo + 1)}
className={buttonClass({ variant: "secondary" })}
>
<ClipboardCheck className="h-4 w-4" aria-hidden="true" />
{chapterNo + 1}
</Link>
<Link
href={`/projects/${projectId}/outline`}
className={buttonClass({ variant: "secondary" })}