Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
MUL-9036 fix(theme): store previews use the same component aliases as the app (#10371)
Jiayuan Zhang7ebafbb072ac
diff --git a/packages/core/api/client.ts b/packages/core/api/client.tsindex 11b9a6c097..33fc715828 100644--- a/packages/core/api/client.ts+++ b/packages/core/api/client.ts@@ -3251,9 +3251,17 @@ export class ApiClient {// Fetched as bytes rather than linked: Desktop authenticates with a bearer// token that an <img> request would not carry.- async getStoreThemeScreenshot(id: string, mode: StoreThemeMode, signal?: AbortSignal): Promise<Blob> {+ // The revision only keeps the browser's HTTP cache from answering for an+ // older screenshot; the server ignores it.+ async getStoreThemeScreenshot(+ id: string,+ mode: StoreThemeMode,+ revision?: string,+ signal?: AbortSignal,+ ): Promise<Blob> {+ const query = revision ? `?revision=${encodeURIComponent(revision)}` : "";const res = await this.fetchRaw(- `/api/theme-store/themes/${encodeURIComponent(id)}/screenshots/${mode}`,+ `/api/theme-store/themes/${encodeURIComponent(id)}/screenshots/${mode}${query}`,{ signal },);return res.blob();diff --git a/packages/core/api/schemas.ts b/packages/core/api/schemas.tsindex c65447c883..9b62c139b2 100644--- a/packages/core/api/schemas.ts+++ b/packages/core/api/schemas.ts@@ -1379,6 +1379,11 @@ export interface StoreTheme {size: number;/** Modes the registry rendered a screenshot for. */screenshots: StoreThemeMode[];+ /**+ * Each mode's current screenshot. The registry re-renders screenshots+ * without a new release; absent from servers that predate this.+ */+ screenshot_revisions?: Partial<Record<StoreThemeMode, string>>;updated_at?: string;/** Installs and updates served by this server, all users together. */downloads: number;@@ -1400,6 +1405,10 @@ const StoreThemeSchema = zversion: z.string(),size: z.number(),screenshots: StoreThemeModesSchema,+ screenshot_revisions: z+ .object({ light: z.string().optional(), dark: z.string().optional() })+ .optional()+ .catch(undefined),updated_at: OptionalStringSchema,downloads: z.number().catch(0).default(0),})diff --git a/packages/core/appearance/theme-store.test.ts b/packages/core/appearance/theme-store.test.tsindex cecf30f78c..105ca8563a 100644--- a/packages/core/appearance/theme-store.test.ts+++ b/packages/core/appearance/theme-store.test.ts@@ -1,13 +1,14 @@// @vitest-environment jsdom+import { QueryClient } from "@tanstack/react-query";import { beforeEach, describe, expect, it, vi } from "vitest";import { api } from "../api";import { StoreThemeListSchema, type StoreTheme } from "../api/schemas";import { INSTALLED_THEMES_STORAGE_KEY, useInstalledThemesStore } from "./installed-themes";import { writeZip } from "./theme-archive";import { parseTheme } from "./theme-package";-import { readStoreTheme, storeThemeState } from "./theme-store";+import { readStoreTheme, storeThemeScreenshotOptions, storeThemeState } from "./theme-store";-vi.mock("../api", () => ({ api: { getStoreThemePackage: vi.fn() } }));+vi.mock("../api", () => ({ api: { getStoreThemePackage: vi.fn(), getStoreThemeScreenshot: vi.fn() } }));const encoder = new TextEncoder();const manifest = (id: string, version: string) => ({ apiVersion: 1, id, name: "Ink", author: "Someone", version });@@ -47,6 +48,33 @@ describe("StoreThemeListSchema", () => {});});+describe("storeThemeScreenshotOptions", () => {+ it("fetches a screenshot once per revision, so a re-render of the same release is fetched again", async () => {+ const old = new Blob(["old"]);+ const fresh = new Blob(["fresh"]);+ vi.mocked(api.getStoreThemeScreenshot).mockReset().mockResolvedValueOnce(old).mockResolvedValueOnce(fresh);+ const client = new QueryClient();+ const before = entry({ screenshot_revisions: { light: "aaaaaaaaaaaa" } });+ expect(await client.fetchQuery(storeThemeScreenshotOptions(before, "light"))).toBe(old);+ expect(await client.fetchQuery(storeThemeScreenshotOptions(before, "light"))).toBe(old);++ const after = entry({ screenshot_revisions: { light: "bbbbbbbbbbbb" } });+ expect(await client.fetchQuery(storeThemeScreenshotOptions(after, "light"))).toBe(fresh);+ expect(api.getStoreThemeScreenshot).toHaveBeenCalledTimes(2);+ expect(api.getStoreThemeScreenshot).toHaveBeenLastCalledWith("ink", "light", "bbbbbbbbbbbb", expect.anything());+ });++ it("reads revisions per mode and ignores malformed ones", () => {+ const parsed = StoreThemeListSchema.parse({+ themes: [+ entry({ screenshot_revisions: { light: "aaaaaaaaaaaa" } }),+ { ...entry({ id: "sand" }), screenshot_revisions: "nope" },+ ],+ });+ expect(parsed.themes.map((t) => t.screenshot_revisions)).toEqual([{ light: "aaaaaaaaaaaa" }, undefined]);+ });+});+describe("readStoreTheme", () => {it("reads the release like an imported theme", async () => {vi.mocked(api.getStoreThemePackage).mockResolvedValue(zip("ink", "1.0.0"));diff --git a/packages/core/appearance/theme-store.ts b/packages/core/appearance/theme-store.tsindex 3224f90bd8..94effdb2eb 100644--- a/packages/core/appearance/theme-store.ts+++ b/packages/core/appearance/theme-store.ts@@ -18,8 +18,8 @@ export type { StoreTheme, StoreThemeMode };export const themeStoreKeys = {all: ["theme-store"] as const,themes: () => [...themeStoreKeys.all, "themes"] as const,- screenshot: (id: string, version: string, mode: StoreThemeMode) =>- [...themeStoreKeys.all, "screenshot", id, version, mode] as const,+ screenshot: (id: string, version: string, mode: StoreThemeMode, revision: string | null) =>+ [...themeStoreKeys.all, "screenshot", id, version, mode, revision] as const,};export const storeThemesOptions = (enabled: boolean) =>@@ -30,15 +30,21 @@ export const storeThemesOptions = (enabled: boolean) =>staleTime: 5 * 60 * 1000,});-/** A version's screenshot never changes, so it is fetched once. */-export const storeThemeScreenshotOptions = (theme: StoreTheme, mode: StoreThemeMode) =>- queryOptions({- queryKey: themeStoreKeys.screenshot(theme.id, theme.version, mode),- queryFn: ({ signal }) => api.getStoreThemeScreenshot(theme.id, mode, signal),+/**+ * A screenshot revision never changes, so it is fetched once. The registry+ * re-renders screenshots without a new release, which the list reports as a+ * new revision.+ */+export const storeThemeScreenshotOptions = (theme: StoreTheme, mode: StoreThemeMode) => {+ const revision = theme.screenshot_revisions?.[mode] ?? null;+ return queryOptions({+ queryKey: themeStoreKeys.screenshot(theme.id, theme.version, mode, revision),+ queryFn: ({ signal }) => api.getStoreThemeScreenshot(theme.id, mode, revision ?? undefined, signal),enabled: theme.screenshots.includes(mode),staleTime: Infinity,gcTime: 30 * 60 * 1000,});+};/*** Where a store theme stands on this device:diff --git a/scripts/theme-preview.mjs b/scripts/theme-preview.mjsindex c266838fc8..5ea5ba963f 100644--- a/scripts/theme-preview.mjs+++ b/scripts/theme-preview.mjs@@ -42,6 +42,8 @@ async function compileCss() {@import "../../packages/ui/styles/theme-variables.css";@import "../../packages/ui/styles/appearance.css";@import "../../packages/ui/styles/base.css";+ @import "../../packages/views/editor/styles/prose.css";+ @import "../../packages/views/editor/styles/code.css";@custom-variant dark (&:is(.dark *));@source "./fixture.html";:root {diff --git a/scripts/theme-preview.test.mjs b/scripts/theme-preview.test.mjsnew file mode 100644index 0000000000..46e549cc36--- /dev/null+++ b/scripts/theme-preview.test.mjs@@ -0,0 +1,261 @@+import assert from "node:assert/strict";+import { readFileSync } from "node:fs";+import { join, resolve } from "node:path";+import test from "node:test";++const root = resolve(import.meta.dirname, "..");+const read = (path) => readFileSync(join(root, path), "utf8");++/**+ * The radius and colour names a stylesheet gives Tailwind (`--radius-*` and+ * `--color-*`), as the utilities use them: `rounded-nav-item`, and+ * `nav-item-active` for bg-, text-, border- and ring-.+ */+function themeNames(path) {+ const radius = new Set();+ const color = new Set();+ for (const [, kind, name] of read(path).matchAll(/--(radius|color)-([a-z0-9-]+):\s*var\(--/g)) {+ (kind === "radius" ? radius : color).add(name);+ }+ return { radius, color };+}++/** The component aliases: what components read and themes set (docs/theming.md). */+const componentAliases = () => themeNames("packages/ui/styles/theme-variables.css");++const VOID = new Set(["input", "br", "img", "meta", "hr"]);++/** The fixture's elements, each with its tag, attributes, classes, own text and parent. */+function parseFixture() {+ const html = read("scripts/theme-preview/fixture.html");+ const elements = [];+ const stack = [];+ const tag = /<!--[\s\S]*?-->|<(\/?)([a-zA-Z][\w-]*)((?:\s+[^\s=>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'))?)*)\s*(\/?)>/g;+ let last = 0;+ for (const match of html.matchAll(tag)) {+ const [token, closing, name, rawAttrs, selfClosing] = match;+ if (stack.length > 0) stack.at(-1).text += html.slice(last, match.index).trim();+ last = match.index + token.length;+ if (token.startsWith("<!--")) continue;+ if (closing) {+ const at = stack.findLastIndex((el) => el.tag === name);+ assert.notEqual(at, -1, `fixture.html closes <${name}> that is not open`);+ stack.length = at;+ continue;+ }+ const attrs = {};+ for (const [, key, , dq, sq] of rawAttrs.matchAll(/([^\s=]+)(\s*=\s*(?:"([^"]*)"|'([^']*)'))?/g)) {+ attrs[key] = dq ?? sq ?? "";+ }+ const el = { tag: name, attrs, text: "", classes: new Set((attrs.class ?? "").split(/\s+/).filter(Boolean)), parent: stack.at(-1) ?? null };+ elements.push(el);+ if (!selfClosing && !VOID.has(name)) stack.push(el);+ }+ assert.deepEqual(stack.map((el) => el.tag), [], "fixture.html leaves elements open");+ return elements;+}++const ancestors = function* (el) {+ for (let at = el.parent; at; at = at.parent) yield at;+};+const inside = (el, anchor) => [...ancestors(el)].some((a) => a.attrs["data-mc"] === anchor);+const descendants = (elements, el) => elements.filter((other) => [...ancestors(other)].includes(el));+const anchors = (elements, name, extra = {}) =>+ elements.filter((el) => el.attrs["data-mc"] === name && Object.entries(extra).every(([k, v]) => el.attrs[k] === v));++/**+ * What each anchor and slot of the fixture draws, the classes the component+ * it stands for puts on it, and the component's source, which must still+ * carry those classes. A theme's variables reach the page through these+ * classes only, so a fixture class that differs from the component's makes+ * the store screenshot differ from the installed theme.+ */+const EXPECTED = [+ {+ what: "the current rail item",+ find: (els) => els.filter((el) => el.tag === "a" && el.attrs["aria-current"] === "page" && inside(el, "app-rail")),+ classes: ["rounded-rail-item", "aria-[current=page]:bg-rail-item-active", "aria-[current=page]:text-rail-item-active-foreground"],+ source: "packages/views/layout/app-rail.tsx",+ },+ {+ what: "the other rail items",+ find: (els) => els.filter((el) => el.tag === "a" && el.attrs["data-space"] && !el.attrs["aria-current"] && inside(el, "app-rail")),+ classes: ["rounded-rail-item", "text-rail-item"],+ source: "packages/views/layout/app-rail.tsx",+ },+ {+ what: "the active nav item",+ find: (els) => anchors(els, "nav-item", { "data-active": "true" }),+ classes: ["rounded-nav-item", "bg-nav-item-active", "text-nav-item-active-foreground"],+ source: "packages/views/layout/panel-nav.tsx",+ },+ {+ what: "the other nav items",+ find: (els) => anchors(els, "nav-item", { "data-active": "false" }),+ classes: ["rounded-nav-item", "text-nav-item"],+ source: "packages/views/layout/panel-nav.tsx",+ },+ {+ what: "the page",+ find: (els) => anchors(els, "page"),+ classes: ["rounded-page", "bg-page-canvas", "ring-page-border"],+ source: "packages/views/layout/dashboard-layout.tsx",+ },+ {+ what: "the issue group headers",+ find: (els) => anchors(els, "issue-group-header"),+ classes: ["rounded-issue-group-header", "bg-issue-group-header"],+ source: "packages/views/issues/components/list-view.tsx",+ },+ {+ what: "the selected issue row",+ find: (els) => anchors(els, "issue-row").filter((row) => descendants(els, row).some((el) => el.tag === "input" && "checked" in el.attrs)),+ classes: ["bg-issue-row-selected"],+ source: "packages/views/issues/components/list-row.tsx",+ },+ {+ what: "the issue row identifiers",+ find: (els) => els.filter((el) => /^ACM-\d+$/.test(el.text) && inside(el, "issue-row")),+ classes: ["text-issue-row-identifier"],+ source: "packages/views/issues/components/list-row.tsx",+ },+ {+ what: "the label chips",+ find: (els) => anchors(els, "label-chip"),+ classes: ["rounded-label"],+ source: "packages/views/labels/label-chip.tsx",+ },+ {+ what: "the comment card",+ find: (els) => anchors(els, "comment"),+ classes: ["rounded-card", "border-surface-border", "bg-surface", "text-surface-foreground"],+ source: "packages/ui/components/ui/card.tsx",+ },+ {+ what: "the issue peek panel",+ find: (els) => els.filter((el) => "data-issue-peek" in el.attrs),+ classes: ["ring-floating-border", "shadow-[var(--floating-shadow)]"],+ source: "packages/views/issues/components/issue-peek.tsx",+ },+ {+ what: "the small buttons",+ find: (els) => els.filter((el) => ["sm", "icon-sm", "icon-xs"].includes(el.attrs["data-size"])),+ classes: ["rounded-button-sm"],+ source: "packages/ui/components/ui/button.tsx",+ },+];++/**+ * Aliases the fixture does not draw: states that need a pointer or focus,+ * and surfaces that are not on the page it shows. A new alias has to be+ * drawn or listed here.+ */+const NOT_DRAWN = {+ radius: {+ menu: "no menu is open",+ "menu-item": "no menu is open",+ popover: "no popover is open",+ dialog: "no dialog is open",+ tooltip: "no tooltip is open",+ input: "the page has no text input",+ button: "only small buttons are on the page",+ avatar: "actor avatars are round (rounded-full) in the app",+ "board-column": "the page shows the list, not the board",+ "board-card": "the page shows the list, not the board",+ },+ color: {+ "menu-item-hover": "no menu is open",+ "menu-item-hover-foreground": "no menu is open",+ "nav-item-hover": "hover",+ "nav-item-hover-foreground": "hover",+ "rail-item-hover": "hover",+ "issue-row-hover": "hover",+ "issue-group-header-hover": "hover",+ "board-column": "the page shows the list, not the board",+ "board-card": "the page shows the list, not the board",+ "board-card-hover": "the page shows the list, not the board",+ "board-card-border": "the page shows the list, not the board",+ "status-backlog": "no backlog issue is listed",+ "status-blocked": "no blocked issue is listed",+ "status-cancelled": "no cancelled issue is listed",+ "priority-none": "every listed issue has a priority",+ },+};++test("every anchor uses the classes of the component it stands for", () => {+ const elements = parseFixture();+ const aliases = componentAliases();+ const tokens = themeNames("packages/ui/styles/tokens.css");+ for (const { what, find, classes, source } of EXPECTED) {+ const found = find(elements);+ assert.ok(found.length > 0, `fixture.html draws no ${what}`);+ const code = read(source);+ for (const cls of classes) {+ const [, utility, name] = cls.replace(/^.*:/, "").match(/^(rounded|bg|text|border|ring)-(.+)$/) ?? [];+ if (utility === "rounded") assert.ok(aliases.radius.has(name), `${cls}: theme-variables.css has no --radius-${name}`);+ else if (utility) assert.ok(aliases.color.has(name) || tokens.color.has(name), `${cls}: no stylesheet defines --color-${name}`);+ assert.ok(code.includes(cls), `${source} no longer uses ${cls}; update ${what} in fixture.html to match`);+ for (const el of found) assert.ok(el.classes.has(cls), `${what} in fixture.html lacks ${cls} (${source} has it)`);+ }+ }+});++test("status and priority glyphs use the colour of their status and priority", () => {+ const elements = parseFixture();+ const statusSource = read("packages/views/issues/components/status-icon.tsx");+ const prioritySource = read("packages/core/issues/config/priority.ts");+ for (const header of anchors(elements, "issue-group-header")) {+ const cls = `text-status-${header.attrs["data-status"].replace(/_/g, "-")}`;+ assert.ok(statusSource.includes(`"${cls}"`), `status-icon.tsx does not use ${cls}`);+ const icons = descendants(elements, header).filter((el) => el.attrs["data-mc"] === "status-icon");+ assert.equal(icons.length, 1, `the ${header.attrs["data-status"]} group header has no status icon`);+ assert.ok(icons[0].classes.has(cls), `the ${header.attrs["data-status"]} status icon lacks ${cls}`);+ }+ for (const row of anchors(elements, "issue-row")) {+ const icons = descendants(elements, row).filter((el) => el.attrs["data-mc"] === "priority-icon");+ if (icons.length === 0) continue;+ const cls = `text-priority-${row.attrs["data-priority"]}`;+ assert.ok(prioritySource.includes(`"${cls}"`), `priority.ts does not use ${cls}`);+ assert.ok(icons[0].classes.has(cls), `the ${row.attrs["data-priority"]} priority icon lacks ${cls}`);+ }+});++test("every component alias is drawn or listed as not drawn", () => {+ const elements = parseFixture();+ const { radius, color } = componentAliases();+ const used = new Set(+ elements.flatMap((el) => [...el.classes].map((cls) => cls.replace(/^.*:/, ""))),+ );+ const drawn = {+ radius: (name) => used.has(`rounded-${name}`),+ color: (name) => ["bg", "text", "border", "ring"].some((p) => used.has(`${p}-${name}`)),+ };+ for (const [kind, names] of Object.entries({ radius, color })) {+ for (const name of names) {+ const reason = NOT_DRAWN[kind][name];+ if (drawn[kind](name)) {+ assert.ok(!reason, `--${kind}-${name} is drawn now; remove it from NOT_DRAWN`);+ } else {+ assert.ok(reason, `fixture.html never uses --${kind}-${name}; draw it the way its component does, or list it in NOT_DRAWN`);+ }+ }+ for (const name of Object.keys(NOT_DRAWN[kind])) {+ assert.ok(names.has(name), `NOT_DRAWN lists --${kind}-${name}, which theme-variables.css no longer has`);+ }+ }+});++test("anchors nest as they do in the app", () => {+ const elements = parseFixture();+ const [page] = anchors(elements, "page");+ const [sidebar] = anchors(elements, "sidebar");+ const [rail] = anchors(elements, "app-rail");+ assert.ok(inside(sidebar, "page"), "the sidebar sits inside the page canvas");+ assert.ok(!inside(rail, "page"), "the rail sits outside the page canvas");+ for (const el of anchors(elements, "nav-item")) assert.ok(inside(el, "sidebar"), "nav items sit inside the sidebar");+ for (const name of ["issue-group-header", "issue-row", "comment", "comment-composer"]) {+ for (const el of anchors(elements, name)) assert.ok(inside(el, "page"), `${name} sits inside the page`);+ }+ for (const el of anchors(elements, "comment-reply")) assert.ok(inside(el, "comment"), "replies sit inside their comment");+ assert.ok(page && anchors(elements, "bottom-bar").every((el) => !inside(el, "page")), "the bottom bar sits under the page");+});diff --git a/scripts/theme-preview/fixture.html b/scripts/theme-preview/fixture.htmlindex 709910ce7e..ce99680f12 100644--- a/scripts/theme-preview/fixture.html+++ b/scripts/theme-preview/fixture.html@@ -1,120 +1,198 @@<!--- The page theme screenshots are rendered on: an issue list next to an open- issue, built from the app's own styles and its public `data-mc` anchors- (packages/core/appearance/anchors.ts), so a theme's variables and anchor- rules apply as they do in the app. Class names here are only for the+ The page theme screenshots are rendered on: the issue list with one issue+ open in the peek panel, built from the app's own styles and its public+ `data-mc` anchors (packages/core/appearance/anchors.ts), so a theme's+ variables and anchor rules apply as they do in the app.++ Each element copies the structure and the Tailwind aliases of the component+ it stands for (app-rail.tsx, space-panel.tsx, panel-nav.tsx, list-view.tsx,+ list-row.tsx, label-chip.tsx, issue-peek.tsx, comment-card.tsx,+ comment-input.tsx). States a component sets in script are written out:+ `aria-current`, `data-active`, `data-peeked`, the selected row's+ background. scripts/theme-preview.test.mjs checks the aliases against+ packages/ui/styles/theme-variables.css. Class names here are only for thefixture; themes must not rely on them.-->-<div class="flex h-screen gap-0 bg-app-shell font-sans text-body text-foreground antialiased">- <nav data-mc="app-rail" class="flex w-12 shrink-0 flex-col items-center gap-2 py-3">- <span class="mb-2 flex size-7 items-center justify-center rounded-lg bg-primary text-micro font-semibold text-primary-foreground">M</span>- <span class="size-7 rounded-md bg-sidebar-accent"></span>- <span class="size-7 rounded-md"></span>- <span class="size-7 rounded-md"></span>+<div class="flex h-screen bg-app-shell font-sans text-body text-foreground antialiased" style="--sidebar-width: 240px">+ <nav data-slot="app-rail" data-mc="app-rail" class="flex h-full w-14 shrink-0 flex-col items-center overflow-hidden pt-[15px] pb-2.5">+ <span class="inline-flex size-[34px] shrink-0 items-center justify-center rounded-lg border border-surface-border bg-surface-raised text-body font-semibold text-foreground shadow-[var(--surface-shadow)]">A</span>+ <div class="my-2 flex flex-col items-center gap-1">+ <span class="relative inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-muted-foreground [&_svg:not([class*='size-'])]:size-[18px]"><svg class="icon icon-square-pen" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 3.25 L7.13 3.25 C5.19 3.25 4.39 3.25 3.82 3.82 C3.25 4.39 3.25 5.19 3.25 7.13 L3.25 13.75 C3.25 17.25 3.25 18.7 4.27 19.73 C5.3 20.75 6.75 20.75 10.25 20.75 L16.88 20.75 C18.81 20.75 19.61 20.75 20.18 20.18 C20.75 19.61 20.75 18.81 20.75 16.88 L20.75 13"/><path class="icon-body" d="M17.9 3.6a2.05 2.05 0 0 1 2.9 2.9l-7.35 7.35-3.7.85.85-3.7Z"/></svg></span>+ <span class="relative inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-muted-foreground [&_svg:not([class*='size-'])]:size-[18px]"><svg class="icon icon-search" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle class="icon-body" cx="11" cy="11" r="7.75"/><path d="m16.75 16.75 4.5 4.5"/></svg></span>+ </div>+ <ul class="flex flex-col items-center gap-0.5">+ <li><a data-space="inbox" class="group relative flex size-12 flex-col items-center justify-center gap-1 rounded-rail-item text-rail-item aria-[current=page]:bg-rail-item-active aria-[current=page]:font-medium aria-[current=page]:text-rail-item-active-foreground"><svg class="icon icon-inbox size-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path class="icon-body" d="M2.75 11 C2.75 7 2.75 5.34 3.92 4.17 C5.09 3 6.75 3 10.75 3 L13.25 3 C17.25 3 18.91 3 20.08 4.17 C21.25 5.34 21.25 7 21.25 11 L21.25 13 C21.25 17 21.25 18.66 20.08 19.83 C18.91 21 17.25 21 13.25 21 L10.75 21 C6.75 21 5.09 21 3.92 19.83 C2.75 18.66 2.75 17 2.75 13 Z"/><path class="icon-cut" d="M2.75 14h4.4c.75 0 1.35.55 1.75 1.2.55.95 1.6 1.8 3.1 1.8s2.55-.85 3.1-1.8c.4-.65 1-1.2 1.75-1.2h4.4"/></svg><span class="max-w-full truncate px-0.5 text-micro leading-[14px]">Inbox</span><span class="absolute top-0 right-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-brand px-1 text-[10px] leading-none font-medium text-brand-foreground ring-2 ring-app-shell">3</span></a></li>+ <li><a data-space="work" aria-current="page" class="group relative flex size-12 flex-col items-center justify-center gap-1 rounded-rail-item text-rail-item aria-[current=page]:bg-rail-item-active aria-[current=page]:font-medium aria-[current=page]:text-rail-item-active-foreground"><svg class="icon icon-list-todo size-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path class="icon-body" d="M4 10.5 C4 7.25 4 5.9 4.95 4.95 C5.9 4 7.25 4 10.5 4 L13.5 4 C16.75 4 18.1 4 19.05 4.95 C20 5.9 20 7.25 20 10.5 L20 14.75 C20 18 20 19.35 19.05 20.3 C18.1 21.25 16.75 21.25 13.5 21.25 L10.5 21.25 C7.25 21.25 5.9 21.25 4.95 20.3 C4 19.35 4 18 4 14.75 Z"/><path class="icon-body" d="M8.5 4.1 C8.5 3.3 8.5 2.97 8.73 2.73 C8.97 2.5 9.3 2.5 10.1 2.5 L13.9 2.5 C14.7 2.5 15.03 2.5 15.27 2.73 C15.5 2.97 15.5 3.3 15.5 4.1 L15.5 4.65 C15.5 5.45 15.5 5.78 15.27 6.02 C15.03 6.25 14.7 6.25 13.9 6.25 L10.1 6.25 C9.3 6.25 8.97 6.25 8.73 6.02 C8.5 5.78 8.5 5.45 8.5 4.65 Z"/><path class="icon-cut" d="M8.75 13.25 L9.94 14.44 C10.47 14.97 10.69 15.19 11 15.19 C11.31 15.19 11.53 14.97 12.06 14.44 L15.25 11.25"/></svg><span class="max-w-full truncate px-0.5 text-micro leading-[14px]">Work</span></a></li>+ <li><a data-space="team" class="group relative flex size-12 flex-col items-center justify-center gap-1 rounded-rail-item text-rail-item aria-[current=page]:bg-rail-item-active aria-[current=page]:font-medium aria-[current=page]:text-rail-item-active-foreground"><svg class="icon icon-users size-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6.25 14.5 L4.38 14.5 C3.44 14.5 3.05 14.5 2.77 14.23 C2.5 13.95 2.5 13.56 2.5 12.63 L2.5 8.5 C2.5 6.25 2.5 5.32 3.16 4.66 C3.82 4 4.75 4 7 4 L12.63 4 C13.56 4 13.95 4 14.23 4.27 C14.5 4.55 14.5 4.94 14.5 5.88 L14.5 7.75"/><path class="icon-body" d="M8.25 14.75 C8.25 12.25 8.25 11.21 8.98 10.48 C9.71 9.75 10.75 9.75 13.25 9.75 L16.5 9.75 C19 9.75 20.04 9.75 20.77 10.48 C21.5 11.21 21.5 12.25 21.5 14.75 L21.5 16 C21.5 18.5 21.5 19.54 20.77 20.27 C20.04 21 19 21 16.5 21 L13.25 21 C10.75 21 9.71 21 8.98 20.27 C8.25 19.54 8.25 18.5 8.25 16 Z"/><path class="icon-cut" d="M12.5 14.25v2M17.25 14.25v2"/></svg><span class="max-w-full truncate px-0.5 text-micro leading-[14px]">Team</span></a></li>+ <li><a data-space="chat" class="group relative flex size-12 flex-col items-center justify-center gap-1 rounded-rail-item text-rail-item aria-[current=page]:bg-rail-item-active aria-[current=page]:font-medium aria-[current=page]:text-rail-item-active-foreground"><svg class="icon icon-message-square size-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path class="icon-body" d="M2.75 9 C2.75 6.25 2.75 5.11 3.55 4.3 C4.36 3.5 5.5 3.5 8.25 3.5 L14.25 3.5 C17.75 3.5 19.2 3.5 20.23 4.52 C21.25 5.55 21.25 7 21.25 10.5 L21.25 11.5 C21.25 14.5 21.25 15.74 20.37 16.62 C19.49 17.5 18.25 17.5 15.25 17.5 L11 17.5 C10 17.5 9.59 17.5 9.05 17.66 C8.51 17.83 8.17 18.05 7.34 18.61 L4.58 20.45 C4.17 20.72 3.99 20.84 3.85 20.77 C3.71 20.71 3.67 20.51 3.6 20.01 L3.05 16.48 C2.9 15.49 2.84 15.08 2.79 14.5 C2.75 13.91 2.75 13.5 2.75 12.5 Z"/><path class="icon-cut" d="M8 9.5h8M8 13h4.5"/></svg><span class="max-w-full truncate px-0.5 text-micro leading-[14px]">Chat</span></a></li>+ <li><a data-space="autopilots" class="group relative flex size-12 flex-col items-center justify-center gap-1 rounded-rail-item text-rail-item aria-[current=page]:bg-rail-item-active aria-[current=page]:font-medium aria-[current=page]:text-rail-item-active-foreground"><svg class="icon icon-zap size-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.5 12a8.5 8.5 0 1 1-2.5-6.02"/><path d="M18.75 2.75v3.5h-3.5"/><path class="icon-body" d="m12.6 7.5-3.35 5h3l-.85 4 3.35-5h-3Z"/></svg><span class="max-w-full truncate px-0.5 text-micro leading-[14px]">Auto</span></a></li>+ </ul>+ <div class="mt-auto flex flex-col items-center gap-1 pt-2">+ <span class="relative inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-muted-foreground [&_svg:not([class*='size-'])]:size-[18px]"><svg class="icon icon-circle-help" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle class="icon-body" cx="12" cy="12" r="9.25"/><path d="M9.6 9.6a2.45 2.45 0 1 1 3.42 2.25c-.6.27-1.02.85-1.02 1.5v.4"/><circle fill="currentColor" stroke="none" cx="12" cy="16.75" r="1.15"/></svg></span>+ <span class="mt-1 inline-flex size-8 items-center justify-center rounded-full bg-muted text-caption font-medium text-muted-foreground">A</span>+ </div></nav>- <aside data-mc="sidebar" data-state="expanded" class="flex w-56 shrink-0 flex-col gap-0.5 bg-sidebar px-2 py-3 text-sidebar-foreground">- <div class="mb-2 px-2 text-label font-medium">Acme</div>- <a data-mc="nav-item" data-active="false" class="flex items-center gap-2 rounded-md px-2 py-1.5 text-label text-sidebar-foreground">Inbox<span class="ml-auto rounded-sm bg-brand px-1.5 text-micro text-brand-foreground">3</span></a>- <a data-mc="nav-item" data-active="true" class="flex items-center gap-2 rounded-md bg-sidebar-accent px-2 py-1.5 text-label font-medium text-sidebar-accent-foreground">Issues</a>- <a data-mc="nav-item" data-active="false" class="flex items-center gap-2 rounded-md px-2 py-1.5 text-label text-sidebar-foreground">Projects</a>- <a data-mc="nav-item" data-active="false" class="flex items-center gap-2 rounded-md px-2 py-1.5 text-label text-sidebar-foreground">Agents</a>- <a data-mc="nav-item" data-active="false" class="flex items-center gap-2 rounded-md px-2 py-1.5 text-label text-sidebar-foreground">Autopilots</a>- <div class="mt-4 mb-1 px-2 text-micro font-medium text-muted-foreground uppercase">Teams</div>- <a data-mc="nav-item" data-active="false" class="flex items-center gap-2 rounded-md px-2 py-1.5 text-label text-sidebar-foreground">Design</a>- <a data-mc="nav-item" data-active="false" class="flex items-center gap-2 rounded-md px-2 py-1.5 text-label text-sidebar-foreground">Platform</a>- </aside>- <main data-mc="page" class="my-2 mr-2 flex min-w-0 flex-1 overflow-hidden rounded-xl bg-page-canvas ring-1 ring-surface-border">- <section class="flex w-[56%] min-w-0 flex-col border-r border-border">- <header class="flex items-center gap-3 border-b border-border px-4 py-2.5">- <h1 class="text-title-sm font-medium">Issues</h1>- <div data-slot="tabs-list" class="flex gap-0.5 rounded-lg bg-muted p-0.5">- <span data-slot="tabs-trigger" data-active class="rounded-md bg-background px-2 py-0.5 text-caption font-medium shadow-sm">All</span>- <span data-slot="tabs-trigger" class="rounded-md px-2 py-0.5 text-caption text-muted-foreground">Active</span>- <span data-slot="tabs-trigger" class="rounded-md px-2 py-0.5 text-caption text-muted-foreground">Backlog</span>+ <div class="flex min-w-0 flex-1 flex-col">+ <main data-mc="page" class="relative mt-2 mr-2 flex min-h-0 min-w-0 flex-1 flex-row overflow-hidden rounded-page bg-page-canvas shadow-[var(--page-shadow,var(--surface-shadow))] ring-1 ring-page-border">+ <aside data-slot="space-panel" data-mc="sidebar" data-state="expanded" class="relative flex w-(--sidebar-width) shrink-0 justify-end overflow-hidden">+ <div class="flex h-full w-(--sidebar-width) shrink-0 flex-col overflow-hidden border-r">+ <div class="flex h-12 shrink-0 items-center gap-1 pl-5 pr-2.5">+ <div class="flex min-w-0 flex-1 items-center gap-2"><h2 class="truncate text-title-sm font-semibold">Work</h2></div>+ </div>+ <div class="min-h-0 flex-1 overflow-hidden px-2 pb-4">+ <section>+ <div class="flex h-7 items-center gap-1 pl-3 pr-1"><h3 class="min-w-0 flex-1 truncate text-caption font-medium text-muted-foreground">Views</h3></div>+ <ul class="space-y-px">+ <li><a data-mc="nav-item" data-active="false" class="flex min-h-[var(--nav-item-height,2rem)] w-full items-center gap-2.5 rounded-nav-item px-3 py-1.5 text-left text-body text-nav-item"><svg class="icon icon-circle-user size-4 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle class="icon-body" cx="12" cy="12" r="9.25"/><circle class="icon-cut" cx="12" cy="10" r="3"/><path class="icon-cut" d="M6.6 18.4c1.3-1.85 3.2-2.8 5.4-2.8s4.1.95 5.4 2.8"/></svg><span class="truncate">My issues</span></a></li>+ <li><a data-mc="nav-item" data-active="false" class="flex min-h-[var(--nav-item-height,2rem)] w-full items-center gap-2.5 rounded-nav-item px-3 py-1.5 text-left text-body text-nav-item"><svg class="icon icon-bot size-4 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path class="icon-body" d="M3.5 13.25 C3.5 10.25 3.5 9.01 4.38 8.13 C5.26 7.25 6.5 7.25 9.5 7.25 L14.5 7.25 C17.5 7.25 18.74 7.25 19.62 8.13 C20.5 9.01 20.5 10.25 20.5 13.25 L20.5 14.75 C20.5 17.75 20.5 18.99 19.62 19.87 C18.74 20.75 17.5 20.75 14.5 20.75 L9.5 20.75 C6.5 20.75 5.26 20.75 4.38 19.87 C3.5 18.99 3.5 17.75 3.5 14.75 Z"/><path d="M12 7.25V4.5"/><circle fill="currentColor" stroke="none" cx="12" cy="3.25" r="1.35"/><path class="icon-cut" d="M9 12.75v2M15 12.75v2"/><path d="M1.75 12.75v3M22.25 12.75v3"/></svg><span class="truncate">My agents' work</span></a></li>+ <li><a data-mc="nav-item" data-active="true" aria-current="page" class="flex min-h-[var(--nav-item-height,2rem)] w-full items-center gap-2.5 rounded-nav-item bg-nav-item-active px-3 py-1.5 text-left text-body text-nav-item-active-foreground"><svg class="icon icon-list-todo size-4 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path class="icon-body" d="M4 10.5 C4 7.25 4 5.9 4.95 4.95 C5.9 4 7.25 4 10.5 4 L13.5 4 C16.75 4 18.1 4 19.05 4.95 C20 5.9 20 7.25 20 10.5 L20 14.75 C20 18 20 19.35 19.05 20.3 C18.1 21.25 16.75 21.25 13.5 21.25 L10.5 21.25 C7.25 21.25 5.9 21.25 4.95 20.3 C4 19.35 4 18 4 14.75 Z"/><path class="icon-body" d="M8.5 4.1 C8.5 3.3 8.5 2.97 8.73 2.73 C8.97 2.5 9.3 2.5 10.1 2.5 L13.9 2.5 C14.7 2.5 15.03 2.5 15.27 2.73 C15.5 2.97 15.5 3.3 15.5 4.1 L15.5 4.65 C15.5 5.45 15.5 5.78 15.27 6.02 C15.03 6.25 14.7 6.25 13.9 6.25 L10.1 6.25 C9.3 6.25 8.97 6.25 8.73 6.02 C8.5 5.78 8.5 5.45 8.5 4.65 Z"/><path class="icon-cut" d="M8.75 13.25 L9.94 14.44 C10.47 14.97 10.69 15.19 11 15.19 C11.31 15.19 11.53 14.97 12.06 14.44 L15.25 11.25"/></svg><span class="truncate">All issues</span></a></li>+ </ul>+ </section>+ <section class="mt-5">+ <div class="flex h-7 items-center gap-1 pl-3 pr-1"><h3 class="min-w-0 flex-1 truncate text-caption font-medium text-muted-foreground">Projects</h3></div>+ <ul class="space-y-px">+ <li><a data-mc="nav-item" data-active="false" class="flex min-h-[var(--nav-item-height,2rem)] w-full items-center gap-2.5 rounded-nav-item px-3 py-1.5 text-left text-body text-nav-item"><svg class="icon icon-folder-kanban size-4 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path class="icon-body" d="M2.75 7 C2.75 5.38 2.75 4.7 3.22 4.22 C3.7 3.75 4.38 3.75 6 3.75 L7.75 3.75 C8.5 3.75 8.81 3.75 9.18 3.91 C9.54 4.08 9.75 4.31 10.25 4.86 L10.5 5.14 C11 5.69 11.21 5.92 11.57 6.09 C11.94 6.25 12.25 6.25 13 6.25 L16.75 6.25 C19 6.25 19.93 6.25 20.59 6.91 C21.25 7.57 21.25 8.5 21.25 10.75 L21.25 14.25 C21.25 17.25 21.25 18.49 20.37 19.37 C19.49 20.25 18.25 20.25 15.25 20.25 L8.75 20.25 C5.75 20.25 4.51 20.25 3.63 19.37 C2.75 18.49 2.75 17.25 2.75 14.25 Z"/><path class="icon-cut" d="M8.5 11.5v4.5M12 11.5v2.25M15.5 11.5v4.5"/></svg><span class="truncate">Onboarding</span><span class="ml-auto shrink-0 text-caption tabular-nums text-faint-foreground">4</span></a></li>+ <li><a data-mc="nav-item" data-active="false" class="flex min-h-[var(--nav-item-height,2rem)] w-full items-center gap-2.5 rounded-nav-item px-3 py-1.5 text-left text-body text-nav-item"><svg class="icon icon-folder-kanban size-4 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path class="icon-body" d="M2.75 7 C2.75 5.38 2.75 4.7 3.22 4.22 C3.7 3.75 4.38 3.75 6 3.75 L7.75 3.75 C8.5 3.75 8.81 3.75 9.18 3.91 C9.54 4.08 9.75 4.31 10.25 4.86 L10.5 5.14 C11 5.69 11.21 5.92 11.57 6.09 C11.94 6.25 12.25 6.25 13 6.25 L16.75 6.25 C19 6.25 19.93 6.25 20.59 6.91 C21.25 7.57 21.25 8.5 21.25 10.75 L21.25 14.25 C21.25 17.25 21.25 18.49 20.37 19.37 C19.49 20.25 18.25 20.25 15.25 20.25 L8.75 20.25 C5.75 20.25 4.51 20.25 3.63 19.37 C2.75 18.49 2.75 17.25 2.75 14.25 Z"/><path class="icon-cut" d="M8.5 11.5v4.5M12 11.5v2.25M15.5 11.5v4.5"/></svg><span class="truncate">Platform</span><span class="ml-auto shrink-0 text-caption tabular-nums text-faint-foreground">2</span></a></li>+ </ul>+ </section>+ </div></div>- <button data-slot="button" data-variant="default" data-size="sm" class="ml-auto rounded-lg bg-primary px-2.5 py-1 text-caption font-medium text-primary-foreground">New issue</button>- </header>- <div class="flex-1 overflow-hidden">- <div data-mc="issue-group-header" data-status="in_progress" class="flex items-center gap-2 bg-muted/60 px-4 py-1.5 text-label font-medium">- <svg data-mc="status-icon" class="size-3.5 text-warning" viewBox="0 0 14 14" fill="none"><circle cx="7" cy="7" r="5.5" stroke="currentColor" stroke-width="1.5"/><path d="M7 1.5a5.5 5.5 0 0 1 0 11z" fill="currentColor"/></svg>- In Progress <span class="text-muted-foreground">2</span>- </div>- <div data-mc="issue-row" data-status="in_progress" data-priority="high" data-assignee-type="agent" class="flex items-center gap-3 border-b border-border/60 bg-surface-selected px-4 py-2 text-surface-selected-foreground">- <svg data-mc="priority-icon" class="size-3.5 text-priority-high" viewBox="0 0 14 14" fill="currentColor"><rect x="1" y="8" width="3" height="5" rx="1"/><rect x="5.5" y="5" width="3" height="8" rx="1"/><rect x="10" y="2" width="3" height="11" rx="1"/></svg>- <span class="w-14 shrink-0 text-caption text-muted-foreground">ACM-142</span>- <svg data-mc="status-icon" class="size-3.5 shrink-0 text-warning" viewBox="0 0 14 14" fill="none"><circle cx="7" cy="7" r="5.5" stroke="currentColor" stroke-width="1.5"/><path d="M7 1.5a5.5 5.5 0 0 1 0 11z" fill="currentColor"/></svg>- <span class="truncate">Ship the onboarding checklist</span>- <span data-mc="label-chip" data-color="#8b5cf6" class="ml-auto rounded-full border border-border px-2 text-caption">Design</span>- </div>- <div data-mc="issue-row" data-status="in_progress" data-priority="medium" data-assignee-type="member" class="flex items-center gap-3 border-b border-border/60 px-4 py-2">- <svg data-mc="priority-icon" class="size-3.5 text-muted-foreground" viewBox="0 0 14 14" fill="currentColor"><rect x="1" y="8" width="3" height="5" rx="1"/><rect x="5.5" y="5" width="3" height="8" rx="1"/><rect x="10" y="2" width="3" height="11" rx="1" opacity=".3"/></svg>- <span class="w-14 shrink-0 text-caption text-muted-foreground">ACM-139</span>- <svg data-mc="status-icon" class="size-3.5 shrink-0 text-warning" viewBox="0 0 14 14" fill="none"><circle cx="7" cy="7" r="5.5" stroke="currentColor" stroke-width="1.5"/><path d="M7 1.5a5.5 5.5 0 0 1 0 11z" fill="currentColor"/></svg>- <span class="truncate">Retry failed webhook deliveries</span>- <span data-mc="label-chip" data-color="#0ea5e9" class="ml-auto rounded-full border border-border px-2 text-caption">Platform</span>- </div>- <div data-mc="issue-group-header" data-status="todo" class="flex items-center gap-2 bg-muted/60 px-4 py-1.5 text-label font-medium">- <svg data-mc="status-icon" class="size-3.5 text-muted-foreground" viewBox="0 0 14 14" fill="none"><circle cx="7" cy="7" r="5.5" stroke="currentColor" stroke-width="1.5"/></svg>- Todo <span class="text-muted-foreground">3</span>- </div>- <div data-mc="issue-row" data-status="todo" data-priority="low" data-assignee-type="none" class="flex items-center gap-3 border-b border-border/60 px-4 py-2">- <svg data-mc="priority-icon" class="size-3.5 text-muted-foreground" viewBox="0 0 14 14" fill="currentColor"><rect x="1" y="8" width="3" height="5" rx="1"/><rect x="5.5" y="5" width="3" height="8" rx="1" opacity=".3"/><rect x="10" y="2" width="3" height="11" rx="1" opacity=".3"/></svg>- <span class="w-14 shrink-0 text-caption text-muted-foreground">ACM-151</span>- <svg data-mc="status-icon" class="size-3.5 shrink-0 text-muted-foreground" viewBox="0 0 14 14" fill="none"><circle cx="7" cy="7" r="5.5" stroke="currentColor" stroke-width="1.5"/></svg>- <span class="truncate">Dark mode for exported PDFs</span>- </div>- <div data-mc="issue-row" data-status="todo" data-priority="high" data-assignee-type="squad" class="flex items-center gap-3 border-b border-border/60 px-4 py-2">- <svg data-mc="priority-icon" class="size-3.5 text-priority-high" viewBox="0 0 14 14" fill="currentColor"><rect x="1" y="8" width="3" height="5" rx="1"/><rect x="5.5" y="5" width="3" height="8" rx="1"/><rect x="10" y="2" width="3" height="11" rx="1"/></svg>- <span class="w-14 shrink-0 text-caption text-muted-foreground">ACM-148</span>- <svg data-mc="status-icon" class="size-3.5 shrink-0 text-muted-foreground" viewBox="0 0 14 14" fill="none"><circle cx="7" cy="7" r="5.5" stroke="currentColor" stroke-width="1.5"/></svg>- <span class="truncate">Audit log export for workspace admins</span>- <span data-mc="label-chip" data-color="#ef4444" class="ml-auto rounded-full border border-border px-2 text-caption">Security</span>- </div>- <div data-mc="issue-row" data-status="todo" data-priority="medium" data-assignee-type="agent" class="flex items-center gap-3 border-b border-border/60 px-4 py-2">- <svg data-mc="priority-icon" class="size-3.5 text-muted-foreground" viewBox="0 0 14 14" fill="currentColor"><rect x="1" y="8" width="3" height="5" rx="1"/><rect x="5.5" y="5" width="3" height="8" rx="1"/><rect x="10" y="2" width="3" height="11" rx="1" opacity=".3"/></svg>- <span class="w-14 shrink-0 text-caption text-muted-foreground">ACM-147</span>- <svg data-mc="status-icon" class="size-3.5 shrink-0 text-muted-foreground" viewBox="0 0 14 14" fill="none"><circle cx="7" cy="7" r="5.5" stroke="currentColor" stroke-width="1.5"/></svg>- <span class="truncate">Summarise weekly agent activity</span>- </div>- <div data-mc="issue-group-header" data-status="done" class="flex items-center gap-2 bg-muted/60 px-4 py-1.5 text-label font-medium">- <svg data-mc="status-icon" class="size-3.5 text-success" viewBox="0 0 14 14"><circle cx="7" cy="7" r="6" fill="currentColor"/><path d="m4.5 7 1.8 1.8L9.7 5.4" stroke="white" stroke-width="1.5" fill="none"/></svg>- Done <span class="text-muted-foreground">1</span>- </div>- <div data-mc="issue-row" data-status="done" data-priority="low" data-assignee-type="member" class="flex items-center gap-3 border-b border-border/60 px-4 py-2 text-muted-foreground">- <svg data-mc="priority-icon" class="size-3.5" viewBox="0 0 14 14" fill="currentColor"><rect x="1" y="8" width="3" height="5" rx="1"/><rect x="5.5" y="5" width="3" height="8" rx="1" opacity=".3"/><rect x="10" y="2" width="3" height="11" rx="1" opacity=".3"/></svg>- <span class="w-14 shrink-0 text-caption">ACM-120</span>- <svg data-mc="status-icon" class="size-3.5 shrink-0 text-success" viewBox="0 0 14 14"><circle cx="7" cy="7" r="6" fill="currentColor"/><path d="m4.5 7 1.8 1.8L9.7 5.4" stroke="white" stroke-width="1.5" fill="none"/></svg>- <span class="truncate">Invite links that expire</span>- </div>- </div>- </section>- <section class="flex min-w-0 flex-1 flex-col gap-4 overflow-hidden px-6 py-5">- <div class="text-caption text-muted-foreground">ACM-142</div>- <h2 class="-mt-3 text-title-lg font-semibold">Ship the onboarding checklist</h2>- <div data-mc="content" class="space-y-2.5 text-body leading-relaxed">- <p>New workspaces should see a short checklist on the dashboard: connect a repository, create an agent and assign it a first issue.</p>- <ul class="list-disc space-y-1 pl-5">- <li>Hide it once every step is done.</li>- <li>Keep the copy in <code class="rounded-sm bg-muted px-1 py-0.5 font-mono text-caption">checklist.json</code>.</li>- </ul>- <blockquote class="border-l-2 border-border pl-3 text-muted-foreground">Measure how many teams finish it in a week.</blockquote>- </div>- <div data-mc="comment" data-author-type="agent" data-slot="card" class="rounded-xl border border-surface-border bg-surface p-3 text-surface-foreground">- <div class="mb-1.5 flex items-center gap-2 text-label">- <span class="size-5 rounded-full bg-info"></span><span class="font-medium">Lambda</span><span class="text-caption text-muted-foreground">2h ago</span>- </div>- <div data-mc="content" data-density="compact" class="text-body">Opened a draft PR with the checklist and its empty state.</div>- <div data-mc="comment-reply" data-author-type="member" class="mt-2.5 border-t border-border pt-2.5 text-body">- <span class="font-medium">Ada</span> <span class="text-muted-foreground">Looks good, ship it.</span>+ </aside>+ <div class="relative flex min-w-0 flex-1 flex-col overflow-hidden">+ <header class="flex h-12 shrink-0 items-center gap-2 border-b px-4">+ <div class="flex min-w-0 flex-1 items-center gap-1">+ <h1 class="flex min-w-20"><span data-slot="dropdown-menu-trigger" data-variant="ghost" data-size="sm" class="inline-flex h-7 items-center gap-2 rounded-button-sm px-2 text-body font-medium text-foreground"><span class="flex size-4 shrink-0 items-center justify-center text-muted-foreground"><svg class="icon icon-list-todo size-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path class="icon-body" d="M4 10.5 C4 7.25 4 5.9 4.95 4.95 C5.9 4 7.25 4 10.5 4 L13.5 4 C16.75 4 18.1 4 19.05 4.95 C20 5.9 20 7.25 20 10.5 L20 14.75 C20 18 20 19.35 19.05 20.3 C18.1 21.25 16.75 21.25 13.5 21.25 L10.5 21.25 C7.25 21.25 5.9 21.25 4.95 20.3 C4 19.35 4 18 4 14.75 Z"/><path class="icon-body" d="M8.5 4.1 C8.5 3.3 8.5 2.97 8.73 2.73 C8.97 2.5 9.3 2.5 10.1 2.5 L13.9 2.5 C14.7 2.5 15.03 2.5 15.27 2.73 C15.5 2.97 15.5 3.3 15.5 4.1 L15.5 4.65 C15.5 5.45 15.5 5.78 15.27 6.02 C15.03 6.25 14.7 6.25 13.9 6.25 L10.1 6.25 C9.3 6.25 8.97 6.25 8.73 6.02 C8.5 5.78 8.5 5.45 8.5 4.65 Z"/><path class="icon-cut" d="M8.75 13.25 L9.94 14.44 C10.47 14.97 10.69 15.19 11 15.19 C11.31 15.19 11.53 14.97 12.06 14.44 L15.25 11.25"/></svg></span><span class="min-w-0 truncate">All issues</span><svg class="icon icon-chevron-down size-3.5 text-muted-foreground" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 9L12 15 6 9"/></svg></span></h1>+ <span data-variant="ghost" data-size="icon-sm" class="inline-flex size-[var(--button-height-sm)] items-center justify-center rounded-button-sm text-muted-foreground"><svg class="icon icon-filter size-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3.75 6.5h16.5M7 12h10M10.25 17.5h3.5"/></svg></span>+ </div>+ <span data-variant="ghost" data-size="icon-sm" class="inline-flex size-[var(--button-height-sm)] items-center justify-center rounded-button-sm text-muted-foreground"><svg class="icon icon-list size-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.75 6h11.5M8.75 12h11.5M8.75 18h11.5"/><circle fill="currentColor" stroke="none" cx="4.25" cy="6" r="1.3"/><circle fill="currentColor" stroke="none" cx="4.25" cy="12" r="1.3"/><circle fill="currentColor" stroke="none" cx="4.25" cy="18" r="1.3"/></svg></span>+ <span data-variant="ghost" data-size="icon-sm" class="inline-flex size-[var(--button-height-sm)] items-center justify-center rounded-button-sm text-muted-foreground"><svg class="icon icon-square-pen size-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 3.25 L7.13 3.25 C5.19 3.25 4.39 3.25 3.82 3.82 C3.25 4.39 3.25 5.19 3.25 7.13 L3.25 13.75 C3.25 17.25 3.25 18.7 4.27 19.73 C5.3 20.75 6.75 20.75 10.25 20.75 L16.88 20.75 C18.81 20.75 19.61 20.75 20.18 20.18 C20.75 19.61 20.75 18.81 20.75 16.88 L20.75 13"/><path class="icon-body" d="M17.9 3.6a2.05 2.05 0 0 1 2.9 2.9l-7.35 7.35-3.7.85.85-3.7Z"/></svg></span>+ </header>+ <div class="group/peek relative flex min-h-0 flex-1 flex-col [--issue-peek-width:520px]">+ <div class="min-h-0 flex-1 overflow-hidden p-2 pt-0">+ <div class="space-y-1">+ <div>+ <div data-slot="issue-group-header" data-mc="issue-group-header" data-status="todo" class="flex h-[var(--issue-group-header-height,2.5rem)] items-center rounded-issue-group-header bg-issue-group-header">+ <div class="flex items-center pl-3"><input type="checkbox" class="accent-primary"></div>+ <div class="flex h-full flex-1 items-center gap-2 px-2"><svg class="icon icon-chevron-right size-3.5 shrink-0 rotate-90 text-muted-foreground" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 6L15 12 9 18"/></svg><div class="flex items-center gap-2"><span class="inline-flex items-center gap-1.5 text-caption font-semibold"><svg data-mc="status-icon" viewBox="0 0 14 14" fill="none" class="h-3 w-3 shrink-0 text-status-todo"><circle cx="7" cy="7" r="6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-dasharray="3.14 0" stroke-dashoffset="-0.7"/></svg>Todo</span><span class="text-caption text-muted-foreground">3</span></div></div>+ </div>+ <div data-slot="issue-list-row" data-mc="issue-row" data-status="todo" data-priority="urgent" data-assignee-type="squad" class="flex h-[var(--issue-row-height)] items-center gap-2 px-[var(--issue-row-padding-x,1rem)] text-body">+ <div class="relative flex h-4 w-4 shrink-0 items-center justify-center"><svg data-mc="priority-icon" viewBox="0 0 16 16" fill="none" class="h-3.5 w-3.5 shrink-0 text-priority-urgent"><rect x="2" y="2" width="12" height="12" rx="3" fill="currentColor"/><line x1="8" y1="5" x2="8" y2="8.6" stroke="var(--background, #fff)" stroke-width="1.7" stroke-linecap="round"/><circle cx="8" cy="11" r="0.95" fill="var(--background, #fff)"/></svg></div>+ <div class="flex min-w-0 flex-1 items-center gap-2"><span class="min-w-16 shrink-0 text-caption text-issue-row-identifier">ACM-148</span><span class="flex min-w-0 flex-1 items-center gap-1.5"><span class="truncate">Audit log export for workspace admins</span><span class="ml-1.5 inline-flex shrink-0 items-center gap-1"><span data-slot="label-chip" data-mc="label-chip" data-color="#ef4444" class="inline-flex min-w-0 items-center gap-1 rounded-label px-2 py-0.5 text-caption font-medium" style="background-color: #ef4444; color: #f9fafb"><span class="max-w-[12rem] truncate">Security</span></span></span></span></div>+ </div>+ <div data-slot="issue-list-row" data-mc="issue-row" data-status="todo" data-priority="medium" data-assignee-type="agent" class="flex h-[var(--issue-row-height)] items-center gap-2 px-[var(--issue-row-padding-x,1rem)] text-body">+ <div class="relative flex h-4 w-4 shrink-0 items-center justify-center"><svg data-mc="priority-icon" viewBox="0 0 16 16" fill="currentColor" class="h-3.5 w-3.5 shrink-0 text-priority-medium"><rect x="2" y="8" width="3.5" height="6" rx="1"/><rect x="6.25" y="5" width="3.5" height="9" rx="1"/><rect x="10.5" y="2" width="3.5" height="12" rx="1" opacity="0.35"/></svg></div>+ <div class="flex min-w-0 flex-1 items-center gap-2"><span class="min-w-16 shrink-0 text-caption text-issue-row-identifier">ACM-147</span><span class="flex min-w-0 flex-1 items-center gap-1.5"><span class="truncate">Summarise weekly agent activity</span></span></div>+ </div>+ <div data-slot="issue-list-row" data-mc="issue-row" data-status="todo" data-priority="low" data-assignee-type="none" class="flex h-[var(--issue-row-height)] items-center gap-2 px-[var(--issue-row-padding-x,1rem)] text-body">+ <div class="relative flex h-4 w-4 shrink-0 items-center justify-center"><svg data-mc="priority-icon" viewBox="0 0 16 16" fill="currentColor" class="h-3.5 w-3.5 shrink-0 text-priority-low"><rect x="2" y="8" width="3.5" height="6" rx="1"/><rect x="6.25" y="5" width="3.5" height="9" rx="1" opacity="0.35"/><rect x="10.5" y="2" width="3.5" height="12" rx="1" opacity="0.35"/></svg></div>+ <div class="flex min-w-0 flex-1 items-center gap-2"><span class="min-w-16 shrink-0 text-caption text-issue-row-identifier">ACM-151</span><span class="flex min-w-0 flex-1 items-center gap-1.5"><span class="truncate">Dark mode for exported PDFs</span></span></div>+ </div>+ </div>+ <div>+ <div data-slot="issue-group-header" data-mc="issue-group-header" data-status="in_progress" class="flex h-[var(--issue-group-header-height,2.5rem)] items-center rounded-issue-group-header bg-issue-group-header">+ <div class="flex items-center pl-3"><input type="checkbox" class="accent-primary"></div>+ <div class="flex h-full flex-1 items-center gap-2 px-2"><svg class="icon icon-chevron-right size-3.5 shrink-0 rotate-90 text-muted-foreground" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 6L15 12 9 18"/></svg><div class="flex items-center gap-2"><span class="inline-flex items-center gap-1.5 text-caption font-semibold"><svg data-mc="status-icon" viewBox="0 0 14 14" fill="none" class="h-3 w-3 shrink-0 text-status-in-progress"><circle cx="7" cy="7" r="6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-dasharray="3.14 0" stroke-dashoffset="-0.7"/><path d="M7,7 L7,3.5 A3.5,3.5 0 0,1 7,10.5 Z" fill="currentColor"/></svg>In Progress</span><span class="text-caption text-muted-foreground">2</span></div></div>+ </div>+ <div data-slot="issue-list-row" data-mc="issue-row" data-status="in_progress" data-priority="high" data-assignee-type="agent" data-peeked="" class="flex h-[var(--issue-row-height)] items-center gap-2 px-[var(--issue-row-padding-x,1rem)] text-body data-[peeked]:bg-[color-mix(in_oklab,var(--brand)_6%,var(--background))] data-[peeked]:shadow-[inset_2px_0_0_var(--brand)]">+ <div class="relative flex h-4 w-4 shrink-0 items-center justify-center"><svg data-mc="priority-icon" viewBox="0 0 16 16" fill="currentColor" class="h-3.5 w-3.5 shrink-0 text-priority-high"><rect x="2" y="8" width="3.5" height="6" rx="1"/><rect x="6.25" y="5" width="3.5" height="9" rx="1"/><rect x="10.5" y="2" width="3.5" height="12" rx="1"/></svg></div>+ <div class="flex min-w-0 flex-1 items-center gap-2"><span class="min-w-16 shrink-0 text-caption text-issue-row-identifier">ACM-142</span><span class="flex min-w-0 flex-1 items-center gap-1.5"><span class="truncate">Ship the onboarding checklist</span><span class="ml-1.5 inline-flex shrink-0 items-center gap-1"><span data-slot="label-chip" data-mc="label-chip" data-color="#8b5cf6" class="inline-flex min-w-0 items-center gap-1 rounded-label px-2 py-0.5 text-caption font-medium" style="background-color: #8b5cf6; color: #f9fafb"><span class="max-w-[12rem] truncate">Design</span></span></span></span></div>+ </div>+ <div data-slot="issue-list-row" data-mc="issue-row" data-status="in_progress" data-priority="medium" data-assignee-type="member" class="flex h-[var(--issue-row-height)] items-center gap-2 bg-issue-row-selected px-[var(--issue-row-padding-x,1rem)] text-body">+ <div class="relative flex h-4 w-4 shrink-0 items-center justify-center"><input type="checkbox" checked class="absolute inset-0 accent-primary"></div>+ <div class="flex min-w-0 flex-1 items-center gap-2"><span class="min-w-16 shrink-0 text-caption text-issue-row-identifier">ACM-139</span><span class="flex min-w-0 flex-1 items-center gap-1.5"><span class="truncate">Retry failed webhook deliveries</span><span class="ml-1.5 inline-flex shrink-0 items-center gap-1"><span data-slot="label-chip" data-mc="label-chip" data-color="#0ea5e9" class="inline-flex min-w-0 items-center gap-1 rounded-label px-2 py-0.5 text-caption font-medium" style="background-color: #0ea5e9; color: #f9fafb"><span class="max-w-[12rem] truncate">Platform</span></span></span></span></div>+ </div>+ </div>+ <div>+ <div data-slot="issue-group-header" data-mc="issue-group-header" data-status="in_review" class="flex h-[var(--issue-group-header-height,2.5rem)] items-center rounded-issue-group-header bg-issue-group-header">+ <div class="flex items-center pl-3"><input type="checkbox" class="accent-primary"></div>+ <div class="flex h-full flex-1 items-center gap-2 px-2"><svg class="icon icon-chevron-right size-3.5 shrink-0 rotate-90 text-muted-foreground" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 6L15 12 9 18"/></svg><div class="flex items-center gap-2"><span class="inline-flex items-center gap-1.5 text-caption font-semibold"><svg data-mc="status-icon" viewBox="0 0 14 14" fill="none" class="h-3 w-3 shrink-0 text-status-in-review"><circle cx="7" cy="7" r="6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-dasharray="3.14 0" stroke-dashoffset="-0.7"/><path d="M7,7 L7,3.5 A3.5,3.5 0 1,1 3.5,7 Z" fill="currentColor"/></svg>In Review</span><span class="text-caption text-muted-foreground">1</span></div></div>+ </div>+ <div data-slot="issue-list-row" data-mc="issue-row" data-status="in_review" data-priority="low" data-assignee-type="agent" class="flex h-[var(--issue-row-height)] items-center gap-2 px-[var(--issue-row-padding-x,1rem)] text-body">+ <div class="relative flex h-4 w-4 shrink-0 items-center justify-center"><svg data-mc="priority-icon" viewBox="0 0 16 16" fill="currentColor" class="h-3.5 w-3.5 shrink-0 text-priority-low"><rect x="2" y="8" width="3.5" height="6" rx="1"/><rect x="6.25" y="5" width="3.5" height="9" rx="1" opacity="0.35"/><rect x="10.5" y="2" width="3.5" height="12" rx="1" opacity="0.35"/></svg></div>+ <div class="flex min-w-0 flex-1 items-center gap-2"><span class="min-w-16 shrink-0 text-caption text-issue-row-identifier">ACM-133</span><span class="flex min-w-0 flex-1 items-center gap-1.5"><span class="truncate">Invite links that expire</span></span></div>+ </div>+ </div>+ <div>+ <div data-slot="issue-group-header" data-mc="issue-group-header" data-status="done" class="flex h-[var(--issue-group-header-height,2.5rem)] items-center rounded-issue-group-header bg-issue-group-header">+ <div class="flex items-center pl-3"><input type="checkbox" class="accent-primary"></div>+ <div class="flex h-full flex-1 items-center gap-2 px-2"><svg class="icon icon-chevron-right size-3.5 shrink-0 rotate-90 text-muted-foreground" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 6L15 12 9 18"/></svg><div class="flex items-center gap-2"><span class="inline-flex items-center gap-1.5 text-caption font-semibold"><svg data-mc="status-icon" viewBox="0 0 14 14" fill="none" class="h-3 w-3 shrink-0 text-status-done"><circle cx="7" cy="7" r="6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-dasharray="3.14 0" stroke-dashoffset="-0.7"/><circle cx="7" cy="7" r="6" fill="currentColor"/><path d="M10.951 4.24896C11.283 4.58091 11.283 5.11909 10.951 5.45104L5.95104 10.451C5.61909 10.783 5.0809 10.783 4.74896 10.451L2.74896 8.45104C2.41701 8.11909 2.41701 7.5809 2.74896 7.24896C3.0809 6.91701 3.61909 6.91701 3.95104 7.24896L5.35 8.64792L9.74896 4.24896C10.0809 3.91701 10.6191 3.91701 10.951 4.24896Z" fill="white" stroke="none"/></svg>Done</span><span class="text-caption text-muted-foreground">1</span></div></div>+ </div>+ <div data-slot="issue-list-row" data-mc="issue-row" data-status="done" data-priority="medium" data-assignee-type="member" class="flex h-[var(--issue-row-height)] items-center gap-2 px-[var(--issue-row-padding-x,1rem)] text-body">+ <div class="relative flex h-4 w-4 shrink-0 items-center justify-center"><svg data-mc="priority-icon" viewBox="0 0 16 16" fill="currentColor" class="h-3.5 w-3.5 shrink-0 text-priority-medium"><rect x="2" y="8" width="3.5" height="6" rx="1"/><rect x="6.25" y="5" width="3.5" height="9" rx="1"/><rect x="10.5" y="2" width="3.5" height="12" rx="1" opacity="0.35"/></svg></div>+ <div class="flex min-w-0 flex-1 items-center gap-2"><span class="min-w-16 shrink-0 text-caption text-issue-row-identifier">ACM-120</span><span class="flex min-w-0 flex-1 items-center gap-1.5"><span class="truncate">Single sign-on with Okta</span></span></div>+ </div>+ </div>+ </div>+ </div>+ <aside data-issue-peek="" class="absolute top-2 right-2 z-30 flex w-[min(var(--issue-peek-width),calc(100%-1rem))] flex-col overflow-hidden rounded-xl bg-background shadow-[var(--floating-shadow)] ring-1 ring-floating-border above-chat-launcher">+ <header class="flex h-12 shrink-0 items-center gap-2 border-b bg-background px-4 text-body">+ <div class="flex shrink-0 items-center">+ <span data-variant="ghost" data-size="icon-xs" class="inline-flex size-[var(--button-height-xs)] items-center justify-center rounded-button-sm text-muted-foreground"><svg class="icon icon-chevron-up size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 15L12 9 18 15"/></svg></span>+ <span data-variant="ghost" data-size="icon-xs" class="inline-flex size-[var(--button-height-xs)] items-center justify-center rounded-button-sm text-muted-foreground"><svg class="icon icon-chevron-down size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 9L12 15 6 9"/></svg></span>+ <span class="ml-1 text-caption tabular-nums text-muted-foreground">4 / 7</span>+ </div>+ <div class="flex min-w-0 flex-1 items-center gap-1.5"><span class="truncate font-medium text-foreground">ACM-142</span></div>+ <div class="flex shrink-0 items-center gap-1">+ <span data-variant="ghost" data-size="icon-sm" class="inline-flex size-[var(--button-height-sm)] items-center justify-center rounded-button-sm text-muted-foreground"><svg class="icon icon-pin size-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path class="icon-body" d="M9.25 4 C9.25 3.5 9.25 3.29 9.4 3.15 C9.54 3 9.75 3 10.25 3 L13.75 3 C14.25 3 14.46 3 14.6 3.15 C14.75 3.29 14.75 3.5 14.75 4 L14.75 7.25 C14.75 7.75 14.75 7.96 14.84 8.22 C14.92 8.49 15.04 8.66 15.34 9.06 L17.12 11.53 C17.56 12.14 17.74 12.39 17.65 12.57 C17.56 12.75 17.25 12.75 16.5 12.75 L7.5 12.75 C6.75 12.75 6.44 12.75 6.35 12.57 C6.26 12.39 6.44 12.14 6.88 11.53 L8.66 9.06 C8.96 8.66 9.08 8.49 9.16 8.22 C9.25 7.96 9.25 7.75 9.25 7.25 Z"/><path d="M12 12.75v8.5M8 3h8"/></svg></span>+ <span data-variant="ghost" data-size="icon-sm" class="inline-flex size-[var(--button-height-sm)] items-center justify-center rounded-button-sm text-muted-foreground"><svg class="icon icon-more-horizontal size-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle fill="currentColor" stroke="none" cx="5" cy="12" r="1.6"/><circle fill="currentColor" stroke="none" cx="12" cy="12" r="1.6"/><circle fill="currentColor" stroke="none" cx="19" cy="12" r="1.6"/></svg></span>+ <span data-variant="ghost" data-size="icon-sm" class="inline-flex size-[var(--button-height-sm)] items-center justify-center rounded-button-sm text-muted-foreground"><svg class="icon icon-x size-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18M6 6l12 12"/></svg></span>+ </div>+ </header>+ <div class="flex min-h-0 flex-1 flex-col overflow-hidden px-6 py-5">+ <div class="text-title-lg font-semibold">Ship the onboarding checklist</div>+ <div class="mt-3 flex flex-wrap items-center gap-1.5">+ <span class="inline-flex h-[var(--button-height-xs)] items-center gap-1.5 overflow-hidden rounded-md border px-2 text-caption"><svg data-mc="status-icon" viewBox="0 0 14 14" fill="none" class="h-3.5 w-3.5 shrink-0 text-status-in-progress"><circle cx="7" cy="7" r="6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-dasharray="3.14 0" stroke-dashoffset="-0.7"/><path d="M7,7 L7,3.5 A3.5,3.5 0 0,1 7,10.5 Z" fill="currentColor"/></svg><span class="truncate">In Progress</span></span>+ <span class="inline-flex h-[var(--button-height-xs)] items-center gap-1.5 overflow-hidden rounded-md border px-2 text-caption"><svg data-mc="priority-icon" viewBox="0 0 16 16" fill="currentColor" class="h-3.5 w-3.5 shrink-0 text-priority-high"><rect x="2" y="8" width="3.5" height="6" rx="1"/><rect x="6.25" y="5" width="3.5" height="9" rx="1"/><rect x="10.5" y="2" width="3.5" height="12" rx="1"/></svg><span class="truncate">High</span></span>+ <span class="inline-flex h-[var(--button-height-xs)] items-center gap-1.5 overflow-hidden rounded-md border px-2 text-caption"><span class="inline-flex size-4 shrink-0 items-center justify-center overflow-hidden rounded-full bg-muted text-[9px] font-medium text-muted-foreground">L</span><span class="truncate">Lambda</span></span>+ <span class="inline-flex h-[var(--button-height-xs)] items-center gap-1.5 overflow-hidden rounded-md border px-2 text-caption [&_[data-slot=label-chip]]:py-0"><span data-slot="label-chip" data-mc="label-chip" data-color="#8b5cf6" class="inline-flex min-w-0 items-center gap-1 rounded-label px-2 py-0.5 text-caption font-medium" style="background-color: #8b5cf6; color: #f9fafb"><span class="max-w-[12rem] truncate">Design</span></span></span>+ </div>+ <div data-mc="content" class="rich-text-editor mt-5 text-body">+ <p>New workspaces should see a short checklist on the dashboard: connect a repository, create an agent and assign it a first issue.</p>+ <ul>+ <li><p>Hide it once every step is done.</p></li>+ <li><p>Keep the copy in <code>checklist.json</code>.</p></li>+ </ul>+ <blockquote><p>Measure how many teams finish it in a week.</p></blockquote>+ </div>+ <div class="my-6 border-t"></div>+ <h2 class="text-title-sm font-semibold">Activity</h2>+ <div class="mt-4 flex flex-col gap-3 px-4 pb-3">+ <div class="flex items-center text-label text-muted-foreground"><div class="mr-2 flex w-4 shrink-0 justify-center"><span data-slot="avatar" class="inline-flex size-4 shrink-0 items-center justify-center overflow-hidden rounded-full bg-muted text-[9px] font-medium text-muted-foreground">A</span></div><div class="flex min-w-0 flex-1 items-center gap-1"><span class="shrink-0 font-medium">Ada</span><span class="truncate">created this issue</span><span class="ml-auto shrink-0">3h ago</span></div></div>+ <div class="flex items-center text-label text-muted-foreground"><div class="mr-2 flex w-4 shrink-0 justify-center"><span data-slot="avatar" class="inline-flex size-4 shrink-0 items-center justify-center overflow-hidden rounded-full bg-muted text-[9px] font-medium text-muted-foreground">L</span></div><div class="flex min-w-0 flex-1 items-center gap-1"><span class="shrink-0 font-medium">Lambda</span><span class="truncate">changed the status to In Progress</span><span class="ml-auto shrink-0">2h ago</span></div></div>+ </div>+ <div data-slot="card" data-size="default" data-mc="comment" data-author-type="agent" class="flex flex-col overflow-clip rounded-card border border-surface-border bg-surface text-body text-surface-foreground shadow-[var(--surface-shadow)]">+ <div class="mb-1 bg-card px-4 pt-3 pb-1">+ <div class="flex items-center gap-2.5"><span data-slot="avatar" class="inline-flex size-[22px] shrink-0 items-center justify-center overflow-hidden rounded-full bg-muted text-micro font-medium text-muted-foreground">L</span><span class="shrink-0 text-body font-medium">Lambda</span><span class="shrink-0 text-label text-muted-foreground">2h ago</span></div>+ </div>+ <div class="px-4 pb-3">+ <div class="pl-8 text-body leading-relaxed text-foreground"><div data-mc="content" data-density="document" class="rich-text-editor readonly text-body"><p>Opened a draft PR with the checklist and its empty state.</p></div></div>+ </div>+ <div data-mc="comment-reply" data-author-type="member" class="border-t border-border/50">+ <div class="px-4 pt-3 pb-1">+ <div class="flex items-center gap-2.5"><span data-slot="avatar" class="inline-flex size-[22px] shrink-0 items-center justify-center overflow-hidden rounded-full bg-muted text-micro font-medium text-muted-foreground">A</span><span class="shrink-0 text-body font-medium">Ada</span><span class="shrink-0 text-label text-muted-foreground">1h ago</span></div>+ </div>+ <div class="px-4 pb-3">+ <div class="pl-8 text-body leading-relaxed text-foreground"><div data-mc="content" data-density="document" class="rich-text-editor readonly text-body"><p>Looks good, ship it.</p></div></div>+ </div>+ </div>+ </div>+ <div data-mc="comment-composer" class="relative mt-auto flex flex-col rounded-lg bg-card pb-8 ring-1 ring-border">+ <div data-slot="textarea" class="min-h-0 flex-1 px-3 py-2"><div class="rich-text-editor text-body"><p>Thanks, I'll review it today.</p></div></div>+ <div class="absolute right-1.5 bottom-1 flex items-center gap-1">+ <span data-variant="ghost" data-size="icon-xs" class="inline-flex size-[var(--button-height-xs)] items-center justify-center rounded-button-sm text-muted-foreground"><svg class="icon icon-paperclip size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18.19 12.18L12.18 18.19A4.5 4.5 0 0 1 5.81 11.82L12.88 4.75A3 3 0 0 1 17.13 8.99L9.7 16.42A1.5 1.5 0 0 1 7.58 14.3L12.88 8.99"/></svg></span>+ <span data-slot="tooltip-trigger" data-variant="default" class="inline-flex size-[var(--button-height-sm)] items-center justify-center rounded-full bg-primary text-primary-foreground"><svg class="icon icon-arrow-up size-4.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5.5V19.5M18 11L12 5 6 11"/></svg></span>+ </div>+ </div>+ </div>+ </aside></div></div>- <div data-mc="comment-composer" class="mt-auto rounded-xl border border-input bg-background p-3">- <div data-slot="textarea" class="h-10 text-body text-muted-foreground">Leave a comment…</div>- <div class="flex justify-end gap-2">- <button data-slot="button" data-variant="outline" data-size="sm" class="rounded-lg border border-border bg-background px-2.5 py-1 text-caption">Attach</button>- <button data-slot="button" data-variant="default" data-size="sm" class="rounded-lg bg-primary px-2.5 py-1 text-caption font-medium text-primary-foreground">Comment</button>- </div>+ </main>+ <footer data-slot="app-bottom-bar" data-mc="bottom-bar" class="flex h-8 shrink-0 items-center justify-between gap-4 pr-[18px] pl-3">+ <div class="flex min-w-0 items-center gap-1"></div>+ <div data-slot="chat-bar" class="flex min-w-0 shrink-0 items-center gap-0.5">+ <span class="inline-flex h-6 min-w-0 shrink-0 items-center gap-1.5 rounded-md px-2 text-caption text-muted-foreground [&_svg]:size-3.5 [&_svg]:shrink-0"><svg viewBox="0 0 100 100" fill="currentColor"><path d="M44.5 50L44.5 0.303A50 50 0 0 1 55.5 0.303L55.5 50ZM46.111 46.111L81.252 10.97A50 50 0 0 1 89.03 18.748L53.889 53.889ZM50 44.5L99.697 44.5A50 50 0 0 1 99.697 55.5L50 55.5ZM53.889 46.111L89.03 81.252A50 50 0 0 1 81.252 89.03L46.111 53.889ZM55.5 50L55.5 99.697A50 50 0 0 1 44.5 99.697L44.5 50ZM53.889 53.889L18.748 89.03A50 50 0 0 1 10.97 81.252L46.111 46.111ZM50 55.5L0.303 55.5A50 50 0 0 1 0.303 44.5L50 44.5ZM46.111 53.889L10.97 18.748A50 50 0 0 1 18.748 10.97L53.889 46.111Z"/></svg>Ask Multica</span></div>- </section>- </main>+ </footer>+ </div></div>diff --git a/server/internal/handler/theme_store.go b/server/internal/handler/theme_store.goindex 2d697fac2a..ebb1374c13 100644--- a/server/internal/handler/theme_store.go+++ b/server/internal/handler/theme_store.go@@ -1,6 +1,8 @@package handlerimport (+ "crypto/sha256"+ "encoding/hex""errors""log/slog""net/http"@@ -24,7 +26,11 @@ type ThemeStoreTheme struct {Version string `json:"version"`Size int64 `json:"size"`Screenshots []string `json:"screenshots"`- UpdatedAt string `json:"updated_at,omitempty"`+ // ScreenshotRevisions names each mode's current screenshot without its+ // registry path. The registry can re-render a screenshot without a new+ // release, so the app caches a screenshot by revision, not by version.+ ScreenshotRevisions map[string]string `json:"screenshot_revisions"`+ UpdatedAt string `json:"updated_at,omitempty"`// Downloads counts installs and updates served by this server.Downloads int64 `json:"downloads"`}@@ -60,23 +66,27 @@ func (h *Handler) ListStoreThemes(w http.ResponseWriter, r *http.Request) {out := make([]ThemeStoreTheme, 0, len(themes))for _, t := range themes {shots := []string{}+ revisions := map[string]string{}for _, mode := range themestore.Modes {- if _, ok := t.Screenshots[mode]; ok {+ if file, ok := t.Screenshots[mode]; ok {shots = append(shots, mode)+ sum := sha256.Sum256([]byte(file))+ revisions[mode] = hex.EncodeToString(sum[:6])}}out = append(out, ThemeStoreTheme{- ID: t.ID,- Name: t.Name,- Author: t.Author,- Repo: t.Repo,- Description: t.Description,- Modes: t.Modes,- Version: t.Version,- Size: t.Package.Size,- Screenshots: shots,- UpdatedAt: t.UpdatedAt,- Downloads: downloads[t.ID],+ ID: t.ID,+ Name: t.Name,+ Author: t.Author,+ Repo: t.Repo,+ Description: t.Description,+ Modes: t.Modes,+ Version: t.Version,+ Size: t.Package.Size,+ Screenshots: shots,+ ScreenshotRevisions: revisions,+ UpdatedAt: t.UpdatedAt,+ Downloads: downloads[t.ID],})}writeJSON(w, http.StatusOK, map[string]any{"themes": out})diff --git a/server/internal/handler/theme_store_test.go b/server/internal/handler/theme_store_test.goindex ce64e00366..ff4f2fa000 100644--- a/server/internal/handler/theme_store_test.go+++ b/server/internal/handler/theme_store_test.go@@ -104,6 +104,9 @@ func TestThemeStoreRoutes(t *testing.T) {if len(list.Themes) != 1 || list.Themes[0].Version != "1.0.0" || strings.Join(list.Themes[0].Screenshots, ",") != "light" || list.Themes[0].Downloads != 0 {t.Fatalf("list = %+v", list.Themes)}+ if revisions := list.Themes[0].ScreenshotRevisions; len(revisions) != 1 || len(revisions["light"]) != 12 {+ t.Fatalf("screenshot revisions = %v, want one for light", revisions)+ }if strings.Contains(w.Body.String(), "registry.test") || strings.Contains(w.Body.String(), "shots/") {t.Fatalf("download URLs and screenshot paths must stay on the server: %s", w.Body.String())}