High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
feat(dashboard): replace emoji icons with tabler SVGs, extend session lifetime
Bosch0bfbbbea3a78
diff --git a/dashboard/package.json b/dashboard/package.jsonindex e4274c31..501dd8f3 100644--- a/dashboard/package.json+++ b/dashboard/package.json@@ -27,12 +27,12 @@"devDependencies": {"@eslint/js": "^10.0.1","@tailwindcss/vite": "^4.2.1",- "@types/node": "^25.3.3",- "@types/react": "^19.2.14",- "@testing-library/jest-dom": "^6.9.1","@testing-library/dom": "^10.4.1",+ "@testing-library/jest-dom": "^6.9.1","@testing-library/react": "^16.3.2","@testing-library/user-event": "^14.6.1",+ "@types/node": "^25.3.3",+ "@types/react": "^19.2.14","@types/react-dom": "^19.2.3","@vitejs/plugin-react": "^5.1.4","eslint": "^10.0.2",diff --git a/dashboard/src/activities/ActivityLine.tsx b/dashboard/src/activities/ActivityLine.tsxindex 2717193f..2510d8b7 100644--- a/dashboard/src/activities/ActivityLine.tsx+++ b/dashboard/src/activities/ActivityLine.tsx@@ -1,4 +1,13 @@import { Badge } from "../components/atoms";+import {+ IconBrain,+ IconCamera,+ IconCompass,+ IconFileText,+ IconHandClick,+ IconPhoto,+ IconSearch,+} from "../components/atoms/Icon";import type { ActivityEvent } from "../types";interface Props {@@ -15,14 +24,14 @@ const typeColors: Record<string, "default" | "success" | "info" | "warning"> = {other: "default",};-const typeIcons: Record<string, string> = {- navigate: "π§",- snapshot: "πΈ",- action: "π",- screenshot: "πΌοΈ",- text: "π",- progress: "π§ ",- other: "π",+const typeIcons: Record<string, React.ReactNode> = {+ navigate: <IconCompass size={18} />,+ snapshot: <IconCamera size={18} />,+ action: <IconHandClick size={18} />,+ screenshot: <IconPhoto size={18} />,+ text: <IconSearch size={18} />,+ progress: <IconBrain size={18} />,+ other: <IconFileText size={18} />,};function formatTime(ts: string): string {@@ -100,7 +109,9 @@ export default function ActivityLine({ event }: Props) {return (<div className="flex items-center gap-3 border-b border-border-subtle/70 px-4 py-3 text-sm transition-colors hover:bg-white/2">- <span className="text-lg">{typeIcons[event.type] || "π"}</span>+ <span className="text-text-muted">+ {typeIcons[event.type] || <IconFileText size={18} />}+ </span><span className="dashboard-mono w-18 shrink-0 text-xs text-text-muted">{formatTime(event.timestamp)}</span>diff --git a/dashboard/src/activities/SessionDivider.tsx b/dashboard/src/activities/SessionDivider.tsxindex 175f7f7b..efd7e603 100644--- a/dashboard/src/activities/SessionDivider.tsx+++ b/dashboard/src/activities/SessionDivider.tsx@@ -1,3 +1,4 @@+import { IconBolt } from "../components/atoms/Icon";import type { Session } from "../services/api";interface SessionDividerProps {@@ -27,7 +28,7 @@ export default function SessionDivider({<div className="flex items-center gap-3 px-4 py-3"><div className="h-px flex-1 bg-border-subtle" /><div className="flex items-center gap-2 text-[0.72rem] text-text-muted">- <span className="text-sm">π</span>+ <IconBolt size={14} /><span className="font-medium text-text-secondary">{label}</span><span>Β·</span><span className="dashboard-mono">{time}</span>diff --git a/dashboard/src/activities/StreamRow.tsx b/dashboard/src/activities/StreamRow.tsxindex da66aa39..bd5db2a2 100644--- a/dashboard/src/activities/StreamRow.tsx+++ b/dashboard/src/activities/StreamRow.tsx@@ -1,3 +1,13 @@+import {+ IconCamera,+ IconCompass,+ IconFileText,+ IconHandClick,+ IconKeyboard,+ IconMessageCircle,+ IconPointer,+ IconScreenShare,+} from "../components/atoms/Icon";import { Badge } from "../components/atoms";import { activityMethodVariant, activityStatusVariant } from "./helpers";import type { ActivityFilters, DashboardActivityEvent } from "./types";@@ -12,15 +22,16 @@ function formatTime(ts: string): string {});}-function eventIcon(event: DashboardActivityEvent): string {- if (event.channel === "progress") return "π¬";- if (event.action === "click" || event.action === "dblclick") return "π";- if (event.action === "type") return "β¨οΈ";- if (event.action === "hover") return "π±οΈ";- if (event.path.includes("/navigate")) return "π§";- if (event.path.includes("/snapshot")) return "πΈ";- if (event.path.includes("/screencast")) return "π₯οΈ";- return "π";+function EventIcon({ event }: { event: DashboardActivityEvent }) {+ if (event.channel === "progress") return <IconMessageCircle />;+ if (event.action === "click" || event.action === "dblclick")+ return <IconHandClick />;+ if (event.action === "type") return <IconKeyboard />;+ if (event.action === "hover") return <IconPointer />;+ if (event.path.includes("/navigate")) return <IconCompass />;+ if (event.path.includes("/snapshot")) return <IconCamera />;+ if (event.path.includes("/screencast")) return <IconScreenShare />;+ return <IconFileText />;}function compactId(value: string): string {@@ -115,7 +126,7 @@ export default function StreamRow({<div className="px-4 py-4"><div className="flex items-start gap-3"><div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-primary/20 bg-primary/10 text-lg shadow-[0_0_24px_rgb(var(--brand-accent-rgb)/0.08)]">- {eventIcon(event)}+ <EventIcon event={event} /></div><div className="min-w-0 flex-1"><div className="mb-2 flex flex-wrap items-center gap-2 text-[0.68rem] text-text-muted">@@ -163,7 +174,9 @@ export default function StreamRow({return (<div className="border-b border-border-subtle/70 px-4 py-3 text-sm transition-colors hover:bg-white/2"><div className="flex items-start gap-3">- <span className="pt-0.5 text-lg">{eventIcon(event)}</span>+ <span className="pt-0.5 text-text-muted">+ <EventIcon event={event} />+ </span><span className="dashboard-mono w-18 shrink-0 pt-0.5 text-xs text-text-muted">{formatTime(event.timestamp)}</span>diff --git a/dashboard/src/components/atoms/Icon.tsx b/dashboard/src/components/atoms/Icon.tsxnew file mode 100644index 00000000..a38c1b32--- /dev/null+++ b/dashboard/src/components/atoms/Icon.tsx@@ -0,0 +1,160 @@+import type { SVGProps } from "react";++type IconProps = SVGProps<SVGSVGElement> & { size?: number };++function icon(paths: string[], displayName: string) {+ function Icon({ size = 18, ...props }: IconProps) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width={size}+ height={size}+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth={1.5}+ strokeLinecap="round"+ strokeLinejoin="round"+ {...props}+ >+ {paths.map((d, i) => (+ <path key={i} d={d} />+ ))}+ </svg>+ );+ }+ Icon.displayName = displayName;+ return Icon;+}++export const IconRobot = icon(+ [+ "M6 6a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2l0 -4",+ "M12 2v2",+ "M9 12v9",+ "M15 12v9",+ "M5 16l4 -2",+ "M15 14l4 2",+ "M9 18h6",+ "M10 8v.01",+ "M14 8v.01",+ ],+ "IconRobot",+);++export const IconBolt = icon(+ ["M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11"],+ "IconBolt",+);++export const IconCompass = icon(+ [+ "M8 16l2 -6l6 -2l-2 6l-6 2",+ "M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",+ "M12 3l0 2",+ "M12 19l0 2",+ "M3 12l2 0",+ "M19 12l2 0",+ ],+ "IconCompass",+);++export const IconHandClick = icon(+ [+ "M8 13v-8.5a1.5 1.5 0 0 1 3 0v7.5",+ "M11 11.5v-2a1.5 1.5 0 0 1 3 0v2.5",+ "M14 10.5a1.5 1.5 0 0 1 3 0v1.5",+ "M17 11.5a1.5 1.5 0 0 1 3 0v4.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7l-.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47",+ "M5 3l-1 -1",+ "M4 7h-1",+ "M14 3l1 -1",+ "M15 6h1",+ ],+ "IconHandClick",+);++export const IconKeyboard = icon(+ [+ "M2 8a2 2 0 0 1 2 -2h16a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2l0 -8",+ "M6 10l0 .01",+ "M10 10l0 .01",+ "M14 10l0 .01",+ "M18 10l0 .01",+ "M6 14l0 .01",+ "M18 14l0 .01",+ "M10 14l4 .01",+ ],+ "IconKeyboard",+);++export const IconPointer = icon(+ [+ "M7.904 17.563a1.2 1.2 0 0 0 2.228 .308l2.09 -3.093l4.907 4.907a1.067 1.067 0 0 0 1.509 0l1.047 -1.047a1.067 1.067 0 0 0 0 -1.509l-4.907 -4.907l3.113 -2.09a1.2 1.2 0 0 0 -.309 -2.228l-13.582 -3.904l3.904 13.563",+ ],+ "IconPointer",+);++export const IconCamera = icon(+ [+ "M5 7h1a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2",+ "M9 13a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",+ ],+ "IconCamera",+);++export const IconFileText = icon(+ [+ "M14 3v4a1 1 0 0 0 1 1h4",+ "M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2",+ "M9 9l1 0",+ "M9 13l6 0",+ "M9 17l6 0",+ ],+ "IconFileText",+);++export const IconMessageCircle = icon(+ [+ "M3 20l1.3 -3.9c-2.324 -3.437 -1.426 -7.872 2.1 -10.374c3.526 -2.501 8.59 -2.296 11.845 .48c3.255 2.777 3.695 7.266 1.029 10.501c-2.666 3.235 -7.615 4.215 -11.574 2.293l-4.7 1",+ ],+ "IconMessageCircle",+);++export const IconBrain = icon(+ [+ "M15.5 13a3.5 3.5 0 0 0 -3.5 3.5v1a3.5 3.5 0 0 0 7 0v-1.8",+ "M8.5 13a3.5 3.5 0 0 1 3.5 3.5v1a3.5 3.5 0 0 1 -7 0v-1.8",+ "M17.5 16a3.5 3.5 0 0 0 0 -7h-.5",+ "M19 9.3v-2.8a3.5 3.5 0 0 0 -7 0",+ "M6.5 16a3.5 3.5 0 0 1 0 -7h.5",+ "M5 9.3v-2.8a3.5 3.5 0 0 1 7 0v10",+ ],+ "IconBrain",+);++export const IconSearch = icon(+ ["M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0", "M21 21l-6 -6"],+ "IconSearch",+);++export const IconPhoto = icon(+ [+ "M15 8h.01",+ "M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12",+ "M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5",+ "M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3",+ ],+ "IconPhoto",+);++export const IconScreenShare = icon(+ [+ "M21 12v3a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-10a1 1 0 0 1 1 -1h9",+ "M7 20l10 0",+ "M9 16l0 4",+ "M15 16l0 4",+ "M17 4h4v4",+ "M16 9l5 -5",+ ],+ "IconScreenShare",+);diff --git a/dashboard/src/components/molecules/AgentItem.tsx b/dashboard/src/components/molecules/AgentItem.tsxindex 0d76d1a3..4000d14c 100644--- a/dashboard/src/components/molecules/AgentItem.tsx+++ b/dashboard/src/components/molecules/AgentItem.tsx@@ -1,3 +1,4 @@+import { IconRobot, IconBolt } from "../atoms/Icon";import type { Agent } from "../../types";import type { Session } from "../../services/api";@@ -57,8 +58,8 @@ export default function AgentItem({}`}onClick={handleAgentClick}>- <div className="flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-base">- π€+ <div className="flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-primary">+ <IconRobot /></div><div className="min-w-0 flex-1"><span className="truncate text-sm font-medium">@@ -84,7 +85,7 @@ export default function AgentItem({}`}onClick={() => onSelectSession(session.id)}>- <span className="text-xs">π</span>+ <IconBolt size={14} /><span className="min-w-0 flex-1 truncate text-xs font-medium">{sessionDisplayName(session)}</span>diff --git a/dashboard/src/components/screencast/ScreencastStatusBar.tsx b/dashboard/src/components/screencast/ScreencastStatusBar.tsxindex 0ebde4a1..2e6bfbdc 100644--- a/dashboard/src/components/screencast/ScreencastStatusBar.tsx+++ b/dashboard/src/components/screencast/ScreencastStatusBar.tsx@@ -1,4 +1,5 @@import { useState } from "react";+import { IconCamera } from "../atoms/Icon";import * as api from "../../services/api";export type ScreencastStatus = "connecting" | "streaming" | "error";@@ -99,7 +100,7 @@ export default function ScreencastStatusBar({{isCapturing ? (<span className="animate-pulse">β</span>) : (- <span>πΈ</span>+ <IconCamera size={14} />)}</button>diff --git a/internal/activity/activity.go b/internal/activity/activity.goindex 75af9b52..4a4df918 100644--- a/internal/activity/activity.go+++ b/internal/activity/activity.go@@ -15,9 +15,9 @@ import ()const (- defaultQueryLimit = 200- maxQueryLimit = 1000- defaultRetentionDays = 1+ defaultQueryLimit = 200+ maxQueryLimit = 1000+ defaultRetentionDays = 1)type Config struct {@@ -265,8 +265,6 @@ func (f Filter) matches(evt Event) bool {return true}--func FingerprintToken(token string) string {token = strings.TrimSpace(token)if token == "" {diff --git a/internal/agentsession/store.go b/internal/agentsession/store.goindex 2534cfce..50ebc7c3 100644--- a/internal/agentsession/store.go+++ b/internal/agentsession/store.go@@ -50,8 +50,8 @@ type Store struct {}const (- DefaultIdleTimeout = 12 * time.Hour- DefaultMaxLifetime = 24 * time.Hour+ DefaultIdleTimeout = 7 * 24 * time.Hour+ DefaultMaxLifetime = 30 * 24 * time.HourStatusActive = "active"StatusRevoked = "revoked"