import { createFileRoute } from "@tanstack/react-router";
import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card";
import { Badge } from "@/components/ui/badge";
import { Separator } from "@/components/ui/separator";
import {
Building2, Sparkles, DollarSign, TestTube2, GraduationCap, ArrowRight,
Mail, Cloud, ShieldCheck, GitPullRequest, Monitor, Users, Shield, Code,
} from "lucide-react";
export const Route = createFileRoute("/enterprise")({ component: EnterprisePage });
// ── Enterprise Persona Data ──
const PERSONAS = [
{
name: "CTO / VP Engineering",
icon: Building2,
metrics: 6,
blocked: 2,
color: "border-blue-500/30",
bg: "bg-blue-500/5",
badge: "bg-blue-500/15 text-blue-400",
insights: [
"57 idle licenses = $27K/yr waste",
"AI adoption at 68% — 32% of seats unused",
],
roi: "$27K/yr license savings",
},
{
name: "Engineering Manager",
icon: Users,
metrics: 7,
color: "border-purple-500/30",
bg: "bg-purple-500/5",
badge: "bg-purple-500/15 text-purple-400",
insights: [
"Dev A takes 3.2hr to first commit vs team avg 1.8hr",
"Team rework rate 47 edits/file — specs unclear",
],
roi: "2.6x sprint velocity improvement",
},
{
name: "DevEx Lead",
icon: Sparkles,
metrics: 7,
color: "border-cyan-500/30",
bg: "bg-cyan-500/5",
badge: "bg-cyan-500/15 text-cyan-400",
insights: [
"42% of devs quit the tool after 3 days",
"New hire ramp: 6 weeks to 2 weeks with context-mode",
],
roi: "6wk to 2wk onboarding",
},
{
name: "Security / CISO",
icon: Shield,
metrics: 5,
color: "border-red-500/30",
bg: "bg-red-500/5",
badge: "bg-red-500/15 text-red-400",
insights: [
"AWS key appeared in tool output for 7 minutes",
"12 dangerous command attempts blocked this week",
],
roi: "Full SOC2 AI audit trail",
},
{
name: "FinOps",
icon: DollarSign,
metrics: 1,
blocked: 4,
muted: true,
color: "border-zinc-500/20",
bg: "bg-zinc-500/5",
badge: "bg-zinc-500/15 text-zinc-500",
insights: [
"Cost data requires platform changes — 4 metrics blocked",
],
roi: "15-30% cost optimization (when unblocked)",
comingSoon: true,
},
{
name: "QA Lead",
icon: TestTube2,
metrics: 5,
color: "border-amber-500/30",
bg: "bg-amber-500/5",
badge: "bg-amber-500/15 text-amber-400",
insights: [
"Only 28% of sessions run tests",
"35% first-pass test rate — quality crisis signal",
],
roi: "Targeted tech debt sprints",
},
{
name: "Developer",
icon: Code,
metrics: 5,
color: "border-emerald-500/30",
bg: "bg-emerald-500/5",
badge: "bg-emerald-500/15 text-emerald-400",
insights: [
"Error rate dropped 60% after updating CLAUDE.md",
"Tool mastery curve: 34% to 11% errors in 8 weeks",
],
roi: "Personal mastery curve",
note: "Already in Personal tab",
},
{
name: "Onboarding",
icon: GraduationCap,
metrics: 5,
color: "border-orange-500/30",
bg: "bg-orange-500/5",
badge: "bg-orange-500/15 text-orange-400",
insights: [
"New hire first commit: 4.2hr vs team avg 1.8hr",
"Tool discovery: 3 tools week 1 to 8 tools week 6",
],
roi: "4x faster ramp time",
},
] as const;
// ── Enterprise Persona Card ──
function PersonaCard({ persona }: { persona: typeof PERSONAS[number] }) {
const Icon = persona.icon;
const isMuted = "muted" in persona && persona.muted;
return (
{insight} ROI {persona.roi} {persona.note}{persona.name}
{"comingSoon" in persona && persona.comingSoon && (
Team analytics, compliance, and cloud sessions
56 metrics · 8 personas · 143 actionable insights
The open source plugin handles individual developers. For teams, we're building a managed analytics layer.
Twilio model: plugin free, API paid.
Cloud sessions. Any device, any time. Full history.
5 spots for teams that want to shape the product. Free access during the design phase.