feat: Add Duo Security card to /admin/sync overview + detail page
- Added Duo card to sync overview grid (category: 2FA/MFA, green)
- Shows accounts, users, phones, auth logs counts + bypass/disabled warning
- Created /admin/sync/duo detail page with:
- Stat cards (accounts, users, phones, auth logs, groups, integrations)
- Parent account summary
- Child accounts table with user counts, matched company, sync time
- Sync Now button with polling for completion
- Created GET /api/duo/status endpoint (counts + last sync + bypass count)
- Added duo.ico logo
2026-03-27 11:14:49 -04:00
|
|
|
'use client';
|
|
|
|
|
|
|
|
|
|
import { useState, useEffect } from 'react';
|
|
|
|
|
import Link from 'next/link';
|
|
|
|
|
import { Button } from '@/components/ui/button';
|
feat(design): nav/visual overhaul — brand layer, /status route, KPI dashboard, TanStack DataTable
Major UI refresh on the nav-design-improvements branch. Drops 2013-era
inline styles and consolidates patterns behind shared primitives.
Foundation
- New Wulf brand layer in app/styles/brand.css repointing --primary to
the standards-guide blue (#0075AD) with utility classes for numerics
(.num / .num-lg / .num-xl), metric labels, surface tints, and the
wolf-mark watermark
- Switch primary face to IBM Plex Sans + IBM Plex Mono via next/font;
Helvetica/Arial stays in the fallback chain for brand fidelity
- Wordmark subtitle changed from "PSA Management System" to
"Operations console" everywhere it appeared
- Tagline footer ("Don't be afraid to cry") on every non-mobile page
Status moved out of /dashboard
- New /status route with integration tiles grouped by category, sync
health table, worker pulse cards (analyzer / RMM / sync scheduler),
token-expiry section, conditional alert banner
- Top-bar StatusIndicator polls integration health every 60s and links
to /status
- INTEGRATIONS_DISABLED env var suppresses operator-disabled
integrations (e.g. SentinelOne) — no failure noise from broken-on-
purpose entries. Aliases supported (sentinelone → s1, etc.)
Dashboard rebuilt around KPIs
- /api/dashboard/overview adds today snapshot (opened, resolved, open
total, SLA breaches) with delta math
- /api/dashboard/trends backs queue × priority heatmap, 30-day volume
area chart, 30-day mean resolution time line chart, today's active
engineers leaderboard
Components
- StatusBadge driven by lib/status-registry.ts (priority, ticket
status, classification, source, company type, publish, active /
yes-no / billable / approved registries)
- StatusLight (8px geometric square, five states, three sizes)
- EmptyState (shared dashed panel with icon + headline + optional CTA)
- KpiCard with delta indicator and tonal left border
- WulfMark (mark / wordmark variants from /public/branding)
- Skeleton helpers (SkeletonRow / Rows / Card / Chart / Header / Table)
Navigation
- Admin flat link → dropdown with seven shortcuts
- New UserMenu (initials avatar, role badge, settings + sign-out)
- Active-route highlight is now a 2px Wulf-blue underline echoing the
PageHeader rule (consistent across flat links and submenu triggers);
active children inside dropdowns use bg-primary/10
- Submenu width is content-driven (min-w 320 / max-w 440, single col)
- Mobile hamburger via Sheet, reuses the same nav config
Pages migrated
- 16 admin sub-pages adopt PageHeader (with accent prop)
- /addigy-devices: shadcn Table + Checkbox; PageHeader; status badges
- 10 raw <table> blocks across admin/sync/* migrated to shadcn Table
- /veeam-analysis migrated to shadcn Table (kept its expansion logic)
- Detail routes (analyzer ticket, analyzer analysis) get breadcrumbs
DataTable
- Rewritten on @tanstack/react-table v8 in manual mode; external API
unchanged so all 10+ data-browser pages keep working
- New optional props for drill-down rows: getRowCanExpand + renderSubRow
Mobile
- Multi-select Popover gets max-w-[calc(100vw-1rem)] and
collisionPadding so dropdowns can't overflow narrow viewports
- CI filter bar wraps and shrinks; stat pill flows below
Docs
- New ARCHITECTURE.md (load-bearing reference for runtime, data flow,
workers, analyzer pipeline, auth, deployment, gotchas)
- New DESIGN.md (tokens, layout, navigation IA, component vocabulary,
rolling backlog of remaining cleanup)
- CLAUDE.md refreshed with pointers to the two new docs and the
INTEGRATIONS_DISABLED operator config note
- shadcn registry registered as project-level MCP server (.mcp.json)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 09:33:13 -04:00
|
|
|
import {
|
|
|
|
|
Table,
|
|
|
|
|
TableBody,
|
|
|
|
|
TableCell,
|
|
|
|
|
TableHead,
|
|
|
|
|
TableHeader,
|
|
|
|
|
TableRow,
|
|
|
|
|
} from '@/components/ui/table';
|
2026-03-27 11:41:52 -04:00
|
|
|
import { RefreshCw, ArrowLeft, Loader2, CheckCircle2, AlertTriangle, Shield, Users, Smartphone, ScrollText, Layers, AppWindow, ChevronDown, ChevronUp, ShieldOff, ShieldAlert, ShieldX } from 'lucide-react';
|
feat: Add Duo Security card to /admin/sync overview + detail page
- Added Duo card to sync overview grid (category: 2FA/MFA, green)
- Shows accounts, users, phones, auth logs counts + bypass/disabled warning
- Created /admin/sync/duo detail page with:
- Stat cards (accounts, users, phones, auth logs, groups, integrations)
- Parent account summary
- Child accounts table with user counts, matched company, sync time
- Sync Now button with polling for completion
- Created GET /api/duo/status endpoint (counts + last sync + bypass count)
- Added duo.ico logo
2026-03-27 11:14:49 -04:00
|
|
|
|
|
|
|
|
interface DuoStatus {
|
|
|
|
|
connected: boolean;
|
|
|
|
|
syncing: boolean;
|
|
|
|
|
lastSync: string | null;
|
|
|
|
|
counts: {
|
|
|
|
|
accounts: number;
|
|
|
|
|
users: number;
|
|
|
|
|
phones: number;
|
|
|
|
|
authLogs: number;
|
|
|
|
|
groups: number;
|
|
|
|
|
integrations: number;
|
2026-03-27 11:41:52 -04:00
|
|
|
bypass: number;
|
|
|
|
|
disabled: number;
|
feat: Add Duo Security card to /admin/sync overview + detail page
- Added Duo card to sync overview grid (category: 2FA/MFA, green)
- Shows accounts, users, phones, auth logs counts + bypass/disabled warning
- Created /admin/sync/duo detail page with:
- Stat cards (accounts, users, phones, auth logs, groups, integrations)
- Parent account summary
- Child accounts table with user counts, matched company, sync time
- Sync Now button with polling for completion
- Created GET /api/duo/status endpoint (counts + last sync + bypass count)
- Added duo.ico logo
2026-03-27 11:14:49 -04:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-27 11:31:31 -04:00
|
|
|
interface FlaggedUser {
|
|
|
|
|
user_id: string;
|
|
|
|
|
username: string;
|
|
|
|
|
email: string | null;
|
|
|
|
|
realname: string | null;
|
|
|
|
|
status: string;
|
|
|
|
|
is_enrolled: boolean;
|
|
|
|
|
last_login: string | null;
|
|
|
|
|
notes: string | null;
|
|
|
|
|
account_name: string;
|
|
|
|
|
}
|
|
|
|
|
|
feat: Add Duo Security card to /admin/sync overview + detail page
- Added Duo card to sync overview grid (category: 2FA/MFA, green)
- Shows accounts, users, phones, auth logs counts + bypass/disabled warning
- Created /admin/sync/duo detail page with:
- Stat cards (accounts, users, phones, auth logs, groups, integrations)
- Parent account summary
- Child accounts table with user counts, matched company, sync time
- Sync Now button with polling for completion
- Created GET /api/duo/status endpoint (counts + last sync + bypass count)
- Added duo.ico logo
2026-03-27 11:14:49 -04:00
|
|
|
interface DuoAccount {
|
|
|
|
|
id: number;
|
|
|
|
|
account_id: string;
|
|
|
|
|
name: string;
|
|
|
|
|
api_hostname: string;
|
|
|
|
|
user_count: number;
|
|
|
|
|
integration_count: number;
|
|
|
|
|
is_parent: boolean;
|
|
|
|
|
synced_at: string | null;
|
|
|
|
|
autotask_company_id: string | null;
|
|
|
|
|
autotask_company_name: string | null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default function DuoSyncPage() {
|
|
|
|
|
const [status, setStatus] = useState<DuoStatus | null>(null);
|
|
|
|
|
const [accounts, setAccounts] = useState<DuoAccount[]>([]);
|
|
|
|
|
const [loading, setLoading] = useState(true);
|
|
|
|
|
const [syncing, setSyncing] = useState(false);
|
2026-03-27 11:41:52 -04:00
|
|
|
const [bypassUsers, setBypassUsers] = useState<FlaggedUser[]>([]);
|
|
|
|
|
const [disabledUsers, setDisabledUsers] = useState<FlaggedUser[]>([]);
|
|
|
|
|
const [showBypass, setShowBypass] = useState(false);
|
|
|
|
|
const [showDisabled, setShowDisabled] = useState(false);
|
feat: Add Duo Security card to /admin/sync overview + detail page
- Added Duo card to sync overview grid (category: 2FA/MFA, green)
- Shows accounts, users, phones, auth logs counts + bypass/disabled warning
- Created /admin/sync/duo detail page with:
- Stat cards (accounts, users, phones, auth logs, groups, integrations)
- Parent account summary
- Child accounts table with user counts, matched company, sync time
- Sync Now button with polling for completion
- Created GET /api/duo/status endpoint (counts + last sync + bypass count)
- Added duo.ico logo
2026-03-27 11:14:49 -04:00
|
|
|
|
|
|
|
|
const fetchData = async () => {
|
|
|
|
|
try {
|
2026-03-27 11:31:31 -04:00
|
|
|
const [statusRes, accountsRes, flaggedRes] = await Promise.all([
|
feat: Add Duo Security card to /admin/sync overview + detail page
- Added Duo card to sync overview grid (category: 2FA/MFA, green)
- Shows accounts, users, phones, auth logs counts + bypass/disabled warning
- Created /admin/sync/duo detail page with:
- Stat cards (accounts, users, phones, auth logs, groups, integrations)
- Parent account summary
- Child accounts table with user counts, matched company, sync time
- Sync Now button with polling for completion
- Created GET /api/duo/status endpoint (counts + last sync + bypass count)
- Added duo.ico logo
2026-03-27 11:14:49 -04:00
|
|
|
fetch('/api/duo/status'),
|
|
|
|
|
fetch('/api/duo/accounts'),
|
2026-03-27 11:31:31 -04:00
|
|
|
fetch('/api/duo/users/flagged'),
|
feat: Add Duo Security card to /admin/sync overview + detail page
- Added Duo card to sync overview grid (category: 2FA/MFA, green)
- Shows accounts, users, phones, auth logs counts + bypass/disabled warning
- Created /admin/sync/duo detail page with:
- Stat cards (accounts, users, phones, auth logs, groups, integrations)
- Parent account summary
- Child accounts table with user counts, matched company, sync time
- Sync Now button with polling for completion
- Created GET /api/duo/status endpoint (counts + last sync + bypass count)
- Added duo.ico logo
2026-03-27 11:14:49 -04:00
|
|
|
]);
|
|
|
|
|
if (statusRes.ok) setStatus(await statusRes.json());
|
|
|
|
|
if (accountsRes.ok) {
|
|
|
|
|
const d = await accountsRes.json();
|
|
|
|
|
setAccounts(d.accounts ?? []);
|
|
|
|
|
}
|
2026-03-27 11:31:31 -04:00
|
|
|
if (flaggedRes.ok) {
|
|
|
|
|
const d = await flaggedRes.json();
|
2026-03-27 11:41:52 -04:00
|
|
|
setBypassUsers(d.bypass ?? []);
|
|
|
|
|
setDisabledUsers(d.disabled ?? []);
|
2026-03-27 11:31:31 -04:00
|
|
|
}
|
feat: Add Duo Security card to /admin/sync overview + detail page
- Added Duo card to sync overview grid (category: 2FA/MFA, green)
- Shows accounts, users, phones, auth logs counts + bypass/disabled warning
- Created /admin/sync/duo detail page with:
- Stat cards (accounts, users, phones, auth logs, groups, integrations)
- Parent account summary
- Child accounts table with user counts, matched company, sync time
- Sync Now button with polling for completion
- Created GET /api/duo/status endpoint (counts + last sync + bypass count)
- Added duo.ico logo
2026-03-27 11:14:49 -04:00
|
|
|
} catch (e) {
|
|
|
|
|
console.error(e);
|
|
|
|
|
} finally {
|
|
|
|
|
setLoading(false);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
useEffect(() => { fetchData(); }, []);
|
|
|
|
|
|
|
|
|
|
const triggerSync = async () => {
|
|
|
|
|
setSyncing(true);
|
|
|
|
|
try {
|
|
|
|
|
await fetch('/api/duo/sync', { method: 'POST' });
|
|
|
|
|
// Poll for completion
|
|
|
|
|
const poll = setInterval(async () => {
|
|
|
|
|
const r = await fetch('/api/duo/sync');
|
|
|
|
|
if (r.ok) {
|
|
|
|
|
const d = await r.json();
|
|
|
|
|
if (!d.inProgress) {
|
|
|
|
|
clearInterval(poll);
|
|
|
|
|
setSyncing(false);
|
|
|
|
|
fetchData();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, 5000);
|
|
|
|
|
} catch (e) {
|
|
|
|
|
console.error(e);
|
|
|
|
|
setSyncing(false);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const fmtDate = (d: string | null) => {
|
|
|
|
|
if (!d) return 'Never';
|
|
|
|
|
return new Date(d).toLocaleString();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
if (loading) {
|
|
|
|
|
return (
|
|
|
|
|
<div className="flex items-center justify-center py-20">
|
|
|
|
|
<Loader2 className="w-6 h-6 animate-spin text-muted-foreground" />
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const childAccounts = accounts.filter(a => !a.is_parent);
|
|
|
|
|
const parentAccount = accounts.find(a => a.is_parent);
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="container mx-auto py-4 md:py-8 px-4 space-y-6">
|
|
|
|
|
{/* Header */}
|
|
|
|
|
<div className="flex items-center justify-between">
|
|
|
|
|
<div className="flex items-center gap-3">
|
|
|
|
|
<Link href="/admin/sync">
|
|
|
|
|
<Button variant="ghost" size="icon"><ArrowLeft className="w-4 h-4" /></Button>
|
|
|
|
|
</Link>
|
|
|
|
|
<div className="flex items-center gap-3">
|
|
|
|
|
<img src="/logos/duo.ico" alt="Duo" className="w-8 h-8 rounded" />
|
|
|
|
|
<div>
|
|
|
|
|
<h1 className="text-2xl font-bold">Duo Security</h1>
|
|
|
|
|
<p className="text-sm text-muted-foreground">2FA / MFA — Accounts & Admin API sync</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<Button onClick={triggerSync} disabled={syncing} className="gap-2">
|
|
|
|
|
{syncing ? <Loader2 className="w-4 h-4 animate-spin" /> : <RefreshCw className="w-4 h-4" />}
|
|
|
|
|
{syncing ? 'Syncing...' : 'Sync Now'}
|
|
|
|
|
</Button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Status cards */}
|
|
|
|
|
{status && (
|
|
|
|
|
<div className="grid grid-cols-2 md:grid-cols-3 xl:grid-cols-6 gap-3">
|
|
|
|
|
<StatCard icon={<Shield className="w-4 h-4" />} label="Accounts" value={status.counts.accounts} />
|
|
|
|
|
<StatCard icon={<Users className="w-4 h-4" />} label="Users" value={status.counts.users} />
|
|
|
|
|
<StatCard icon={<Smartphone className="w-4 h-4" />} label="Phones" value={status.counts.phones} />
|
|
|
|
|
<StatCard icon={<ScrollText className="w-4 h-4" />} label="Auth Logs" value={status.counts.authLogs} />
|
|
|
|
|
<StatCard icon={<Layers className="w-4 h-4" />} label="Groups" value={status.counts.groups} />
|
|
|
|
|
<StatCard icon={<AppWindow className="w-4 h-4" />} label="Integrations" value={status.counts.integrations} />
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{/* Last sync + warnings */}
|
2026-03-27 11:41:52 -04:00
|
|
|
<div className="flex flex-wrap items-center gap-4 text-sm text-muted-foreground">
|
feat: Add Duo Security card to /admin/sync overview + detail page
- Added Duo card to sync overview grid (category: 2FA/MFA, green)
- Shows accounts, users, phones, auth logs counts + bypass/disabled warning
- Created /admin/sync/duo detail page with:
- Stat cards (accounts, users, phones, auth logs, groups, integrations)
- Parent account summary
- Child accounts table with user counts, matched company, sync time
- Sync Now button with polling for completion
- Created GET /api/duo/status endpoint (counts + last sync + bypass count)
- Added duo.ico logo
2026-03-27 11:14:49 -04:00
|
|
|
<span>Last sync: <strong className="text-foreground">{fmtDate(status?.lastSync ?? null)}</strong></span>
|
2026-03-27 11:41:52 -04:00
|
|
|
{bypassUsers.length > 0 && (
|
2026-03-27 11:31:31 -04:00
|
|
|
<button
|
2026-03-27 11:41:52 -04:00
|
|
|
onClick={() => setShowBypass(!showBypass)}
|
|
|
|
|
className="flex items-center gap-1 text-red-600 hover:text-red-500 transition-colors font-medium"
|
2026-03-27 11:31:31 -04:00
|
|
|
>
|
2026-03-27 11:41:52 -04:00
|
|
|
<ShieldAlert className="w-4 h-4" />
|
|
|
|
|
{bypassUsers.length} user(s) in bypass — MFA not enforced
|
|
|
|
|
{showBypass ? <ChevronUp className="w-3 h-3" /> : <ChevronDown className="w-3 h-3" />}
|
|
|
|
|
</button>
|
|
|
|
|
)}
|
|
|
|
|
{disabledUsers.length > 0 && (
|
|
|
|
|
<button
|
|
|
|
|
onClick={() => setShowDisabled(!showDisabled)}
|
|
|
|
|
className="flex items-center gap-1 text-muted-foreground hover:text-foreground transition-colors"
|
|
|
|
|
>
|
|
|
|
|
<ShieldOff className="w-4 h-4" />
|
|
|
|
|
{disabledUsers.length} disabled user(s)
|
|
|
|
|
{showDisabled ? <ChevronUp className="w-3 h-3" /> : <ChevronDown className="w-3 h-3" />}
|
2026-03-27 11:31:31 -04:00
|
|
|
</button>
|
feat: Add Duo Security card to /admin/sync overview + detail page
- Added Duo card to sync overview grid (category: 2FA/MFA, green)
- Shows accounts, users, phones, auth logs counts + bypass/disabled warning
- Created /admin/sync/duo detail page with:
- Stat cards (accounts, users, phones, auth logs, groups, integrations)
- Parent account summary
- Child accounts table with user counts, matched company, sync time
- Sync Now button with polling for completion
- Created GET /api/duo/status endpoint (counts + last sync + bypass count)
- Added duo.ico logo
2026-03-27 11:14:49 -04:00
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-03-27 11:41:52 -04:00
|
|
|
{/* Bypass users — security concern */}
|
|
|
|
|
{showBypass && bypassUsers.length > 0 && (
|
|
|
|
|
<FlaggedUsersTable
|
|
|
|
|
title="Bypass Users — MFA Not Enforced"
|
|
|
|
|
description="These users can authenticate without completing MFA. This is a security risk."
|
|
|
|
|
users={bypassUsers}
|
|
|
|
|
icon={<ShieldAlert className="w-4 h-4 text-red-600" />}
|
|
|
|
|
borderColor="border-red-500/30"
|
|
|
|
|
bgColor="bg-red-500/5"
|
|
|
|
|
headerColor="text-red-700 dark:text-red-400"
|
|
|
|
|
fmtDate={fmtDate}
|
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{/* Disabled users — informational */}
|
|
|
|
|
{showDisabled && disabledUsers.length > 0 && (
|
|
|
|
|
<FlaggedUsersTable
|
|
|
|
|
title="Disabled Users"
|
|
|
|
|
description="These users are locked out and cannot authenticate. No action needed unless unexpected."
|
|
|
|
|
users={disabledUsers}
|
|
|
|
|
icon={<ShieldOff className="w-4 h-4 text-muted-foreground" />}
|
|
|
|
|
borderColor="border-border"
|
|
|
|
|
bgColor="bg-muted/5"
|
|
|
|
|
headerColor="text-muted-foreground"
|
|
|
|
|
fmtDate={fmtDate}
|
|
|
|
|
/>
|
2026-03-27 11:31:31 -04:00
|
|
|
)}
|
|
|
|
|
|
feat: Add Duo Security card to /admin/sync overview + detail page
- Added Duo card to sync overview grid (category: 2FA/MFA, green)
- Shows accounts, users, phones, auth logs counts + bypass/disabled warning
- Created /admin/sync/duo detail page with:
- Stat cards (accounts, users, phones, auth logs, groups, integrations)
- Parent account summary
- Child accounts table with user counts, matched company, sync time
- Sync Now button with polling for completion
- Created GET /api/duo/status endpoint (counts + last sync + bypass count)
- Added duo.ico logo
2026-03-27 11:14:49 -04:00
|
|
|
{/* Parent account */}
|
|
|
|
|
{parentAccount && (
|
|
|
|
|
<div className="rounded-lg border border-border p-4">
|
|
|
|
|
<h2 className="text-sm font-semibold mb-2 flex items-center gap-2">
|
|
|
|
|
<Shield className="w-4 h-4 text-blue-500" /> Parent Account
|
|
|
|
|
</h2>
|
|
|
|
|
<div className="grid grid-cols-2 md:grid-cols-4 gap-3 text-sm">
|
|
|
|
|
<div><span className="text-muted-foreground">Name:</span> <strong>{parentAccount.name}</strong></div>
|
|
|
|
|
<div><span className="text-muted-foreground">Users:</span> <strong>{parentAccount.user_count}</strong></div>
|
|
|
|
|
<div><span className="text-muted-foreground">Integrations:</span> <strong>{parentAccount.integration_count}</strong></div>
|
|
|
|
|
<div><span className="text-muted-foreground">Synced:</span> <strong>{fmtDate(parentAccount.synced_at)}</strong></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{/* Child accounts table */}
|
|
|
|
|
<div>
|
|
|
|
|
<h2 className="text-lg font-semibold mb-3">Child Accounts ({childAccounts.length})</h2>
|
|
|
|
|
<div className="rounded-lg border border-border overflow-hidden">
|
feat(design): nav/visual overhaul — brand layer, /status route, KPI dashboard, TanStack DataTable
Major UI refresh on the nav-design-improvements branch. Drops 2013-era
inline styles and consolidates patterns behind shared primitives.
Foundation
- New Wulf brand layer in app/styles/brand.css repointing --primary to
the standards-guide blue (#0075AD) with utility classes for numerics
(.num / .num-lg / .num-xl), metric labels, surface tints, and the
wolf-mark watermark
- Switch primary face to IBM Plex Sans + IBM Plex Mono via next/font;
Helvetica/Arial stays in the fallback chain for brand fidelity
- Wordmark subtitle changed from "PSA Management System" to
"Operations console" everywhere it appeared
- Tagline footer ("Don't be afraid to cry") on every non-mobile page
Status moved out of /dashboard
- New /status route with integration tiles grouped by category, sync
health table, worker pulse cards (analyzer / RMM / sync scheduler),
token-expiry section, conditional alert banner
- Top-bar StatusIndicator polls integration health every 60s and links
to /status
- INTEGRATIONS_DISABLED env var suppresses operator-disabled
integrations (e.g. SentinelOne) — no failure noise from broken-on-
purpose entries. Aliases supported (sentinelone → s1, etc.)
Dashboard rebuilt around KPIs
- /api/dashboard/overview adds today snapshot (opened, resolved, open
total, SLA breaches) with delta math
- /api/dashboard/trends backs queue × priority heatmap, 30-day volume
area chart, 30-day mean resolution time line chart, today's active
engineers leaderboard
Components
- StatusBadge driven by lib/status-registry.ts (priority, ticket
status, classification, source, company type, publish, active /
yes-no / billable / approved registries)
- StatusLight (8px geometric square, five states, three sizes)
- EmptyState (shared dashed panel with icon + headline + optional CTA)
- KpiCard with delta indicator and tonal left border
- WulfMark (mark / wordmark variants from /public/branding)
- Skeleton helpers (SkeletonRow / Rows / Card / Chart / Header / Table)
Navigation
- Admin flat link → dropdown with seven shortcuts
- New UserMenu (initials avatar, role badge, settings + sign-out)
- Active-route highlight is now a 2px Wulf-blue underline echoing the
PageHeader rule (consistent across flat links and submenu triggers);
active children inside dropdowns use bg-primary/10
- Submenu width is content-driven (min-w 320 / max-w 440, single col)
- Mobile hamburger via Sheet, reuses the same nav config
Pages migrated
- 16 admin sub-pages adopt PageHeader (with accent prop)
- /addigy-devices: shadcn Table + Checkbox; PageHeader; status badges
- 10 raw <table> blocks across admin/sync/* migrated to shadcn Table
- /veeam-analysis migrated to shadcn Table (kept its expansion logic)
- Detail routes (analyzer ticket, analyzer analysis) get breadcrumbs
DataTable
- Rewritten on @tanstack/react-table v8 in manual mode; external API
unchanged so all 10+ data-browser pages keep working
- New optional props for drill-down rows: getRowCanExpand + renderSubRow
Mobile
- Multi-select Popover gets max-w-[calc(100vw-1rem)] and
collisionPadding so dropdowns can't overflow narrow viewports
- CI filter bar wraps and shrinks; stat pill flows below
Docs
- New ARCHITECTURE.md (load-bearing reference for runtime, data flow,
workers, analyzer pipeline, auth, deployment, gotchas)
- New DESIGN.md (tokens, layout, navigation IA, component vocabulary,
rolling backlog of remaining cleanup)
- CLAUDE.md refreshed with pointers to the two new docs and the
INTEGRATIONS_DISABLED operator config note
- shadcn registry registered as project-level MCP server (.mcp.json)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 09:33:13 -04:00
|
|
|
<Table>
|
|
|
|
|
<TableHeader className="bg-muted/50">
|
|
|
|
|
<TableRow>
|
|
|
|
|
<TableHead>Account name</TableHead>
|
|
|
|
|
<TableHead className="text-right">Users</TableHead>
|
|
|
|
|
<TableHead className="text-right">Integrations</TableHead>
|
|
|
|
|
<TableHead>Matched company</TableHead>
|
|
|
|
|
<TableHead>Last sync</TableHead>
|
|
|
|
|
</TableRow>
|
|
|
|
|
</TableHeader>
|
|
|
|
|
<TableBody>
|
feat: Add Duo Security card to /admin/sync overview + detail page
- Added Duo card to sync overview grid (category: 2FA/MFA, green)
- Shows accounts, users, phones, auth logs counts + bypass/disabled warning
- Created /admin/sync/duo detail page with:
- Stat cards (accounts, users, phones, auth logs, groups, integrations)
- Parent account summary
- Child accounts table with user counts, matched company, sync time
- Sync Now button with polling for completion
- Created GET /api/duo/status endpoint (counts + last sync + bypass count)
- Added duo.ico logo
2026-03-27 11:14:49 -04:00
|
|
|
{childAccounts.map(a => (
|
feat(design): nav/visual overhaul — brand layer, /status route, KPI dashboard, TanStack DataTable
Major UI refresh on the nav-design-improvements branch. Drops 2013-era
inline styles and consolidates patterns behind shared primitives.
Foundation
- New Wulf brand layer in app/styles/brand.css repointing --primary to
the standards-guide blue (#0075AD) with utility classes for numerics
(.num / .num-lg / .num-xl), metric labels, surface tints, and the
wolf-mark watermark
- Switch primary face to IBM Plex Sans + IBM Plex Mono via next/font;
Helvetica/Arial stays in the fallback chain for brand fidelity
- Wordmark subtitle changed from "PSA Management System" to
"Operations console" everywhere it appeared
- Tagline footer ("Don't be afraid to cry") on every non-mobile page
Status moved out of /dashboard
- New /status route with integration tiles grouped by category, sync
health table, worker pulse cards (analyzer / RMM / sync scheduler),
token-expiry section, conditional alert banner
- Top-bar StatusIndicator polls integration health every 60s and links
to /status
- INTEGRATIONS_DISABLED env var suppresses operator-disabled
integrations (e.g. SentinelOne) — no failure noise from broken-on-
purpose entries. Aliases supported (sentinelone → s1, etc.)
Dashboard rebuilt around KPIs
- /api/dashboard/overview adds today snapshot (opened, resolved, open
total, SLA breaches) with delta math
- /api/dashboard/trends backs queue × priority heatmap, 30-day volume
area chart, 30-day mean resolution time line chart, today's active
engineers leaderboard
Components
- StatusBadge driven by lib/status-registry.ts (priority, ticket
status, classification, source, company type, publish, active /
yes-no / billable / approved registries)
- StatusLight (8px geometric square, five states, three sizes)
- EmptyState (shared dashed panel with icon + headline + optional CTA)
- KpiCard with delta indicator and tonal left border
- WulfMark (mark / wordmark variants from /public/branding)
- Skeleton helpers (SkeletonRow / Rows / Card / Chart / Header / Table)
Navigation
- Admin flat link → dropdown with seven shortcuts
- New UserMenu (initials avatar, role badge, settings + sign-out)
- Active-route highlight is now a 2px Wulf-blue underline echoing the
PageHeader rule (consistent across flat links and submenu triggers);
active children inside dropdowns use bg-primary/10
- Submenu width is content-driven (min-w 320 / max-w 440, single col)
- Mobile hamburger via Sheet, reuses the same nav config
Pages migrated
- 16 admin sub-pages adopt PageHeader (with accent prop)
- /addigy-devices: shadcn Table + Checkbox; PageHeader; status badges
- 10 raw <table> blocks across admin/sync/* migrated to shadcn Table
- /veeam-analysis migrated to shadcn Table (kept its expansion logic)
- Detail routes (analyzer ticket, analyzer analysis) get breadcrumbs
DataTable
- Rewritten on @tanstack/react-table v8 in manual mode; external API
unchanged so all 10+ data-browser pages keep working
- New optional props for drill-down rows: getRowCanExpand + renderSubRow
Mobile
- Multi-select Popover gets max-w-[calc(100vw-1rem)] and
collisionPadding so dropdowns can't overflow narrow viewports
- CI filter bar wraps and shrinks; stat pill flows below
Docs
- New ARCHITECTURE.md (load-bearing reference for runtime, data flow,
workers, analyzer pipeline, auth, deployment, gotchas)
- New DESIGN.md (tokens, layout, navigation IA, component vocabulary,
rolling backlog of remaining cleanup)
- CLAUDE.md refreshed with pointers to the two new docs and the
INTEGRATIONS_DISABLED operator config note
- shadcn registry registered as project-level MCP server (.mcp.json)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 09:33:13 -04:00
|
|
|
<TableRow key={a.account_id}>
|
|
|
|
|
<TableCell className="font-medium">{a.name}</TableCell>
|
|
|
|
|
<TableCell className="text-right num">{a.user_count}</TableCell>
|
|
|
|
|
<TableCell className="text-right num">{a.integration_count}</TableCell>
|
|
|
|
|
<TableCell>
|
feat: Add Duo Security card to /admin/sync overview + detail page
- Added Duo card to sync overview grid (category: 2FA/MFA, green)
- Shows accounts, users, phones, auth logs counts + bypass/disabled warning
- Created /admin/sync/duo detail page with:
- Stat cards (accounts, users, phones, auth logs, groups, integrations)
- Parent account summary
- Child accounts table with user counts, matched company, sync time
- Sync Now button with polling for completion
- Created GET /api/duo/status endpoint (counts + last sync + bypass count)
- Added duo.ico logo
2026-03-27 11:14:49 -04:00
|
|
|
{a.autotask_company_name ? (
|
|
|
|
|
<span className="flex items-center gap-1">
|
feat(design): nav/visual overhaul — brand layer, /status route, KPI dashboard, TanStack DataTable
Major UI refresh on the nav-design-improvements branch. Drops 2013-era
inline styles and consolidates patterns behind shared primitives.
Foundation
- New Wulf brand layer in app/styles/brand.css repointing --primary to
the standards-guide blue (#0075AD) with utility classes for numerics
(.num / .num-lg / .num-xl), metric labels, surface tints, and the
wolf-mark watermark
- Switch primary face to IBM Plex Sans + IBM Plex Mono via next/font;
Helvetica/Arial stays in the fallback chain for brand fidelity
- Wordmark subtitle changed from "PSA Management System" to
"Operations console" everywhere it appeared
- Tagline footer ("Don't be afraid to cry") on every non-mobile page
Status moved out of /dashboard
- New /status route with integration tiles grouped by category, sync
health table, worker pulse cards (analyzer / RMM / sync scheduler),
token-expiry section, conditional alert banner
- Top-bar StatusIndicator polls integration health every 60s and links
to /status
- INTEGRATIONS_DISABLED env var suppresses operator-disabled
integrations (e.g. SentinelOne) — no failure noise from broken-on-
purpose entries. Aliases supported (sentinelone → s1, etc.)
Dashboard rebuilt around KPIs
- /api/dashboard/overview adds today snapshot (opened, resolved, open
total, SLA breaches) with delta math
- /api/dashboard/trends backs queue × priority heatmap, 30-day volume
area chart, 30-day mean resolution time line chart, today's active
engineers leaderboard
Components
- StatusBadge driven by lib/status-registry.ts (priority, ticket
status, classification, source, company type, publish, active /
yes-no / billable / approved registries)
- StatusLight (8px geometric square, five states, three sizes)
- EmptyState (shared dashed panel with icon + headline + optional CTA)
- KpiCard with delta indicator and tonal left border
- WulfMark (mark / wordmark variants from /public/branding)
- Skeleton helpers (SkeletonRow / Rows / Card / Chart / Header / Table)
Navigation
- Admin flat link → dropdown with seven shortcuts
- New UserMenu (initials avatar, role badge, settings + sign-out)
- Active-route highlight is now a 2px Wulf-blue underline echoing the
PageHeader rule (consistent across flat links and submenu triggers);
active children inside dropdowns use bg-primary/10
- Submenu width is content-driven (min-w 320 / max-w 440, single col)
- Mobile hamburger via Sheet, reuses the same nav config
Pages migrated
- 16 admin sub-pages adopt PageHeader (with accent prop)
- /addigy-devices: shadcn Table + Checkbox; PageHeader; status badges
- 10 raw <table> blocks across admin/sync/* migrated to shadcn Table
- /veeam-analysis migrated to shadcn Table (kept its expansion logic)
- Detail routes (analyzer ticket, analyzer analysis) get breadcrumbs
DataTable
- Rewritten on @tanstack/react-table v8 in manual mode; external API
unchanged so all 10+ data-browser pages keep working
- New optional props for drill-down rows: getRowCanExpand + renderSubRow
Mobile
- Multi-select Popover gets max-w-[calc(100vw-1rem)] and
collisionPadding so dropdowns can't overflow narrow viewports
- CI filter bar wraps and shrinks; stat pill flows below
Docs
- New ARCHITECTURE.md (load-bearing reference for runtime, data flow,
workers, analyzer pipeline, auth, deployment, gotchas)
- New DESIGN.md (tokens, layout, navigation IA, component vocabulary,
rolling backlog of remaining cleanup)
- CLAUDE.md refreshed with pointers to the two new docs and the
INTEGRATIONS_DISABLED operator config note
- shadcn registry registered as project-level MCP server (.mcp.json)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 09:33:13 -04:00
|
|
|
<CheckCircle2 className="w-3 h-3 text-emerald-500" />
|
feat: Add Duo Security card to /admin/sync overview + detail page
- Added Duo card to sync overview grid (category: 2FA/MFA, green)
- Shows accounts, users, phones, auth logs counts + bypass/disabled warning
- Created /admin/sync/duo detail page with:
- Stat cards (accounts, users, phones, auth logs, groups, integrations)
- Parent account summary
- Child accounts table with user counts, matched company, sync time
- Sync Now button with polling for completion
- Created GET /api/duo/status endpoint (counts + last sync + bypass count)
- Added duo.ico logo
2026-03-27 11:14:49 -04:00
|
|
|
{a.autotask_company_name}
|
|
|
|
|
</span>
|
|
|
|
|
) : (
|
|
|
|
|
<span className="text-muted-foreground">—</span>
|
|
|
|
|
)}
|
feat(design): nav/visual overhaul — brand layer, /status route, KPI dashboard, TanStack DataTable
Major UI refresh on the nav-design-improvements branch. Drops 2013-era
inline styles and consolidates patterns behind shared primitives.
Foundation
- New Wulf brand layer in app/styles/brand.css repointing --primary to
the standards-guide blue (#0075AD) with utility classes for numerics
(.num / .num-lg / .num-xl), metric labels, surface tints, and the
wolf-mark watermark
- Switch primary face to IBM Plex Sans + IBM Plex Mono via next/font;
Helvetica/Arial stays in the fallback chain for brand fidelity
- Wordmark subtitle changed from "PSA Management System" to
"Operations console" everywhere it appeared
- Tagline footer ("Don't be afraid to cry") on every non-mobile page
Status moved out of /dashboard
- New /status route with integration tiles grouped by category, sync
health table, worker pulse cards (analyzer / RMM / sync scheduler),
token-expiry section, conditional alert banner
- Top-bar StatusIndicator polls integration health every 60s and links
to /status
- INTEGRATIONS_DISABLED env var suppresses operator-disabled
integrations (e.g. SentinelOne) — no failure noise from broken-on-
purpose entries. Aliases supported (sentinelone → s1, etc.)
Dashboard rebuilt around KPIs
- /api/dashboard/overview adds today snapshot (opened, resolved, open
total, SLA breaches) with delta math
- /api/dashboard/trends backs queue × priority heatmap, 30-day volume
area chart, 30-day mean resolution time line chart, today's active
engineers leaderboard
Components
- StatusBadge driven by lib/status-registry.ts (priority, ticket
status, classification, source, company type, publish, active /
yes-no / billable / approved registries)
- StatusLight (8px geometric square, five states, three sizes)
- EmptyState (shared dashed panel with icon + headline + optional CTA)
- KpiCard with delta indicator and tonal left border
- WulfMark (mark / wordmark variants from /public/branding)
- Skeleton helpers (SkeletonRow / Rows / Card / Chart / Header / Table)
Navigation
- Admin flat link → dropdown with seven shortcuts
- New UserMenu (initials avatar, role badge, settings + sign-out)
- Active-route highlight is now a 2px Wulf-blue underline echoing the
PageHeader rule (consistent across flat links and submenu triggers);
active children inside dropdowns use bg-primary/10
- Submenu width is content-driven (min-w 320 / max-w 440, single col)
- Mobile hamburger via Sheet, reuses the same nav config
Pages migrated
- 16 admin sub-pages adopt PageHeader (with accent prop)
- /addigy-devices: shadcn Table + Checkbox; PageHeader; status badges
- 10 raw <table> blocks across admin/sync/* migrated to shadcn Table
- /veeam-analysis migrated to shadcn Table (kept its expansion logic)
- Detail routes (analyzer ticket, analyzer analysis) get breadcrumbs
DataTable
- Rewritten on @tanstack/react-table v8 in manual mode; external API
unchanged so all 10+ data-browser pages keep working
- New optional props for drill-down rows: getRowCanExpand + renderSubRow
Mobile
- Multi-select Popover gets max-w-[calc(100vw-1rem)] and
collisionPadding so dropdowns can't overflow narrow viewports
- CI filter bar wraps and shrinks; stat pill flows below
Docs
- New ARCHITECTURE.md (load-bearing reference for runtime, data flow,
workers, analyzer pipeline, auth, deployment, gotchas)
- New DESIGN.md (tokens, layout, navigation IA, component vocabulary,
rolling backlog of remaining cleanup)
- CLAUDE.md refreshed with pointers to the two new docs and the
INTEGRATIONS_DISABLED operator config note
- shadcn registry registered as project-level MCP server (.mcp.json)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 09:33:13 -04:00
|
|
|
</TableCell>
|
|
|
|
|
<TableCell className="text-muted-foreground num">{fmtDate(a.synced_at)}</TableCell>
|
|
|
|
|
</TableRow>
|
feat: Add Duo Security card to /admin/sync overview + detail page
- Added Duo card to sync overview grid (category: 2FA/MFA, green)
- Shows accounts, users, phones, auth logs counts + bypass/disabled warning
- Created /admin/sync/duo detail page with:
- Stat cards (accounts, users, phones, auth logs, groups, integrations)
- Parent account summary
- Child accounts table with user counts, matched company, sync time
- Sync Now button with polling for completion
- Created GET /api/duo/status endpoint (counts + last sync + bypass count)
- Added duo.ico logo
2026-03-27 11:14:49 -04:00
|
|
|
))}
|
feat(design): nav/visual overhaul — brand layer, /status route, KPI dashboard, TanStack DataTable
Major UI refresh on the nav-design-improvements branch. Drops 2013-era
inline styles and consolidates patterns behind shared primitives.
Foundation
- New Wulf brand layer in app/styles/brand.css repointing --primary to
the standards-guide blue (#0075AD) with utility classes for numerics
(.num / .num-lg / .num-xl), metric labels, surface tints, and the
wolf-mark watermark
- Switch primary face to IBM Plex Sans + IBM Plex Mono via next/font;
Helvetica/Arial stays in the fallback chain for brand fidelity
- Wordmark subtitle changed from "PSA Management System" to
"Operations console" everywhere it appeared
- Tagline footer ("Don't be afraid to cry") on every non-mobile page
Status moved out of /dashboard
- New /status route with integration tiles grouped by category, sync
health table, worker pulse cards (analyzer / RMM / sync scheduler),
token-expiry section, conditional alert banner
- Top-bar StatusIndicator polls integration health every 60s and links
to /status
- INTEGRATIONS_DISABLED env var suppresses operator-disabled
integrations (e.g. SentinelOne) — no failure noise from broken-on-
purpose entries. Aliases supported (sentinelone → s1, etc.)
Dashboard rebuilt around KPIs
- /api/dashboard/overview adds today snapshot (opened, resolved, open
total, SLA breaches) with delta math
- /api/dashboard/trends backs queue × priority heatmap, 30-day volume
area chart, 30-day mean resolution time line chart, today's active
engineers leaderboard
Components
- StatusBadge driven by lib/status-registry.ts (priority, ticket
status, classification, source, company type, publish, active /
yes-no / billable / approved registries)
- StatusLight (8px geometric square, five states, three sizes)
- EmptyState (shared dashed panel with icon + headline + optional CTA)
- KpiCard with delta indicator and tonal left border
- WulfMark (mark / wordmark variants from /public/branding)
- Skeleton helpers (SkeletonRow / Rows / Card / Chart / Header / Table)
Navigation
- Admin flat link → dropdown with seven shortcuts
- New UserMenu (initials avatar, role badge, settings + sign-out)
- Active-route highlight is now a 2px Wulf-blue underline echoing the
PageHeader rule (consistent across flat links and submenu triggers);
active children inside dropdowns use bg-primary/10
- Submenu width is content-driven (min-w 320 / max-w 440, single col)
- Mobile hamburger via Sheet, reuses the same nav config
Pages migrated
- 16 admin sub-pages adopt PageHeader (with accent prop)
- /addigy-devices: shadcn Table + Checkbox; PageHeader; status badges
- 10 raw <table> blocks across admin/sync/* migrated to shadcn Table
- /veeam-analysis migrated to shadcn Table (kept its expansion logic)
- Detail routes (analyzer ticket, analyzer analysis) get breadcrumbs
DataTable
- Rewritten on @tanstack/react-table v8 in manual mode; external API
unchanged so all 10+ data-browser pages keep working
- New optional props for drill-down rows: getRowCanExpand + renderSubRow
Mobile
- Multi-select Popover gets max-w-[calc(100vw-1rem)] and
collisionPadding so dropdowns can't overflow narrow viewports
- CI filter bar wraps and shrinks; stat pill flows below
Docs
- New ARCHITECTURE.md (load-bearing reference for runtime, data flow,
workers, analyzer pipeline, auth, deployment, gotchas)
- New DESIGN.md (tokens, layout, navigation IA, component vocabulary,
rolling backlog of remaining cleanup)
- CLAUDE.md refreshed with pointers to the two new docs and the
INTEGRATIONS_DISABLED operator config note
- shadcn registry registered as project-level MCP server (.mcp.json)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 09:33:13 -04:00
|
|
|
</TableBody>
|
|
|
|
|
</Table>
|
feat: Add Duo Security card to /admin/sync overview + detail page
- Added Duo card to sync overview grid (category: 2FA/MFA, green)
- Shows accounts, users, phones, auth logs counts + bypass/disabled warning
- Created /admin/sync/duo detail page with:
- Stat cards (accounts, users, phones, auth logs, groups, integrations)
- Parent account summary
- Child accounts table with user counts, matched company, sync time
- Sync Now button with polling for completion
- Created GET /api/duo/status endpoint (counts + last sync + bypass count)
- Added duo.ico logo
2026-03-27 11:14:49 -04:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function StatCard({ icon, label, value }: { icon: React.ReactNode; label: string; value: number }) {
|
|
|
|
|
return (
|
|
|
|
|
<div className="rounded-lg border border-border p-3">
|
|
|
|
|
<div className="flex items-center gap-2 text-muted-foreground mb-1">
|
|
|
|
|
{icon}
|
|
|
|
|
<span className="text-xs">{label}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="text-xl font-bold">{value.toLocaleString()}</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
2026-03-27 11:41:52 -04:00
|
|
|
|
|
|
|
|
function FlaggedUsersTable({ title, description, users, icon, borderColor, bgColor, headerColor, fmtDate }: {
|
|
|
|
|
title: string;
|
|
|
|
|
description: string;
|
|
|
|
|
users: FlaggedUser[];
|
|
|
|
|
icon: React.ReactNode;
|
|
|
|
|
borderColor: string;
|
|
|
|
|
bgColor: string;
|
|
|
|
|
headerColor: string;
|
|
|
|
|
fmtDate: (d: string | null) => string;
|
|
|
|
|
}) {
|
|
|
|
|
return (
|
|
|
|
|
<div className={`rounded-lg border ${borderColor} ${bgColor} overflow-hidden`}>
|
|
|
|
|
<div className={`px-4 py-3 border-b ${borderColor}`}>
|
|
|
|
|
<div className="flex items-center gap-2">
|
|
|
|
|
{icon}
|
|
|
|
|
<h3 className={`text-sm font-semibold ${headerColor}`}>{title} ({users.length})</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<p className="text-xs text-muted-foreground mt-1">{description}</p>
|
|
|
|
|
</div>
|
feat(design): nav/visual overhaul — brand layer, /status route, KPI dashboard, TanStack DataTable
Major UI refresh on the nav-design-improvements branch. Drops 2013-era
inline styles and consolidates patterns behind shared primitives.
Foundation
- New Wulf brand layer in app/styles/brand.css repointing --primary to
the standards-guide blue (#0075AD) with utility classes for numerics
(.num / .num-lg / .num-xl), metric labels, surface tints, and the
wolf-mark watermark
- Switch primary face to IBM Plex Sans + IBM Plex Mono via next/font;
Helvetica/Arial stays in the fallback chain for brand fidelity
- Wordmark subtitle changed from "PSA Management System" to
"Operations console" everywhere it appeared
- Tagline footer ("Don't be afraid to cry") on every non-mobile page
Status moved out of /dashboard
- New /status route with integration tiles grouped by category, sync
health table, worker pulse cards (analyzer / RMM / sync scheduler),
token-expiry section, conditional alert banner
- Top-bar StatusIndicator polls integration health every 60s and links
to /status
- INTEGRATIONS_DISABLED env var suppresses operator-disabled
integrations (e.g. SentinelOne) — no failure noise from broken-on-
purpose entries. Aliases supported (sentinelone → s1, etc.)
Dashboard rebuilt around KPIs
- /api/dashboard/overview adds today snapshot (opened, resolved, open
total, SLA breaches) with delta math
- /api/dashboard/trends backs queue × priority heatmap, 30-day volume
area chart, 30-day mean resolution time line chart, today's active
engineers leaderboard
Components
- StatusBadge driven by lib/status-registry.ts (priority, ticket
status, classification, source, company type, publish, active /
yes-no / billable / approved registries)
- StatusLight (8px geometric square, five states, three sizes)
- EmptyState (shared dashed panel with icon + headline + optional CTA)
- KpiCard with delta indicator and tonal left border
- WulfMark (mark / wordmark variants from /public/branding)
- Skeleton helpers (SkeletonRow / Rows / Card / Chart / Header / Table)
Navigation
- Admin flat link → dropdown with seven shortcuts
- New UserMenu (initials avatar, role badge, settings + sign-out)
- Active-route highlight is now a 2px Wulf-blue underline echoing the
PageHeader rule (consistent across flat links and submenu triggers);
active children inside dropdowns use bg-primary/10
- Submenu width is content-driven (min-w 320 / max-w 440, single col)
- Mobile hamburger via Sheet, reuses the same nav config
Pages migrated
- 16 admin sub-pages adopt PageHeader (with accent prop)
- /addigy-devices: shadcn Table + Checkbox; PageHeader; status badges
- 10 raw <table> blocks across admin/sync/* migrated to shadcn Table
- /veeam-analysis migrated to shadcn Table (kept its expansion logic)
- Detail routes (analyzer ticket, analyzer analysis) get breadcrumbs
DataTable
- Rewritten on @tanstack/react-table v8 in manual mode; external API
unchanged so all 10+ data-browser pages keep working
- New optional props for drill-down rows: getRowCanExpand + renderSubRow
Mobile
- Multi-select Popover gets max-w-[calc(100vw-1rem)] and
collisionPadding so dropdowns can't overflow narrow viewports
- CI filter bar wraps and shrinks; stat pill flows below
Docs
- New ARCHITECTURE.md (load-bearing reference for runtime, data flow,
workers, analyzer pipeline, auth, deployment, gotchas)
- New DESIGN.md (tokens, layout, navigation IA, component vocabulary,
rolling backlog of remaining cleanup)
- CLAUDE.md refreshed with pointers to the two new docs and the
INTEGRATIONS_DISABLED operator config note
- shadcn registry registered as project-level MCP server (.mcp.json)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 09:33:13 -04:00
|
|
|
<Table>
|
|
|
|
|
<TableHeader className={bgColor}>
|
|
|
|
|
<TableRow>
|
|
|
|
|
<TableHead>User</TableHead>
|
|
|
|
|
<TableHead>Email</TableHead>
|
|
|
|
|
<TableHead>Account</TableHead>
|
|
|
|
|
<TableHead className="text-center">Enrolled</TableHead>
|
|
|
|
|
<TableHead>Last login</TableHead>
|
|
|
|
|
<TableHead>Notes</TableHead>
|
|
|
|
|
</TableRow>
|
|
|
|
|
</TableHeader>
|
|
|
|
|
<TableBody>
|
|
|
|
|
{users.map(u => (
|
|
|
|
|
<TableRow key={u.user_id}>
|
|
|
|
|
<TableCell>
|
|
|
|
|
<div className="font-medium">{u.realname || u.username}</div>
|
|
|
|
|
{u.realname && <div className="text-xs text-muted-foreground">{u.username}</div>}
|
|
|
|
|
</TableCell>
|
|
|
|
|
<TableCell className="text-muted-foreground">{u.email || '\u2014'}</TableCell>
|
|
|
|
|
<TableCell>{u.account_name}</TableCell>
|
|
|
|
|
<TableCell className="text-center">
|
|
|
|
|
{u.is_enrolled
|
|
|
|
|
? <CheckCircle2 className="w-4 h-4 text-emerald-500 mx-auto" />
|
|
|
|
|
: <span className="text-muted-foreground">No</span>
|
|
|
|
|
}
|
|
|
|
|
</TableCell>
|
|
|
|
|
<TableCell className="text-muted-foreground num">{u.last_login ? fmtDate(u.last_login) : 'Never'}</TableCell>
|
|
|
|
|
<TableCell className="text-muted-foreground text-xs max-w-[200px] truncate">{u.notes || '\u2014'}</TableCell>
|
|
|
|
|
</TableRow>
|
|
|
|
|
))}
|
|
|
|
|
</TableBody>
|
|
|
|
|
</Table>
|
2026-03-27 11:41:52 -04:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|