videogen/apps/web/components/app-shell/SurfacePlaceholder.tsx
caelum0x d56639a594
Some checks failed
build-images / web (push) Has been cancelled
vision2026-ci / Python SDK resource tests (push) Has been cancelled
build-images / api (push) Has been cancelled
build-images / worker-gpu (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Has been cancelled
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Has been cancelled
codeql / Analyze (javascript-typescript) (push) Has been cancelled
codeql / Analyze (python) (push) Has been cancelled
perf / API hot-path micro-smoke (budgeted) (push) Has been cancelled
perf / Desktop engine crates (release build check) (push) Has been cancelled
vision2026-ci / API phase modules (ruff + pytest) (push) Has been cancelled
vision2026-ci / Alembic upgrade + drift check (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Has been cancelled
Menivor — open source release (MIT), free to use and fork
Paid, hosted product at menivor.com, now retired as a company project.
Fresh squashed history of the cleaned working tree (secret-scanned,
no .env, no customer data, no outreach logs). Built on
MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
2026-12-04 02:10:26 +03:00

64 lines
2.3 KiB
TypeScript

import type { ComponentType } from "react";
import Link from "next/link";
import { AppTopBar } from "@/components/app-shell/AppTopBar";
import { Button } from "@/components/ui/button";
import { Card, CardContent } from "@/components/ui/card";
export interface SurfacePlaceholderLink {
readonly href: string;
readonly label: string;
}
interface SurfacePlaceholderProps {
readonly icon: ComponentType<{ className?: string }>;
readonly title: string;
readonly summary: string;
/** What the finished surface will do, in plain words (no promises of numbers). */
readonly planned: readonly string[];
/** Existing surfaces that already cover part of the job today. */
readonly related: readonly SurfacePlaceholderLink[];
}
/**
* Honest placeholder for a navigation entry whose full surface is still being
* built: it states what is coming and links to what works today, so the nav
* never lands on a 404.
*/
export function SurfacePlaceholder({ icon: Icon, title, summary, planned, related }: SurfacePlaceholderProps) {
return (
<main className="min-h-dvh">
<AppTopBar />
<section className="container max-w-3xl py-8">
<div className="mb-2 flex items-center gap-2">
<Icon className="h-6 w-6 text-primary" aria-hidden />
<h1 className="text-2xl font-semibold">{title}</h1>
</div>
<p className="mb-6 text-sm text-muted-foreground">{summary}</p>
<Card>
<CardContent className="space-y-4 p-6">
<p className="text-sm font-medium">This page is in progress. When it ships you will be able to:</p>
<ul className="list-disc space-y-1 pl-5 text-sm text-muted-foreground">
{planned.map((line) => (
<li key={line}>{line}</li>
))}
</ul>
{related.length > 0 ? (
<div className="space-y-2 pt-2">
<p className="text-sm font-medium">Available today</p>
<div className="flex flex-wrap gap-2">
{related.map((link) => (
<Button key={link.href} asChild variant="outline" size="sm">
<Link href={link.href}>{link.label}</Link>
</Button>
))}
</div>
</div>
) : null}
</CardContent>
</Card>
</section>
</main>
);
}