Integrate local business workflow and SaaS redesign

This commit is contained in:
2026-06-12 21:08:35 +02:00
parent f00c5a3193
commit 21c7e4c9a4
88 changed files with 2683 additions and 849 deletions

View File

@@ -4,69 +4,117 @@ import {
reviewQueue,
} from "@/lib/dashboard-model";
import { LeadFunnelBoard } from "@/components/lead-funnel-board";
import {
ArrowRight,
CheckCircle2,
ClipboardCheck,
FileSearch,
ShieldCheck,
} from "lucide-react";
const reviewSignals = [
{
label: "Evidence",
value: "belegt",
detail: "Audit-Aussagen brauchen Quellen, Screenshots oder geprüfte Seiten.",
icon: FileSearch,
surface: "evidence-surface",
},
{
label: "Approval",
value: "manuell",
detail: "Public Audit, E-Mail und finaler Versand bleiben getrennte Schritte.",
icon: ClipboardCheck,
surface: "review-surface",
},
{
label: "Reputation",
value: "geschützt",
detail: "Do-not-contact, Sperrliste und Limits sind Teil der Produktqualität.",
icon: ShieldCheck,
surface: "safe-surface",
},
];
export default function DashboardPage() {
return (
<main className="px-4 py-5 sm:px-6 lg:px-8">
<div className="mx-auto flex w-full max-w-7xl flex-col gap-6">
<header className="flex flex-col gap-3 border-b pb-5 lg:flex-row lg:items-end lg:justify-between">
<div>
<p className="text-sm font-medium text-muted-foreground">
Interner Arbeitsbereich
</p>
<h1 className="mt-2 text-3xl font-semibold tracking-normal">
Pipeline-Übersicht
</h1>
<p className="mt-2 max-w-2xl text-sm leading-6 text-muted-foreground">
Recherche, Audit-Freigabe und Outreach bleiben eng gekoppelt:
wenige gute Leads, manuelle Prüfung, kein automatischer Versand.
</p>
</div>
<p className="text-sm font-medium text-muted-foreground">MVP intern</p>
</header>
<section className="grid gap-3 sm:grid-cols-2 xl:grid-cols-4">
{dashboardKpis.map((kpi) => (
<article
className="rounded-lg border bg-card p-4 text-card-foreground"
key={kpi.label}
>
<p className="text-sm text-muted-foreground">{kpi.label}</p>
<p className="mt-3 text-3xl font-semibold tracking-normal">
{kpi.value}
</p>
<p className="mt-2 text-sm leading-5 text-muted-foreground">
{kpi.detail}
</p>
</article>
))}
</section>
<LeadFunnelBoard />
<section className="grid gap-3 lg:grid-cols-[1.45fr_0.55fr]">
<div className="rounded-lg border bg-card text-card-foreground">
<div className="border-b p-4">
<h2 className="text-base font-semibold tracking-normal">
Nächste Review-Schritte
</h2>
<p className="mt-1 text-sm leading-6 text-muted-foreground">
Alles bleibt an manuelle Freigabe gekoppelt.
<div className="mx-auto flex w-full max-w-[92rem] flex-col gap-6">
<header className="agency-panel overflow-hidden">
<div className="grid gap-5 p-5 lg:grid-cols-[minmax(0,1fr)_minmax(22rem,0.42fr)] lg:p-6">
<div className="min-w-0">
<p className="agency-kicker">SaaS Workspace · Agency Evidence Desk</p>
<h1 className="mt-3 max-w-4xl font-heading text-4xl font-semibold tracking-normal text-foreground">
Review, Evidence und Outreach-Sicherheit in einem Arbeitsfluss.
</h1>
<p className="mt-3 max-w-3xl text-sm leading-6 text-muted-foreground">
WebDev Pipeline hilft Agenturen, lokale Chancen zu finden,
konkrete Belege zu sammeln und Outreach erst nach sauberer
Freigabe zu starten.
</p>
</div>
<div className="divide-y">
<div className="grid gap-2">
{reviewSignals.map((signal) => {
const Icon = signal.icon;
return (
<article
className="rounded-md border border-border/70 bg-background/55 p-3"
key={signal.label}
>
<div className="flex items-start gap-3">
<span
className={`flex size-9 shrink-0 items-center justify-center rounded-md ${signal.surface}`}
>
<Icon className="size-4" />
</span>
<div className="min-w-0">
<p className="text-xs font-bold uppercase text-muted-foreground">
{signal.label}
</p>
<p className="text-sm font-semibold">{signal.value}</p>
<p className="mt-1 text-xs leading-5 text-muted-foreground">
{signal.detail}
</p>
</div>
</div>
</article>
);
})}
</div>
</div>
</header>
<section className="grid gap-3 lg:grid-cols-[minmax(0,0.85fr)_minmax(0,1.15fr)]">
<div className="agency-panel p-4">
<div className="flex items-center justify-between gap-3">
<div>
<p className="agency-kicker">Heute prüfen</p>
<h2 className="mt-1 font-heading text-xl font-semibold">
Approval Queue
</h2>
</div>
<span className="rounded-md bg-[var(--surface-review)] px-2.5 py-1 text-sm font-bold text-secondary-foreground">
{reviewQueue.length} offen
</span>
</div>
<div className="mt-4 grid gap-2">
{reviewQueue.map((item) => (
<article
className="grid gap-2 p-4 sm:grid-cols-[1fr_auto]"
className="rounded-md border border-border/75 bg-background/60 p-3"
key={`${item.title}-${item.company}`}
>
<div>
<h3 className="text-sm font-medium">{item.title}</h3>
<p className="mt-1 text-sm text-muted-foreground">
{item.company}
</p>
<div className="flex items-start justify-between gap-3">
<div className="min-w-0">
<h3 className="text-sm font-semibold">{item.title}</h3>
<p className="mt-1 text-sm text-muted-foreground">
{item.company}
</p>
</div>
<ArrowRight className="mt-1 size-4 shrink-0 text-primary" />
</div>
<p className="max-w-sm text-sm leading-6 text-muted-foreground sm:text-right">
<p className="mt-2 text-sm leading-5 text-muted-foreground">
{item.detail}
</p>
</article>
@@ -74,30 +122,60 @@ export default function DashboardPage() {
</div>
</div>
<div className="rounded-lg border bg-card p-4 text-card-foreground">
<h2 className="text-base font-semibold tracking-normal">
Betriebsmodus
</h2>
<div className="mt-4 grid gap-3">
<section
className="grid gap-3 sm:grid-cols-2 xl:grid-cols-4"
aria-label="Pipeline-Kennzahlen"
>
{dashboardKpis.map((kpi) => (
<article className="agency-rail p-4" key={kpi.label}>
<p className="text-xs font-bold uppercase text-muted-foreground">
{kpi.label}
</p>
<p className="mt-3 font-heading text-3xl font-semibold tracking-normal">
{kpi.value}
</p>
<p className="mt-2 text-sm leading-5 text-muted-foreground">
{kpi.detail}
</p>
</article>
))}
</section>
</section>
<LeadFunnelBoard />
<section className="agency-panel p-4">
<div className="flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between">
<div>
<p className="agency-kicker">Workspace Health</p>
<h2 className="mt-1 font-heading text-xl font-semibold">
Safety Ledger
</h2>
</div>
<p className="inline-flex items-center gap-2 text-sm font-semibold text-muted-foreground">
<CheckCircle2 className="size-4 text-primary" />
Kundenreputation bleibt geschützt
</p>
</div>
<div className="mt-4 grid gap-3 md:grid-cols-3">
{pipelineHealth.map((item) => {
const Icon = item.icon;
return (
<div
className="flex items-center justify-between gap-3 rounded-lg border bg-background p-3"
className="rounded-md border border-border/75 bg-background/60 p-3"
key={item.label}
>
<span className="inline-flex items-center gap-2 text-sm font-medium">
<Icon className="size-4 text-muted-foreground" />
<span className="inline-flex items-center gap-2 text-sm font-semibold">
<Icon className="size-4 text-primary" />
{item.label}
</span>
<span className="text-right text-sm text-muted-foreground">
<p className="mt-2 text-sm text-muted-foreground">
{item.value}
</span>
</p>
</div>
);
})}
</div>
</div>
</section>
</div>