Skip to content
  1. Home
  2. workspace
Checking…
Demo view — sanitized data only. Sign in over HTTPS to create projects and manage the workspace.

AI Engineering Workspace

Partial

Chat, files, terminal and preview in one place. Chat sessions run on a durable Postgres-backed queue (chat only: no tools or shell). Live models need an API key; the terminal is unavailable.

Project files

read-only

app/src/app/(app)/design/page.tsx

1import fs from "node:fs";
2import path from "node:path";
3import { Card, Empty, MaturityBadge, PageHeader, Badge } from "@/components/ui";
4import { DESIGN_ROOT, readManifest } from "@/lib/design";
5import { UploadForm } from "./upload";
6import { isAuthed } from "@/lib/auth";
7export const dynamic = "force-dynamic";
8export const metadata = { title: "Design Studio" };
9export default async function Design() {
10 const m = readManifest(); const shots = m.files.filter(f => f.path.startsWith("screenshots/") && f.path.endsWith(".png")).map(f => f.path.slice(12)); const authed = await isAuthed();
11 let tokens: any = {}; try { tokens = JSON.parse(fs.readFileSync(path.join(DESIGN_ROOT, "design-tokens.json"), "utf8")); } catch {}
12 const colors: [string, string][] = Object.entries(tokens.color?.light ?? {}) as any;
13 return <>
14 <PageHeader title="Design Studio" desc="Design tokens, visual QA evidence and the hosted asset library." badge={<MaturityBadge state="partial" />} />
15 <div className="grid gap-4 lg:grid-cols-3">
16 <Card title="Design tokens (light)" className="lg:col-span-2">{colors.length ? <div className="grid grid-cols-2 gap-2 sm:grid-cols-3 md:grid-cols-4">{colors.map(([k, v]) => <div key={k} className="rounded-lg border border-line p-2"><div className="h-8 rounded border border-line" style={{ background: v }} /><div className="mt-1.5 text-xs font-medium">{k}</div><div className="mono text-muted">{v}</div></div>)}</div> : <Empty title="No tokens published" />}</Card>
17 <Card title="Hosted assets" action={<a className="text-xs text-accent hover:underline" href="/design-assets/manifest.json">manifest.json</a>}><div className="text-sm"><div>{m.files.length} approved files · manifest v{m.version}</div><div className="mt-1 text-xs text-muted">Only manifest-listed, hash-verified files are served publicly.</div></div></Card></div>
18 <Card title="Screenshots & visual QA" className="mt-4">{shots.length ? <div className="grid gap-3 sm:grid-cols-2 lg:grid-cols-3">{shots.map(s => <a key={s} href={`/design-assets/screenshots/${s}`} className="group block"><div className="overflow-hidden rounded-lg border border-line bg-surface2"><img src={`/design-assets/screenshots/${s}`} alt={s.replace(/\.png$/, "").replace(/-/g, " ")} loading="lazy" className="aspect-[4/3] w-full object-cover object-top" /></div><div className="mt-1 truncate text-xs text-muted group-hover:text-fg">{s}</div></a>)}</div> : <Empty title="No screenshots yet" desc="Screenshots are captured by the Playwright QA run after each deployment." />}</Card>
19 <div className="mt-4 grid gap-4 md:grid-cols-2">
20 <Card title="Upload design asset" action={<Badge tone="info">authenticated</Badge>}>{authed ? <UploadForm /> : <p className="text-sm text-muted">Sign in to upload. No external (ChatGPT) uploader is connected yet; uploads and URL ingestion are authenticated-only.</p>}</Card>
21 <Card title="Design approval"><p className="text-sm text-muted">Approval workflow and implementation comparison: not started. Visual QA evidence is published after every verified release.</p></Card></div></>;
22}
23

Conversation

Partial
Sign in to start AI sessions.

Task checklist

  • Application shell deployed
  • Persistent projects
  • Agent runtime
  • Sandboxed terminal

Execution activity

No agent sessions. Git HEAD 1c27633 on master.

Approval requests

None pending.