Skip to content
  1. Home
  2. workspace
Checking…
Public 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)/superadmin/acceptance/client.tsx

1"use client";
2import { useState } from "react";
3export function Decide({ moduleKey, current }: { moduleKey: string; current: string }) {
4 const [s, setS] = useState(current); const [busy, setBusy] = useState(false);
5 async function go(status: string) { setBusy(true); const r = await fetch("/api/acceptance", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ action: "decide", moduleKey, status }) }); if (r.ok) setS(status); setBusy(false); }
6 return <div className="flex flex-wrap gap-1 text-xs" role="group" aria-label={`Manual acceptance for ${moduleKey}`}>{["accepted", "rejected", "pending"].map(x => <button key={x} disabled={busy} aria-pressed={s === x} className={"btn " + (s === x ? "btn-primary" : "")} onClick={() => go(x)}>{x === "accepted" ? "Accept" : x === "rejected" ? "Reject" : "Reset"}</button>)}</div>;
7}
8export function BugForm({ modules }: { modules: { id: string; title: string }[] }) {
9 const [t, setT] = useState(""); const [d, setD] = useState(""); const [m, setM] = useState(""); const [sev, setSev] = useState("minor"); const [msg, setMsg] = useState("");
10 async function go(e: React.FormEvent) { e.preventDefault(); const r = await fetch("/api/acceptance", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ action: "bug", title: t, detail: d, moduleKey: m, severity: sev }) }); if (r.ok) { setMsg("Filed."); setT(""); setD(""); setTimeout(() => location.reload(), 500); } else setMsg((await r.json().catch(() => ({}))).error || "Failed"); }
11 return <form onSubmit={go} className="grid gap-2 text-sm"><label htmlFor="bt" className="font-medium">Report a bug</label><input id="bt" className="input" value={t} onChange={e => setT(e.target.value)} placeholder="Short title" required />
12 <textarea className="input" rows={3} value={d} onChange={e => setD(e.target.value)} placeholder="Steps and what you expected (no secrets)" aria-label="Details" />
13 <div className="flex flex-wrap gap-2"><select className="input" value={m} onChange={e => setM(e.target.value)} aria-label="Module"><option value="">No module</option>{modules.map(x => <option key={x.id} value={x.id}>{x.id} {x.title}</option>)}</select>
14 <select className="input" value={sev} onChange={e => setSev(e.target.value)} aria-label="Severity"><option>minor</option><option>major</option><option>blocker</option></select><button className="btn btn-primary">File bug</button></div>{msg && <div role="status">{msg}</div>}</form>;
15}
16

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 a177d6e on master.

Approval requests

None pending.