import type { Metadata } from "next"; import Link from "next/link"; import { notFound } from "next/navigation"; import { getPaths } from "yt-dlp-transcript-common/lib/paths"; import { readTemplates } from "yt-dlp-transcript-common/lib/chartsStore"; import { EditorChartsClient } from "../../components/EditorChartsClient"; import { getSiteCached } from "../lib/siteCache"; export const dynamic = "force-dynamic"; // → "Charts — — Sites" through the layout's title template. export const metadata: Metadata = { title: "Charts" }; export default async function SiteChartsPage({ params, }: { params: Promise<{ siteId: string }>; }) { const { siteId } = await params; if (!getSiteCached(siteId)) notFound(); const templates = readTemplates(getPaths(), siteId); return (

Author the default dashboard for {siteId}. Edits save automatically and bake into this site's next export build. Requires the stats dataset — build it in the Pool on the{" "} Sites {" "} page. The preview draws the stats dataset as last composed, which may be another site's.

); }