// Home / Workspace Dashboard function ModuleHome({ onNavigate }) { const D = KS_DATA; const modBadge = (mod) => { const map = { word: { l:'W', c:'var(--mod-word)', t:'var(--mod-word-tint)' }, sheet: { l:'S', c:'var(--mod-sheets)', t:'var(--mod-sheets-tint)' }, sheets: { l:'S', c:'var(--mod-sheets)', t:'var(--mod-sheets-tint)' }, slides: { l:'P', c:'var(--mod-slides)', t:'var(--mod-slides-tint)' }, pdf: { l:'F', c:'var(--mod-pdf)', t:'var(--mod-pdf-tint)' }, notes: { l:'N', c:'var(--mod-notes)', t:'var(--mod-notes-tint)' }, board: { l:'B', c:'var(--mod-board)', t:'var(--mod-board-tint)' }, db: { l:'D', c:'var(--mod-db)', t:'var(--mod-db-tint)' }, }; return map[mod]; }; const quickCreate = [ { id: 'word', label: 'Document', kbd:'⌘⇧D', c: 'var(--mod-word)', t:'var(--mod-word-tint)', letter:'W' }, { id: 'sheets', label: 'Spreadsheet',kbd:'⌘⇧S', c: 'var(--mod-sheets)', t:'var(--mod-sheets-tint)', letter:'S' }, { id: 'slides', label: 'Presentation',kbd:'⌘⇧P',c: 'var(--mod-slides)', t:'var(--mod-slides-tint)', letter:'P' }, { id: 'pdf', label: 'PDF', kbd:'⌘⇧F', c: 'var(--mod-pdf)', t:'var(--mod-pdf-tint)', letter:'F' }, { id: 'notes', label: 'Note', kbd:'⌘⇧N', c: 'var(--mod-notes)', t:'var(--mod-notes-tint)', letter:'N' }, { id: 'board', label: 'Whiteboard', kbd:'⌘⇧B', c: 'var(--mod-board)', t:'var(--mod-board-tint)', letter:'B' }, { id: 'db', label: 'Database', kbd:'⌘⇧R', c: 'var(--mod-db)', t:'var(--mod-db-tint)', letter:'D' }, ]; const kindLabel = (k) => ({word:'Word',sheet:'Spreadsheet',slides:'Presentation',pdf:'PDF',notes:'Notes',board:'Whiteboard',db:'Database'}[k] || k); return (
{/* Greeting */}
Monday, 13 July 2026 · New Delhi

नमस्ते, {D.user.name.split(' ')[0]}.

You have 3 documents awaiting your review and 1 approval pending sign-off.
{/* Quick-create tiles */}
{quickCreate.map(q => ( ))}
{/* Two-column: recents + right sidebar */}
{/* Recents */}
Recent
{D.recentDocs.map(doc => { const b = modBadge(doc.kind); return ( onNavigate(doc.mod)}> ); })}
Name Owner Shared with Opened
{b.l}
{doc.title}
{kindLabel(doc.kind)}
{doc.owner} {doc.shared > 0 ? (
{Array.from({length: Math.min(3, doc.shared)}).map((_,i) => (
{'ABCD'[i]}
))}
+{doc.shared}
) : Just you}
{doc.opened}
{/* AI Briefing card */}
K
Karya AI · Morning briefing
Generated at 08:12 IST · Based on your workspace activity
Three items need your attention. The Cabinet Note on Digital Public Infrastructure has four unresolved comments from Shri Iyer — mostly around Section 3.2 (identity layer). The FY 2026-27 Budget Estimates are now consolidated; utilisation is at 63.4% overall, with Digital India Programme tracking below plan (61.7%). Suresh has approved the file — you can forward it to the Standing Committee. Finally, an RTI response was assigned to you by K. Nair — response is due 18 July.
{/* Right sidebar */}
); } window.ModuleHome = ModuleHome;