const { Button, IconButton, Badge, Tag, Tabs, Input, Select, Radio, Dialog, Toast, Tooltip, Switch } = window.PrestigeServicesDesignSystem_020573; const WO = [ ["WO-2026-0417", "Leak under kitchen sink", "Meridian Lofts · 12B", "Plumbing", "open", "Urgent"], ["WO-2026-0416", "Hallway light out, 3rd floor", "Granite Row", "Electrical", "open", "Standard"], ["WO-2026-0412", "HVAC filter replacement", "Meridian Lofts · 7A", "HVAC", "scheduled", "Standard"], ["WO-2026-0409", "Balcony door won't latch", "The Foundry · 2C", "Carpentry", "open", "Low"], ["WO-2026-0401", "Unit turn — paint & floors", "Granite Row · 5D", "Renovation", "scheduled", "Standard"], ["WO-2026-0388", "Water heater replacement", "The Foundry · 1A", "Plumbing", "done", "Urgent"], ]; const stateBadge = { open: ["warning", "Open"], scheduled: ["info", "Scheduled"], done: ["success", "Completed"] }; const plus = ; function WorkOrderTable({ tab, onOpenRow }) { const rows = WO.filter((r) => tab === "all" || r[4] === tab); const th = { font: "500 10px var(--font-body)", letterSpacing: "var(--tracking-label)", textTransform: "uppercase", color: "var(--gray-500)", textAlign: "left", padding: "12px 18px", borderBottom: "1px solid var(--line-accent)" }; const td = { font: "300 14px var(--font-body)", color: "var(--text-primary)", padding: "15px 18px", borderBottom: "1px solid var(--border-default)" }; return ( {rows.map((r) => ( (e.currentTarget.style.background = "var(--gray-50)")} onMouseLeave={(e) => (e.currentTarget.style.background = "transparent")} onClick={() => onOpenRow(r)}> ))}
RefIssuePropertyTradeStatusPriority
{r[0]} {r[1]} {r[2]} {r[3]} {stateBadge[r[4]][1]} {r[5]}
); } function NewWorkOrderDialog({ open, onClose, onCreate }) { const [issue, setIssue] = React.useState(""); const [property, setProperty] = React.useState(""); const [trade, setTrade] = React.useState(""); const [priority, setPriority] = React.useState("Standard"); return ( }>
); } function App() { const [nav, setNav] = React.useState("dashboard"); const [tab, setTab] = React.useState("open"); const [dialog, setDialog] = React.useState(false); const [toast, setToast] = React.useState(null); const [detail, setDetail] = React.useState(null); const openCount = WO.filter((r) => r[4] === "open").length; const schedCount = WO.filter((r) => r[4] === "scheduled").length; return (
Tuesday, July 14, 2026

Dashboard

All properties Urgent only
setDialog(false)} onCreate={() => setToast({ tone: "success", title: "Work order created", description: "Crew dispatch will confirm scheduling." })} /> setDetail(null)} eyebrow={detail ? detail[0] : ""} title={detail ? detail[1] : ""} footer={}> {detail && (
{detail[2]}
{detail[3]} {stateBadge[detail[4]][1]}
)}
{toast && (
setToast(null)} />
)}
); } ReactDOM.createRoot(document.getElementById("root")).render();