@supaku/agentfactory-dashboard 0.5.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,248 @@
1
+ # @supaku/agentfactory-dashboard
2
+
3
+ A self-contained React component library for AgentFactory fleet management. Provides a complete dashboard UI with real-time data fetching, a dark design system with orange accent, and four page-level components.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @supaku/agentfactory-dashboard
9
+ # or
10
+ pnpm add @supaku/agentfactory-dashboard
11
+ ```
12
+
13
+ ### Peer Dependencies
14
+
15
+ - `next` >= 14.0.0
16
+ - `react` >= 18.0.0
17
+ - `react-dom` >= 18.0.0
18
+ - `tailwindcss` >= 3.4.0
19
+
20
+ ## Quick Start
21
+
22
+ The package distributes TypeScript source — no build step. Add it to `transpilePackages` in your Next.js config:
23
+
24
+ ```typescript
25
+ // next.config.ts
26
+ const nextConfig: NextConfig = {
27
+ transpilePackages: ['@supaku/agentfactory-dashboard'],
28
+ }
29
+ ```
30
+
31
+ ### Tailwind v3
32
+
33
+ Import the globals CSS and use the tailwind preset:
34
+
35
+ ```css
36
+ /* globals.css */
37
+ @import '@supaku/agentfactory-dashboard/styles';
38
+ ```
39
+
40
+ ```typescript
41
+ // tailwind.config.ts
42
+ import dashboardPreset from '@supaku/agentfactory-dashboard/tailwind-preset'
43
+
44
+ export default {
45
+ presets: [dashboardPreset],
46
+ content: [
47
+ './src/**/*.{ts,tsx}',
48
+ './node_modules/@supaku/agentfactory-dashboard/src/**/*.{ts,tsx}',
49
+ ],
50
+ }
51
+ ```
52
+
53
+ ### Tailwind v4
54
+
55
+ Skip the preset and globals import. Instead, register the design tokens directly in your `globals.css`:
56
+
57
+ ```css
58
+ @source "../../node_modules/@supaku/agentfactory-dashboard/src";
59
+
60
+ @theme {
61
+ /* Dashboard colors */
62
+ --color-af-bg-primary: #0A0E1A;
63
+ --color-af-bg-secondary: #111827;
64
+ --color-af-surface: #1A1F2E;
65
+ --color-af-surface-border: #2A3040;
66
+ --color-af-accent: #FF6B35;
67
+ --color-af-status-success: #22C55E;
68
+ --color-af-status-warning: #F59E0B;
69
+ --color-af-status-error: #EF4444;
70
+ --color-af-text-primary: #F9FAFB;
71
+ --color-af-text-secondary: #9CA3AF;
72
+ --color-af-code: #A5B4FC;
73
+
74
+ /* Dashboard animations */
75
+ --animate-pulse-dot: pulse-dot 2s ease-in-out infinite;
76
+ --animate-heartbeat: heartbeat 2s ease-out infinite;
77
+
78
+ @keyframes pulse-dot {
79
+ 0%, 100% { opacity: 1; }
80
+ 50% { opacity: 0.4; }
81
+ }
82
+
83
+ @keyframes heartbeat {
84
+ 0% { transform: scale(1); opacity: 0.6; }
85
+ 50% { transform: scale(1.8); opacity: 0; }
86
+ 100% { transform: scale(1); opacity: 0; }
87
+ }
88
+ }
89
+ ```
90
+
91
+ And set the `:root` CSS variables to the dashboard palette:
92
+
93
+ ```css
94
+ :root {
95
+ --background: 222 47% 7%;
96
+ --foreground: 210 40% 98%;
97
+ --primary: 19 100% 60%; /* orange accent */
98
+ --card: 222 30% 14%;
99
+ --muted: 222 20% 22%;
100
+ --border: 222 20% 22%;
101
+ --ring: 19 100% 60%;
102
+ /* ... see full palette in source */
103
+ }
104
+ ```
105
+
106
+ ## Pages
107
+
108
+ Four page components handle complete views with data fetching:
109
+
110
+ ```tsx
111
+ import {
112
+ DashboardShell,
113
+ DashboardPage,
114
+ PipelinePage,
115
+ SessionPage,
116
+ SettingsPage,
117
+ } from '@supaku/agentfactory-dashboard'
118
+ ```
119
+
120
+ | Component | Route | Description |
121
+ |-----------|-------|-------------|
122
+ | `DashboardPage` | `/` | Fleet overview with stat cards and agent session grid |
123
+ | `PipelinePage` | `/pipeline` | Kanban board with queued/working/completed columns |
124
+ | `SessionPage` | `/sessions` | Session list table with status filtering |
125
+ | `SessionPage` | `/sessions/[id]` | Session detail view (pass `sessionId` prop) |
126
+ | `SettingsPage` | `/settings` | Integration status and worker list |
127
+
128
+ ### Usage with Next.js App Router
129
+
130
+ Wrap each page in `DashboardShell` for the sidebar layout:
131
+
132
+ ```tsx
133
+ // app/page.tsx
134
+ 'use client'
135
+
136
+ import { DashboardShell, DashboardPage as FleetPage } from '@supaku/agentfactory-dashboard'
137
+ import { usePathname } from 'next/navigation'
138
+
139
+ export default function Home() {
140
+ const pathname = usePathname()
141
+ return (
142
+ <DashboardShell currentPath={pathname}>
143
+ <FleetPage />
144
+ </DashboardShell>
145
+ )
146
+ }
147
+ ```
148
+
149
+ ```tsx
150
+ // app/sessions/[id]/page.tsx
151
+ 'use client'
152
+
153
+ import { DashboardShell, SessionPage } from '@supaku/agentfactory-dashboard'
154
+ import { usePathname, useParams } from 'next/navigation'
155
+
156
+ export default function SessionDetail() {
157
+ const pathname = usePathname()
158
+ const params = useParams<{ id: string }>()
159
+ return (
160
+ <DashboardShell currentPath={pathname}>
161
+ <SessionPage sessionId={params.id} />
162
+ </DashboardShell>
163
+ )
164
+ }
165
+ ```
166
+
167
+ ## Layout Components
168
+
169
+ ```tsx
170
+ import { DashboardShell, Sidebar, TopBar, BottomBar } from '@supaku/agentfactory-dashboard'
171
+ ```
172
+
173
+ - **DashboardShell** — Full layout with sidebar, top bar, bottom bar, and mobile hamburger menu
174
+ - **Sidebar** — Navigation sidebar with customizable `navItems` and active state via `currentPath`
175
+ - **TopBar** — System status bar showing worker count, queue depth, uptime
176
+ - **BottomBar** — Footer bar with version and connection status
177
+
178
+ ## Fleet Components
179
+
180
+ ```tsx
181
+ import { FleetOverview, AgentCard, StatCard, StatusDot, ProviderIcon } from '@supaku/agentfactory-dashboard'
182
+ ```
183
+
184
+ ## Pipeline Components
185
+
186
+ ```tsx
187
+ import { PipelineView, PipelineColumn, PipelineCard } from '@supaku/agentfactory-dashboard'
188
+ ```
189
+
190
+ ## Session Components
191
+
192
+ ```tsx
193
+ import { SessionList, SessionDetail, SessionTimeline, TokenChart } from '@supaku/agentfactory-dashboard'
194
+ ```
195
+
196
+ ## Data Hooks
197
+
198
+ SWR-based hooks that fetch from AgentFactory API routes with automatic 5-second refresh:
199
+
200
+ ```tsx
201
+ import { useStats, useSessions, useWorkers } from '@supaku/agentfactory-dashboard'
202
+ ```
203
+
204
+ | Hook | Endpoint | Returns |
205
+ |------|----------|---------|
206
+ | `useStats()` | `/api/public/stats` | `{ workersOnline, agentsWorking, queueDepth, completedToday, ... }` |
207
+ | `useSessions()` | `/api/public/sessions` | `{ sessions: PublicSessionResponse[], count }` |
208
+ | `useWorkers()` | `/api/workers` | `{ workers: WorkerResponse[] }` |
209
+
210
+ ## Utilities
211
+
212
+ ```tsx
213
+ import { cn, formatDuration, formatCost, formatTokens, formatRelativeTime } from '@supaku/agentfactory-dashboard'
214
+ import { getWorkTypeConfig, getStatusConfig } from '@supaku/agentfactory-dashboard'
215
+ ```
216
+
217
+ ## UI Primitives
218
+
219
+ Re-exports of Radix-based primitives styled for the dashboard:
220
+
221
+ ```tsx
222
+ import {
223
+ Button, Card, Badge, Skeleton, Separator,
224
+ ScrollArea, Tabs, Tooltip, Sheet, DropdownMenu,
225
+ } from '@supaku/agentfactory-dashboard'
226
+ ```
227
+
228
+ ## Design System
229
+
230
+ Dark-only theme with orange accent (`#FF6B35`). All custom colors use the `af-` prefix:
231
+
232
+ | Token | Value | Usage |
233
+ |-------|-------|-------|
234
+ | `af-bg-primary` | `#0A0E1A` | Page background |
235
+ | `af-bg-secondary` | `#111827` | Sidebar, panels |
236
+ | `af-surface` | `#1A1F2E` | Cards, active states |
237
+ | `af-surface-border` | `#2A3040` | Borders, dividers |
238
+ | `af-accent` | `#FF6B35` | Primary actions, highlights |
239
+ | `af-status-success` | `#22C55E` | Online, completed |
240
+ | `af-status-warning` | `#F59E0B` | Queued, warnings |
241
+ | `af-status-error` | `#EF4444` | Failed, errors |
242
+ | `af-text-primary` | `#F9FAFB` | Headings, labels |
243
+ | `af-text-secondary` | `#9CA3AF` | Descriptions, metadata |
244
+ | `af-code` | `#A5B4FC` | Code, identifiers |
245
+
246
+ ## License
247
+
248
+ MIT
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "@supaku/agentfactory-dashboard",
3
- "version": "0.5.0",
3
+ "version": "0.6.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "description": "Premium dashboard UI components for AgentFactory",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/supaku/agentfactory",
11
+ "directory": "packages/dashboard"
12
+ },
8
13
  "license": "MIT",
9
14
  "type": "module",
10
15
  "exports": {
@@ -38,10 +43,18 @@
38
43
  "tailwindcss": ">=3.4.0"
39
44
  },
40
45
  "devDependencies": {
46
+ "@types/node": "^22",
41
47
  "@types/react": "^19",
48
+ "autoprefixer": "^10",
49
+ "next": "^15.3.0",
50
+ "postcss": "^8",
51
+ "react": "^19.0.0",
52
+ "react-dom": "^19.0.0",
53
+ "tailwindcss": "^3.4.0",
42
54
  "typescript": "^5"
43
55
  },
44
56
  "scripts": {
57
+ "dev": "cd dev && next dev",
45
58
  "typecheck": "tsc --noEmit"
46
59
  }
47
60
  }
@@ -1,7 +1,6 @@
1
1
  'use client'
2
2
 
3
3
  import { cn } from '../../lib/utils'
4
- import { Card } from '../../components/ui/card'
5
4
  import { Badge } from '../../components/ui/badge'
6
5
  import { StatusDot } from './status-dot'
7
6
  import { ProviderIcon } from './provider-icon'
@@ -9,6 +8,7 @@ import { formatDuration, formatCost } from '../../lib/format'
9
8
  import { getWorkTypeConfig } from '../../lib/work-type-config'
10
9
  import { getStatusConfig } from '../../lib/status-config'
11
10
  import type { PublicSessionResponse } from '../../types/api'
11
+ import { Clock, Coins } from 'lucide-react'
12
12
 
13
13
  interface AgentCardProps {
14
14
  session: PublicSessionResponse
@@ -20,43 +20,60 @@ export function AgentCard({ session, className }: AgentCardProps) {
20
20
  const workTypeConfig = getWorkTypeConfig(session.workType)
21
21
 
22
22
  return (
23
- <Card
23
+ <div
24
24
  className={cn(
25
- 'relative p-4 transition-colors hover:border-af-surface-border/80',
25
+ 'group relative rounded-xl border border-af-surface-border/50 bg-af-surface/40 p-4 transition-all duration-300 hover-glow',
26
+ session.status === 'working' && 'border-af-status-success/10',
27
+ session.status === 'failed' && 'border-af-status-error/10',
26
28
  className
27
29
  )}
28
30
  >
29
- <div className="flex items-start justify-between">
30
- <div className="flex items-center gap-2">
31
+ {/* Top row: identifier + provider */}
32
+ <div className="flex items-start justify-between gap-2">
33
+ <div className="flex items-center gap-2 min-w-0">
31
34
  <StatusDot status={session.status} showHeartbeat={session.status === 'working'} />
32
- <span className="text-sm font-medium text-af-text-primary font-mono">
35
+ <span className="text-sm font-mono font-medium text-af-text-primary truncate">
33
36
  {session.identifier}
34
37
  </span>
35
38
  </div>
36
- <ProviderIcon size={14} />
39
+ <ProviderIcon size={14} className="shrink-0 opacity-40 group-hover:opacity-70 transition-opacity" />
37
40
  </div>
38
41
 
39
- <div className="mt-3 flex items-center gap-2">
42
+ {/* Badges */}
43
+ <div className="mt-3 flex items-center gap-1.5">
40
44
  <Badge
41
45
  variant="outline"
42
- className={cn('text-xs', workTypeConfig.bgColor, workTypeConfig.color, 'border-transparent')}
46
+ className={cn(
47
+ 'text-2xs border',
48
+ workTypeConfig.bgColor, workTypeConfig.color, workTypeConfig.borderColor
49
+ )}
43
50
  >
44
51
  {workTypeConfig.label}
45
52
  </Badge>
46
53
  <Badge
47
54
  variant="outline"
48
- className={cn('text-xs', statusConfig.bgColor, statusConfig.textColor, 'border-transparent')}
55
+ className={cn(
56
+ 'text-2xs border',
57
+ statusConfig.bgColor, statusConfig.textColor, statusConfig.borderColor
58
+ )}
49
59
  >
50
60
  {statusConfig.label}
51
61
  </Badge>
52
62
  </div>
53
63
 
54
- <div className="mt-3 flex items-center justify-between text-xs text-af-text-secondary">
55
- <span className="tabular-nums">{formatDuration(session.duration)}</span>
64
+ {/* Footer metrics */}
65
+ <div className="mt-3.5 flex items-center justify-between text-2xs font-body text-af-text-tertiary">
66
+ <span className="flex items-center gap-1 tabular-nums">
67
+ <Clock className="h-3 w-3" />
68
+ {formatDuration(session.duration)}
69
+ </span>
56
70
  {session.costUsd != null && (
57
- <span className="tabular-nums font-mono">{formatCost(session.costUsd)}</span>
71
+ <span className="flex items-center gap-1 tabular-nums font-mono text-af-text-secondary">
72
+ <Coins className="h-3 w-3" />
73
+ {formatCost(session.costUsd)}
74
+ </span>
58
75
  )}
59
76
  </div>
60
- </Card>
77
+ </div>
61
78
  )
62
79
  }
@@ -19,56 +19,86 @@ export function FleetOverview({ className }: FleetOverviewProps) {
19
19
  const { data: sessionsData, isLoading: sessionsLoading } = useSessions()
20
20
 
21
21
  const sessions = sessionsData?.sessions ?? []
22
+ const activeSessions = sessions.filter((s) => s.status === 'working' || s.status === 'queued')
22
23
 
23
24
  return (
24
- <div className={cn('space-y-6 p-5', className)}>
25
- {/* Stats grid */}
26
- <div className="grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-6">
27
- <StatCard
28
- label="Workers Online"
29
- value={stats?.workersOnline ?? 0}
30
- icon={<Users className="h-3.5 w-3.5" />}
31
- loading={statsLoading}
32
- />
33
- <StatCard
34
- label="Agents Working"
35
- value={stats?.agentsWorking ?? 0}
36
- icon={<Cpu className="h-3.5 w-3.5" />}
37
- loading={statsLoading}
38
- />
39
- <StatCard
40
- label="Queue Depth"
41
- value={stats?.queueDepth ?? 0}
42
- icon={<ListTodo className="h-3.5 w-3.5" />}
43
- loading={statsLoading}
44
- />
45
- <StatCard
46
- label="Completed Today"
47
- value={stats?.completedToday ?? 0}
48
- icon={<CheckCircle2 className="h-3.5 w-3.5" />}
49
- loading={statsLoading}
50
- />
51
- <StatCard
52
- label="Capacity"
53
- value={stats?.availableCapacity ?? 0}
54
- icon={<Gauge className="h-3.5 w-3.5" />}
55
- loading={statsLoading}
56
- />
57
- <StatCard
58
- label="Cost Today"
59
- value={formatCost(stats?.totalCostToday)}
60
- icon={<DollarSign className="h-3.5 w-3.5" />}
61
- loading={statsLoading}
62
- />
25
+ <div className={cn('space-y-8 p-6', className)}>
26
+ {/* Section: Fleet Metrics */}
27
+ <div>
28
+ <div className="mb-4 flex items-center gap-3">
29
+ <h2 className="font-display text-lg font-bold text-af-text-primary tracking-tight">
30
+ Fleet Overview
31
+ </h2>
32
+ {!statsLoading && stats && (
33
+ <span className="text-2xs font-body text-af-text-tertiary tabular-nums">
34
+ {stats.workersOnline} worker{stats.workersOnline !== 1 ? 's' : ''} online
35
+ </span>
36
+ )}
37
+ </div>
38
+
39
+ <div className="grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-6">
40
+ <StatCard
41
+ label="Workers"
42
+ value={stats?.workersOnline ?? 0}
43
+ icon={<Users className="h-3.5 w-3.5" />}
44
+ loading={statsLoading}
45
+ />
46
+ <StatCard
47
+ label="Active"
48
+ value={stats?.agentsWorking ?? 0}
49
+ icon={<Cpu className="h-3.5 w-3.5" />}
50
+ accent
51
+ loading={statsLoading}
52
+ />
53
+ <StatCard
54
+ label="Queued"
55
+ value={stats?.queueDepth ?? 0}
56
+ icon={<ListTodo className="h-3.5 w-3.5" />}
57
+ loading={statsLoading}
58
+ />
59
+ <StatCard
60
+ label="Completed"
61
+ value={stats?.completedToday ?? 0}
62
+ icon={<CheckCircle2 className="h-3.5 w-3.5" />}
63
+ loading={statsLoading}
64
+ />
65
+ <StatCard
66
+ label="Capacity"
67
+ value={stats?.availableCapacity ?? 0}
68
+ icon={<Gauge className="h-3.5 w-3.5" />}
69
+ loading={statsLoading}
70
+ />
71
+ <StatCard
72
+ label="Cost"
73
+ value={formatCost(stats?.totalCostToday)}
74
+ icon={<DollarSign className="h-3.5 w-3.5" />}
75
+ loading={statsLoading}
76
+ />
77
+ </div>
63
78
  </div>
64
79
 
65
- {/* Agent cards */}
80
+ {/* Section: Active Sessions */}
66
81
  <div>
67
- <h2 className="mb-3 text-sm font-medium text-af-text-secondary">Active Sessions</h2>
82
+ <div className="mb-4 flex items-center justify-between">
83
+ <div className="flex items-center gap-3">
84
+ <h2 className="font-display text-lg font-bold text-af-text-primary tracking-tight">
85
+ Sessions
86
+ </h2>
87
+ <span className="rounded-full bg-af-surface/60 px-2 py-0.5 text-2xs font-body font-medium tabular-nums text-af-text-secondary">
88
+ {sessions.length}
89
+ </span>
90
+ </div>
91
+ {activeSessions.length > 0 && (
92
+ <span className="text-2xs font-body text-af-teal">
93
+ {activeSessions.length} active
94
+ </span>
95
+ )}
96
+ </div>
97
+
68
98
  {sessionsLoading ? (
69
99
  <div className="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
70
100
  {Array.from({ length: 4 }).map((_, i) => (
71
- <Skeleton key={i} className="h-32 rounded-lg" />
101
+ <Skeleton key={i} className="h-[130px] rounded-xl" />
72
102
  ))}
73
103
  </div>
74
104
  ) : sessions.length === 0 ? (
@@ -78,8 +108,14 @@ export function FleetOverview({ className }: FleetOverviewProps) {
78
108
  />
79
109
  ) : (
80
110
  <div className="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
81
- {sessions.map((session) => (
82
- <AgentCard key={session.id} session={session} />
111
+ {sessions.map((session, i) => (
112
+ <div
113
+ key={session.id}
114
+ className="animate-fade-in"
115
+ style={{ animationDelay: `${i * 50}ms` }}
116
+ >
117
+ <AgentCard session={session} />
118
+ </div>
83
119
  ))}
84
120
  </div>
85
121
  )}
@@ -1,5 +1,4 @@
1
1
  import { cn } from '../../lib/utils'
2
- import { Card } from '../../components/ui/card'
3
2
  import { Skeleton } from '../../components/ui/skeleton'
4
3
 
5
4
  interface StatCardProps {
@@ -8,36 +7,56 @@ interface StatCardProps {
8
7
  detail?: string
9
8
  icon?: React.ReactNode
10
9
  trend?: 'up' | 'down' | 'neutral'
10
+ accent?: boolean
11
11
  loading?: boolean
12
12
  className?: string
13
13
  }
14
14
 
15
- export function StatCard({ label, value, detail, icon, loading, className }: StatCardProps) {
15
+ export function StatCard({ label, value, detail, icon, accent, loading, className }: StatCardProps) {
16
16
  if (loading) {
17
17
  return (
18
- <Card className={cn('p-4', className)}>
18
+ <div className={cn(
19
+ 'rounded-xl border border-af-surface-border/50 bg-af-surface/50 p-4',
20
+ className
21
+ )}>
19
22
  <div className="flex items-center justify-between">
20
23
  <Skeleton className="h-3 w-16" />
21
24
  <Skeleton className="h-4 w-4 rounded" />
22
25
  </div>
23
- <Skeleton className="mt-2 h-7 w-12" />
24
- <Skeleton className="mt-1 h-3 w-20" />
25
- </Card>
26
+ <Skeleton className="mt-3 h-8 w-16" />
27
+ <Skeleton className="mt-1.5 h-3 w-20" />
28
+ </div>
26
29
  )
27
30
  }
28
31
 
29
32
  return (
30
- <Card className={cn('p-4', className)}>
33
+ <div className={cn(
34
+ 'group rounded-xl border border-af-surface-border/50 bg-af-surface/40 p-4 transition-all duration-300 hover-glow',
35
+ accent && 'border-af-accent/15 bg-af-accent/[0.03]',
36
+ className
37
+ )}>
31
38
  <div className="flex items-center justify-between">
32
- <span className="text-xs font-medium text-af-text-secondary">{label}</span>
33
- {icon && <span className="text-af-text-secondary">{icon}</span>}
39
+ <span className="text-2xs font-body font-medium uppercase tracking-wider text-af-text-tertiary">
40
+ {label}
41
+ </span>
42
+ {icon && (
43
+ <span className={cn(
44
+ 'text-af-text-tertiary transition-colors duration-300 group-hover:text-af-text-secondary',
45
+ accent && 'text-af-accent/40 group-hover:text-af-accent/70'
46
+ )}>
47
+ {icon}
48
+ </span>
49
+ )}
34
50
  </div>
35
- <div className="mt-1.5 text-2xl font-bold tabular-nums text-af-text-primary">
51
+ <div className={cn(
52
+ 'mt-2 font-display text-2xl font-bold tabular-nums tracking-tight',
53
+ accent ? 'text-af-accent' : 'text-af-text-primary'
54
+ )}>
36
55
  {value}
37
56
  </div>
38
57
  {detail && (
39
- <p className="mt-0.5 text-xs text-af-text-secondary">{detail}</p>
58
+ <p className="mt-1 text-2xs font-body text-af-text-tertiary">{detail}</p>
40
59
  )}
41
- </Card>
60
+ </div>
42
61
  )
43
62
  }
@@ -11,7 +11,8 @@ export function StatusDot({ status, className, showHeartbeat = false }: StatusDo
11
11
  const config = getStatusConfig(status)
12
12
 
13
13
  return (
14
- <span className={cn('relative inline-flex h-2.5 w-2.5', className)}>
14
+ <span className={cn('relative inline-flex h-2 w-2', className)}>
15
+ {/* Outer glow ring for active states */}
15
16
  {config.animate && showHeartbeat && (
16
17
  <span
17
18
  className={cn(
@@ -20,11 +21,13 @@ export function StatusDot({ status, className, showHeartbeat = false }: StatusDo
20
21
  )}
21
22
  />
22
23
  )}
24
+ {/* Core dot */}
23
25
  <span
24
26
  className={cn(
25
- 'relative inline-flex h-2.5 w-2.5 rounded-full',
27
+ 'relative inline-flex h-2 w-2 rounded-full',
26
28
  config.dotColor,
27
- config.animate && 'animate-pulse-dot'
29
+ config.animate && 'animate-pulse-dot',
30
+ config.glowClass
28
31
  )}
29
32
  />
30
33
  </span>
@@ -3,6 +3,7 @@
3
3
  import { cn } from '../../lib/utils'
4
4
  import { useStats } from '../../hooks/use-stats'
5
5
  import { formatCost } from '../../lib/format'
6
+ import { Zap } from 'lucide-react'
6
7
 
7
8
  interface BottomBarProps {
8
9
  className?: string
@@ -14,25 +15,20 @@ export function BottomBar({ className }: BottomBarProps) {
14
15
  return (
15
16
  <footer
16
17
  className={cn(
17
- 'flex h-8 items-center justify-between border-t border-af-surface-border bg-af-bg-secondary px-5',
18
+ 'flex h-8 items-center justify-between border-t border-af-surface-border/40 bg-af-bg-secondary/30 backdrop-blur-sm px-5',
18
19
  className
19
20
  )}
20
21
  >
21
- <div className="flex items-center gap-4 text-xs text-af-text-secondary">
22
+ <div className="flex items-center gap-5 text-2xs font-body text-af-text-tertiary">
22
23
  <span>
23
- Completed today:{' '}
24
- <span className="font-medium text-af-text-primary">{data?.completedToday ?? 0}</span>
24
+ <span className="text-af-text-secondary tabular-nums">{data?.completedToday ?? 0}</span> completed
25
25
  </span>
26
26
  <span>
27
- Capacity:{' '}
28
- <span className="font-medium text-af-text-primary">{data?.availableCapacity ?? 0}</span>
27
+ <span className="text-af-text-secondary tabular-nums">{data?.availableCapacity ?? 0}</span> capacity
29
28
  </span>
30
29
  {data?.totalCostToday != null && (
31
30
  <span>
32
- Cost today:{' '}
33
- <span className="font-medium text-af-text-primary">
34
- {formatCost(data.totalCostToday)}
35
- </span>
31
+ <span className="text-af-accent font-mono tabular-nums">{formatCost(data.totalCostToday)}</span> today
36
32
  </span>
37
33
  )}
38
34
  </div>
@@ -41,9 +37,10 @@ export function BottomBar({ className }: BottomBarProps) {
41
37
  href="https://github.com/supaku/agentfactory"
42
38
  target="_blank"
43
39
  rel="noopener noreferrer"
44
- className="text-xs text-af-text-secondary hover:text-af-text-primary transition-colors"
40
+ className="flex items-center gap-1 text-2xs font-body text-af-text-tertiary hover:text-af-text-secondary transition-colors"
45
41
  >
46
- Powered by AgentFactory
42
+ <Zap className="h-2.5 w-2.5" />
43
+ AgentFactory
47
44
  </a>
48
45
  </footer>
49
46
  )