// Dashboard — first screen. Mirrors the structure: status header, // quick stats, recent sessions, recent activity. function Dashboard() { return (
RefreshNew Session} />
{/* Status row */}
{/* Stats row */}
View Insights}>
{/* Two col */}
View all →}>
View all →}>
); } const linkStyle = { fontSize: 12, color: 'var(--accent)', cursor: 'pointer', textDecoration: 'none' }; function StatusCard({ icon, label, value, sub, tone }) { const dotColor = tone === 'green' ? 'var(--green-500)' : 'var(--gray-400)'; return (
{tone === 'green' ? : } {label}
{value}
{sub &&
{sub}
}
); } function RecentSessionRow({ project, message, model, tokens, time, last }) { return (
e.currentTarget.style.background = 'var(--bg-quaternary)'} onMouseLeave={e => e.currentTarget.style.background = 'transparent'}> {project}
{message}
{model}
{tokens}
{time}
); } function DashActivityRow({ icon, tone, text, sub, time, last }) { const tones = { green: 'var(--green-500)', blue: 'var(--blue-500)', orange: 'var(--orange-500)', purple: 'var(--accent)' }; return (
{text}
{sub}
{time}
); } window.Dashboard = Dashboard;