From adeb99450322aa28b5c5e193563bcd2959b83997 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 16:07:34 +0800 Subject: [PATCH] Open the audit report from the Technical Audit Report card - Mark the card available and send it to the existing audit report page - Title that page Technical Audit Report and add a link back to report types - Keep Reports highlighted in the menu on the audit pages Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_011zdoJUrqnkRrxhSVaRvd1X --- app/platform/[projectId]/old-reports/page.tsx | 5 +++-- app/platform/[projectId]/reports/page.tsx | 7 ++++--- components/language-provider.tsx | 1 + components/project-shell.tsx | 4 +++- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/app/platform/[projectId]/old-reports/page.tsx b/app/platform/[projectId]/old-reports/page.tsx index 988334ba..1c2cd95f 100644 --- a/app/platform/[projectId]/old-reports/page.tsx +++ b/app/platform/[projectId]/old-reports/page.tsx @@ -3,7 +3,7 @@ import Link from "next/link"; import { useEffect, useState } from "react"; import { useParams, useRouter } from "next/navigation"; -import { FileText, Loader2 } from "lucide-react"; +import { ArrowLeft, FileText, Loader2 } from "lucide-react"; import { ProjectShell } from "@/components/project-shell"; import { startReport } from "@/components/report/start-report"; import { supabase } from "@/lib/supabase"; @@ -95,8 +95,9 @@ export default function ReportsPage() { } return
+ Back to report types

Client deliverables

-

Reports

+

Technical Audit Report

Client-ready AI visibility, GEO and SEO audit reports. Each report combines this project's tracking data with a fresh audit of the brand's website and its top competitors. Reports are saved here, can be edited before sharing, and download as a PDF.

{canGenerate &&
diff --git a/app/platform/[projectId]/reports/page.tsx b/app/platform/[projectId]/reports/page.tsx index 259852d6..4f5d7359 100644 --- a/app/platform/[projectId]/reports/page.tsx +++ b/app/platform/[projectId]/reports/page.tsx @@ -1,7 +1,7 @@ "use client"; import { useCallback, useEffect, useMemo, useRef, useState, type ChangeEvent } from "react"; -import { useParams } from "next/navigation"; +import { useParams, useRouter } from "next/navigation"; import { Download, ExternalLink, Loader2, Plus, Printer, RefreshCw, Save, Sparkles, ChevronDown, Trash2, X } from "lucide-react"; import { ProjectShell } from "@/components/project-shell"; import { supabase } from "@/lib/supabase"; @@ -28,7 +28,7 @@ const TYPES: { id: ReportType; name: string; description: string; ready: boolean { id: "monthly", name: "Monthly Report", description: "AI visibility progress, citations, competitor benchmarking and next-month plans.", ready: true }, { id: "simple", name: "Simple Report", description: "A concise client-facing performance summary.", ready: false }, { id: "introductory", name: "Introductory Report", description: "An introduction to the brand's AI visibility baseline.", ready: false }, - { id: "technical_audit", name: "Technical Audit Report", description: "Technical SEO, GEO and website audit findings.", ready: false }, + { id: "technical_audit", name: "Technical Audit Report", description: "Technical SEO, GEO and website audit findings.", ready: true }, { id: "competitor_comparison", name: "Competitor Comparison Report", description: "A focused comparison against selected competitors.", ready: false }, ]; const AREAS = ["Website Content and Structure", "Knowledge Assets and Resources", "Branding and Authority", "Community Engagement", "Monitoring and Research"]; @@ -73,6 +73,7 @@ function Field({ label, value, onChange, placeholder = "Enter information", mult } export default function ReportsPage() { const { projectId } = useParams<{ projectId: string }>(); + const router = useRouter(); const [reportType, setReportType] = useState("monthly"); const [selectedMonth, setSelectedMonth] = useState(defaultReportMonth()); const { start, end } = monthDates(selectedMonth); @@ -473,7 +474,7 @@ export default function ReportsPage() {

Monthly report PowerPoint template

Canonical 10-slide template stored in platform storage.

{templateNotice &&

{templateNotice}

}
{canManageTemplate && <>}{templateExists ? Download template : }

Report type

5 report formats
-
{TYPES.map(t=>)}
+
{TYPES.map(t=>)}
{reportType==="monthly"?

{start && end ? "Reporting period: " + start + " to " + end : "Select a valid reporting month."}

:
This report format is planned for a future development stage.
}
{error&&
{error}
}{notice&&
{notice}
} diff --git a/components/language-provider.tsx b/components/language-provider.tsx index 3fecb070..05cf024d 100644 --- a/components/language-provider.tsx +++ b/components/language-provider.tsx @@ -1659,6 +1659,7 @@ Object.assign(zh, { "Generating the report": "正在生成报告", "This usually takes one to two minutes. You can leave this page and come back.": "通常需要一到两分钟。您可以离开此页面,稍后再回来查看。", "Back to reports": "返回报告列表", + "Back to report types": "返回报告类型", "Download PDF": "下载 PDF", "The report could not be generated": "无法生成报告", "Retry": "重试", diff --git a/components/project-shell.tsx b/components/project-shell.tsx index 4a216c57..88fdc9f7 100644 --- a/components/project-shell.tsx +++ b/components/project-shell.tsx @@ -129,7 +129,9 @@ export function ProjectShell({ children }: { children: React.ReactNode }) {