// Kayser v2 — Teach Kayser an automation sheet + Level-up celebration. // ============ TEACH SHEET ============ // Three-step linear flow: trigger → action → confidence threshold. // Designed to feel like a Raycast snippet/hotkey: tight, technical, but legible. const KXV2_TRIGGER_SUGGESTIONS = [ { icon: '◷', label: 'Invoice goes 7+ days overdue', tag: 'invoice.overdue' }, { icon: '◷', label: 'New lead arrives via website', tag: 'lead.new' }, { icon: '◷', label: 'Quote unanswered for 3 days', tag: 'quote.cold' }, { icon: '◷', label: '70%+ rain forecast on a job day', tag: 'weather.rain' }, { icon: '◷', label: 'Customer texts after hours', tag: 'sms.afterhours' }, ]; const KXV2_ACTION_SUGGESTIONS = [ { icon: '↗', label: 'Send a reminder text', tag: 'send.sms' }, { icon: '↗', label: 'Reschedule the job', tag: 'job.reschedule' }, { icon: '↗', label: 'Reply with availability + book a call', tag: 'lead.respond' }, { icon: '↗', label: 'Notify me only', tag: 'notify' }, { icon: '↗', label: 'Draft for my approval', tag: 'draft' }, ]; function KxV2TeachSheet({ open, onClose }) { const [step, setStep] = React.useState(0); const [trig, setTrig] = React.useState(null); const [act, setAct] = React.useState(null); const [conf, setConf] = React.useState(70); React.useEffect(() => { if (open) { setStep(0); setTrig(null); setAct(null); setConf(70); } }, [open]); const stepDot = (i, active) => (
); return (