import { motion } from 'framer-motion'; import { BarChart3, DatabaseZap, GitBranch, ShieldCheck, Sparkles, Workflow, ArrowRight, Search, Zap, Eye } from 'lucide-react'; const PROMPTS = [ { icon: BarChart3, title: 'Expansion revenue', query: 'Show net revenue retention by customer segment for the last 4 quarters', color: '#6366f1', }, { icon: Workflow, title: 'Pipeline quality', query: 'Which opportunities have high ARR but stalled for more than 30 days?', color: '#06b6d4', }, { icon: GitBranch, title: 'Support impact', query: 'Compare churn risk for customers with critical tickets versus healthy accounts', color: '#a78bfa', }, { icon: DatabaseZap, title: 'Product usage', query: 'Rank workspaces by query volume, failed executions, and active users this month', color: '#34d399', }, ]; const CAPABILITIES = [ { icon: Search, label: 'Hybrid RAG', desc: 'Vector + BM25 retrieval combined' }, { icon: Zap, label: 'Smart routing', desc: 'Picks the best LLM for the task' }, { icon: ShieldCheck, label: 'SQL guardrails', desc: 'Read-only, validated before execution' }, { icon: Eye, label: 'Full transparency', desc: 'See every step of the pipeline' }, ]; export default function WelcomeScreen({ onPrompt }) { return (
{/* Background radial glow */}
{/* Hero section */}
AI-driven SQL reasoning & execution engine Ask the business question.
PlainSQL constructs the answer.
Retrieving schemas, compiling SQL, validating queries, and synthesizing reports — monitored in real-time with full transparency.
{/* Capabilities row */} {CAPABILITIES.map((item, i) => { const IconComp = item.icon; return (

{item.label}

{item.desc}

); })}
{/* Prompt cards */}
Featured templates
{PROMPTS.map(({ icon: Icon, title, query, color }, i) => ( onPrompt(query)} className="group rounded-xl p-4 text-left transition-all border border-border-1 bg-surface-1 hover:bg-surface-hover focus-ring" onMouseEnter={e => { e.currentTarget.style.borderColor = `${color}40`; }} onMouseLeave={e => { e.currentTarget.style.borderColor = 'var(--border-1)'; }} >

{title}

{query}

))}
{/* Security note */} Strict read-only safety guardrails & SQL parsing applied
); }