Skip to content

An open-source, faster Devin alternative

TypeScript

Add Browser Sessions dashboard (#459)

Mohamed Habibbd5063c44802
diff --git a/cloudflare-workers/api-edge/src/dashboard.ts b/cloudflare-workers/api-edge/src/dashboard.ts
index e13a6a4d..d1a7a1d3 100644
--- a/cloudflare-workers/api-edge/src/dashboard.ts
+++ b/cloudflare-workers/api-edge/src/dashboard.ts
@@ -54,6 +54,11 @@ export interface DashboardEnv {
// unset the proxy 503s.
SESSIONS_API_URL?: string;
OC_ORG_TOKEN_SECRET?: string;
+ // Browser Sessions dashboard proxy. The browser API remains a separate
+ // Worker; this edge Worker only translates dashboard cookie auth into the
+ // internal service token plus org/user headers.
+ BROWSER_API_URL?: string;
+ BROWSER_API_SECRET?: string;
}
const SESSION_COOKIE = "oc_session";
@@ -854,6 +859,37 @@ async function proxyToV3(
return fetch(target, init);
}
+async function proxyToBrowserAPI(
+ req: Request,
+ env: DashboardEnv,
+ caller: Caller,
+ upstreamPath: string,
+): Promise<Response> {
+ if (!env.BROWSER_API_SECRET) {
+ return json({ error: "browser sessions proxy unavailable: browser API secret not configured" }, 503);
+ }
+
+ const base = (env.BROWSER_API_URL ?? "https://browser.opencomputer.dev").replace(/\/+$/, "");
+ const url = new URL(req.url);
+ const target = `${base}${upstreamPath}${url.search}`;
+
+ const headers = new Headers();
+ headers.set("authorization", `Bearer ${env.BROWSER_API_SECRET}`);
+ headers.set("x-opencomputer-org-id", caller.orgID);
+ headers.set("x-opencomputer-user-id", caller.userID);
+ const ct = req.headers.get("content-type");
+ if (ct) headers.set("content-type", ct);
+ const accept = req.headers.get("accept");
+ if (accept) headers.set("accept", accept);
+
+ const init: RequestInit = { method: req.method, headers, redirect: "manual" };
+ if (req.method !== "GET" && req.method !== "HEAD") {
+ init.body = await req.text();
+ }
+
+ return fetch(target, init);
+}
+
// ── dispatch ─────────────────────────────────────────────────────────────
export async function handleDashboard(
@@ -877,6 +913,16 @@ export async function handleDashboard(
return proxyToV3(req, env, caller, sub);
}
+ // ── Browser Sessions — proxy to the dedicated browser Worker ───────────
+ if (sub === "/browsers" && method === "GET") return proxyToBrowserAPI(req, env, caller, "/v1/browsers");
+ {
+ const m = sub.match(/^\/browsers\/([^/]+)$/);
+ if (m && (method === "GET" || method === "DELETE")) {
+ return proxyToBrowserAPI(req, env, caller, `/v1/browsers/${encodeURIComponent(m[1])}`);
+ }
+ }
+ if (sub === "/browser-profiles" && method === "GET") return proxyToBrowserAPI(req, env, caller, "/v1/profiles");
+
// ── Sandbox lifecycle webhooks ─────────────────────────────────────────
// Reuse the public /api/webhooks handler with the cookie-derived org, so the
// dashboard manages destinations/deliveries org-scoped without an osb_ key in
diff --git a/cloudflare-workers/api-edge/wrangler.prod.toml b/cloudflare-workers/api-edge/wrangler.prod.toml
index 955ae1e1..c86d8e47 100644
--- a/cloudflare-workers/api-edge/wrangler.prod.toml
+++ b/cloudflare-workers/api-edge/wrangler.prod.toml
@@ -62,6 +62,8 @@ new_sqlite_classes = ["CreditAccount"]
# OC_MANAGED_CRED_HMAC_SECRET — dedicated HMAC for handing a minted OR key to
# sessions-api (shared only with sessions-api; NOT the
# generic internal-auth — this route carries a live key)
+# BROWSER_API_SECRET — shared with browser.opencomputer.dev for dashboard
+# browser-session proxy requests
# Optional vars: OPENROUTER_BASE_URL (default https://openrouter.ai/api/v1),
# OPENROUTER_MARKUP_BPS (env-default markup; per-org orgs.model_markup_bps wins).
diff --git a/web/src/App.tsx b/web/src/App.tsx
index 57642785..d878b3f8 100644
--- a/web/src/App.tsx
+++ b/web/src/App.tsx
@@ -12,6 +12,7 @@ const AgentDetail = lazy(() => import('./pages/AgentDetail'))
const Credentials = lazy(() => import('./pages/Credentials'))
const Sessions = lazy(() => import('./pages/Sessions'))
const SessionDetail = lazy(() => import('./pages/SessionDetail'))
+const Browsers = lazy(() => import('./pages/Browsers'))
const Sandboxes = lazy(() => import('./pages/Sandboxes'))
const APIKeys = lazy(() => import('./pages/APIKeys'))
const Checkpoints = lazy(() => import('./pages/Checkpoints'))
@@ -34,6 +35,7 @@ export default function App() {
<Route path="credentials" element={<Credentials />} />
<Route path="sessions" element={<Sessions />} />
<Route path="sessions/:sessionId" element={<SessionDetail />} />
+ <Route path="browsers" element={<Browsers />} />
{/* Sandbox plane */}
<Route path="sandboxes" element={<Sandboxes />} />
<Route path="sandboxes/:sandboxId" element={<SandboxDetail />} />
diff --git a/web/src/api/client.ts b/web/src/api/client.ts
index be6ec11b..c41ac3ea 100644
--- a/web/src/api/client.ts
+++ b/web/src/api/client.ts
@@ -25,6 +25,8 @@ export type {
StripeInvoice,
SandboxUsageRow,
SandboxUsage,
+ BrowserSession,
+ BrowserProfile,
Agent,
Session,
SessionEvent,
@@ -351,6 +353,31 @@ export const setAutumnAutoTopup = (cfg: {
export const getSandboxUsage = (days = 30) =>
apiFetch(`/usage/sandboxes?days=${days}`, {}, S.SandboxUsageSchema)
+export const getBrowsers = (
+ params: { status?: string; limit?: number } = {},
+) => {
+ const q = new URLSearchParams()
+ if (params.status) q.set('status', params.status)
+ if (params.limit) q.set('limit', String(params.limit))
+ const qs = q.toString()
+ return apiFetch(
+ `/browsers${qs ? `?${qs}` : ''}`,
+ {},
+ S.BrowserSessionListSchema,
+ ).then((r) => r.browsers)
+}
+
+export const getBrowser = (id: string) =>
+ apiFetch(`/browsers/${encodeURIComponent(id)}`, {}, S.BrowserSessionSchema)
+
+export const deleteBrowser = (id: string) =>
+ apiFetch<void>(`/browsers/${encodeURIComponent(id)}`, { method: 'DELETE' })
+
+export const getBrowserProfiles = () =>
+ apiFetch('/browser-profiles', {}, S.BrowserProfileListSchema).then(
+ (r) => r.profiles,
+ )
+
// ── Durable Agent Sessions ───────────────────────────────────────────────────
// A separate service (sessions-api). Reached through the OC edge under
// `/api/dashboard/v3/*`, so these reuse apiFetch (cookie auth, validation, mock).
diff --git a/web/src/api/mock.ts b/web/src/api/mock.ts
index 9aae9919..6e38a257 100644
--- a/web/src/api/mock.ts
+++ b/web/src/api/mock.ts
@@ -102,6 +102,82 @@ const sandboxes = [
},
]
+const browserSessions = [
+ {
+ id: 'br_linkedin_live',
+ provider: 'kernel',
+ provider_session_id: 'kernel-live-1',
+ status: 'active',
+ cdp_ws_url: 'wss://proxy.example.onkernel.com/browser/cdp?jwt=mock',
+ webdriver_ws_url:
+ 'wss://proxy.example.onkernel.com/browser/webdriver/session?jwt=mock',
+ live_view_url: 'https://proxy.example.onkernel.com/browser/live/mock',
+ base_url: 'https://proxy.example.onkernel.com/browser/kernel/mock',
+ headless: false,
+ stealth: true,
+ gpu: false,
+ timeout_seconds: 600,
+ replay_id: 'replay_live_1',
+ replay_view_url: 'https://api.onkernel.com/browser/replays?replay_id=1',
+ created_at: at(0, 1),
+ updated_at: at(0, 1),
+ deleted_at: null,
+ },
+ {
+ id: 'br_inbox_headless',
+ provider: 'kernel',
+ provider_session_id: 'kernel-headless-1',
+ status: 'active',
+ cdp_ws_url: 'wss://proxy.example.onkernel.com/browser/cdp?jwt=headless',
+ webdriver_ws_url:
+ 'wss://proxy.example.onkernel.com/browser/webdriver/session?jwt=headless',
+ live_view_url: null,
+ base_url: 'https://proxy.example.onkernel.com/browser/kernel/headless',
+ headless: true,
+ stealth: true,
+ gpu: false,
+ timeout_seconds: 300,
+ created_at: at(0, 4),
+ updated_at: at(0, 4),
+ deleted_at: null,
+ },
+ {
+ id: 'br_old_replay',
+ provider: 'kernel',
+ provider_session_id: 'kernel-old-1',
+ status: 'deleted',
+ cdp_ws_url: 'wss://proxy.example.onkernel.com/browser/cdp?jwt=old',
+ webdriver_ws_url:
+ 'wss://proxy.example.onkernel.com/browser/webdriver/session?jwt=old',
+ live_view_url: 'https://proxy.example.onkernel.com/browser/live/old',
+ base_url: 'https://proxy.example.onkernel.com/browser/kernel/old',
+ headless: false,
+ stealth: true,
+ gpu: false,
+ timeout_seconds: 600,
+ replay_id: 'replay_old_1',
+ replay_view_url: 'https://api.onkernel.com/browser/replays?replay_id=old',
+ created_at: at(2, 2),
+ updated_at: at(2, 1),
+ deleted_at: at(2, 1),
+ },
+]
+
+const browserProfiles = [
+ {
+ id: 'prof_linkedin',
+ provider: 'kernel',
+ provider_profile_id: 'kernel-profile-linkedin',
+ name: 'linkedin',
+ created_at: at(4, 0),
+ updated_at: at(0, 1),
+ deleted_at: null,
+ provider_created_at: at(4, 0),
+ provider_updated_at: at(0, 1),
+ provider_last_used_at: at(0, 1),
+ },
+]
+
const images = [
{
id: 'img1',
@@ -641,6 +717,9 @@ const ROUTES: Array<[RegExp, Handler]> = [
[/^\/sessions\/[^/]+\/stats$/, () => sandboxStats],
[/^\/sessions\/[^/]+$/, () => sessionDetail],
[/^\/sessions(\?.*)?$/, () => sandboxes],
+ [/^\/browsers\/[^/]+$/, () => browserSessions[0]],
+ [/^\/browsers(\?.*)?$/, () => ({ browsers: browserSessions })],
+ [/^\/browser-profiles$/, () => ({ profiles: browserProfiles })],
[/^\/images(\?.*)?$/, () => images],
[
/^\/checkpoints(\?.*)?$/,
diff --git a/web/src/api/schemas.ts b/web/src/api/schemas.ts
index d4631fcd..394db4fc 100644
--- a/web/src/api/schemas.ts
+++ b/web/src/api/schemas.ts
@@ -249,6 +249,45 @@ export const SandboxUsageSchema = z.object({
sandboxes: z.array(SandboxUsageRowSchema),
})
+export const BrowserSessionSchema = z.object({
+ id: z.string(),
+ provider: z.string(),
+ provider_session_id: z.string(),
+ status: z.string(),
+ cdp_ws_url: z.string(),
+ webdriver_ws_url: z.string(),
+ live_view_url: z.string().nullable().optional(),
+ base_url: z.string().nullable().optional(),
+ headless: z.boolean().optional(),
+ stealth: z.boolean().optional(),
+ gpu: z.boolean().optional(),
+ timeout_seconds: z.number().optional(),
+ replay_id: z.string().optional(),
+ replay_view_url: z.string().optional(),
+ created_at: z.string(),
+ updated_at: z.string(),
+ deleted_at: z.string().nullable().optional(),
+})
+export const BrowserSessionListSchema = z.object({
+ browsers: z.array(BrowserSessionSchema),
+})
+
+export const BrowserProfileSchema = z.object({
+ id: z.string(),
+ provider: z.string(),
+ provider_profile_id: z.string(),
+ name: z.string().nullable().optional(),
+ created_at: z.string(),
+ updated_at: z.string().optional(),
+ deleted_at: z.string().nullable().optional(),
+ provider_created_at: z.string().optional(),
+ provider_updated_at: z.string().optional(),
+ provider_last_used_at: z.string().optional(),
+})
+export const BrowserProfileListSchema = z.object({
+ profiles: z.array(BrowserProfileSchema),
+})
+
// Sandbox lifecycle webhooks (Svix-backed, served by the edge /api/webhooks*).
// Org-scoped; shapes mirror the edge's toWire()/listDeliveries() camelCase.
export const SandboxWebhookSchema = z.object({
@@ -459,6 +498,8 @@ export type AutumnBilling = z.infer<typeof AutumnBillingSchema>
export type StripeInvoice = z.infer<typeof StripeInvoiceSchema>
export type SandboxUsageRow = z.infer<typeof SandboxUsageRowSchema>
export type SandboxUsage = z.infer<typeof SandboxUsageSchema>
+export type BrowserSession = z.infer<typeof BrowserSessionSchema>
+export type BrowserProfile = z.infer<typeof BrowserProfileSchema>
export type SandboxWebhook = z.infer<typeof SandboxWebhookSchema>
export type SandboxWebhookDelivery = z.infer<
typeof SandboxWebhookDeliverySchema
diff --git a/web/src/components/app-shell.tsx b/web/src/components/app-shell.tsx
index 37aa7a55..15775fbb 100644
--- a/web/src/components/app-shell.tsx
+++ b/web/src/components/app-shell.tsx
@@ -5,6 +5,7 @@ import {
LayoutGrid,
Bot,
MessagesSquare,
+ Monitor,
Boxes,
Layers,
Package,
@@ -70,6 +71,12 @@ const NAV: NavGroup[] = [
icon: KeySquare,
preview: true,
},
+ {
+ to: '/browsers',
+ label: 'Browsers',
+ icon: Monitor,
+ preview: true,
+ },
],
},
{
diff --git a/web/src/pages/Browsers.tsx b/web/src/pages/Browsers.tsx
new file mode 100644
index 00000000..1b032fbe
--- /dev/null
+++ b/web/src/pages/Browsers.tsx
@@ -0,0 +1,382 @@
+import { useMemo, useState } from 'react'
+import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
+import { ExternalLink, Monitor, Trash2 } from 'lucide-react'
+import { notifyError } from '@/lib/errors'
+import {
+ deleteBrowser,
+ getBrowserProfiles,
+ getBrowsers,
+ type BrowserProfile,
+ type BrowserSession,
+} from '@/api/client'
+import { PageHeader } from '@/components/page-header'
+import { Panel } from '@/components/panel'
+import { Button } from '@/components/ui/button'
+import { StatusBadge } from '@/components/status-badge'
+import { EmptyState } from '@/components/empty-state'
+import { ConfirmDialog } from '@/components/confirm-dialog'
+import { ResourceTable, type Column } from '@/components/resource-table'
+
+const STATUS_FILTERS = [
+ { value: '', label: 'All' },
+ { value: 'active', label: 'Active' },
+ { value: 'deleted', label: 'Deleted' },
+] as const
+
+function canDeleteBrowser(browser: BrowserSession) {
+ return browser.status === 'active' && !browser.deleted_at
+}
+
+function browserMode(browser: BrowserSession) {
+ return browser.headless ? 'Headless' : 'Headful'
+}
+
+function openExternal(url?: string | null) {
+ if (!url) return
+ window.open(url, '_blank', 'noopener,noreferrer')
+}
+
+export default function Browsers() {
+ const queryClient = useQueryClient()
+ const [status, setStatus] = useState('')
+ const [toDelete, setToDelete] = useState<BrowserSession | null>(null)
+
+ const {
+ data: browsers = [],
+ isLoading,
+ error: browsersError,
+ } = useQuery({
+ queryKey: ['browsers', status],
+ queryFn: () => getBrowsers({ status: status || undefined }),
+ retry: false,
+ })
+ const { data: profiles = [], isLoading: loadingProfiles } = useQuery({
+ queryKey: ['browser-profiles'],
+ queryFn: getBrowserProfiles,
+ })
+
+ const deleteMutation = useMutation({
+ mutationFn: (id: string) => deleteBrowser(id),
+ onMutate: async (id) => {
+ await queryClient.cancelQueries({ queryKey: ['browsers'] })
+ const deletedAt = new Date().toISOString()
+ queryClient.setQueriesData<BrowserSession[]>(
+ { queryKey: ['browsers'] },
+ (old) =>
+ old?.map((browser) =>
+ browser.id === id
+ ? {
+ ...browser,
+ status: 'deleted',
+ deleted_at: deletedAt,
+ updated_at: deletedAt,
+ }
+ : browser,
+ ),
+ )
+ },
+ onError: (error) => notifyError("Couldn't delete the browser.", error),
+ onSettled: () => {
+ void queryClient.invalidateQueries({ queryKey: ['browsers'] })
+ },
+ })
+
+ const activeCount = useMemo(
+ () => browsers.filter((browser) => canDeleteBrowser(browser)).length,
+ [browsers],
+ )
+ const accessPlaceholder = browserAccessPlaceholder(browsersError)
+
+ const confirmDelete = () => {
+ if (!toDelete) return
+ deleteMutation.mutate(toDelete.id, {
+ onSuccess: () => setToDelete(null),
+ })
+ }
+
+ const columns: Column<BrowserSession>[] = [
+ {
+ key: 'id',
+ header: 'Browser',
+ cell: (browser) => (
+ <div className="min-w-0">
+ <div className="text-foreground font-mono text-[13px]">
+ {browser.id}
+ </div>
+ <div className="text-muted-foreground truncate font-mono text-xs">
+ {browser.provider_session_id}
+ </div>
+ </div>
+ ),
+ },
+ {
+ key: 'status',
+ header: 'Status',
+ cell: (browser) => <StatusBadge status={browser.status} />,
+ },
+ {
+ key: 'mode',
+ header: 'Mode',
+ cell: (browser) => (
+ <span className="text-muted-foreground text-sm">
+ {browserMode(browser)}
+ </span>
+ ),
+ },
+ {
+ key: 'recording',
+ header: 'Recording',
+ cell: (browser) => (
+ <span className="text-muted-foreground text-sm">
+ {browser.replay_id ? 'On' : browser.headless ? 'Unavailable' : '—'}
+ </span>
+ ),
+ },
+ {
+ key: 'created',
+ header: 'Created',
+ cell: (browser) => (
+ <span className="text-muted-foreground font-mono text-xs">
+ {new Date(browser.created_at).toLocaleString()}
+ </span>
+ ),
+ },
+ {
+ key: 'actions',
+ header: '',
+ align: 'right',
+ cell: (browser) => (
+ <div className="flex h-8 items-center justify-end gap-1">
+ {browser.live_view_url ? (
+ <Button
+ variant="ghost"
+ size="icon"
+ title="Open live view"
+ aria-label="Open live view"
+ onClick={() => openExternal(browser.live_view_url)}
+ >
+ <ExternalLink className="size-4" />
+ </Button>
+ ) : null}
+ {browser.replay_view_url ? (
+ <Button
+ variant="ghost"
+ size="icon"
+ title="Open replay"
+ aria-label="Open replay"
+ onClick={() => openExternal(browser.replay_view_url)}
+ >
+ <Monitor className="size-4" />
+ </Button>
+ ) : null}
+ {canDeleteBrowser(browser) ? (
+ <Button
+ variant="ghost"
+ size="icon"
+ title="Delete browser"
+ aria-label="Delete browser"
+ className="text-status-error hover:text-destructive"
+ onClick={() => setToDelete(browser)}
+ >
+ <Trash2 className="size-4" />
+ </Button>
+ ) : null}
+ </div>
+ ),
+ },
+ ]
+
+ return (
+ <div>
+ <PageHeader
+ title="Browser sessions"
+ description="Kernel-backed browser sessions, live views, and recordings."
+ api={{
+ method: 'POST',
+ path: '/v1/browsers',
+ sdk: 'Browser.create()',
+ docs: 'https://docs.opencomputer.dev/browser-sessions/overview',
+ }}
+ />
+
+ {accessPlaceholder ? (
+ <BrowserAccessPlaceholder
+ title={accessPlaceholder.title}
+ description={accessPlaceholder.description}
+ />
+ ) : (
+ <>
+ <div className="mb-4 grid gap-3 sm:grid-cols-3">
+ <Metric label="Visible sessions" value={browsers.length} />
+ <Metric label="Active" value={activeCount} />
+ <Metric label="Profiles" value={profiles.length} />
+ </div>
+
+ <div className="mb-4 flex flex-wrap gap-1.5">
+ {STATUS_FILTERS.map((filter) => (
+ <Button
+ key={filter.value}
+ size="sm"
+ variant={status === filter.value ? 'default' : 'ghost'}
+ onClick={() => setStatus(filter.value)}
+ >
+ {filter.label}
+ </Button>
+ ))}
+ </div>
+
+ <Panel className="mb-6 overflow-hidden">
+ <ResourceTable
+ columns={columns}
+ rows={browsers}
+ rowKey={(browser) => browser.id}
+ loading={isLoading}
+ empty={
+ <EmptyState
+ icon={Monitor}
+ title="No browser sessions found"
+ description={
+ status
+ ? 'No browser sessions match this filter.'
+ : 'Browser sessions created through the API will show up here.'
+ }
+ />
+ }
+ />
+ </Panel>
+
+ <ProfilesTable profiles={profiles} loading={loadingProfiles} />
+ </>
+ )}
+
+ <ConfirmDialog
+ open={toDelete !== null}
+ onOpenChange={(open) => !open && setToDelete(null)}
+ title={`Delete browser ${toDelete?.id ?? ''}?`}
+ description="The browser session will be stopped. Existing replay links remain available when Kernel recorded the session."
+ confirmLabel="Delete browser"
+ destructive
+ pending={deleteMutation.isPending}
+ onConfirm={confirmDelete}
+ />
+ </div>
+ )
+}
+
+function Metric({ label, value }: { label: string; value: number }) {
+ return (
+ <Panel className="px-4 py-3">
+ <div className="text-muted-foreground text-xs">{label}</div>
+ <div className="text-foreground mt-1 font-mono text-2xl">{value}</div>
+ </Panel>
+ )
+}
+
+function browserAccessPlaceholder(error: unknown) {
+ if (!(error instanceof Error)) return null
+ const message = error.message.toLowerCase()
+ if (
+ message.includes('invite-only') ||
+ message.includes('browser_preview_not_enabled')
+ ) {
+ return {
+ title: 'Browser sessions are in preview',
+ description:
+ 'This organization is not enabled for Browser Sessions yet. Approved organizations will see live and past browser sessions here.',
+ }
+ }
+ if (message.includes('browser sessions proxy unavailable')) {
+ return {
+ title: 'Browser sessions are not configured',
+ description:
+ 'The dashboard is ready, but the browser service token is not configured for this deployment.',
+ }
+ }
+ return null
+}
+
+function BrowserAccessPlaceholder({
+ title,
+ description,
+}: {
+ title: string
+ description: string
+}) {
+ return (
+ <Panel className="px-6 py-10">
+ <EmptyState icon={Monitor} title={title} description={description} />
+ </Panel>
+ )
+}
+
+function ProfilesTable({
+ profiles,
+ loading,
+}: {
+ profiles: BrowserProfile[]
+ loading: boolean
+}) {
+ const columns: Column<BrowserProfile>[] = [
+ {
+ key: 'name',
+ header: 'Profile',
+ cell: (profile) => (
+ <div>
+ <div className="text-foreground text-sm">
+ {profile.name || 'Unnamed profile'}
+ </div>
+ <div className="text-muted-foreground font-mono text-xs">
+ {profile.id}
+ </div>
+ </div>
+ ),
+ },
+ {
+ key: 'provider',
+ header: 'Kernel profile',
+ cell: (profile) => (
+ <span className="text-muted-foreground font-mono text-xs">
+ {profile.provider_profile_id}
+ </span>
+ ),
+ },
+ {
+ key: 'lastUsed',
+ header: 'Last used',
+ cell: (profile) => (
+ <span className="text-muted-foreground font-mono text-xs">
+ {profile.provider_last_used_at
+ ? new Date(profile.provider_last_used_at).toLocaleString()
+ : '—'}
+ </span>
+ ),
+ },
+ {
+ key: 'created',
+ header: 'Created',
+ cell: (profile) => (
+ <span className="text-muted-foreground font-mono text-xs">
+ {new Date(profile.created_at).toLocaleString()}
+ </span>
+ ),
+ },
+ ]
+
+ return (
+ <Panel className="overflow-hidden">
+ <ResourceTable
+ columns={columns}
+ rows={profiles}
+ rowKey={(profile) => profile.id}
+ loading={loading}
+ empty={
+ <EmptyState
+ icon={Monitor}
+ title="No browser profiles"
+ description="Saved browser profiles will show up here."
+ />
+ }
+ />
+ </Panel>
+ )
+}