// direction-a-extras2.jsx — Smart Scheduling, Completion Intelligence, // and EOD "operator" line. Loaded after direction-a-extras.jsx. // Smart-slots screen — what the customer sees when booking from a quote. // Reflects /api/book/smart-slots: route-aware, density-aware, day-fit slots // chosen by Werkd, not raw calendar gaps. function SmartSlotsScreen({ theme = 'light' }) { const isDark = theme === 'dark'; const C = isDark ? { bg: '#181714', surface: '#22201c', text: '#f5f5f7', text2: '#a8a8b0', text3: '#8a8a92', hairline: '#38322b', brand: '#ff5c00', success: '#3cc26d', brandMuted: 'rgba(255,92,0,0.14)', } : { bg: '#f8f4ed', surface: '#fffdfa', text: '#171717', text2: '#6f7177', text3: '#9a9ca3', hairline: '#e3d8c9', brand: '#c4502a', success: '#16a34a', brandMuted: 'rgba(196,80,42,0.10)', }; return (
{/* Status bar */}
9:41
{/* Header */}
QUOTE #1042 · APPROVED
Book when it suits you
Just the times that fit our schedule this week — pick whatever works for you.
{/* Day picker */}
{[ { d: 'TUE', n: '24', active: false }, { d: 'WED', n: '25', active: true }, { d: 'THU', n: '26', active: false }, { d: 'FRI', n: '27', active: false }, ].map((d, i) => (
{d.d}
{d.n}
))}
{/* Smart slots */}
PICKED BY WERKD · WED MAY 25
{[ { time: '8:30 — 10:00 AM', label: 'Best fit', sub: 'On route between Parker & Russell jobs', best: true }, { time: '11:15 AM — 12:30 PM', label: 'Open window', sub: 'After Parker wraps' }, { time: '2:00 — 3:30 PM', label: 'Late open', sub: 'No travel — Russell within 6 mi' }, ].map((slot, i) => (
{slot.time} {slot.best && ( {slot.label.toUpperCase()} )}
{slot.sub}
{slot.best ? ( ) : ( )}
))}
Other times aren't shown — Eli's day is already full.
{/* Home indicator */}
); } // SMART SCHEDULING chapter — deliberately a quieter, supporting beat: no // eyebrow label, smaller headline, tighter padding than the flagship // chapters (Why Werkd, Money, Pricing) so the page reads as major/minor // rather than 12 equally-loud sections. function ASmartScheduling() { const DA = window.DA; const m = window.useIsMobile(); return (

Customers book when it suits you

Not raw calendar gaps. Slots picked by werkd — based on your route, your existing jobs, your work hours, and how dense the day already is.

01
Route-aware
Werkd offers windows that sit on or near your route that day. No detours, no doubling back across town.
02
Density-aware
Already have 6 jobs Tuesday? Werkd quietly hides Tuesday. No exploding days, no double-booked afternoons.
03
Workday-aware
No 6 AM emergencies offered for routine jobs. No Saturdays if you don't work Saturdays. Your rules, enforced quietly.
04
You confirm
A new request lands on your dispatch board for your tap. Nothing customer-facing auto-confirms without you in the loop.
WHY THIS IS DIFFERENT
Generic booking tools show every open calendar slot. Werkd shows the slots that protect your route, your day, and your sanity — because it actually knows what the rest of your day looks like.
); } // COMPLETION INTELLIGENCE — what Werkd surfaces when a job ends. Opens with // the payoff stat instead of eyebrow+headline+lede, as a second way (besides // ASmartScheduling's quieter treatment) to break the section-opener pattern. function ACompletionIntelligence() { const DA = window.DA; const m = window.useIsMobile(); return (
~90 sec from “done” to dispatched

When the job ends, werkd already knows what's next.

Most apps think a job's done when you tap "complete." Werkd walks you through what still has to happen before the money is clean — because it's been there before.

{/* The completion checklist visual */}
JOB · ARIA RUSSELL · THERMOSTAT INSTALL JUST MARKED COMPLETE · 4:51 PM
{[ { n: '01', t: 'Confirm work performed', d: 'Match the actual scope to the quote. Werkd flags additions for a change-order.', state: 'done' }, { n: '02', t: 'Capture changes', d: 'Added smart sensor in master bedroom. Werkd drafts a $48 change line for the invoice.', state: 'done' }, { n: '03', t: 'Photos & signature', d: 'Before/after photos saved. Customer signed on glass. Stored on the customer record.', state: 'done' }, { n: '04', t: 'Invoice drafted', d: 'Labor + parts + change-order rolled in. Werkd suggests a 5% loyalty discount — repeat customer.', state: 'ready' }, { n: '05', t: 'Payment link', d: 'Stripe checkout link ready. Card or bank transfer. Net-15 terms applied from customer record.', state: 'ready' }, { n: '06', t: 'Review request', d: 'Google review SMS drafted for tomorrow morning — customers respond 3× better to next-day asks.', state: 'queued' }, { n: '07', t: 'Closeout', d: 'Customer marked active. Suggested next-touch: HVAC tune-up in 11 months. Werkd will remind you.', state: 'queued' }, ].map((step, i) => (
{!m &&
{step.n}
}
{step.state === 'done' && ( )}
{step.t}
{step.d}
{step.state === 'done' ? 'DONE' : step.state === 'ready' ? 'READY' : 'QUEUED'}
))}
Net effect: nothing falls through. The money is clean. ~ 90 seconds from "done" to dispatched
); } Object.assign(window, { ASmartScheduling, ACompletionIntelligence, SmartSlotsScreen });