diff --git a/apps/desktop/src/design.test.ts b/apps/desktop/src/design.test.ts index ab1ee38d2..7a4b94d4a 100644 --- a/apps/desktop/src/design.test.ts +++ b/apps/desktop/src/design.test.ts @@ -268,6 +268,26 @@ describe("design system", () => { expect([...used].map(([, , why]) => `allowlist entry no longer matches a line: ${why}`)).toEqual([]); }); + test("icons take a size from the scale (docs/design.md › Icons)", () => { + // 10 a glyph in a status dot or a caption's spinner, 12 chips and captions, 13 menus, 14 + // toolbars and composer buttons, 16 page headers and tool rows, 18 empty states, 24 a page's + // own mark. + const SCALE = new Set([10, 12, 13, 14, 16, 18, 24]); + const found: string[] = []; + for (const path of files(join(SRC, "ui"))) { + const file = relative(SRC, path); + readFileSync(path, "utf8") + .split("\n") + .forEach((line, i) => { + for (const match of line.matchAll(/\bsize=\{(\d+)\}/g)) { + if (!SCALE.has(Number(match[1]))) + found.push(`${file}:${i + 1} icon size ${match[1]}: ${line.trim()}`); + } + }); + } + expect(found).toEqual([]); + }); + test("the engine's built-in themes carry the same surfaces", () => { // The app applies a theme's tokens inline, so an engine built-in that still // holds an old fill shadows index.css: the real app shows the theme file's diff --git a/apps/desktop/src/ui/AddHarness.tsx b/apps/desktop/src/ui/AddHarness.tsx index 87b931697..70ab8116f 100644 --- a/apps/desktop/src/ui/AddHarness.tsx +++ b/apps/desktop/src/ui/AddHarness.tsx @@ -153,7 +153,7 @@ export function AddHarnessForm({ onClose }: { onClose: () => void }) { )}
- {request.deviceKind === "desktop" && <>Can see and run all threads on this machine. >} + {request.deviceKind === "desktop" && <>Can see and run all threads on this computer. >} Accept only a device you have with you. This computer then shows a code to enter on it.
Nothing needs you
Approvals, questions, failed turns and delegates land here.
diff --git a/apps/desktop/src/ui/LinkChip.tsx b/apps/desktop/src/ui/LinkChip.tsx
index abb8309c3..af7c56be0 100644
--- a/apps/desktop/src/ui/LinkChip.tsx
+++ b/apps/desktop/src/ui/LinkChip.tsx
@@ -113,7 +113,7 @@ export function LinkChip({
{!onRemove && (
- Use a separate model for titles and git drafts. Keys stay on this machine. + Use a separate model for titles and git drafts. Keys stay on this computer.
diff --git a/apps/desktop/src/ui/Viz.tsx b/apps/desktop/src/ui/Viz.tsx
index 489cf0546..5fd8e1949 100644
--- a/apps/desktop/src/ui/Viz.tsx
+++ b/apps/desktop/src/ui/Viz.tsx
@@ -313,7 +313,7 @@ function TreeItem({ node, depth }: { node: TreeNode; depth: number }) {
className="flex items-center gap-1 rounded-xs px-1 text-left text-callout enabled:hover:bg-fill-subtle"
>