// Janaushadhi SUPER ADMIN (platform) — shared chrome + the Feature Control Center const SAfont = { fontFamily: 'Inter, -apple-system, system-ui, sans-serif', color: C.ink900 }; // Distinct super-admin accent (indigo/violet) layered over the blue brand const SA = { ink: '#0A0E1F', panel: '#0E1430', accent: '#6D5BFF', accentSoft: '#1A1F44' }; // ── Super-admin sidebar (darker, platform-level) ───────────── function SuperSidebar({ active = 'overview' }) { const groups = [ { h: null, items: [{ id: 'overview', l: 'Platform overview', Icon: IconHome }] }, { h: 'CONTROL', items: [ { id: 'features', l: 'Feature control', Icon: IconFilter, badge: '6 off' }, { id: 'stores', l: 'Stores & tenants', Icon: IconLoc, badge: '142' }, { id: 'rollouts', l: 'Rollouts & flags', Icon: IconScan }, ]}, { h: 'GOVERNANCE', items: [ { id: 'plans', l: 'Plans & billing', Icon: IconCard }, { id: 'roles', l: 'Roles & access', Icon: IconShield }, { id: 'audit', l: 'Audit log', Icon: IconClock }, ]}, { h: 'PLATFORM', items: [ { id: 'analytics', l: 'Network analytics', Icon: IconStar }, { id: 'system', l: 'System health', Icon: IconBell, badge: 'OK', ok: true }, ]}, ]; return (
{/* Brand */}
J
Janaushadhi
SUPER ADMIN · PLATFORM
{/* Env switcher */}
Production
{groups.map((g, gi) => (
{g.h &&
{g.h}
}
{g.items.map(it => { const on = it.id === active; return (
{it.l} {it.badge && {it.badge}}
); })}
))}
RA
Riya Anand
Platform owner
); } function SuperTopBar({ title, sub, actions }) { return (
{title}
PLATFORM
{sub &&
{sub}
}
Search stores, features, flags
{actions}
); } function SuperShell({ active, title, sub, actions, children }) { return (
{children}
); } // Big toggle used across super admin function BigToggle({ on, accent = SA.accent }) { return (
); } Object.assign(window, { SA, SuperSidebar, SuperTopBar, SuperShell, BigToggle });