/** * PHASE 3 verification harness — THROWAWAY, delete with the spike folder. * * The ten screens that consume consoleUi sit behind a login, so this renders * the seven rewritten primitives directly with stand-in data. It imports them * by their original names through the original module path, which is the point: * if these render, the adapters are signature-compatible. */ import React, { useState } from 'react'; import { Card, FilterBar, TableShell, Skeleton, Tooltip, LiveStatus, SlideDrawer, Pill, StatusChip, MetricPill, StampCell, SearchPill, KpiStrip, ORDER_STATUS, DELIVERY_STATUS, statusColor, BRAND, } from '../consoleUi'; import { Package } from 'lucide-react'; import { ConfirmModal } from '../ConfirmModal'; import { useNotify } from '../Toasts'; export default function ConsoleUiProbe() { const { notifyOk, notifyFail } = useNotify(); const [confirm, setConfirm] = useState(false); const [drawer, setDrawer] = useState(false); const [q, setQ] = useState(''); const [tab, setTab] = useState('pending'); return (

consoleUi — Phase 3 adapters

}, { label: 'Delivered', value: '1,102', color: '#10b981', icon: , badge: '88%' }, { label: 'Pending', value: '94', color: '#f59e0b', icon: }, { label: 'Cancelled', value: '52', color: '#ef4444', icon: }, ]} />
{['pending', 'confirmed', 'delivered', 'cancelled'].map((s) => ( setTab(s)} count={12}> {s} ))} hover me
{[ { id: '#1043', s: 'delivered', km: '4.2', amt: '₹248' }, { id: '#1041', s: 'cancelled', km: '1.1', amt: '₹89' }, { id: '#1040', s: 'pending', km: '7.8', amt: '₹156' }, ].map((r) => ( {r.id} {r.km} km {r.amt} ))}
Skeletons
Phase 5 — overlays & toasts
{ setConfirm(false); notifyOk('Unpublished from 3 outlets'); }} onCancel={() => setConfirm(false)} /> setDrawer(false)} title="Order #1043">

Escape should close this, and focus should return to the button that opened it.

); }