8fb703c6db
- Contrast: --fg-muted reaches 4.5:1 on every surface in all nine themes (dark default was 2.55:1); status chips and accent text clear 4.5:1 on their own tints. New --accent-solid(/-hover) + tailwind `accent-solid` is the fill behind white text (.btn-primary, Switch on, Checkbox tick); --accent is now a text colour. Switch off / unchecked Checkbox get a >=3:1 edge. - <html lang> follows the chosen language; a global prefers-reduced-motion rule; index.html body uses a token instead of text-gray-200. - Layout: the sidebar starts collapsed below lg and becomes an off-canvas drawer below md (menu button, backdrop, Escape, useDialog). - ContextMenu: focus moves in, arrows/Home/End, Escape/Tab close, focus returns, a keyboard-opened menu anchors to its target. Select is a real listbox button (aria-expanded, activedescendant, type-ahead). PageTabs implements APG tabs with a tabpanel. New .btn-secondary/.btn-danger/ .btn-icon and a .select class for native selects, all with focus rings. - StatusBar announces connection and "N need you" politely; Sidebar's connection modal uses useDialog; EmptyState/Skeleton/AiToolIcon a11y. - api.ts request(): a non-JSON 200 throws a translated EBADRESPONSE instead of "Unexpected token '<'".
92 lines
4.4 KiB
HTML
92 lines
4.4 KiB
HTML
<!doctype html>
|
|
<html lang="en" class="dark">
|
|
<head>
|
|
<!-- Apply the saved appearance before first paint (same keys as
|
|
src/hooks/useTheme.ts, which re-applies and validates on mount). -->
|
|
<script>
|
|
try {
|
|
var m = localStorage.getItem("theme");
|
|
var d =
|
|
m === "light"
|
|
? false
|
|
: m === "system"
|
|
? !(window.matchMedia && !matchMedia("(prefers-color-scheme: dark)").matches)
|
|
: true;
|
|
var r = document.documentElement;
|
|
var t = localStorage.getItem("agenthub.theme." + (d ? "dark" : "light"));
|
|
r.classList.toggle("dark", d);
|
|
r.setAttribute("data-mode", d ? "dark" : "light");
|
|
if (t && t !== "default") r.setAttribute("data-theme", t);
|
|
} catch (e) {}
|
|
</script>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
|
<link rel="apple-touch-icon" href="/favicon.ico" />
|
|
<link rel="manifest" href="/manifest.json" />
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
<meta name="theme-color" content="#6366f1" />
|
|
<title>AgentHub - SmartGift Solution</title>
|
|
<meta
|
|
name="description"
|
|
content="Real-time monitoring platform for Claude Code agent activity. Track sessions, monitor agents, visualize analytics, manage cost tracking, and receive browser notifications - all with live WebSocket updates."
|
|
/>
|
|
<meta
|
|
name="keywords"
|
|
content="Claude Code, agent dashboard, AI monitoring, real-time dashboard, developer tools, session tracking, kanban, activity feed, analytics, cost tracking, browser notifications, token usage"
|
|
/>
|
|
<meta name="author" content="SmartGift" />
|
|
<meta name="robots" content="index, follow" />
|
|
|
|
<!-- Open Graph -->
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:site_name" content="AgentHub" />
|
|
<meta property="og:title" content="AgentHub - SmartGift Solution" />
|
|
<meta
|
|
property="og:description"
|
|
content="Real-time monitoring platform for Claude Code agent activity. Track sessions, monitor agents, visualize analytics, manage cost tracking, and receive browser notifications - all with live WebSocket updates."
|
|
/>
|
|
<meta property="og:image" content="/og-image.svg" />
|
|
<meta property="og:image:width" content="1200" />
|
|
<meta property="og:image:height" content="630" />
|
|
<meta property="og:image:type" content="image/svg+xml" />
|
|
<meta property="og:image:alt" content="AgentHub - real-time Claude Code monitoring" />
|
|
|
|
<!-- Twitter / X Card -->
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<meta name="twitter:title" content="AgentHub - SmartGift Solution" />
|
|
<meta
|
|
name="twitter:description"
|
|
content="Real-time monitoring platform for Claude Code agent activity. Sessions, Kanban board, analytics, cost tracking, browser notifications, and WebSocket push."
|
|
/>
|
|
<meta name="twitter:image" content="/og-image.svg" />
|
|
<meta name="twitter:image:alt" content="AgentHub - real-time Claude Code monitoring" />
|
|
<meta name="twitter:creator" content="@smartgift" />
|
|
|
|
<!-- JSON-LD structured data -->
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": "WebApplication",
|
|
"name": "AgentHub",
|
|
"description": "Real-time monitoring platform for Claude Code agent activity. Tracks sessions, agents, tool events, token usage analytics, cost tracking, and browser notifications via native hooks with live WebSocket push.",
|
|
"applicationCategory": "DeveloperApplication",
|
|
"operatingSystem": "Windows, macOS, Linux",
|
|
"softwareVersion": "1.0.0",
|
|
"author": {
|
|
"@type": "Person",
|
|
"name": "SmartGift",
|
|
"url": "https://smartgift.vn"
|
|
},
|
|
"codeRepository": "https://git.smartgift.io.vn/Smartgift-AI/AgentHub",
|
|
"featureList": "Real-time dashboard, Kanban board, Session tracking, Activity feed, Token usage analytics, Cost tracking, Browser notifications, WebSocket live updates"
|
|
}
|
|
</script>
|
|
</head>
|
|
<body class="bg-surface-0 text-fg-primary antialiased">
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|