Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Settings → Appearance → Window frame: turn the window's own frame off for the window as it was before (#4012)
Milind Soni007f92a317a5
diff --git a/docs/verification/README.md b/docs/verification/README.mdindex 7b612dfd1d..0e3222533e 100644--- a/docs/verification/README.md+++ b/docs/verification/README.md@@ -238,9 +238,9 @@ default focus, keyboard wrapping and focus return against two disposable bots;its departments recipe drags bots to reorder them and into new departments.The [sidebar attention geometry fixture](sidebar-attention.md) measures the-Active Threads popover's width and inset at each expanded sidebar density in a-headless Electron window, including the compact-density case where the menu-used to cross the window's left edge and lose its title.+Active Threads popover's width and inset in the open sidebar and its column of+avatars in a headless Electron window, so the menu never crosses the window's+left edge and loses its title.The [avatar provider fixture](avatar-providers.md) checks image-provider settings,keyless local generation, saved-key handling, and safe errors with a local fake API.diff --git a/docs/verification/evidence/where-you-are-bar/after-colours-dark.png b/docs/verification/evidence/where-you-are-bar/after-colours-dark.pngnew file mode 100644index 0000000000..16e36677c7Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-colours-dark.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-colours-light.png b/docs/verification/evidence/where-you-are-bar/after-colours-light.pngnew file mode 100644index 0000000000..e0ed127466Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-colours-light.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-corners.png b/docs/verification/evidence/where-you-are-bar/after-corners.pngnew file mode 100644index 0000000000..44ee5f6349Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-corners.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-frame-computer-light-bar.png b/docs/verification/evidence/where-you-are-bar/after-frame-computer-light-bar.pngnew file mode 100644index 0000000000..ff1b10cfceBinary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-frame-computer-light-bar.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-frame-dark-bar.png b/docs/verification/evidence/where-you-are-bar/after-frame-dark-bar.pngnew file mode 100644index 0000000000..997f7f1808Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-frame-dark-bar.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-frame-dark.png b/docs/verification/evidence/where-you-are-bar/after-frame-dark.pngnew file mode 100644index 0000000000..9e126d1e22Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-frame-dark.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-frame-downloading-light-bar.png b/docs/verification/evidence/where-you-are-bar/after-frame-downloading-light-bar.pngnew file mode 100644index 0000000000..6404d05d7aBinary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-frame-downloading-light-bar.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-frame-drag-avatars-light.png b/docs/verification/evidence/where-you-are-bar/after-frame-drag-avatars-light.pngnew file mode 100644index 0000000000..130948a2a7Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-frame-drag-avatars-light.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-frame-drag-light.png b/docs/verification/evidence/where-you-are-bar/after-frame-drag-light.pngnew file mode 100644index 0000000000..5430280302Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-frame-drag-light.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-frame-drag-out-dark.png b/docs/verification/evidence/where-you-are-bar/after-frame-drag-out-dark.pngnew file mode 100644index 0000000000..80f77435acBinary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-frame-drag-out-dark.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-frame-edge-hover-light.png b/docs/verification/evidence/where-you-are-bar/after-frame-edge-hover-light.pngnew file mode 100644index 0000000000..238fa9d4edBinary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-frame-edge-hover-light.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-frame-icons-light.png b/docs/verification/evidence/where-you-are-bar/after-frame-icons-light.pngnew file mode 100644index 0000000000..6d792870bcBinary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-frame-icons-light.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-frame-light-bar.png b/docs/verification/evidence/where-you-are-bar/after-frame-light-bar.pngnew file mode 100644index 0000000000..f1a8441adcBinary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-frame-light-bar.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-frame-light.png b/docs/verification/evidence/where-you-are-bar/after-frame-light.pngnew file mode 100644index 0000000000..45e407163bBinary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-frame-light.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-frame-long-name-light-bar.png b/docs/verification/evidence/where-you-are-bar/after-frame-long-name-light-bar.pngnew file mode 100644index 0000000000..5ebdaf5ee7Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-frame-long-name-light-bar.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-frame-simple-light.png b/docs/verification/evidence/where-you-are-bar/after-frame-simple-light.pngnew file mode 100644index 0000000000..ff1d5fa5f9Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-frame-simple-light.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-frame-team-dark-bar.png b/docs/verification/evidence/where-you-are-bar/after-frame-team-dark-bar.pngnew file mode 100644index 0000000000..0c02f02a58Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-frame-team-dark-bar.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-frame-update-dark-bar.png b/docs/verification/evidence/where-you-are-bar/after-frame-update-dark-bar.pngnew file mode 100644index 0000000000..f6f8dbd439Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-frame-update-dark-bar.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-frame-update-light-bar.png b/docs/verification/evidence/where-you-are-bar/after-frame-update-light-bar.pngnew file mode 100644index 0000000000..922bb4e78cBinary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-frame-update-light-bar.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-frame-windows-dark-bar.png b/docs/verification/evidence/where-you-are-bar/after-frame-windows-dark-bar.pngnew file mode 100644index 0000000000..d1c402c7d8Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-frame-windows-dark-bar.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-frame-windows-light-bar.png b/docs/verification/evidence/where-you-are-bar/after-frame-windows-light-bar.pngnew file mode 100644index 0000000000..449c698c17Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-frame-windows-light-bar.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-frame-windows-light.png b/docs/verification/evidence/where-you-are-bar/after-frame-windows-light.pngnew file mode 100644index 0000000000..a6b5adbca3Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-frame-windows-light.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-skins.png b/docs/verification/evidence/where-you-are-bar/after-skins.pngnew file mode 100644index 0000000000..465a5c0b44Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-skins.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-tiles-dark.png b/docs/verification/evidence/where-you-are-bar/after-tiles-dark.pngnew file mode 100644index 0000000000..03cf9852c4Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-tiles-dark.png differdiff --git a/docs/verification/evidence/where-you-are-bar/after-tiles-light.png b/docs/verification/evidence/where-you-are-bar/after-tiles-light.pngnew file mode 100644index 0000000000..87889d8f43Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/after-tiles-light.png differdiff --git a/docs/verification/evidence/where-you-are-bar/before-frame-dark-bar.png b/docs/verification/evidence/where-you-are-bar/before-frame-dark-bar.pngnew file mode 100644index 0000000000..8169d2ab4aBinary files /dev/null and b/docs/verification/evidence/where-you-are-bar/before-frame-dark-bar.png differdiff --git a/docs/verification/evidence/where-you-are-bar/before-frame-dark.png b/docs/verification/evidence/where-you-are-bar/before-frame-dark.pngnew file mode 100644index 0000000000..e9462a2dbeBinary files /dev/null and b/docs/verification/evidence/where-you-are-bar/before-frame-dark.png differdiff --git a/docs/verification/evidence/where-you-are-bar/before-frame-downloading-light-bar.png b/docs/verification/evidence/where-you-are-bar/before-frame-downloading-light-bar.pngnew file mode 100644index 0000000000..5a4eee461eBinary files /dev/null and b/docs/verification/evidence/where-you-are-bar/before-frame-downloading-light-bar.png differdiff --git a/docs/verification/evidence/where-you-are-bar/before-frame-icons-light.png b/docs/verification/evidence/where-you-are-bar/before-frame-icons-light.pngnew file mode 100644index 0000000000..0ba09489eeBinary files /dev/null and b/docs/verification/evidence/where-you-are-bar/before-frame-icons-light.png differdiff --git a/docs/verification/evidence/where-you-are-bar/before-frame-light-bar.png b/docs/verification/evidence/where-you-are-bar/before-frame-light-bar.pngnew file mode 100644index 0000000000..43b9b40c68Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/before-frame-light-bar.png differdiff --git a/docs/verification/evidence/where-you-are-bar/before-frame-light.png b/docs/verification/evidence/where-you-are-bar/before-frame-light.pngnew file mode 100644index 0000000000..f42c79c15dBinary files /dev/null and b/docs/verification/evidence/where-you-are-bar/before-frame-light.png differdiff --git a/docs/verification/evidence/where-you-are-bar/before-frame-simple-light.png b/docs/verification/evidence/where-you-are-bar/before-frame-simple-light.pngnew file mode 100644index 0000000000..ce949280fdBinary files /dev/null and b/docs/verification/evidence/where-you-are-bar/before-frame-simple-light.png differdiff --git a/docs/verification/evidence/where-you-are-bar/before-frame-update-light-bar.png b/docs/verification/evidence/where-you-are-bar/before-frame-update-light-bar.pngnew file mode 100644index 0000000000..5f62664884Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/before-frame-update-light-bar.png differdiff --git a/docs/verification/evidence/where-you-are-bar/before-frame-windows-light-bar.png b/docs/verification/evidence/where-you-are-bar/before-frame-windows-light-bar.pngnew file mode 100644index 0000000000..b07208cbc0Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/before-frame-windows-light-bar.png differdiff --git a/docs/verification/evidence/where-you-are-bar/before-tiles-dark.png b/docs/verification/evidence/where-you-are-bar/before-tiles-dark.pngnew file mode 100644index 0000000000..bbed61877bBinary files /dev/null and b/docs/verification/evidence/where-you-are-bar/before-tiles-dark.png differdiff --git a/docs/verification/evidence/where-you-are-bar/before-tiles-light.png b/docs/verification/evidence/where-you-are-bar/before-tiles-light.pngnew file mode 100644index 0000000000..857f98d4f3Binary files /dev/null and b/docs/verification/evidence/where-you-are-bar/before-tiles-light.png differdiff --git a/docs/verification/evidence/window-frame-setting/frame-off-dark.png b/docs/verification/evidence/window-frame-setting/frame-off-dark.pngnew file mode 100644index 0000000000..1e585b32c4Binary files /dev/null and b/docs/verification/evidence/window-frame-setting/frame-off-dark.png differdiff --git a/docs/verification/evidence/window-frame-setting/frame-off-icons-light.png b/docs/verification/evidence/window-frame-setting/frame-off-icons-light.pngnew file mode 100644index 0000000000..845d95dc47Binary files /dev/null and b/docs/verification/evidence/window-frame-setting/frame-off-icons-light.png differdiff --git a/docs/verification/evidence/window-frame-setting/frame-off-light.png b/docs/verification/evidence/window-frame-setting/frame-off-light.pngnew file mode 100644index 0000000000..2de8608429Binary files /dev/null and b/docs/verification/evidence/window-frame-setting/frame-off-light.png differdiff --git a/docs/verification/evidence/window-frame-setting/frame-off-simple-light.png b/docs/verification/evidence/window-frame-setting/frame-off-simple-light.pngnew file mode 100644index 0000000000..1211c6c5cbBinary files /dev/null and b/docs/verification/evidence/window-frame-setting/frame-off-simple-light.png differdiff --git a/docs/verification/evidence/window-frame-setting/frame-off-windows-dark.png b/docs/verification/evidence/window-frame-setting/frame-off-windows-dark.pngnew file mode 100644index 0000000000..791458ecffBinary files /dev/null and b/docs/verification/evidence/window-frame-setting/frame-off-windows-dark.png differdiff --git a/docs/verification/evidence/window-frame-setting/frame-off-windows-light.png b/docs/verification/evidence/window-frame-setting/frame-off-windows-light.pngnew file mode 100644index 0000000000..846342c21bBinary files /dev/null and b/docs/verification/evidence/window-frame-setting/frame-off-windows-light.png differdiff --git a/docs/verification/evidence/window-frame-setting/frame-on-light.png b/docs/verification/evidence/window-frame-setting/frame-on-light.pngnew file mode 100644index 0000000000..08ef491f8fBinary files /dev/null and b/docs/verification/evidence/window-frame-setting/frame-on-light.png differdiff --git a/docs/verification/evidence/window-frame-setting/frame-on-windows-light.png b/docs/verification/evidence/window-frame-setting/frame-on-windows-light.pngnew file mode 100644index 0000000000..cb9b577356Binary files /dev/null and b/docs/verification/evidence/window-frame-setting/frame-on-windows-light.png differdiff --git a/docs/verification/evidence/window-frame-setting/setting-mac-light.png b/docs/verification/evidence/window-frame-setting/setting-mac-light.pngnew file mode 100644index 0000000000..4546174aa4Binary files /dev/null and b/docs/verification/evidence/window-frame-setting/setting-mac-light.png differdiff --git a/docs/verification/evidence/window-frame-setting/setting-windows-restart-light.png b/docs/verification/evidence/window-frame-setting/setting-windows-restart-light.pngnew file mode 100644index 0000000000..aa336c98e5Binary files /dev/null and b/docs/verification/evidence/window-frame-setting/setting-windows-restart-light.png differdiff --git a/docs/verification/sidebar-attention.md b/docs/verification/sidebar-attention.mdindex e681336979..c3036e9382 100644--- a/docs/verification/sidebar-attention.md+++ b/docs/verification/sidebar-attention.md@@ -2,18 +2,16 @@The Active Threads menu in the sidebar header is anchored `right-0` insidethe header's icon group, which sits 16px (`px-4`) inside the sidebar's right-edge, so the menu's width decides whether it fits. The compact sidebar is-272px wide: a static 288px (`w-72`) menu spilled 32px past the window's left-edge, where the OS clipped it — the reported bug showed the title row as-"ive Threads", because its 14px of padding left the leading text inside the-clipped zone while the thread rows below survived on their wider inset.+edge, so the menu's width decides whether it fits: a menu wider than the+sidebar spills past the window's left edge, where the OS clips it, and its+title row reads "ive Threads".-The icons density had a different anchoring failure: its icon cluster+The column of avatars had a different anchoring failure: its icon clusterstacks vertically, so the same cluster-anchored popover opened below the"+" button that ends the column instead of below the Active Threads-button. The button and its popover are now wrapped in a container that is-`relative` in icons and `contents` (invisible to layout) in the expanded-densities, so the popover anchors to the attention button itself:+button. The button and its popover are wrapped in a container that is+`relative` in icons and `contents` (invisible to layout) in the open+sidebar, so the popover anchors to the attention button itself:`left-0` on the button's left edge and `top-full` plus `mt-1` directlybelow it.@@ -22,22 +20,20 @@ runs the leg (`scripts/testing/sidebar-attention-ui-smoke.cjs`) against adisposable fake-engine server: one bot whose settled reply is never read isexactly the unread state the cross-bot attention list collects(`src/components/SidebarBotActivity.tsx`). The leg mounts the real Sidebar-through `scripts/testing/sidebar-attention-preview.tsx` at compact,-comfortable, and icons densities — seeded through `src/lib/sidebar-preferences.ts`+through `scripts/testing/sidebar-attention-preview.tsx` open and as the+column of avatars — seeded through `src/lib/sidebar-preferences.ts`before the first render — opens the menu by its accessible name, andmeasures it with `getBoundingClientRect`:-1. In compact the menu is 240px wide (`w-60`), not the 288px that cannot- fit beside its own anchor.-2. In both expanded densities the menu's left edge sits 16px inside the- sidebar's left edge — the inset the comfortable sidebar always had.-3. The title text starts inside the window (left edge at or past 0), so the+1. In the open sidebar the menu's left edge sits 16px inside the sidebar's+ left edge.+2. The title text starts inside the window (left edge at or past 0), so theclipped "ive Threads" of the field report cannot recur.-4. In icons the menu anchors to the attention button, not the cluster: its+3. In icons the menu anchors to the attention button, not the cluster: itsleft edge matches the button's left edge and its top sits 4px (`mt-1`)below the button's bottom, with the full 288px (`w-72`) width on screen.-PNG evidence for all three densities lands in `.omb-scratch/verify-evidence/sidebar-attention`.+PNG evidence for both densities lands in `.omb-scratch/verify-evidence/sidebar-attention`.Pass `--capture-only` alongside the flag to write those PNGs withoutasserting, which is how a before/after composite is captured on a pre-fixtree. The leg also runs in the runner's `--ui` group with the approval uidiff --git a/electron/capabilities.cjs b/electron/capabilities.cjsindex 1d68a6524c..4e6e03aab3 100644--- a/electron/capabilities.cjs+++ b/electron/capabilities.cjs@@ -94,6 +94,8 @@ function desktopCapabilities({packaged = false,localConnection = null,homeDir = require("node:os").homedir(),+ // Whether the page draws the window's frame now.+ frame = true,// A remote server's page: this computer's screen, voice and local control are never on offer.remote = false,} = {}) {@@ -203,7 +205,8 @@ function desktopCapabilities({homeDir: remote ? "" : homeDir,},windowChrome:- isMac ? "mac-inset" : hostPlatform === "win32" ? "win-caption" : "native",+ isMac ? "mac-inset" : hostPlatform === "win32" && frame ? "win-caption" : "native",+ windowFrame: frame !== false,screenPreview,dictation,localComputer,diff --git a/electron/capabilities.test.mjs b/electron/capabilities.test.mjsindex 5b1f0fe0fc..cd443dc01a 100644--- a/electron/capabilities.test.mjs+++ b/electron/capabilities.test.mjs@@ -80,6 +80,13 @@ describe("desktop capabilities", () => {});expect(capabilities.windowChrome).toBe("win-caption");+ expect(capabilities.windowFrame).toBe(true);+ });++ it("reports the frame as the window draws it: macOS keeps its inset title bar, Windows its own title bar once made without the frame", () => {+ expect(desktopCapabilities({ platform: "darwin", frame: false })).toMatchObject({ windowChrome: "mac-inset", windowFrame: false });+ expect(desktopCapabilities({ platform: "win32", frame: false })).toMatchObject({ windowChrome: "native", windowFrame: false });+ expect(desktopCapabilities({ platform: "linux", frame: false })).toMatchObject({ windowChrome: "native", windowFrame: false });});it("offers Windows local control once the driver is connected", () => {diff --git a/electron/chrome-rail.d.mts b/electron/chrome-rail.d.mtsindex 2dbb2e5796..8ac37269b4 100644--- a/electron/chrome-rail.d.mts+++ b/electron/chrome-rail.d.mts@@ -6,11 +6,12 @@ export declare const RAIL_OFFER_GRACE_MS: number;export interface ChromeRailState { available: boolean; hidden: boolean }/** `window.ogb.rail`. The page beside the rail offers the button that hides and shows it: `state()` from a document is* that offer, and main hides the rail only beside a document that made it. `drawsFrame()` from a document says it draws- * the window's frame, so main puts the traffic lights in its top bar. `expand`, `onSkin` and `onFramed` are the rail's+ * the window's frame, so main puts the traffic lights in its top bar; `drawsFrame(false)`, that it draws none (the+ * person turned the frame off), so they go back at once. `expand`, `onSkin` and `onFramed` are the rail's* own page's, on this app's pages only. Each is absent on an older app. */export interface ChromeRailBridge {state?(): Promise<ChromeRailState>;- drawsFrame?(): Promise<void>;+ drawsFrame?(drawn?: boolean): Promise<void>;/** From the person's click. */setHidden?(hidden: boolean): Promise<ChromeRailState>;onState?(callback: (state: ChromeRailState) => void): () => void;@@ -36,7 +37,7 @@ export declare function createChromeRail(deps: {args: () => string[];url: () => string;wanted: () => boolean;- prefs?: () => { railHidden(): boolean; setRailHidden(hidden: boolean): void } | null;+ prefs?: () => { railHidden(): boolean; setRailHidden(hidden: boolean): void; windowFrame?(): boolean } | null;changed?: () => void;log?: (line: string) => void;}): ChromeRail;diff --git a/electron/chrome-rail.mjs b/electron/chrome-rail.mjsindex 2945187550..bc328bcfec 100644--- a/electron/chrome-rail.mjs+++ b/electron/chrome-rail.mjs@@ -33,7 +33,7 @@ const ABORTED = -3;* args: () => string[],* url: () => string,* wanted: () => boolean,- * prefs?: () => { railHidden(): boolean, setRailHidden(hidden: boolean): void } | null,+ * prefs?: () => { railHidden(): boolean, setRailHidden(hidden: boolean): void, windowFrame?(): boolean } | null,* changed?: () => void,* log?: (line: string) => void,* }} deps `url()`: the rail's page on this app's own server; `wanted()`: whether the window has two places or more to@@ -113,6 +113,7 @@ export function createChromeRail({ createView, preload, args, url, wanted, prefsattach(next) {win = next;shown = false; expanded = false; offered = false; hung = false; told = "";+ framed = prefs()?.windowFrame?.() !== false;// The window's first document has the same time as any other to offer the button and to draw the frame.if (choseHidden()) startGrace(); else stopGrace();awaitFrame();@@ -185,9 +186,9 @@ export function createChromeRail({ createView, preload, args, url, wanted, prefs});fromPage("rail:offer", () => {});fromPage("rail:hide", (hide) => prefs()?.setRailHidden(hide === true));- ipcMain.handle("rail:draws-frame", (event) => {+ ipcMain.handle("rail:draws-frame", (event, drawn) => {if (!pageBeside(event)) throw new Error("rail:draws-frame is only available to the page beside the window's rail");- frameDrawn(true);+ frameDrawn(drawn !== false);});},/** Tells the rail's page something (the places changed, the skin of the page beside it). */diff --git a/electron/chrome-rail.node-test.mjs b/electron/chrome-rail.node-test.mjsindex 1800c16e5a..f568d3342f 100644--- a/electron/chrome-rail.node-test.mjs+++ b/electron/chrome-rail.node-test.mjs@@ -33,11 +33,11 @@ function viewMaker() {return { made, createView };}-function world({ wanted = true, hidden = false } = {}) {+function world({ wanted = true, hidden = false, frame = true } = {}) {const { win, page, children } = appWindow();const { made, createView } = viewMaker();const state = { wanted, hidden, changes: 0 };- const prefs = { railHidden: () => state.hidden, setRailHidden: (value) => { state.hidden = value; } };+ const prefs = { railHidden: () => state.hidden, setRailHidden: (value) => { state.hidden = value; }, windowFrame: () => frame };const rail = createChromeRail({ createView, preload: "/app/preload.cjs", args: () => ["--omb-local-origin=http://127.0.0.1:8799", "--omb-company-desktop=1"], url: () => RAIL,wanted: () => state.wanted, prefs: () => prefs, changed: () => { state.changes++; } });const handlers = new Map();@@ -201,6 +201,21 @@ test("the traffic lights sit in the frame's top bar beside a page that draws it,}});+test("a page with the frame turned off says it draws none: the traffic lights go back at once, and the window opens that way next time", (t) => {+ t.mock.timers.enable({ apis: ["setTimeout"] });+ const w = world();+ w.rail.attach(w.win);+ w.ask("rail:draws-frame", true);+ w.ask("rail:draws-frame", false);+ assert.deepEqual([w.rail.framed(), w.win.lights], [false, [TRAFFIC_LIGHTS.unframed]], "no grace to wait out: the page said so");+ w.ask("rail:draws-frame", true);+ assert.deepEqual([w.rail.framed(), w.win.lights.at(-1)], [true, TRAFFIC_LIGHTS.framed], "and back in the bar when it is turned on again");+ const off = world({ frame: false });+ off.rail.attach(off.win);+ t.mock.timers.tick(RAIL_OFFER_GRACE_MS);+ assert.deepEqual([off.rail.framed(), off.win.lights], [false, []], "a window made with the frame off opened its lights where they stay (windowChromeOptions)");+});+test("a page that stops responding, crashes or gives way to an error page gets the rail back", (t) => {t.mock.timers.enable({ apis: ["setTimeout"] });const w = world({ hidden: true });@@ -303,7 +318,8 @@ test("every page beside the rail, from any server, gets the button's bridge, learemote.navigator.userActivation.isActive = true;assert.deepEqual(plain(await remote.bridge.rail.setHidden(true)), { available: true, hidden: true });await remote.bridge.rail.drawsFrame();- assert.deepEqual(plain(remote.invoked), [["rail:offer"], ["rail:hide", true], ["rail:draws-frame"]]);+ await remote.bridge.rail.drawsFrame(false);+ assert.deepEqual(plain(remote.invoked), [["rail:offer"], ["rail:hide", true], ["rail:draws-frame", true], ["rail:draws-frame", false]]);const heard = [];const stop = remote.bridge.rail.onState((state) => heard.push(state));remote.hear("rail:state", { available: true, hidden: false, places: ["home"] });diff --git a/electron/desktop-prefs.d.mts b/electron/desktop-prefs.d.mtsindex 4300780904..641e83730a 100644--- a/electron/desktop-prefs.d.mts+++ b/electron/desktop-prefs.d.mts@@ -52,6 +52,15 @@ export interface DesktopPrefs {/** False until the person hides the window's rail of places. */railHidden(): boolean;setRailHidden(hidden: boolean): void;+ /** True until the person turns the window's frame off. */+ windowFrame(): boolean;+ setWindowFrame(on: boolean): void;+}+/** The window's frame, this desktop's choice, as Settings reads and changes it. */+export interface WindowFrameState {+ on: boolean;+ /** The choice changes this window only when the app starts again (Windows). */+ restart: boolean;}type Files = Pick<typeof import("node:fs"), "readFileSync" | "writeFileSync" | "renameSync" | "rmSync">;export declare function jsonFile(file: string, files?: Files): { read(): unknown; write(value: unknown): void };@@ -66,6 +75,9 @@ export declare function registerDesktopPrefs(options: {cloudOffered(): Promise<boolean>;localConfig?(): unknown;languageChanged?(language: string, sender: unknown): void;+ /** The window's frame: `made()`, the frame the window was made with (null before it is); `restarts`, a change waits for+ * the app to start again; `changed()`, the pages hear it. */+ frame?: { made(): boolean | null; restarts: boolean; changed(): void } | null;/** The MausBot Cloud sign-in client: with it, the product-updates question is asked and its answer kept here. */cloudAccount?(): import("./updates-consent.mjs").UpdatesConsentClient | null;now?: () => number;diff --git a/electron/desktop-prefs.mjs b/electron/desktop-prefs.mjsindex 239d643da1..b1d9b72bb3 100644--- a/electron/desktop-prefs.mjs+++ b/electron/desktop-prefs.mjs@@ -1,6 +1,6 @@// What this desktop keeps whatever page its window shows, whichever port its own page is served on: the notices someone-// closed, its usage-analytics switch, the app's language, its answer to the product-updates email question and-// whether the person hid the window's rail of places.+// closed, its usage-analytics switch, the app's language, its answer to the product-updates email question, whether+// the person hid the window's rail of places and whether they turned the window's frame off.import { randomBytes } from "node:crypto";import fs from "node:fs";import { onboardingHints } from "./onboarding-record.mjs";@@ -53,6 +53,7 @@ function parse(raw) {...(typeof record.talkShortcut === "boolean" ? { talkShortcut: record.talkShortcut } : {}),...(isTalkKey(record.talkKey) ? { talkKey: record.talkKey } : {}),...(typeof record.railHidden === "boolean" ? { railHidden: record.railHidden } : {}),+ ...(typeof record.windowFrame === "boolean" ? { windowFrame: record.windowFrame } : {}),...(Object.keys(quickAsks).length ? { quickAsks } : {}) };}@@ -119,6 +120,12 @@ export function createDesktopPrefs({ read, write }) {const railHidden = hidden === true;if ((current().railHidden === true) !== railHidden) save({ ...current(), railHidden });},+ /** The window draws its own frame until the person turns it off. */+ windowFrame: () => current().windowFrame !== false,+ setWindowFrame(on) {+ const windowFrame = on !== false;+ if ((current().windowFrame !== false) !== windowFrame) save({ ...current(), windowFrame });+ },};}@@ -130,7 +137,7 @@ export function createDesktopPrefs({ read, write }) {* MausBot Cloud, asked once its Cloud sign-in is restored. `localConfig()`: This computer's own workspace's config.json.* `languageChanged(language, sender)`: tells this desktop's other pages the language picked on one of them.*/-export function registerDesktopPrefs({ prefs: given, ipcMain, read, write, page, cloudOffered, cloudAccount, localConfig = () => null, languageChanged = () => {}, now = Date.now, systemName = accountFullName }) {+export function registerDesktopPrefs({ prefs: given, ipcMain, read, write, page, cloudOffered, cloudAccount, localConfig = () => null, languageChanged = () => {}, frame = null, now = Date.now, systemName = accountFullName }) {let prefs = given ?? null;const store = () => prefs ??= createDesktopPrefs({ read, write });const from = (channel, pages, handler) => (event, ...args) => {@@ -172,6 +179,15 @@ export function registerDesktopPrefs({ prefs: given, ipcMain, read, write, page,}return store().language() === language;});+ // Every page of this desktop's window reads and sets the frame; a server's page sets it only from the person's click,+ // which the preload checks.+ const frameState = () => ({ on: store().windowFrame(), restart: Boolean(frame?.restarts) && frame.made() !== null && frame.made() !== store().windowFrame() });+ ipcMain.handle("window-frame:state", from("window-frame:state", ANY, () => frameState()));+ ipcMain.handle("window-frame:set", from("window-frame:set", ANY, (_, on) => {+ store().setWindowFrame(on === true);+ try { frame?.changed(); } catch {}+ return frameState();+ }));if (!cloudAccount) return null;const consent = createUpdatesConsent({ prefs: { installId: () => store().installId(), updatesConsent: () => store().updatesConsent(), setUpdatesConsent: value => store().setUpdatesConsent(value) },account: cloudAccount, available: cloudOffered, now });diff --git a/electron/desktop-prefs.node-test.mjs b/electron/desktop-prefs.node-test.mjsindex 222f8d7910..ce7f6362c8 100644--- a/electron/desktop-prefs.node-test.mjs+++ b/electron/desktop-prefs.node-test.mjs@@ -89,7 +89,7 @@ function desktopMain({ offered = true, page = event => event.page, config = () =test("every page of this desktop's window reads and records the same notices; nothing else is answered", async () => {const main = desktopMain();- assert.deepEqual(main.channels, ["desktop-notices:state", "desktop-notices:seen", "desktop-profile:system-name", "desktop-analytics:set", "desktop-language:set"]);+ assert.deepEqual(main.channels, ["desktop-notices:state", "desktop-notices:seen", "desktop-profile:system-name", "desktop-analytics:set", "desktop-language:set", "window-frame:state", "window-frame:set"]);for (const page of ["local", "cloud", "server"]) assert.deepEqual(await main.ask("desktop-notices:state", page), { seen: [], cloud: true });await main.ask("desktop-notices:seen", "server", POPUP);assert.deepEqual(await main.ask("desktop-notices:state", "local"), { seen: [POPUP], cloud: true });@@ -262,7 +262,7 @@ test("production wiring: main answers this computer's page, My Cloud's own pagelocalOrigin.setLocalOrigin(LOCAL);const sent = [], window = name => ({ isDestroyed: () => name === "closed", webContents: { send: (...message) => sent.push([name, ...message]) } });const windows = [window("team"), window("home"), window("closed")];- let switched = async id => { calls.push(["switch", id]); }, loads = true;+ let switched = async id => { calls.push(["switch", id]); }, loads = true, broadcasts = 0;const context = vm.createContext({registerDesktopPrefs: value => { options = value; }, createDesktopPrefs: store => ({ store }), jsonFile: file => ({ read: () => file, write: () => {} }), ipcMain: {}, updatesConsent: null, cloudAccount: "the client",path: { join: (...parts) => parts.join("/") }, app: { getPath: () => "/user-data" }, desktopDataDir: () => "/home/.openmausbot",@@ -273,12 +273,16 @@ test("production wiring: main answers this computer's page, My Cloud's own pagerendererOrigin: () => LOCAL, cloudAccountRestored: async () => calls.push("restored"), cloudOffersReady: async () => { calls.push("offers"); return true; },cloudPageAsking: event => event.verifiedCloud ? "cloud" : null,serverReady: true, LOCAL_ID: "local", switchEnvironment: id => switched(id),+ process: { platform: "win32" }, windowFrameMade: false, broadcastDesktopCapabilities: async () => { broadcasts++; },// main's own: a failed switch shows its dialog and resolves.workspaceMenuAction: async action => { try { await action(); } catch { calls.push("dialog"); } },});vm.runInContext(main.slice(start, end), context);assert.equal(options.prefs.store.read(), "/user-data/desktop-prefs.json");assert.equal(options.localConfig(), "/home/.openmausbot/config.json", "This computer's own workspace, whichever server the window shows");+ assert.deepEqual([options.frame.made(), options.frame.restarts], [false, true], "Windows: the frame its window was made with, until a restart");+ options.frame.changed();+ assert.equal(broadcasts, 1, "the pages hear the frame change");assert.equal(options.page({ sender: { mainFrame: localFrame }, senderFrame: localFrame }), "local");assert.equal(options.page({ sender: contents, senderFrame: serverFrame }), "server");assert.equal(options.page({ sender: contents, senderFrame: serverFrame, verifiedCloud: true }), "cloud", "My Cloud's page as main verifies it");@@ -345,3 +349,35 @@ test("registerDesktopPrefs works on the store main hands it", async () => {await handlers.get("desktop-analytics:set")({}, false);assert.equal(prefs.analytics(), false);});++test("the window draws its own frame until the person turns it off, and the choice survives a restart", () => {+ let saved = null, writes = 0;+ const prefs = createDesktopPrefs({ read: () => saved, write: value => { saved = structuredClone(value); writes++; } });+ assert.equal(prefs.windowFrame(), true);+ prefs.setWindowFrame(true);+ assert.equal(writes, 0, "turning on a frame that is on writes nothing");+ prefs.setWindowFrame(false);+ assert.equal(createDesktopPrefs({ read: () => saved, write: () => {} }).windowFrame(), false);+ prefs.setWindowFrame("off");+ assert.equal(createDesktopPrefs({ read: () => saved, write: () => {} }).windowFrame(), true, "only false turns it off");+ assert.equal(createDesktopPrefs({ read: () => ({ windowFrame: "no" }), write: () => {} }).windowFrame(), true);+});++test("Settings reads and changes the window's frame on any page of the window; on Windows the change waits for a restart", async () => {+ const prefs = createDesktopPrefs({ read: () => null, write: () => {} });+ const handlers = new Map();+ let made = true, changes = 0, asking = "server";+ const register = (restarts) => registerDesktopPrefs({ prefs, ipcMain: { handle: (c, h) => handlers.set(c, h), on: () => {} }, read: () => null, write: () => {},+ page: () => asking, cloudOffered: async () => false, frame: { made: () => made, restarts, changed: () => { changes++; } } });+ register(false);+ assert.deepEqual(await handlers.get("window-frame:state")({}), { on: true, restart: false });+ assert.deepEqual(await handlers.get("window-frame:set")({}, false), { on: false, restart: false }, "macOS: at once");+ assert.equal(changes, 1, "the pages hear it");+ register(true);+ assert.deepEqual(await handlers.get("window-frame:state")({}), { on: false, restart: true }, "Windows: the window was made with its frame");+ assert.deepEqual(await handlers.get("window-frame:set")({}, true), { on: true, restart: false }, "back as it was made: nothing to restart");+ made = null;+ assert.deepEqual(await handlers.get("window-frame:set")({}, false), { on: false, restart: false }, "no window yet");+ asking = null;+ assert.throws(() => handlers.get("window-frame:set")({}, true), /only available in this app's window/);+});diff --git a/electron/main.mjs b/electron/main.mjsindex 7183a62e6b..5ddb872f1d 100644--- a/electron/main.mjs+++ b/electron/main.mjs@@ -270,7 +270,7 @@ let desktopDataDirLease = null;let runningDataDir = null;let localSwitchInFlight = false;let managedDesktop = null;-let cloudAccount = null, updatesConsent = null, desktopPrefs = null, ownHome = null, twoPlaces = null;+let cloudAccount = null, updatesConsent = null, desktopPrefs = null, ownHome = null, twoPlaces = null, windowFrameMade = null;let cloudAccountStarted = Promise.resolve();let cloudAccountRestoring = false;let cloudSignInRestored = false;@@ -2026,7 +2026,7 @@ function createWindow({ deferNavigation = false } = {}) {icon: APP_ICON,backgroundColor: windowBackground(nativeTheme.shouldUseDarkColors),autoHideMenuBar: process.platform !== "darwin",- ...windowChromeOptions(process.platform),+ ...windowChromeOptions(process.platform, windowFrameMade = desktopPrefs?.windowFrame() !== false),webPreferences: {contextIsolation: true,preload: path.join(__dirname, "preload.cjs"),@@ -2804,7 +2804,7 @@ ipcMain.handle("desktop:capabilities", async (event) =>platform: process.platform,env: process.env,packaged: app.isPackaged,- localConnection: await cuaReady,+ localConnection: await cuaReady, frame: windowFrameNow(),}),);@@ -2857,11 +2857,14 @@ ipcMain.handle("approvals:set-trusted-mode", localOnly("approvals:set-trusted-moreturn trustedApprovalMode.request(serverProc, botId, mode, options);}));+// Electron fixes a Windows window's title bar when the window is made; on macOS the choice applies at once.+const windowFrameNow = () => (process.platform === "win32" ? windowFrameMade : null) ?? desktopPrefs?.windowFrame() !== false;async function broadcastDesktopCapabilities() {const localConnection = await cuaReady;const build = (remote) =>- desktopCapabilities({ remote, platform: process.platform, env: process.env, packaged: app.isPackaged, localConnection });+ desktopCapabilities({ remote, platform: process.platform, env: process.env, packaged: app.isPackaged, localConnection, frame: windowFrameNow() });const local = build(false);+ chromeRail.send("desktop:capabilities-changed", local);let redacted = null;for (const window of appWindows()) {if (window.isDestroyed()) continue;@@ -3027,6 +3030,7 @@ app.whenReady().then(async () => {registerUpdaterIpc({ pageAllowed: updaterPageAllowed });desktopPrefs = createDesktopPrefs(jsonFile(path.join(app.getPath("userData"), "desktop-prefs.json")));updatesConsent = registerDesktopPrefs({ ipcMain, cloudAccount: () => cloudAccount, prefs: desktopPrefs, localConfig: jsonFile(path.join(desktopDataDir(), "config.json")).read, cloudOffered: () => cloudAccountRestored().then(cloudOffersReady),+ frame: { made: () => windowFrameMade, restarts: process.platform === "win32", changed: () => void broadcastDesktopCapabilities() },languageChanged: (language, sender) => {for (const win of appWindows()) if (!win.isDestroyed() && win.webContents !== sender) win.webContents.send("desktop-language:changed", language);chromeRail.send("desktop-language:changed", language);diff --git a/electron/preload.cjs b/electron/preload.cjsindex 978df21059..5a5ce16522 100644--- a/electron/preload.cjs+++ b/electron/preload.cjs@@ -64,7 +64,7 @@ function railKeepsItsSize() {if (typeof window !== "undefined") {for (const type of ["resize", "DOMContentLoaded"]) window.addEventListener(type, () => { leaveRailRoom(); railKeepsItsSize(); });}-const REMOTE_SAFE = new Set(["platform", "app", "getCapabilities", "onCapabilitiesChanged", "applySkin", "setUnreadCount", "permStatus", "workspaces", "rail", "cloudAdd", "cloudPlan", "cloudSendPage", "desktopNotices", "desktopAnalytics", "desktopLanguage", "updatesConsent", "windowControls", "onOpenAppSettings"]);+const REMOTE_SAFE = new Set(["platform", "app", "getCapabilities", "onCapabilitiesChanged", "applySkin", "setUnreadCount", "permStatus", "workspaces", "rail", "cloudAdd", "cloudPlan", "cloudSendPage", "desktopNotices", "desktopAnalytics", "desktopLanguage", "updatesConsent", "windowControls", "onOpenAppSettings", "windowFrame"]);/** My Cloud's own page once it is the person's home (main checks the sender again): it is this app's page then. */const HOME_PAGE = ["home", "onChatLink", "onPackageInstall", "exportDiagnostics", "openLogsFolder", "openAtLogin", "callActive"];function updaterOffered() {@@ -163,7 +163,7 @@ const bridge = {// is one to hide, never its places; it says when it draws the frame, so main puts the traffic lights in its top bar.rail: {state: () => ipcRenderer.invoke("rail:offer").then(railState),- drawsFrame: () => ipcRenderer.invoke("rail:draws-frame"),+ drawsFrame: (drawn) => ipcRenderer.invoke("rail:draws-frame", drawn !== false),setHidden: (hidden) => isLocalPage || navigator.userActivation?.isActive === true? ipcRenderer.invoke("rail:hide", hidden === true).then(railState) : Promise.reject(new Error("Choose to hide or show your computers.")),onState: (cb) => {@@ -185,6 +185,13 @@ const bridge = {},} : {}),},+ // The window's own frame, this desktop's choice for every page of its window; a server's page changes it only from the+ // person's click.+ windowFrame: {+ state: () => ipcRenderer.invoke("window-frame:state"),+ set: (on) => isLocalPage || navigator.userActivation?.isActive === true+ ? ipcRenderer.invoke("window-frame:set", on === true) : Promise.reject(new Error("Choose to turn the window frame on or off.")),+ },// Buying another Cloud from the rail's +, on this app's page or a hosted Cloud's: plain words in, what the sheet says// out; the account, the token and the checkout page stay in main. Only from the person's click where it opens anything.cloudAdd: {diff --git a/electron/window-chrome.mjs b/electron/window-chrome.mjsindex fe9d7ed724..7d6ed4ff26 100644--- a/electron/window-chrome.mjs+++ b/electron/window-chrome.mjs@@ -10,12 +10,14 @@ export function windowBackground(prefersDark) {* them in the bar, and main moves them as each page says (chrome-rail.mjs). */export const TRAFFIC_LIGHTS = { framed: { x: 12, y: 7 }, unframed: { x: 16, y: 16 } };-export function windowChromeOptions(platform) {+/** `frame`: the window draws its own frame (the person may turn it off): on macOS the traffic lights open where it puts+ * them, and on Windows the app draws its caption buttons, or else the system's own title bar comes back. */+export function windowChromeOptions(platform, frame = true) {if (platform === "darwin") {- return { titleBarStyle: "hiddenInset", trafficLightPosition: TRAFFIC_LIGHTS.framed };+ return { titleBarStyle: "hiddenInset", trafficLightPosition: frame ? TRAFFIC_LIGHTS.framed : TRAFFIC_LIGHTS.unframed };}if (platform === "win32") {- return { titleBarStyle: "hidden" };+ return frame ? { titleBarStyle: "hidden" } : {};}return {};}diff --git a/electron/window-chrome.test.mjs b/electron/window-chrome.test.mjsindex 1c67e16433..92321007ab 100644--- a/electron/window-chrome.test.mjs+++ b/electron/window-chrome.test.mjs@@ -20,6 +20,12 @@ describe("window chrome", () => {expect(windowChromeOptions("linux")).toEqual({});});+ it("with the frame turned off, opens macOS's traffic lights where the frame-less window keeps them, and gives Windows its own title bar back", () => {+ expect(windowChromeOptions("darwin", false)).toEqual({ titleBarStyle: "hiddenInset", trafficLightPosition: { x: 16, y: 16 } });+ expect(windowChromeOptions("win32", false), "the system's title bar and caption buttons").toEqual({});+ expect(windowChromeOptions("linux", false)).toEqual({});+ });+it("paints the light or dark canvas before the renderer loads", () => {expect(windowBackground(true)).toBe("#121212");expect(windowBackground(false)).toBe("#fcfcfc");diff --git a/scripts/check-skin-contrast.mjs b/scripts/check-skin-contrast.mjsindex 969be58965..3031d9dadd 100644--- a/scripts/check-skin-contrast.mjs+++ b/scripts/check-skin-contrast.mjs@@ -78,6 +78,43 @@ function parseHex(value) {};}+const NAMED = { black: "#000000", white: "#ffffff" };++/** A token's value with every var() replaced by the token it names, as the skin renders it. */+function resolve(value, tokens, depth = 0) {+ if (depth > 8) return value;+ return value.replace(/var\((--[\w-]+)(?:,\s*([^()]+))?\)/g, (_, name, fallback) => resolve(tokens[name] ?? fallback ?? "", tokens, depth + 1));+}++const linear = (v) => { const s = v / 255; return s <= 0.04045 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4; };+const gamma = (v) => Math.max(0, Math.min(255, Math.round(255 * (v <= 0.0031308 ? v * 12.92 : 1.055 * v ** (1 / 2.4) - 0.055))));+function toOklab({ r, g, b }) {+ const [lr, lg, lb] = [linear(r), linear(g), linear(b)];+ const l = Math.cbrt(0.4122214708 * lr + 0.5363325363 * lg + 0.0514459929 * lb);+ const m = Math.cbrt(0.2119034982 * lr + 0.6806995451 * lg + 0.1073969566 * lb);+ const s = Math.cbrt(0.0883024619 * lr + 0.2817188376 * lg + 0.6299787005 * lb);+ return [0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s, 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s, 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s];+}+function fromOklab([L, A, B]) {+ const l = (L + 0.3963377774 * A + 0.2158037573 * B) ** 3, m = (L - 0.1055613458 * A - 0.0638541728 * B) ** 3, s = (L - 0.0894841775 * A - 1.291485548 * B) ** 3;+ return { r: gamma(4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s), g: gamma(-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s),+ b: gamma(-0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s), a: 1 };+}++/** An opaque or translucent hex, a named colour, or color-mix() of two of them in oklab, as CSS mixes it. */+function parseColor(value) {+ const text = value.trim();+ const named = NAMED[text.toLowerCase()];+ if (named) return parseHex(named);+ const mix = /^color-mix\(\s*in oklab\s*,\s*([^,]+?)(?:\s+([\d.]+)%)?\s*,\s*([^,]+?)(?:\s+([\d.]+)%)?\s*\)$/i.exec(text);+ if (!mix) return parseHex(text);+ const [first, second] = [parseColor(mix[1]), parseColor(mix[3])];+ if (!first || !second || first.a !== 1 || second.a !== 1) return null;+ const p2 = mix[4] !== undefined ? Number(mix[4]) / 100 : mix[2] !== undefined ? 1 - Number(mix[2]) / 100 : 0.5;+ const [a, b] = [toOklab(first), toOklab(second)];+ return fromOklab(a.map((value, i) => value * (1 - p2) + b[i] * p2));+}+/** Foreground alpha composited over an opaque background. */function flatten(fg, bg) {if (fg.a === 1) return fg;@@ -97,9 +134,9 @@ function luminance({ r, g, b }) {return 0.2126 * channel(r) + 0.7152 * channel(g) + 0.0722 * channel(b);}-function contrast(fgHex, bgHex) {- const bg = parseHex(bgHex);- const parsedFg = parseHex(fgHex);+function contrast(fgValue, bgValue) {+ const bg = parseColor(bgValue);+ const parsedFg = parseColor(fgValue);if (!parsedFg || !bg || bg.a !== 1) return null;const fg = flatten(parsedFg, bg);const [hi, lo] = [luminance(fg), luminance(bg)].sort((a, b) => b - a);@@ -107,7 +144,8 @@ function contrast(fgHex, bgHex) {}// Pairs taken from what the components render.-const SURFACES = ["--color-app", "--color-panel", "--color-raised", "--color-raised-hover", "--color-card", "--color-inset", "--color-composer", "--color-menu"];+// The frame carries the sidebar's names, previews and times in a framed window.+const SURFACES = ["--color-app", "--color-panel", "--color-frame", "--color-raised", "--color-raised-hover", "--color-card", "--color-inset", "--color-composer", "--color-menu"];const PAIRS = [...SURFACES.map((s) => ["--color-ink", s, 4.5]),...SURFACES.map((s) => ["--color-ink-secondary", s, 4.5]),@@ -149,6 +187,8 @@ const PAIRS = [["--color-inset", "--color-card", 1.04],["--color-card", "--color-app", 1.04],["--color-panel", "--color-app", 1.03],+ // The app's card is told from the frame round it.+ ["--color-frame", "--color-app", 1.05],];const skins = parseSkins(css);@@ -172,7 +212,7 @@ for (const [id, tokens] of skins) {missing.push(!tokens[fg] ? fg : bg);continue;}- const ratio = contrast(tokens[fg], tokens[bg]);+ const ratio = contrast(resolve(tokens[fg], tokens), resolve(tokens[bg], tokens));if (ratio === null) {unmeasurable.push({ fg, bg, fgValue: tokens[fg], bgValue: tokens[bg] });continue;diff --git a/scripts/testing/headless-chrome.ts b/scripts/testing/headless-chrome.tsnew file mode 100644index 0000000000..eac2a93739--- /dev/null+++ b/scripts/testing/headless-chrome.ts@@ -0,0 +1,64 @@+// One page of a headless Chrome in a throwaway profile, driven over the DevTools protocol, for the verify-* scripts that+// photograph a Vite preview.+import { spawn } from "node:child_process";+import { readFileSync } from "node:fs";+import { join } from "node:path";+import { setTimeout as delay } from "node:timers/promises";++export const CHROME_PATH = process.env.OMB_CDP_CHROME ?? "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome";++export interface HeadlessPage {+ send: (method: string, params?: object) => Promise<any>;+ /** The expression's value, awaited when it is a promise. */+ evaluate: (expression: string) => Promise<any>;+ /** Waits until `condition` (an expression) is true, or throws after `timeoutMs`. */+ until: (condition: string, timeoutMs?: number) => Promise<void>;+ /** A PNG of the page, or of `clip` in CSS pixels. */+ capture: (clip?: { x: number; y: number; width: number; height: number }) => Promise<Buffer>;+ close: () => void;+}++export async function openHeadlessChrome(profile: string): Promise<HeadlessPage> {+ const chrome = spawn(CHROME_PATH, ["--headless=new", "--disable-gpu", "--hide-scrollbars", "--no-first-run", "--no-default-browser-check", "--use-mock-keychain",+ `--user-data-dir=${profile}`, "--remote-debugging-port=0", "about:blank"], { stdio: "ignore" });+ let port = "";+ for (let i = 0; i < 100 && !port; i++) {+ await delay(100);+ try { port = readFileSync(join(profile, "DevToolsActivePort"), "utf8").split("\n")[0]!.trim(); } catch {}+ }+ if (!port) { chrome.kill(); throw new Error("Chrome did not start"); }+ const targets = await (await fetch(`http://127.0.0.1:${port}/json/list`)).json() as Array<{ type: string; webSocketDebuggerUrl: string }>;+ const socket = new WebSocket(targets.find((target) => target.type === "page")!.webSocketDebuggerUrl);+ await new Promise((done, fail) => { socket.onopen = done; socket.onerror = fail; });+ let next = 0;+ const waiting = new Map<number, { done: (value: any) => void; fail: (error: Error) => void }>();+ socket.onmessage = (event) => {+ const message = JSON.parse(String(event.data));+ const call = waiting.get(message.id);+ if (!call) return;+ waiting.delete(message.id);+ if (message.error) call.fail(new Error(message.error.message)); else call.done(message.result);+ };+ const send = (method: string, params: object = {}) => new Promise<any>((done, fail) => {+ const id = ++next;+ waiting.set(id, { done, fail });+ socket.send(JSON.stringify({ id, method, params }));+ });+ const evaluate = async (expression: string) => (await send("Runtime.evaluate", { expression, returnByValue: true, awaitPromise: true })).result?.value;+ return {+ send,+ evaluate,+ async until(condition, timeoutMs = 60_000) {+ const end = Date.now() + timeoutMs;+ while (!(await evaluate(`Boolean(${condition})`).catch(() => false))) {+ if (Date.now() > end) throw new Error(`${condition} never held (${await evaluate("document.querySelector('main')?.textContent?.slice(0, 120) ?? ''").catch(() => "")})`);+ await delay(250);+ }+ },+ async capture(clip) {+ const { data } = await send("Page.captureScreenshot", { format: "png", ...(clip ? { clip: { ...clip, scale: 1 } } : {}) });+ return Buffer.from(data, "base64");+ },+ close() { socket.close(); chrome.kill(); },+ };+}diff --git a/scripts/testing/png.ts b/scripts/testing/png.tsindex 88c3b19f8c..2cae62495d 100644--- a/scripts/testing/png.ts+++ b/scripts/testing/png.ts@@ -1,7 +1,7 @@// Reads the 8-bit, non-interlaced PNGs our fixtures keep: truecolour with or// without alpha. Enough to paint a captured desktop into a synthetic// framebuffer without pulling in an image library.-import { inflateSync } from "node:zlib";+import { deflateSync, inflateSync } from "node:zlib";export interface DecodedPng {width: number;@@ -61,3 +61,27 @@ export function decodePng(file: Buffer): DecodedPng {},};}++const CRC = Array.from({ length: 256 }, (_, n) => { let c = n; for (let k = 0; k < 8; k++) c = c & 1 ? 0xedb88320 ^ (c >>> 1) : c >>> 1; return c >>> 0; });+const crc32 = (bytes: Buffer) => { let c = 0xffffffff; for (const byte of bytes) c = CRC[(c ^ byte) & 0xff]! ^ (c >>> 8); return (c ^ 0xffffffff) >>> 0; };+const chunk = (type: string, data: Buffer) => {+ const out = Buffer.alloc(12 + data.length);+ out.writeUInt32BE(data.length, 0); out.write(type, 4, "latin1"); data.copy(out, 8);+ out.writeUInt32BE(crc32(out.subarray(4, 8 + data.length)), 8 + data.length);+ return out;+};++/** An 8-bit truecolour PNG of `width` x `height`, each pixel from `pixel`. */+export function encodePng(width: number, height: number, pixel: (x: number, y: number) => [number, number, number]): Buffer {+ const rows = Buffer.alloc(height * (width * 3 + 1));+ for (let y = 0; y < height; y++) for (let x = 0; x < width; x++) rows.set(pixel(x, y), y * (width * 3 + 1) + 1 + x * 3);+ const header = Buffer.alloc(13);+ header.writeUInt32BE(width, 0); header.writeUInt32BE(height, 4); header.set([8, 2, 0, 0, 0], 8);+ return Buffer.concat([Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]), chunk("IHDR", header), chunk("IDAT", deflateSync(rows, { level: 9 })), chunk("IEND", Buffer.alloc(0))]);+}++/** A part of a picture, each of its pixels drawn `zoom` times as wide and tall, so its edges can be seen pixel by pixel. */+export function zoomedCrop(file: Buffer, crop: { x: number; y: number; width: number; height: number }, zoom: number): Buffer {+ const picture = decodePng(file);+ return encodePng(crop.width * zoom, crop.height * zoom, (x, y) => picture.pixel(crop.x + Math.floor(x / zoom), crop.y + Math.floor(y / zoom)));+}diff --git a/scripts/testing/preview-fixture.ts b/scripts/testing/preview-fixture.tsindex 24b4eed97d..e4319d6e6d 100644--- a/scripts/testing/preview-fixture.ts+++ b/scripts/testing/preview-fixture.ts@@ -3,7 +3,9 @@// server. vite.config.ts is inherited on purpose (react, tailwind, the @ alias)// so the page renders exactly what the app renders; only the host, the port// and the /api target are pinned here.+import { realpathSync } from "node:fs";import type { IncomingMessage, ServerResponse } from "node:http";+import { join } from "node:path";import { fileURLToPath } from "node:url";import { createServer } from "vite";@@ -59,7 +61,8 @@ export async function mountPreview(const ui = await createServer({root: REPO_ROOT,...(logLevel ? { logLevel } : {}),- server: { host: "127.0.0.1", port: 0, proxy: {+ // A worktree's node_modules may be a link to another checkout's: its files (the fonts) are served from there.+ server: { host: "127.0.0.1", port: 0, fs: { allow: [REPO_ROOT, realpathSync(join(REPO_ROOT, "node_modules"))] }, proxy: {"/api": { target: fixture.info.url, ...(proxyHeaders ? { headers: proxyHeaders } : {}) },"/.well-known/openmausbot/environment": { target: fixture.info.url, ...(proxyHeaders ? { headers: proxyHeaders } : {}) },} },diff --git a/scripts/testing/rail-preview.tsx b/scripts/testing/rail-preview.tsxindex 0897a3321f..bc71963549 100644--- a/scripts/testing/rail-preview.tsx+++ b/scripts/testing/rail-preview.tsx@@ -3,9 +3,11 @@ import type { CloudSwatch } from "../../electron/cloud-list.mjs";import type { AddCloudView, RailPlace, RailState } from "../../electron/cloud-rail.mjs";import type { PlaceLook } from "../../electron/place-look.mjs";import App from "../../src/App";+import { ChromeRail } from "../../src/components/ChromeRail";import { setAnalyticsEnabled, setEmailGateDone } from "../../src/lib/analytics";import { setAdvancedMode } from "../../src/lib/interface-mode";-import { setSidebarDensity } from "../../src/lib/sidebar-preferences";+import { NOTICES } from "../../src/lib/notices";+import { setSidebarDensity, SIDEBAR_WIDTH_KEY, SIMPLE_SIDEBAR_WIDTH_KEY } from "../../src/lib/sidebar-preferences";import { markSimpleModePromptSeen } from "../../src/lib/simple-mode-prompt";import { applySkin, type SkinId } from "../../src/lib/skins";import "../../src/styles.css";@@ -20,50 +22,74 @@ import "../../src/styles.css";// or with ?rail one beside it (this computer and a server connected by hand). ?density=icons collapses the sidebar to// avatars; ?settings=general opens Settings at its first page, ?settings=strip at the switch for the window's rail.// ?hidden starts with the rail hidden (the sidebar's button shows it again). The rail is drawn on the page itself, as an-// older app's page draws it; ?chrome stands in for the window's own rail instead: the room the app's preload leaves-// for it, with nothing drawn there, so the page lays out as it does beside the real one.+// older app's page draws it; ?chrome draws the window's own rail instead, as the desktop window does: this page again+// in a frame of the rail's width at the left (?railpage, the rail's own page with the list main gives it alone), and+// the room the app's preload leaves for it. ?platform=win32 is a Windows window, its caption buttons drawn by the app;+// ?update=downloading|downloaded an update on its way; ?team a team's Cloud its admin is on, ?teamname= the team's name.+// ?framecolor=today|app paints the frame in another colour to compare: the grey it had, or the app's own. ?frame=off is+// the window with its frame turned off (macOS's traffic lights back in the sidebar's corner; Windows' own title bar, as+// after the app started again), and ?framepending a Windows window whose frame was just turned off, until the app+// starts again. ?settings=frame opens Settings at the window frame's switch. Each page starts with the sidebar at its+// own width.const params = new URLSearchParams(location.search);setAnalyticsEnabled(false);setEmailGateDone("skipped");markSimpleModePromptSeen();+try {+ for (const notice of NOTICES) localStorage.setItem(notice, "1");+ for (const width of [SIDEBAR_WIDTH_KEY, SIMPLE_SIDEBAR_WIDTH_KEY]) localStorage.removeItem(width);+} catch {}setAdvancedMode(params.get("mode") !== "simple");setSidebarDensity(params.get("density") === "icons" ? "icons" : "comfortable");applySkin((params.get("skin") ?? "midnight") as SkinId);+const FRAME_COLOURS: Record<string, string> = { today: "color-mix(in oklab, var(--color-panel) 93%, var(--color-ink))", app: "var(--color-app)" };+const frameColour = FRAME_COLOURS[params.get("framecolor") ?? ""];+if (frameColour) {+ const paint = document.createElement("style");+ paint.textContent = `html[data-skin], html { --color-frame: ${frameColour} !important; }`;+ document.head.append(paint);+}++const frameOff = params.get("frame") === "off", framePending = params.has("framepending");++const team = params.has("team");+const teamName = params.get("teamname") ?? "Acme team";const place = (id: string, name: string, extra: Partial<RailPlace> = {}): RailPlace => ({ id, name, color: null, kind: "cloud", opens: true, ...extra });const FEW: RailPlace[] = [place("home", "My Cloud", { color: "blue", active: true }),place("a", "Client A", { color: "teal" }),place("b", "Bakery", { color: "orange", attention: true }),- place("acme", "Acme team", { kind: "team", color: "purple" }),+ place("acme", teamName, { kind: "team", color: "purple" }),place("pending:c", "Client C", { color: "red", opens: false, progress: 0.55 }),place("mini", "Mac mini", { kind: "server" }),];const SERVERS: RailPlace[] = [place("home", "My Cloud", { color: "blue", active: true }),place("a", "Client A", { color: "teal" }),- place("acme", "Acme team", { kind: "team", color: "purple" }),+ place("acme", teamName, { kind: "team", color: "purple" }),place("vps", "Office", { kind: "server", server: true }),place("signed-in:s-mini", "Mac mini", { kind: "server", opens: false, ownNetwork: true, server: true, offline: true, lastSeenAt: Date.now() - 2 * 3_600_000 }),place("signed-in:s-render", "Render VPS", { kind: "server", color: "red", opens: false, pairs: true, server: true }),];const MANY = [...FEW, ...["Delta", "Echo Studio", "Fable", "Gamma Ltd", "Harbor"].map((name, n) => place(`x${n}`, name, { color: (["teal", "yellow", "red", "purple", "blue"] as const)[n] }))];const member = params.has("member");+const onTeam = team || member;const computer = params.get("place") === "computer";const COMPUTER: RailPlace[] = [place("local", "This computer", { kind: "computer" }), place("vps", "Office", { kind: "server" })];const SWATCH: Record<string, CloudSwatch> = { blue: "blue", teal: "green", yellow: "amber", red: "rose", purple: "violet" };const COLOR: Record<CloudSwatch, PlaceLook["color"]> = { blue: "blue", green: "teal", amber: "yellow", rose: "red", violet: "purple", slate: null };-const tint = params.get("look") ?? (computer ? "none" : member ? "purple" : "blue");+const tint = params.get("look") ?? (computer ? "none" : onTeam ? "purple" : "blue");const color = tint === "none" ? null : (tint as PlaceLook["color"]);const listed = computer ? (params.has("rail") ? COMPUTER : []) : params.get("places") === "many" ? MANY : params.get("places") === "servers" ? SERVERS : FEW;-const onScreen = computer ? "local" : member ? "acme" : "home";+const onScreen = computer ? "local" : onTeam ? "acme" : "home";// The place on screen wears the colour its tint is drawn in.// Every place but one still being made has its colour changed from its circle; a team's member only sees it.const painted = (entry: RailPlace): RailPlace => (entry.opens || entry.server ? { ...entry, paint: { swatch: entry.color ? SWATCH[entry.color] ?? null : null,...(member && entry.id === "acme" ? { locked: "member" as const } : {}) } } : entry);const rail: RailState = { places: listed.map(({ active: _active, ...entry }) => painted(entry.id === onScreen ? { ...entry, color, active: true as const } : entry)),add: { cloud: true, link: true, address: computer } };-let look: PlaceLook = { name: computer ? "This computer" : member ? "Acme team" : "My Cloud", color, swatch: color ? SWATCH[color] ?? null : null,+let look: PlaceLook = { name: computer ? "This computer" : onTeam ? teamName : "My Cloud", color, swatch: color ? SWATCH[color] ?? null : null,change: computer ? "local" : member ? null : "admin", ...(member ? { reason: "member" as const } : {}) };let openSettings: ((section?: string) => void) | null = null;const offer = { recommended: "pro", refundDays: 14, plans: [@@ -75,95 +101,163 @@ const adding = params.get("adding") === "setting_up"? { adding: { name: "Client C", color: "rose" as const, tier: "pro", startedAt: Date.now(), status: "setting_up" as const, progress: 0.55, link: true as const } } : {};const addView: AddCloudView = { signedIn: true, hasCloud: true, supported: true, canAdd: true, offer, count: 3, home: { name: "My Cloud", color: "blue" }, ...adding };const ok = async () => {};+const windows = params.get("platform") === "win32";const chrome = params.has("chrome");+const RAIL_WIDTH = 36;let hidden = params.has("hidden");const placesHeard = new Set<() => void>(), stripHeard = new Set<(state: { available: boolean; hidden: boolean }) => void>();const strip = () => ({ available: listed.length > 1, hidden });-const room = document.createElement("style");-room.textContent = "html { box-sizing: border-box !important; padding-left: 64px !important; --rail-beside: 64px; }";-const besidePage = () => { if (chrome && !hidden) document.head.append(room); else room.remove(); };-besidePage();-Object.assign(window, { ogb: {- platform: "darwin",- app: { version: "0.1.130", ownPage: computer },- getCapabilities: async () => ({ host: { platform: "darwin", label: "macOS", session: "unknown", packaged: true }, windowChrome: "mac-inset",- screenPreview: { available: false, interaction: "none" }, dictation: { available: false, engine: "none", onDevice: false },- localComputer: { available: false, support: "unsupported", enabled: false, status: "unavailable" } }),- onCapabilitiesChanged: () => () => {},- onOpenAppSettings: (callback: (section?: string) => void) => { openSettings = callback; return () => {}; },- applySkin: ok, setUnreadCount: () => {}, permStatus: async () => ({}),- workspaces: {- state: async () => (computer ? { local: true, name: "This computer" } : { local: false, name: "My Cloud", origin: "https://omb-u-1.fly.dev", color: "blue" }),- menu: ok, line: async () => null, open: ok, add: ok,- places: async () => (hidden ? { ...rail, places: [] } : chrome ? { ...rail, places: [], beside: true as const } : rail),- onChanged: (heard: () => void) => { placesHeard.add(heard); return () => { placesHeard.delete(heard); }; },- look: async () => look,- recolor: async (id: string, swatch: CloudSwatch) => {- rail.places = rail.places.map((entry) => (entry.id === id ? { ...entry, color: COLOR[swatch], paint: { swatch: COLOR[swatch] ? swatch : null } } : entry));- return { outcome: "saved", look: null };+let frameOn = !frameOff && !framePending;+const capabilitiesHeard = new Set<(next: object) => void>();+const capabilities = async () => ({+ host: windows ? { platform: "win32", label: "Windows", session: "unknown", packaged: true } : { platform: "darwin", label: "macOS", session: "unknown", packaged: true },+ windowChrome: windows ? (frameOff ? "native" : "win-caption") : "mac-inset",+ windowFrame: windows ? !frameOff : frameOn,+ screenPreview: { available: false, interaction: "none" }, dictation: { available: false, engine: "none", onDevice: false },+ localComputer: { available: false, support: "unsupported", enabled: false, status: "unavailable" },+});+const recolor = async (id: string, swatch: CloudSwatch) => {+ rail.places = rail.places.map((entry) => (entry.id === id ? { ...entry, color: COLOR[swatch], paint: { swatch: COLOR[swatch] ? swatch : null } } : entry));+ return { outcome: "saved", look: null };+};+const cloudAdd = { state: async () => addView, start: async () => ({ outcome: "opened" }), reopen: async () => true, copyLink: async () => true, open: ok, interest: ok, sheet: ok };++if (params.has("railpage")) {+ // The window's own rail page: see-through but for the rail, as main.tsx draws it.+ document.documentElement.style.background = document.body.style.background = "transparent";+ Object.assign(window, { ogb: {+ platform: windows ? "win32" : "darwin", getCapabilities: capabilities, onCapabilitiesChanged: () => () => {}, applySkin: ok,+ workspaces: { places: async () => rail, open: ok, add: ok, recolor, onChanged: () => () => {} },+ cloudAdd, rail: { expand: ok, onSkin: () => () => {} },+ } });+ createRoot(document.getElementById("root")!).render(<ChromeRail />);+} else {+ const room = document.createElement("style");+ room.textContent = `html { box-sizing: border-box !important; padding-left: ${RAIL_WIDTH}px !important; --rail-beside: ${RAIL_WIDTH}px; }`;+ const railPage = document.createElement("iframe");+ railPage.setAttribute("data-rail-page", "");+ railPage.title = "The window's rail";+ railPage.src = `${location.pathname}?${new URLSearchParams([...params, ["railpage", "1"]])}`;+ const titleBar = windows && frameOff ? 31 : 0;+ railPage.style.cssText = `position:fixed;left:0;top:${titleBar}px;width:${RAIL_WIDTH}px;height:calc(100vh - ${titleBar}px);border:0;z-index:90;background:transparent;color-scheme:normal`;+ const besidePage = () => {+ if (chrome && !hidden) { document.head.append(room); document.body.append(railPage); } else { room.remove(); railPage.remove(); }+ };+ besidePage();+ const update = params.get("update");+ Object.assign(window, { ogb: {+ platform: windows ? "win32" : "darwin",+ app: { version: "0.1.130", ownPage: computer },+ getCapabilities: capabilities,+ onCapabilitiesChanged: (heard: (next: object) => void) => { capabilitiesHeard.add(heard); return () => { capabilitiesHeard.delete(heard); }; },+ onOpenAppSettings: (callback: (section?: string) => void) => { openSettings = callback; return () => {}; },+ applySkin: ok, setUnreadCount: () => {}, permStatus: async () => ({}),+ workspaces: {+ state: async () => (computer ? { local: true, name: "This computer" }+ : onTeam ? { local: false, name: teamName, origin: "https://acme.example", color: "purple", role: "Admin" }+ : { local: false, name: "My Cloud", origin: "https://omb-u-1.fly.dev", color: "blue" }),+ menu: ok, line: async () => null, open: ok, add: ok,+ places: async () => (hidden ? { ...rail, places: [] } : chrome ? { ...rail, places: [], beside: true as const } : rail),+ onChanged: (heard: () => void) => { placesHeard.add(heard); return () => { placesHeard.delete(heard); }; },+ look: async () => look,+ recolor,+ color: async (swatch: CloudSwatch) => { look = { ...look, swatch: COLOR[swatch] ? swatch : null, color: COLOR[swatch] }; return { outcome: "saved", look }; },},- color: async (swatch: CloudSwatch) => { look = { ...look, swatch: COLOR[swatch] ? swatch : null, color: COLOR[swatch] }; return { outcome: "saved", look }; },- },- cloudAdd: { state: async () => addView, start: async () => ({ outcome: "opened" }), reopen: async () => true, copyLink: async () => true, open: ok, interest: ok, sheet: ok },- rail: {- state: async () => strip(),- setHidden: async (next: boolean) => {- hidden = next;- besidePage();- for (const heard of placesHeard) heard();- for (const heard of stripHeard) heard(strip());- return strip();+ cloudAdd,+ windowFrame: {+ state: async () => ({ on: frameOn, restart: windows && framePending }),+ set: async (on: boolean) => { frameOn = on; for (const heard of capabilitiesHeard) heard(await capabilities()); return { on, restart: windows }; },},- onState: (heard: (state: { available: boolean; hidden: boolean }) => void) => { stripHeard.add(heard); return () => { stripHeard.delete(heard); }; },- },-} });+ ...(framePending ? { relaunch: async () => true } : {}),+ rail: {+ state: async () => strip(),+ setHidden: async (next: boolean) => {+ hidden = next;+ besidePage();+ for (const heard of placesHeard) heard();+ for (const heard of stripHeard) heard(strip());+ return strip();+ },+ onState: (heard: (state: { available: boolean; hidden: boolean }) => void) => { stripHeard.add(heard); return () => { stripHeard.delete(heard); }; },+ },+ ...(windows && !frameOff ? { windowControls: { minimize: async () => true, toggleMaximize: async () => true, close: async () => true, state: async () => ({ maximized: false }), onMaximizedChanged: () => () => {} } } : {}),+ ...(update ? { updater: { check: ok, install: ok, onState: (heard: (state: object) => void) => {+ heard(update === "downloaded" ? { status: "downloaded", version: "0.1.136" } : { status: "downloading", percent: 45 });+ return () => {};+ } } } : {}),+ } });-if (member) {- // The fixture server takes this browser for its owner; a team's member is signed in without the admin scope.+ // The fixture server takes this browser for its owner: a team's member is signed in without the admin scope, and a+ // team's Cloud answers its people here.const fixtureFetch = window.fetch.bind(window);- window.fetch = (input, init) => (new URL(input instanceof Request ? input.url : String(input), location.href).pathname === "/api/auth/session"- ? Promise.resolve(Response.json({ kind: "session", id: "member", label: "Bob's Mac", scopes: ["client"], expiresAt: Date.now() + 3_600_000 }))- : fixtureFetch(input, init));-}+ const answers: Record<string, () => Promise<Response>> = {+ ...(member ? { "/api/auth/session": async () => Response.json({ kind: "session", id: "member", label: "Bob's Mac", scopes: ["client"], expiresAt: Date.now() + 3_600_000 }) } : {}),+ ...(team ? {+ "/api/config": async () => Response.json({ ...await (await fixtureFetch("/api/config")).json(), team: { id: "team-acme", name: teamName } }),+ "/api/team/people": async () => Response.json({ people: [+ { email: "[email protected]", name: "Sam", role: "owner", you: true }, { email: "[email protected]", name: "Ada", role: "member" }, { email: "[email protected]", name: "Lee", role: "member" },+ ] }),+ } : {}),+ };+ window.fetch = (input, init) => {+ const answer = (init?.method ?? "GET") === "GET" ? answers[new URL(input instanceof Request ? input.url : String(input), location.href).pathname] : undefined;+ return answer ? answer() : fixtureFetch(input, init);+ };-createRoot(document.getElementById("root")!).render(<App />);+ createRoot(document.getElementById("root")!).render(<App />);-// The macOS window's traffic lights, drawn where the system draws them, so the picture shows what sits beside them.-const lights = document.createElement("div");-lights.setAttribute("aria-hidden", "true");-lights.style.cssText = "position:fixed;left:16px;top:17px;display:flex;gap:8px;z-index:100;pointer-events:none";-for (const color of ["#ff5f57", "#febc2e", "#28c840"]) {- const dot = document.createElement("span");- dot.style.cssText = `width:12px;height:12px;border-radius:50%;background:${color};display:block`;- lights.append(dot);-}-document.body.append(lights);+ // The macOS window's traffic lights, drawn where the system draws them (electron/window-chrome.mjs), so the picture+ // shows what sits beside them.+ if (!windows) {+ const lights = document.createElement("div");+ lights.setAttribute("aria-hidden", "true");+ lights.style.cssText = `position:fixed;left:${frameOn ? 12 : 16}px;top:${frameOn ? 7 : 16}px;display:flex;gap:9px;z-index:100;pointer-events:none`;+ for (const color of ["#ff5f57", "#febc2e", "#28c840"]) {+ const dot = document.createElement("span");+ dot.style.cssText = `width:14px;height:14px;border-radius:50%;background:${color};display:block`;+ lights.append(dot);+ }+ document.body.append(lights);+ } else if (frameOff) {+ // Windows' own title bar is drawn outside the page; this stands in for it, above the page.+ const bar = document.createElement("div");+ bar.setAttribute("aria-hidden", "true");+ const dark = ["midnight", "foundry", "graphite", "dusk", "halloween"].includes(params.get("skin") ?? "midnight");+ bar.style.cssText = `position:fixed;inset:0 0 auto 0;height:31px;display:flex;align-items:center;z-index:100;font:12px "Segoe UI",sans-serif;padding-left:12px;${dark ? "background:#202020;color:#fff" : "background:#f3f3f3;color:#000"}`;+ bar.innerHTML = `<span style="flex:1">MausBot</span>${["\u2013", "\u2610", "\u2715"].map((glyph) => `<span style="width:46px;text-align:center">${glyph}</span>`).join("")}`;+ document.body.append(bar);+ const below = document.createElement("style");+ below.textContent = "html { padding-top: 31px !important; box-sizing: border-box !important; } #root { height: calc(100vh - 31px) !important; }";+ document.head.append(below);+ }-const click = (selector: string) => new Promise<void>((resolve) => {- const tick = () => { const target = document.querySelector<HTMLElement>(selector); if (target) { target.click(); resolve(); } else setTimeout(tick, 100); };- tick();-});-const sheet = params.get("sheet");-if (sheet === "connect") void click('[data-rail-place="signed-in:s-render"]');-else if (sheet) void click("[data-rail-add]").then(() => (sheet === "server" ? click('[data-place-add-choice="server"]') : sheet === "add" ? undefined : click('[data-place-add-choice="cloud"]')))- .then(() => (sheet === "name" ? click("[data-plan-buy='pro']") : undefined));-const openedSettings = () => new Promise<void>((resolve) => { const tick = () => { if (openSettings) { openSettings(); resolve(); } else setTimeout(tick, 100); }; tick(); });-const settings = params.get("settings");-if (settings) {- // Simple mode's General page has the sidebar's rows and the rail's switch; Advanced keeps them in Appearance.- void openedSettings().then(() => (params.get("mode") === "simple" || settings === "general" ? undefined : click('[data-settings-section="appearance"]')))- .then(() => new Promise<void>((resolve) => setTimeout(resolve, 300)))- .then(() => {- if (settings === "general") return document.querySelector("[data-settings-block='appearance']")?.scrollIntoView({ block: "start" });- // The rail's switch closes the picture, with the sidebar's own rows above it.- if (settings === "strip") return document.querySelector("[data-rail-switch]")?.scrollIntoView({ block: "end" });- const shown = document.querySelector("[data-place-look], [data-place-picture]");- (shown?.closest("[data-sidebar-look]") ?? shown)?.scrollIntoView({ block: "center" });- });-}-if (params.has("more")) void click("[data-rail-more-button]");-const menu = params.get("menu");-if (menu) {- const opened = () => { const circle = document.querySelector(`[data-rail-place="${menu}"]`); if (circle) circle.dispatchEvent(new MouseEvent("contextmenu", { bubbles: true, cancelable: true })); else setTimeout(opened, 100); };- opened();+ const click = (selector: string) => new Promise<void>((resolve) => {+ const tick = () => { const target = document.querySelector<HTMLElement>(selector); if (target) { target.click(); resolve(); } else setTimeout(tick, 100); };+ tick();+ });+ const sheet = params.get("sheet");+ if (sheet === "connect") void click('[data-rail-place="signed-in:s-render"]');+ else if (sheet) void click("[data-rail-add]").then(() => (sheet === "server" ? click('[data-place-add-choice="server"]') : sheet === "add" ? undefined : click('[data-place-add-choice="cloud"]')))+ .then(() => (sheet === "name" ? click("[data-plan-buy='pro']") : undefined));+ const openedSettings = () => new Promise<void>((resolve) => { const tick = () => { if (openSettings) { openSettings(); resolve(); } else setTimeout(tick, 100); }; tick(); });+ const settings = params.get("settings");+ if (settings) {+ // Simple mode's General page has the sidebar's rows and the rail's switch; Advanced keeps them in Appearance.+ void openedSettings().then(() => (params.get("mode") === "simple" || settings === "general" ? undefined : click('[data-settings-section="appearance"]')))+ .then(() => new Promise<void>((resolve) => setTimeout(resolve, 300)))+ .then(() => {+ if (settings === "general") return document.querySelector("[data-settings-block='appearance']")?.scrollIntoView({ block: "start" });+ if (settings === "frame") return document.querySelector("[data-window-frame-switch]")?.scrollIntoView({ block: "center" });+ // The rail's switch closes the picture, with the sidebar's own rows above it.+ if (settings === "strip") return document.querySelector("[data-rail-switch]")?.scrollIntoView({ block: "end" });+ const shown = document.querySelector("[data-place-look], [data-place-picture]");+ (shown?.closest("[data-sidebar-look]") ?? shown)?.scrollIntoView({ block: "center" });+ });+ }+ if (params.has("more")) void click("[data-rail-more-button]");+ const menu = params.get("menu");+ if (menu) {+ const opened = () => { const circle = document.querySelector(`[data-rail-place="${menu}"]`); if (circle) circle.dispatchEvent(new MouseEvent("contextmenu", { bubbles: true, cancelable: true })); else setTimeout(opened, 100); };+ opened();+ }}diff --git a/scripts/testing/sidebar-attention-preview.tsx b/scripts/testing/sidebar-attention-preview.tsxindex 80f8a5a252..c8528aed1f 100644--- a/scripts/testing/sidebar-attention-preview.tsx+++ b/scripts/testing/sidebar-attention-preview.tsx@@ -9,7 +9,7 @@ import { applySkin, readSkin } from "../../src/lib/skins";import "../../src/styles.css";const density = new URLSearchParams(window.location.search).get("density");-if (density === "compact" || density === "comfortable" || density === "icons") {+if (density === "comfortable" || density === "icons") {saveSidebarDensity(density);}diff --git a/scripts/testing/sidebar-attention-ui-smoke.cjs b/scripts/testing/sidebar-attention-ui-smoke.cjsindex 540c37fb20..1437945046 100644--- a/scripts/testing/sidebar-attention-ui-smoke.cjs+++ b/scripts/testing/sidebar-attention-ui-smoke.cjs@@ -66,10 +66,9 @@ module.exports = async function verifySidebarAttentionUi({ root, url, api, until};try {const results = {};- // Compact must shrink the menu to w-60 (240px); comfortable keeps w-72- // (288px). Both sit 16px inside the sidebar: popover width + px-4 anchor- // equal the sidebar's own width plus the shared 16px inset.- for (const [density, sidebarPixels, menuWidth] of [["compact", 272, 240], ["comfortable", 320, 288]]) {+ // The open sidebar keeps the menu at w-72 (288px), 16px inside the sidebar:+ // popover width + px-4 anchor equal the sidebar's own width plus the 16px inset.+ for (const [density, sidebarPixels, menuWidth] of [["comfortable", 320, 288]]) {await window.loadURL(`${preview.previewUrl}?density=${density}`);await until(async () => await evaluate(sidebarAtWidth(sidebarPixels)) === true);const measured = await openAndMeasure();diff --git a/scripts/verify-cloud-rail.ts b/scripts/verify-cloud-rail.tsindex 1adb79ce16..c1284461fd 100644--- a/scripts/verify-cloud-rail.ts+++ b/scripts/verify-cloud-rail.ts@@ -5,13 +5,13 @@// (OMB_CDP_CHROME, else the installed Google Chrome) at twice the window's size (1280x800 unless --size says) and// exits; without, it prints the preview's address and waits. With --shots it also checks that the sidebar's button for// the window's rail lands on the same spot with the rail shown and hidden, and fails if it doesn't.-import { spawn } from "node:child_process";-import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";+import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";import { tmpdir } from "node:os";import { join, resolve } from "node:path";import { setTimeout as delay } from "node:timers/promises";import { launchVerificationServer, runControlOmb } from "./control-omb.ts";import { duskPng } from "./testing/dusk-banner.ts";+import { openHeadlessChrome } from "./testing/headless-chrome.ts";import { mountPreview, parkUntilSignal, type MountedPreview } from "./testing/preview-fixture.ts";const at = process.argv.indexOf("--shots");@@ -22,7 +22,6 @@ const sizeAt = process.argv.indexOf("--size");const size = /^(\d{3,4})x(\d{3,4})$/.exec(sizeAt === -1 ? "1280x800" : process.argv[sizeAt + 1] ?? "");if (!size) throw new Error("--size takes the window's width and height, such as 1338x870");const [WIDTH, HEIGHT] = [Number(size[1]), Number(size[2])];-const CHROME = process.env.OMB_CDP_CHROME ?? "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome";const RAIL_AND_BUTTON = "body:has([data-places-rail]) [data-rail-toggle]";/** Each view: its query, what must be on screen before the picture, and the window's height. Views that name the same* `button` spot must have the rail's button at the same place. */@@ -76,51 +75,20 @@ const VIEWS: Array<{ name: string; query: string; ready: string; height?: number];const SKINS = [{ id: "daylight", look: "light" }, { id: "midnight", look: "dark" }];-/** One page of a headless Chrome over the DevTools protocol: navigate, wait for a selector, photograph. */+/** The preview in a headless Chrome: navigate, wait for a selector, photograph. */async function openChrome(profile: string) {- const chrome = spawn(CHROME, ["--headless=new", "--disable-gpu", "--hide-scrollbars", "--no-first-run", "--no-default-browser-check", "--use-mock-keychain",- `--user-data-dir=${profile}`, "--remote-debugging-port=0", "about:blank"], { stdio: "ignore" });- let port = "";- for (let i = 0; i < 100 && !port; i++) {- await delay(100);- try { port = readFileSync(join(profile, "DevToolsActivePort"), "utf8").split("\n")[0]!.trim(); } catch {}- }- if (!port) { chrome.kill(); throw new Error("Chrome did not start"); }- const targets = await (await fetch(`http://127.0.0.1:${port}/json/list`)).json() as Array<{ type: string; webSocketDebuggerUrl: string }>;- const socket = new WebSocket(targets.find((target) => target.type === "page")!.webSocketDebuggerUrl);- await new Promise((done, fail) => { socket.onopen = done; socket.onerror = fail; });- let next = 0;- const waiting = new Map<number, { done: (value: any) => void; fail: (error: Error) => void }>();- socket.onmessage = (event) => {- const message = JSON.parse(String(event.data));- const call = waiting.get(message.id);- if (!call) return;- waiting.delete(message.id);- if (message.error) call.fail(new Error(message.error.message)); else call.done(message.result);- };- const send = (method: string, params: object = {}) => new Promise<any>((done, fail) => {- const id = ++next;- waiting.set(id, { done, fail });- socket.send(JSON.stringify({ id, method, params }));- });- const evaluate = async (expression: string) => (await send("Runtime.evaluate", { expression, returnByValue: true, awaitPromise: true })).result?.value;+ const page = await openHeadlessChrome(profile);return {/** Photographs the page once `ready` shows, and answers where the rail's button is (null without one). */async shoot(url: string, ready: string, file: string, height = HEIGHT): Promise<{ left: number; top: number } | null> {- await send("Emulation.setDeviceMetricsOverride", { width: WIDTH, height, deviceScaleFactor: 2, mobile: false });- await send("Page.navigate", { url });- const end = Date.now() + 60_000;- const condition = `Boolean(document.querySelector(${JSON.stringify(ready)}) && document.querySelector("[data-sidebar-bot-row], [data-sidebar-hero]"))`;- while (!(await evaluate(condition).catch(() => false))) {- if (Date.now() > end) throw new Error(`${url}: ${ready} never showed (${await evaluate("document.querySelector('main')?.textContent?.slice(0, 120) ?? ''")})`);- await delay(250);- }+ await page.send("Emulation.setDeviceMetricsOverride", { width: WIDTH, height, deviceScaleFactor: 2, mobile: false });+ await page.send("Page.navigate", { url });+ await page.until(`document.querySelector(${JSON.stringify(ready)}) && document.querySelector("[data-sidebar-bot-row], [data-sidebar-hero]")`);await delay(900);- const { data } = await send("Page.captureScreenshot", { format: "png" });- writeFileSync(file, Buffer.from(data, "base64"));- return await evaluate("(() => { const box = document.querySelector('[data-rail-toggle]')?.getBoundingClientRect(); return box ? { left: box.left, top: box.top } : null; })()");+ writeFileSync(file, await page.capture());+ return await page.evaluate("(() => { const box = document.querySelector('[data-rail-toggle]')?.getBoundingClientRect(); return box ? { left: box.left, top: box.top } : null; })()");},- close() { socket.close(); chrome.kill(); },+ close: page.close,};}diff --git a/scripts/verify-window-frame.ts b/scripts/verify-window-frame.tsnew file mode 100644index 0000000000..d7460a7731--- /dev/null+++ b/scripts/verify-window-frame.ts@@ -0,0 +1,229 @@+// The window's own frame in the real app, as the desktop window draws it on macOS and Windows: the top bar (the+// traffic lights or the caption buttons, the rail's button, the place on screen in its middle, an update, Settings),+// the rail of places beside it, the sidebar on the frame's colour beside the app's card, the sidebar's edge dragged to+// its avatars and back, the same window with the frame turned off, and the rail's tiles up close. Against a disposable fake-engine server, with the desktop bridge+// of scripts/testing/rail-preview.tsx (the window's own rail drawn by its own page, in a frame).+// Run: node --experimental-strip-types scripts/verify-window-frame.ts --shots <dir> [--only <view,view>] [--skins all]+// Each view is photographed in Daylight and Midnight (every skin with --skins all) at 1280x800, at twice that size,+// and the views of the bar also as a strip of the bar alone. `tiles` draws each state of a rail tile with every pixel+// as a square, at 1x and 2x; `colours` puts the frame's colour today, the colour derived from the app's and the app's+// own side by side; `skins` shows the window's corner in every skin, and `corners` the card's three round corners in+// every skin, three times their size.+import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";+import { tmpdir } from "node:os";+import { join, resolve } from "node:path";+import { pathToFileURL } from "node:url";+import { setTimeout as delay } from "node:timers/promises";+import { launchVerificationServer, runControlOmb } from "./control-omb.ts";+import { openHeadlessChrome, type HeadlessPage } from "./testing/headless-chrome.ts";+import { zoomedCrop } from "./testing/png.ts";+import { mountPreview, parkUntilSignal, type MountedPreview } from "./testing/preview-fixture.ts";++const argument = (name: string) => { const at = process.argv.indexOf(name); return at === -1 ? null : process.argv[at + 1] ?? ""; };+const shots = argument("--shots") === null ? null : resolve(argument("--shots")!);+const only = argument("--only") === null ? null : new Set(argument("--only")!.split(",").filter(Boolean));+const WIDTH = 1280, HEIGHT = 800;+const ALL_SKINS = ["daylight", "midnight", "atelier", "foundry", "lagoon", "graphite", "linen", "dusk", "meadow", "pop", "halloween"];+const SKINS = argument("--skins") === "all" ? ALL_SKINS : ["daylight", "midnight"];+const LOOK: Record<string, string> = { daylight: "light", midnight: "dark" };+const BAR = "[data-window-frame-bar]";+const RAIL_PAGE = "document.querySelector('iframe[data-rail-page]')?.contentDocument";+const RAIL_READY = `${RAIL_PAGE}?.querySelector('[data-rail-place]')`;++type Step = (page: HeadlessPage) => Promise<void>;+/** Each view: its query, what must be on screen before the picture, the window's width, and what to do first. */+const VIEWS: Array<{ name: string; query: string; ready: string; width?: number; bar?: true; act?: Step }> = [+ { name: "frame", query: "chrome=1", ready: RAIL_READY, bar: true },+ { name: "frame-simple", query: "chrome=1&mode=simple", ready: RAIL_READY, bar: true },+ { name: "frame-windows", query: "chrome=1&platform=win32", ready: RAIL_READY, bar: true },+ { name: "frame-windows-simple", query: "chrome=1&platform=win32&mode=simple", ready: RAIL_READY, bar: true },+ { name: "frame-update", query: "chrome=1&update=downloaded", ready: `${RAIL_READY} && document.querySelector('${BAR} [data-update-indicator]')`, bar: true },+ { name: "frame-downloading", query: "chrome=1&update=downloading", ready: `${RAIL_READY} && document.querySelector('${BAR} [data-update-indicator]')`, bar: true },+ { name: "frame-team", query: "chrome=1&team=1", ready: RAIL_READY, bar: true },+ { name: "frame-team-windows", query: "chrome=1&team=1&platform=win32&update=downloaded", ready: `${RAIL_READY} && document.querySelector('${BAR} [data-update-indicator]')`, bar: true },+ { name: "frame-computer", query: "chrome=1&place=computer&rail=1", ready: RAIL_READY, bar: true },+ { name: "frame-long-name", query: "chrome=1&team=1&teamname=Northwind%20Analytics%20Research%20and%20Planning%20Group", ready: RAIL_READY, width: 900, bar: true },+ { name: "frame-icons", query: "chrome=1&density=icons", ready: RAIL_READY },+ { name: "frame-icons-simple", query: "chrome=1&density=icons&mode=simple", ready: RAIL_READY },+ // The sidebar's edge, dragged: narrower (the edge lit), then past the point where it becomes the column of avatars.+ { name: "frame-drag", query: "chrome=1", ready: `${RAIL_READY} && document.querySelector('[data-sidebar-resize]')`, act: (page) => dragEdge(page, 250) },+ { name: "frame-drag-simple", query: "chrome=1&mode=simple", ready: `${RAIL_READY} && document.querySelector('[data-sidebar-resize]')`, act: (page) => dragEdge(page, 250) },+ { name: "frame-drag-avatars", query: "chrome=1", ready: `${RAIL_READY} && document.querySelector('[data-sidebar-resize]')`, act: (page) => dragEdge(page, 110) },+ { name: "frame-drag-out", query: "chrome=1&density=icons", ready: `${RAIL_READY} && document.querySelector('[data-sidebar-resize]')`, act: (page) => dragEdge(page, 170, true) },+ { name: "frame-edge-hover", query: "chrome=1&density=icons&mode=simple", ready: `${RAIL_READY} && document.querySelector('[data-sidebar-resize]')`, act: hoverEdge },+ // The frame turned off: macOS's window as it was before the frame, and Windows' own title bar once the app started again.+ { name: "frame-off", query: "chrome=1&frame=off", ready: RAIL_READY },+ { name: "frame-off-simple", query: "chrome=1&frame=off&mode=simple", ready: RAIL_READY },+ { name: "frame-off-icons", query: "chrome=1&frame=off&density=icons", ready: RAIL_READY },+ { name: "frame-off-windows", query: "chrome=1&frame=off&platform=win32", ready: RAIL_READY },+ { name: "frame-setting", query: "chrome=1&settings=frame", ready: `${RAIL_READY} && document.querySelector('[data-window-frame-switch]')` },+ { name: "frame-setting-windows", query: "chrome=1&settings=frame&platform=win32&framepending=1", ready: `${RAIL_READY} && document.querySelector('[data-window-frame-restart]')` },+];++/** Where an element of the window's rail page is, in the window. */+const railRect = (page: HeadlessPage, selector: string) =>+ page.evaluate(`(() => { const box = ${RAIL_PAGE}.querySelector(${JSON.stringify(selector)}).getBoundingClientRect(); return { x: box.x, y: box.y, width: box.width, height: box.height }; })()`) as Promise<{ x: number; y: number; width: number; height: number }>;+const rectOf = (page: HeadlessPage, selector: string) =>+ page.evaluate(`(() => { const box = document.querySelector(${JSON.stringify(selector)}).getBoundingClientRect(); return { x: box.x, y: box.y, width: box.width, height: box.height }; })()`) as Promise<{ x: number; y: number; width: number; height: number }>;+const mouse = (page: HeadlessPage, type: "mouseMoved" | "mousePressed" | "mouseReleased", x: number, y: number, pressed = false) =>+ page.send("Input.dispatchMouseEvent", { type, x, y, button: type === "mouseMoved" && !pressed ? "none" : "left", buttons: pressed ? 1 : 0, clickCount: type === "mouseMoved" ? 0 : 1 });++/** Presses on the sidebar's edge and drags it until the sidebar would be `width` wide; still pressed unless `release`. */+async function dragEdge(page: HeadlessPage, width: number, release = false) {+ const edge = await rectOf(page, "[data-sidebar-resize]"), sidebar = await rectOf(page, "[data-sidebar]");+ const y = sidebar.y + sidebar.height / 2, from = edge.x + edge.width / 2;+ await mouse(page, "mouseMoved", from, y);+ await mouse(page, "mousePressed", from, y, true);+ const to = sidebar.x + width;+ for (let step = 1; step <= 12; step++) await mouse(page, "mouseMoved", from + ((to - from) * step) / 12, y, true);+ if (release) await mouse(page, "mouseReleased", to, y);+ await delay(400);+}++async function hoverEdge(page: HeadlessPage) {+ const edge = await rectOf(page, "[data-sidebar-resize]");+ await mouse(page, "mouseMoved", edge.x + edge.width / 2, edge.y + edge.height / 2);+ await delay(300);+}++async function open(page: HeadlessPage, url: string, ready: string, width = WIDTH, scale = 2) {+ await page.send("Emulation.setDeviceMetricsOverride", { width, height: HEIGHT, deviceScaleFactor: scale, mobile: false });+ await mouse(page, "mouseMoved", width - 4, HEIGHT - 4);+ await page.send("Page.navigate", { url });+ await page.until(`(${ready}) && document.querySelector("[data-sidebar-bot-row], [data-sidebar-hero]")`);+ await delay(900);+}++type Picture = { label: string; png: Buffer; width: number };+/** A page of labelled pictures, photographed at twice its size: `rows` of pictures side by side, each `width` CSS pixels+ * wide (a picture taken at twice the window's size shows at half its pixels, so pixel for pixel). */+async function sheet(page: HeadlessPage, title: string, rows: Array<{ label: string; pictures: Picture[] }>, file: string) {+ const cell = ({ label, png, width }: Picture) => `<figure><img width="${width}" src="data:image/png;base64,${png.toString("base64")}"><figcaption>${label}</figcaption></figure>`;+ const html = `<!doctype html><html><head><meta charset="utf-8"><style>+ body { margin: 0; padding: 24px; background: #8a8f98; font: 13px/1.4 -apple-system, "Segoe UI", sans-serif; color: #fff; }+ h1 { font-size: 15px; margin: 0 0 12px; } h2 { font-size: 13px; margin: 18px 0 8px; font-weight: 600; }+ .row { display: flex; gap: 16px; align-items: flex-start; } figure { margin: 0; flex: none; } figcaption { margin-top: 6px; }+ img { display: block; image-rendering: pixelated; }+ </style></head><body><div id="sheet" style="display:inline-block">${title ? `<h1>${title}</h1>` : ""}${rows.map((row) => `${row.label ? `<h2>${row.label}</h2>` : ""}<div class="row">${row.pictures.map(cell).join("")}</div>`).join("")}</div></body></html>`;+ // A file, not a data: URL, which Chrome caps far below a page of pictures.+ const sheetFile = `${file}.html`;+ writeFileSync(sheetFile, html);+ await page.send("Emulation.setDeviceMetricsOverride", { width: 3000, height: 2000, deviceScaleFactor: 2, mobile: false });+ await page.send("Page.navigate", { url: pathToFileURL(sheetFile).href });+ await page.until("document.getElementById('sheet') && [...document.images].every((image) => image.complete)");+ const box = await rectOf(page, "#sheet");+ writeFileSync(file, await page.capture({ x: 0, y: 0, width: Math.ceil(box.x + box.width + 24), height: Math.ceil(box.y + box.height + 24) }));+ rmSync(sheetFile, { force: true });+}++const TILES: Array<{ state: string; id: string; hover?: true }> = [+ { state: "rest", id: "a" }, { state: "rest, no colour", id: "mini" }, { state: "hover", id: "a", hover: true },+ { state: "selected", id: "home" }, { state: "attention", id: "b" }, { state: "setting up", id: "pending:c" },+];++/** Every state of a rail tile, each pixel drawn as a square: at 1x eight times, at 2x four times. */+async function tiles(page: HeadlessPage, base: string, skin: string, file: string) {+ const rows: Array<{ label: string; pictures: Picture[] }> = [];+ for (const scale of [1, 2]) {+ await open(page, `${base}?skin=${skin}&chrome=1`, RAIL_READY, WIDTH, scale);+ const pictures: Picture[] = [];+ for (const tile of TILES) {+ const box = await railRect(page, `[data-rail-place="${tile.id}"]`);+ await mouse(page, "mouseMoved", tile.hover ? box.x + box.width / 2 : WIDTH - 4, tile.hover ? box.y + box.height / 2 : HEIGHT - 4);+ await delay(350);+ const clip = { x: 0, y: Math.round(box.y) - 6, width: 36, height: 36 };+ pictures.push({ label: tile.state, png: zoomedCrop(await page.capture(clip), { x: 0, y: 0, width: clip.width * scale, height: clip.height * scale }, 8 / scale), width: 144 });+ }+ rows.push({ label: `${scale}x (${scale === 1 ? "100%" : "200%"})`, pictures });+ }+ await sheet(page, `Rail tiles, ${skin}`, rows, file);+}++const CORNER = { x: 0, y: 0, width: 560, height: 300 };+type Box = { x: number; y: number; width: number; height: number };+/** The card's round corners, each with the frame round it. */+const cardCorners = (card: Box): Array<[string, Box]> => [+ ["top left", { x: card.x - 24, y: card.y - 16, width: 96, height: 64 }],+ ["top right", { x: card.x + card.width - 72, y: card.y - 16, width: 72, height: 64 }],+ ["bottom left", { x: card.x - 24, y: card.y + card.height - 48, width: 96, height: 48 }],+];+const FRAME_COLOURS: Array<[string, string]> = [["today's frame grey", "&framecolor=today"], ["derived from the app's colour", ""], ["the app's own colour", "&framecolor=app"]];++const fixture = await launchVerificationServer();+let ui: MountedPreview | undefined;+try {+ for (const name of ["Chief of Staff", "Research", "Inbox"]) await runControlOmb(["new-bot", "--name", name, "--url", fixture.info.url]);+ ui = await mountPreview(fixture, { entry: "/scripts/testing/rail-preview.tsx", route: "/__window-frame.html", title: "Isolated window frame", logLevel: "warn" });+ if (!shots) {+ console.log(JSON.stringify({ ...fixture.info, previewUrl: ui.previewUrl }, null, 2));+ await parkUntilSignal();+ } else {+ mkdirSync(shots, { recursive: true });+ const profile = mkdtempSync(join(tmpdir(), "omb-frame-chrome-"));+ const page = await openHeadlessChrome(profile);+ const wanted = (name: string) => !only || only.has(name);+ try {+ for (const view of VIEWS.filter((entry) => wanted(entry.name))) for (const skin of SKINS) {+ await open(page, `${ui.previewUrl}?skin=${skin}&${view.query}`, view.ready, view.width);+ await view.act?.(page);+ const name = `${view.name}-${LOOK[skin] ?? skin}`;+ writeFileSync(join(shots, `${name}.png`), await page.capture());+ if (view.bar) writeFileSync(join(shots, `${name}-bar.png`), await page.capture({ x: 0, y: 0, width: view.width ?? WIDTH, height: 40 }));+ await mouse(page, "mouseReleased", (view.width ?? WIDTH) - 4, HEIGHT - 4);+ console.log(join(shots, `${name}.png`));+ }+ if (wanted("tiles")) for (const skin of SKINS) {+ const file = join(shots, `tiles-${LOOK[skin] ?? skin}.png`);+ await tiles(page, ui.previewUrl, skin, file);+ console.log(file);+ }+ if (wanted("colours")) for (const skin of SKINS) {+ const pictures: Picture[] = [];+ for (const [label, query] of FRAME_COLOURS) {+ await open(page, `${ui.previewUrl}?skin=${skin}&chrome=1${query}`, RAIL_READY);+ pictures.push({ label, png: await page.capture(CORNER), width: CORNER.width });+ }+ const file = join(shots, `colours-${LOOK[skin] ?? skin}.png`);+ await sheet(page, `The frame's colour, ${skin}`, [{ label: "Advanced", pictures }], file);+ console.log(file);+ }+ if (wanted("skins")) {+ const rows: Array<{ label: string; pictures: Picture[] }> = [];+ for (const mode of ["", "&mode=simple"]) {+ const pictures: Picture[] = [];+ for (const skin of ALL_SKINS) {+ await open(page, `${ui.previewUrl}?skin=${skin}&chrome=1${mode}`, RAIL_READY);+ pictures.push({ label: skin, png: await page.capture({ x: 0, y: 0, width: 520, height: 300 }), width: 520 });+ }+ for (let at = 0; at < pictures.length; at += 4) rows.push({ label: `${mode ? "Simple" : "Advanced"} ${at / 4 + 1}`, pictures: pictures.slice(at, at + 4) });+ }+ const file = join(shots, "skins.png");+ await sheet(page, "The frame in every skin", rows, file);+ console.log(file);+ }+ if (wanted("corners")) {+ const rows: Array<{ label: string; pictures: Picture[] }> = [];+ for (let at = 0; at < ALL_SKINS.length; at += 2) {+ const pictures: Picture[] = [];+ for (const skin of ALL_SKINS.slice(at, at + 2)) {+ await open(page, `${ui.previewUrl}?skin=${skin}&chrome=1`, RAIL_READY);+ for (const [corner, clip] of cardCorners(await rectOf(page, "[data-window-card]"))) {+ pictures.push({ label: `${skin}, ${corner}`, png: await page.capture(clip), width: clip.width * 3 });+ }+ }+ rows.push({ label: "", pictures });+ }+ const file = join(shots, "corners.png");+ await sheet(page, "The card's round corners in every skin, three times their size", rows, file);+ console.log(file);+ }+ } finally {+ page.close();+ await delay(500);+ rmSync(profile, { recursive: true, force: true });+ }+ }+} finally {+ await ui?.close();+ await fixture.close();+}diff --git a/src/App.tsx b/src/App.tsxindex 6e965e2e15..8d90f392da 100644--- a/src/App.tsx+++ b/src/App.tsx@@ -304,20 +304,19 @@ function Shell({ viewer }: { viewer: WelcomeViewer | null }) {});}, [dispatch]);- const framed = windowFramed(capabilities.windowChrome);+ const framed = windowFramed(capabilities);+ const strips = <>+ <UpdateBanner sidebarIndicator={framed || (!calendarFocus && (sidebarInline || drawerOpen))} />+ <CloudAsleepStrip />+ <LiveConnectionStrip connected={state.connected} hydrated={state.hydrated === true} />+ <CloudSendStrip cloudHome={state.config?.cloudHome === true} />+ <HomeLine />+ <AppNotices quiet={paletteOpen || drawerOpen || Boolean(localVmWorkspaceBotId)} viewer={viewer} />+ </>;return (<div className={cn("flex h-full flex-col", framed && "bg-frame")}><WindowFrameBar />- {/* A framed window shows the app in a rounded card under its top bar, beside the window's rail: the corners that- meet the frame are round, and the card runs to the window's right and bottom edges. */}- <div data-window-card={framed ? "" : undefined}- className={framed ? "relative flex min-h-0 flex-1 flex-col overflow-hidden rounded-t-[12px] rounded-bl-[12px] bg-app ring-1 ring-ink/[0.06]" : "contents"}>- <UpdateBanner sidebarIndicator={framed || (!calendarFocus && (sidebarInline || drawerOpen))} />- <CloudAsleepStrip />- <LiveConnectionStrip connected={state.connected} hydrated={state.hydrated === true} />- <CloudSendStrip cloudHome={state.config?.cloudHome === true} />- <HomeLine />- <AppNotices quiet={paletteOpen || drawerOpen || Boolean(localVmWorkspaceBotId)} viewer={viewer} />+ {!framed && strips}<div className="relative flex min-h-0 flex-1">{!calendarFocus && <buttontype="button"@@ -346,6 +345,12 @@ function Shell({ viewer }: { viewer: WelcomeViewer | null }) {menuButtonRef.current?.focus();}}/>}+ {/* A framed window shows the chat or page in a rounded card, on the frame beside the sidebar: its top corners and+ its bottom-left corner are round, and it runs to the window's right and bottom edges. */}+ <div data-window-card={framed ? "" : undefined}+ className={framed ? "relative flex min-w-0 flex-1 flex-col overflow-hidden rounded-t-[12px] rounded-bl-[12px] bg-app ring-1 ring-ink/[0.06]" : "contents"}>+ {framed && strips}+ <div className={framed ? "relative flex min-h-0 flex-1" : "contents"}>{state.activeView === "team-map" ? (<TeamMapPage />) : state.activeView === "files" ? (@@ -413,6 +418,8 @@ function Shell({ viewer }: { viewer: WelcomeViewer | null }) {{inboxShown && <InboxPanel />}{notificationFeed && !calendarFocus && state.notificationsOpen && <NotificationsPanel />}{notificationFeed && !calendarFocus && <NotificationRail />}+ </div>+ </div>{state.appSettingsOpen && <SettingsModal />}<CloudAddDialog /><CloudHowTo />@@ -435,7 +442,6 @@ function Shell({ viewer }: { viewer: WelcomeViewer | null }) {className="pointer-events-none absolute left-3 top-3 size-[30px] md:hidden"/>}</div>- </div>{/* Last child on purpose: Blink resolves -webkit-app-region in DOM order, so no-drag buttons must follow every drag region. */}<WindowCaptionButtonsvisible={capabilities.windowChrome === "win-caption" && Boolean(window.ogb?.windowControls)}diff --git a/src/components/AppSettingsRows.tsx b/src/components/AppSettingsRows.tsxindex f68790d6c5..18766e0910 100644--- a/src/components/AppSettingsRows.tsx+++ b/src/components/AppSettingsRows.tsx@@ -1,7 +1,7 @@import { useState } from "react";import { api, useStore, type ConfigStatus } from "@/state/store";import { builtInBrowserEnabled, showToolCallsEnabled, skillAuthoringEnabled } from "@/lib/feature-flags";-import { localeChoices, type LocaleKey } from "@/locales";+import { localeChoices } from "@/locales";import { activeLocale, t } from "@/lib/i18n";import { withTourReset } from "@/lib/guided-tour";import { completionPatch } from "@/lib/onboarding";@@ -16,7 +16,7 @@ import { EFFORT_LEVELS, isEffortLevel } from "../../shared/wire";import { setColorUserBubbles, useColorUserBubbles } from "@/lib/user-bubble-preference";import { setShowThreads, useShowThreadsChoice } from "@/lib/thread-preferences";import { setAdvancedMode, useAdvancedMode } from "@/lib/interface-mode";-import { parseSidebarDensity, setPinnedCircles, setSidebarDensity, setUniversalPins, SIDEBAR_DENSITIES, usePinnedCircles, useSidebarDensity, useUniversalPins, type SidebarDensity } from "@/lib/sidebar-preferences";+import { setPinnedCircles, setUniversalPins, usePinnedCircles, useUniversalPins } from "@/lib/sidebar-preferences";import { setShowRunCard, useShowRunCard } from "@/lib/run-card-preferences";import { parseSendKey, SEND_KEYS, sendKeyLabel, setSendKey, useSendKey } from "@/lib/send-key";import { effectiveLanguage, setLanguageChoice, useLanguageChoice } from "@/lib/language-preference";@@ -273,29 +273,6 @@ export function PinnedCirclesRow() {);}-const SIDEBAR_DENSITY_LABEL_KEYS: Record<SidebarDensity, LocaleKey> = {- comfortable: "sidebar.density.comfortable",- compact: "sidebar.density.compact",- icons: "sidebar.density.iconsOnly",-};--export function SidebarDensityRow() {- const density = useSidebarDensity();- return (- <SettingRow title={t("sidebar.density.title")} subtitle={t("settings.sidebarDensity.subtitle")}>- <Select size="sm" className="w-full max-w-[240px]"- value={density}- aria-label={t("sidebar.density.chooseAria")}- onChange={(event) => setSidebarDensity(parseSidebarDensity(event.target.value))}- >- {SIDEBAR_DENSITIES.map((option) => (- <option key={option} value={option}>{t(SIDEBAR_DENSITY_LABEL_KEYS[option])}</option>- ))}- </Select>- </SettingRow>- );-}-export function RunCardRow() {const enabled = useShowRunCard();return (diff --git a/src/components/BotModelBadge.test.ts b/src/components/BotModelBadge.test.tsindex b5841cd1e2..9a05c0c7e5 100644--- a/src/components/BotModelBadge.test.ts+++ b/src/components/BotModelBadge.test.ts@@ -64,7 +64,7 @@ describe("BotModelBadge", () => {describe("sidebar bot row", () => {const botRow = (BotListItem as MemoExoticComponent<(props: BotRowProps) => ReactNode>).type;const render = (candidate: Bot, density: SidebarDensity) => renderToStaticMarkup(createElement(botRow,- botRowProps({ ...initialState, ...fixture.state }, vi.fn(), candidate, { density, quiet: density === "compact", query: "", onMenu: vi.fn() })));+ botRowProps({ ...initialState, ...fixture.state }, vi.fn(), candidate, { density, query: "", onMenu: vi.fn() })));const badges = (markup: string) => markup.match(/<span data-testid="model-badge"[^>]*>/g) ?? [];beforeEach(() => {@@ -78,7 +78,7 @@ describe("sidebar bot row", () => {// Every density puts the badge on the avatar's bottom-left: the status dots own the bottom-right, and a mark at the// row's end sat under the hover actions (+, new folder, …) without lining up with them.- it.each<[SidebarDensity, string]>([["comfortable", "absolute -bottom-0.5 -left-0.5"], ["compact", "absolute -bottom-0.5 -left-0.5"], ["icons", "absolute -bottom-0.5 -left-0.5"]])(+ it.each<[SidebarDensity, string]>([["comfortable", "absolute -bottom-0.5 -left-0.5"], ["icons", "absolute -bottom-0.5 -left-0.5"]])("shows the model once in a %s row", (density, placement) => {const found = badges(render(bot("claude", "opus"), density));expect(found).toHaveLength(1);@@ -87,7 +87,7 @@ describe("sidebar bot row", () => {});// Simple mode shows the mark too (the owner's ask, 2026-10-22): a person sees which provider each bot runs on at a glance.- it.each<SidebarDensity>(["comfortable", "compact", "icons"])("shows the model once in a Simple mode %s row", (density) => {+ it.each<SidebarDensity>(["comfortable", "icons"])("shows the model once in a Simple mode %s row", (density) => {fixture.advanced = false;const found = badges(render(bot("claude", "opus"), density));expect(found).toHaveLength(1);diff --git a/src/components/BotThreads.test.ts b/src/components/BotThreads.test.tsindex 7226c410a5..75ddc37b3a 100644--- a/src/components/BotThreads.test.ts+++ b/src/components/BotThreads.test.ts@@ -26,7 +26,7 @@ const bot: Bot = {};const threadList = (candidate: Bot, query = "") => createElement(BotThreadList, {- ...botRowProps(initialState, vi.fn(), candidate, { density: "comfortable", quiet: false, query, onMenu: vi.fn() }),+ ...botRowProps(initialState, vi.fn(), candidate, { density: "comfortable", query, onMenu: vi.fn() }),selected: true,});diff --git a/src/components/DesktopCapabilities.tsx b/src/components/DesktopCapabilities.tsxindex 398b86c376..470c92a1a0 100644--- a/src/components/DesktopCapabilities.tsx+++ b/src/components/DesktopCapabilities.tsx@@ -59,16 +59,22 @@ const NO_DRAG_STYLE = { WebkitAppRegion: "no-drag" } as CSSProperties;export type WindowDragProps = { "data-window-drag"?: ""; style?: CSSProperties };+/** A window with no title bar of its own, which the page can frame: the person may turn that frame off. */+export function windowFrameable(capabilities: Pick<DesktopCapabilities, "windowChrome"> | undefined): boolean {+ return capabilities?.windowChrome === "mac-inset" || capabilities?.windowChrome === "win-caption";+}+/** A window that draws its own frame: the top bar holding the traffic lights or the Windows caption buttons- * (WindowFrameBar), the rail of places, and the app in a rounded card beside them. Nothing under the bar makes room- * for the window's buttons. */-export function windowFramed(windowChrome: DesktopCapabilities["windowChrome"] | undefined): boolean {- return windowChrome === "mac-inset" || windowChrome === "win-caption";+ * (WindowFrameBar), the rail of places and the sidebar on the frame's colour, and the chat or page in a rounded card+ * beside them. Nothing under the bar makes room for the window's buttons. Off once the person turned the frame off. */+export function windowFramed(capabilities: Pick<DesktopCapabilities, "windowChrome" | "windowFrame"> | undefined): boolean {+ return windowFrameable(capabilities) && capabilities?.windowFrame !== false;}+/** A window with no title bar of its own: the page's headers drag it, framed or not. */export function captionChrome(windowChrome: DesktopCapabilities["windowChrome"] | undefined) {const windowsCaption = windowChrome === "win-caption";- const draggable = windowFramed(windowChrome);+ const draggable = windowsCaption || windowChrome === "mac-inset";const dragProps: WindowDragProps = draggable ? { "data-window-drag": "", style: DRAG_STYLE } : {};return {windowsCaption,diff --git a/src/components/PlacesRail.frame.test.ts b/src/components/PlacesRail.frame.test.tsindex c0028aa682..0ad3e93d80 100644--- a/src/components/PlacesRail.frame.test.ts+++ b/src/components/PlacesRail.frame.test.ts@@ -4,11 +4,11 @@ import { createRoot, type Root } from "react-dom/client";import { afterEach, beforeEach, expect, it, vi } from "vitest";import type { RailState } from "../../electron/cloud-rail.mjs";-const fixture = vi.hoisted(() => ({ windowChrome: "mac-inset" as "mac-inset" | "win-caption" }));+const fixture = vi.hoisted(() => ({ windowChrome: "mac-inset" as "mac-inset" | "win-caption", windowFrame: undefined as boolean | undefined }));vi.mock("@/lib/analytics", () => ({ track: vi.fn() }));vi.mock("./DesktopCapabilities", async (importOriginal) => ({...await importOriginal<typeof import("./DesktopCapabilities")>(),- useDesktopCapabilities: () => ({ capabilities: { windowChrome: fixture.windowChrome }, ready: true }),+ useDesktopCapabilities: () => ({ capabilities: { windowChrome: fixture.windowChrome, windowFrame: fixture.windowFrame }, ready: true }),}));import { setLocale } from "@/lib/i18n";@@ -22,6 +22,8 @@ const rail: RailState = { places: [{ id: "home", name: "My Cloud", color: null,beforeEach(() => {setLocale("en");+ fixture.windowChrome = "mac-inset";+ fixture.windowFrame = undefined;Object.assign(window, { ogb: {workspaces: { places: async () => rail, onChanged: () => () => {} },rail: { expand: async () => {}, onSkin: () => () => {}, onFramed: (callback: (framed: boolean) => void) => { tell = callback; return () => {}; } },@@ -46,6 +48,15 @@ it("starts its places under the frame's top bar while the page beside draws it,expect(above()).toContain("h-[37px]");});+it("with the frame turned off, stands beside the sidebar as it did before the frame: under macOS's traffic lights, in the sidebar's colour", async () => {+ fixture.windowFrame = false;+ await mount();+ expect(above()).toContain("h-[52px]");+ const nav = host.querySelector("[data-places-rail]")!.className.split(" ");+ expect(nav).toEqual(expect.arrayContaining(["bg-panel", "border-r"]));+ expect(nav).not.toContain("bg-frame");+});+it("on Windows beside an older page, keeps that release's small gap: there are no traffic lights", async () => {fixture.windowChrome = "win-caption";await mount();diff --git a/src/components/PlacesRail.test.ts b/src/components/PlacesRail.test.tsindex 41767e56cb..291afa25c8 100644--- a/src/components/PlacesRail.test.ts+++ b/src/components/PlacesRail.test.ts@@ -52,7 +52,7 @@ it("a circle per place, with its initials on its colour; the place on screen isconst circles = [...host.querySelectorAll("[data-rail-place]")];expect(circles.map((circle) => circle.textContent)).toEqual(["MC", "CA", "A", "CB", "CC", "O"]);expect(host.querySelector('[data-rail-place="home"]')?.getAttribute("aria-current")).toBe("page");- expect(host.querySelector('[data-rail-place="home"] span')?.getAttribute("style")).toContain("var(--identity-purple)");+ expect(host.querySelector('[data-rail-place="home"] span[style]')?.getAttribute("style")).toContain("var(--identity-purple)");expect(host.querySelector('[data-rail-place="acme"] [data-rail-dot]')).toBeTruthy();expect(host.querySelector('[data-rail-place="pending:c-b"] [data-rail-ring]')?.getAttribute("data-rail-ring")).toBe("waiting");expect(host.querySelector('[data-rail-place="c"] [data-rail-ring]')?.getAttribute("data-rail-ring")).toBe("40");@@ -62,6 +62,20 @@ it("a circle per place, with its initials on its colour; the place on screen isexpect(host.querySelector("[data-rail-add]")?.getAttribute("aria-label")).toBe("Add a Cloud or your own server");});+it("marks the place on screen with a pill on the rail's edge, a short one on hover for a place that opens, and no ring round a tile", async () => {+ await mount(createElement(PlacesRail, { chrome: true }));+ const pill = (id: string) => host.querySelector(`[data-rail-place="${id}"] [data-rail-pill]`);+ expect(pill("home")?.getAttribute("data-rail-pill")).toBe("page");+ expect(pill("home")?.getAttribute("class")).toEqual(expect.stringContaining("h-4"));+ expect(pill("home")?.getAttribute("class"), "on the rail's left edge, outside the tile").toEqual(expect.stringContaining("-left-1.5"));+ expect(pill("a")?.getAttribute("data-rail-pill")).toBe("hover");+ expect(pill("a")?.getAttribute("class")).toEqual(expect.stringContaining("group-hover/tile:opacity-100"));+ expect(pill("pending:c-b"), "nothing to open yet: no pill").toBeNull();+ for (const tile of host.querySelectorAll("[data-rail-place]")) expect(tile.className, tile.getAttribute("data-rail-place")!).not.toMatch(/\bring-/);+ expect(host.querySelector('[data-rail-place="c"] [data-rail-ring] path')?.getAttribute("stroke-width"), "a whole-pixel line").toBe("2");+ expect(host.querySelector("[data-places-rail] ul")?.className, "as wide as the rail, so a list that scrolls cuts nothing off round a tile").toEqual(expect.stringContaining("w-full"));+});+it("a click opens the place through main by its id; the one on screen and one not ready yet open nothing", async () => {await mount(createElement(PlacesRail));await click(host.querySelector('[data-rail-place="a"]'));@@ -302,11 +316,12 @@ it("the window's own rail: drawn at every width, 36px wide with small rounded tiawait mount(createElement(PlacesRail, { chrome: true }));const nav = host.querySelector("[data-places-rail]")!;expect(nav.className).toContain("flex h-full");- expect(nav.className, "as thin as its tiles allow, in the frame's colour").toContain("w-9 shrink-0 flex-col items-center bg-frame");+ expect(nav.className.split(" "), "as thin as its tiles allow; beside a window with its own title bar, in the sidebar's colour as before the frame")+ .toEqual(expect.arrayContaining(["w-9", "shrink-0", "flex-col", "items-center", "bg-panel"]));expect(nav.className, "never hidden on a narrow window").not.toContain("hidden");expect(nav.textContent, "no name under the place on screen: its tile's ring marks it").toBe("MCCAACBCCO");expect(host.querySelector('[data-rail-place="home"]')?.getAttribute("title")).toBe("My Cloud");- expect(host.querySelector('[data-rail-place="home"] span')?.getAttribute("style")).toContain("width: 24px; height: 24px; border-radius: 7px");+ expect(host.querySelector('[data-rail-place="home"] span[style]')?.getAttribute("style")).toContain("width: 24px; height: 24px; border-radius: 7px");expect(host.querySelector("[data-rail-add]")?.className).toContain("size-6 place-items-center rounded-[7px]");expect(expand.mock.calls.at(-1)).toEqual([false]);await click(host.querySelector("[data-rail-add]"));@@ -342,7 +357,7 @@ it("a right-click on a circle opens its place's menu: its colour, saved by mainawait act(async () => { host.querySelector(`[data-rail-place="${id}"]`)!.dispatchEvent(new MouseEvent("contextmenu", { bubbles: true, cancelable: true })); });return host.querySelector(`[data-rail-menu="${id}"]`);};- expect(host.querySelector('[data-rail-place="local"] span')?.getAttribute("style"), "This computer's circle wears its colour").toContain("var(--identity-teal)");+ expect(host.querySelector('[data-rail-place="local"] span[style]')?.getAttribute("style"), "This computer's circle wears its colour").toContain("var(--identity-teal)");const own = await menuOf("local");expect([own?.getAttribute("aria-label"), own?.querySelector("[aria-checked='true']")?.getAttribute("data-swatch")]).toEqual(["This computer", "green"]);expect(own!.querySelector("[data-swatch='slate']")?.getAttribute("aria-label"), "the plain swatch says what it does").toBe("None");diff --git a/src/components/PlacesRail.tsx b/src/components/PlacesRail.tsxindex 5ca9f8cf4d..36e3e52831 100644--- a/src/components/PlacesRail.tsx+++ b/src/components/PlacesRail.tsx@@ -63,7 +63,8 @@ export function matchingPlaces(places: RailPlace[], query: string): RailPlace[]});}-/** The tile's progress, drawn round its edge. The line starts at the top edge's middle and runs clockwise. */+/** The tile's progress, drawn round its edge: a 2px line 1px off the tile, its corners in step with the tile's, on whole+ * pixels at any scale. The line starts at the top edge's middle and runs clockwise. */function ProgressRing({ value = 0, waiting = false }: { value?: number; waiting?: boolean }) {const box = TILE + 6, inset = 1, side = box - 2 * inset, corner = tileRadius(TILE) + 2;const around = 4 * (side - 2 * corner) + 2 * Math.PI * corner;@@ -73,13 +74,16 @@ function ProgressRing({ value = 0, waiting = false }: { value?: number; waiting?+ ` V ${inset + corner} A ${corner} ${corner} 0 0 1 ${inset + corner} ${inset} Z`;return <svg aria-hidden="true" data-rail-ring={waiting ? "waiting" : Math.round(value * 100)} width={box} height={box} viewBox={`0 0 ${box} ${box}`}className={cn("pointer-events-none absolute -left-[3px] -top-[3px]", waiting && "animate-pulse motion-reduce:animate-none")}>- <path d={edge} fill="none" stroke="var(--color-hairline)" strokeWidth={1.5} />- <path d={edge} fill="none" stroke="var(--color-accent)" strokeWidth={1.5} strokeLinecap="round" strokeDasharray={`${shown * around} ${around}`}+ <path d={edge} fill="none" stroke="var(--color-hairline)" strokeWidth={2} />+ <path d={edge} fill="none" stroke="var(--color-accent)" strokeWidth={2} strokeLinecap="round" strokeDasharray={`${shown * around} ${around}`}className="transition-[stroke-dasharray] duration-500 motion-reduce:transition-none" /></svg>;}-export function PlaceMark({ place, size = TILE }: { place: RailPlace; size?: number }) {+/** What a place's mark draws: its kind, its name's letters and its colour, faded while it is offline or has ended. */+type MarkedPlace = Pick<RailPlace, "kind" | "name" | "offline" | "ended"> & { color: unknown };++export function PlaceMark({ place, size = TILE }: { place: MarkedPlace; size?: number }) {const color = cloudColor(place.color);return <span aria-hidden="true" data-rail-offline={place.offline ? "" : undefined} data-rail-ended={place.ended ? "" : undefined}className={cn("grid shrink-0 place-items-center font-semibold leading-none", color ? "text-white" : "bg-card text-ink", (place.offline || place.ended) && "opacity-55 grayscale")}@@ -106,18 +110,22 @@ export function topWithin(element: HTMLElement, rail: HTMLElement): number {return top;}-function PlaceTile({ place, calm, canPair, onOpen, onMenu }: { place: RailPlace; calm: boolean; canPair: boolean; onOpen: (place: RailPlace) => void; onMenu: (at: MenuAt) => void }) {+/** A place's tile: its mark, with a pill on the rail's edge for the place on screen (a short one on hover), and its dots,+ * badge and progress round it, all inside the rail. */+function PlaceTile({ place, canPair, onOpen, onMenu }: { place: RailPlace; canPair: boolean; onOpen: (place: RailPlace) => void; onMenu: (at: MenuAt) => void }) {const label = placeLabel(place), acts = placeActs(place, canPair);return <button type="button" aria-label={label} title={label} aria-current={place.active ? "page" : undefined} aria-disabled={acts ? undefined : true}data-rail-place={place.id} data-rail-kind={place.kind} onClick={() => { if (acts && !place.active) onOpen(place); }} onContextMenu={menuOpener(place, onMenu)}- className={cn("relative shrink-0 rounded-[7px] transition-[box-shadow,opacity] duration-150 focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-focus",- place.active ? cn("ring-[1.5px] ring-offset-[1.5px] ring-offset-frame", calm ? "ring-ink/45" : "ring-ink/75")- : acts ? "hover:ring-[1.5px] hover:ring-ink/15 hover:ring-offset-[1.5px] hover:ring-offset-frame" : cn("cursor-default", !place.offline && "opacity-75"))}>+ className={cn("group/tile relative shrink-0 rounded-[7px] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",+ !acts && cn("cursor-default", !place.offline && "opacity-75"))}>+ <span aria-hidden="true" data-rail-pill={place.active ? "page" : acts ? "hover" : undefined}+ className={cn("pointer-events-none absolute -left-1.5 top-1/2 w-[3px] -translate-y-1/2 rounded-r-full bg-ink transition-[height,opacity] duration-150 motion-reduce:transition-none",+ place.active ? "h-4" : acts ? "h-2 opacity-0 group-hover/tile:opacity-100" : "hidden")} /><PlaceMark place={place} />{place.progress !== undefined && <ProgressRing value={place.progress} waiting={place.waiting === true} />}- {place.attention && <span aria-hidden="true" data-rail-dot className="absolute -right-1 -top-1 size-2.5 rounded-full border-2 border-frame bg-danger" />}- {place.update && !place.attention && <span aria-hidden="true" data-rail-update className="absolute -right-1 -top-1 size-2.5 rounded-full border-2 border-frame bg-accent" />}- {place.server && <span aria-hidden="true" data-rail-server className="absolute -bottom-1 -right-1 grid size-3 place-items-center rounded-full border border-hairline bg-frame text-ink-secondary">+ {place.attention && <span aria-hidden="true" data-rail-dot className="absolute -right-1 -top-1 size-2.5 rounded-full border-2 border-(--rail-surface) bg-danger" />}+ {place.update && !place.attention && <span aria-hidden="true" data-rail-update className="absolute -right-1 -top-1 size-2.5 rounded-full border-2 border-(--rail-surface) bg-accent" />}+ {place.server && <span aria-hidden="true" data-rail-server className="absolute -bottom-1 -right-1 grid size-3 place-items-center rounded-full border border-hairline bg-(--rail-surface) text-ink-secondary"><Server size={7} strokeWidth={2.25} /></span>}</button>;@@ -269,11 +277,12 @@ export function PlacesRail({ chrome = false }: { chrome?: boolean }) {track("rail_place_opened", { kind: place.kind });void bridge?.open?.(place.id).catch(() => {});};- const framed = windowFramed(capabilities.windowChrome), draggable = framed;+ const framed = windowFramed(capabilities), draggable = capabilities.windowChrome !== "native";// In a framed window the rail is part of the frame: the window's own rail runs the full height, its top in the frame's- // top bar (the traffic lights' place), so its places start under that bar. Beside a page that doesn't draw the frame- // (an older release), they start where that release left them: under the traffic lights' old place on macOS.- const above = !framed ? "h-3" : !chrome ? "h-[9px]" : besideFramed ? "h-[37px]" : capabilities.windowChrome === "mac-inset" ? "h-[52px]" : "h-3";+ // top bar (the traffic lights' place), so its places start under that bar. With the frame turned off, or beside a page+ // that doesn't draw it (an older release), they start under the traffic lights on macOS.+ const lights = capabilities.windowChrome === "mac-inset" ? "h-[52px]" : "h-3";+ const above = !framed ? lights : !chrome ? "h-[9px]" : besideFramed ? "h-[37px]" : lights;// SAFETY: Electron's -webkit-app-region is not in React's CSSProperties type; the renderer accepts it as an inline style.const drag = draggable ? ({ WebkitAppRegion: "drag" } as CSSProperties) : undefined;const noDrag = draggable ? ({ WebkitAppRegion: "no-drag" } as CSSProperties) : undefined;@@ -285,11 +294,13 @@ export function PlacesRail({ chrome = false }: { chrome?: boolean }) {setMenu({ place, top: nav ? Math.max(8, Math.min(topWithin(from, nav) - 6, nav.clientHeight - 200)) : 8 });};return <nav ref={navRef} aria-label={t("rail.label")} data-places-rail style={drag}- className={cn("relative w-9 shrink-0 flex-col items-center bg-frame", chrome ? "flex h-full" : "hidden md:flex", !framed && (calm ? "border-r border-ink/[0.04]" : "border-r border-hairline/50"))}>+ className={cn("relative w-9 shrink-0 flex-col items-center", chrome ? "flex h-full" : "hidden md:flex",+ framed ? "bg-frame [--rail-surface:var(--color-frame)]" : cn("border-r bg-panel [--rail-surface:var(--color-panel)]", calm ? "border-ink/[0.04]" : "border-hairline/50"))}><div aria-hidden="true" className={cn(above, "shrink-0")} />- <ul className="flex min-h-0 flex-col items-center gap-2 overflow-y-auto py-[3px]" style={noDrag}>+ {/* As wide as the rail, so nothing round a tile is cut off at the sides: a list that scrolls clips its overflow. */}+ <ul className="flex min-h-0 w-full flex-col items-center gap-2 overflow-y-auto py-1" style={noDrag}>{shown.map((place) => <li key={place.id} className="flex">- <PlaceTile place={place} calm={calm} canPair={canPair} onOpen={open} onMenu={openMenu} />+ <PlaceTile place={place} canPair={canPair} onOpen={open} onMenu={openMenu} /></li>)}</ul><div className="relative mt-2 flex flex-col items-center gap-2 pb-3" style={noDrag} ref={moreRef}>diff --git a/src/components/SettingsModal.appearance.test.ts b/src/components/SettingsModal.appearance.test.tsindex fc28e37713..047b17559a 100644--- a/src/components/SettingsModal.appearance.test.ts+++ b/src/components/SettingsModal.appearance.test.ts@@ -14,8 +14,6 @@ const fixture = vi.hoisted(() => ({setShowThreads: vi.fn(),showRunCard: true,setShowRunCard: vi.fn(),- sidebarDensity: "comfortable" as "comfortable" | "compact" | "icons",- setSidebarDensity: vi.fn(),toolsLayout: "rows" as "rows" | "toolbar",setSidebarToolsLayout: vi.fn(),notificationSounds: true,@@ -52,8 +50,6 @@ vi.mock("@/lib/run-card-preferences", () => ({}));vi.mock("@/lib/sidebar-preferences", async (importOriginal) => ({...await importOriginal<typeof import("@/lib/sidebar-preferences")>(),- useSidebarDensity: () => fixture.sidebarDensity,- setSidebarDensity: fixture.setSidebarDensity,useSidebarToolsLayout: () => fixture.toolsLayout,setSidebarToolsLayout: fixture.setSidebarToolsLayout,}));@@ -97,7 +93,6 @@ beforeEach(() => {fixture.section = "appearance";fixture.showThreads = true;fixture.showRunCard = true;- fixture.sidebarDensity = "comfortable";fixture.toolsLayout = "rows";fixture.notificationSounds = true;fixture.sendKey = "enter";@@ -181,7 +176,7 @@ describe("Settings → Appearance", () => {fixture.rail = { available: true, hidden: true };const html = render();const at = html.indexOf('aria-label="Show your computers"');- expect(at).toBeGreaterThan(html.indexOf(">Sidebar density<"));+ expect(at).toBeGreaterThan(html.indexOf('aria-label="Choose tools layout"'));expect(at).toBeLessThan(html.indexOf('aria-label="Show threads"'));const toggle = fixture.switches.find((props) => props["aria-label"] === "Show your computers")!;expect(toggle.checked).toBe(false);@@ -213,33 +208,20 @@ describe("Settings → Appearance", () => {expect(fixture.dispatch).not.toHaveBeenCalled();});- it.each([- ["comfortable", "Comfortable"],- ["compact", "Compact"],- ["icons", "Avatars only"],- ] as const)("shows the saved sidebar density (%s) in Appearance", (density, label) => {- fixture.sidebarDensity = density;+ it("has no choice of sidebar density: the sidebar's edge is dragged instead", () => {const html = render();- expect(html).toContain('aria-label="Choose sidebar density"');- expect(html).toContain("Sidebar density");- expect(html).toContain("collapsing the sidebar from its header");- expect(html).toContain(`<option value="${density}" selected="">${label}</option>`);- for (const option of ["Comfortable", "Compact", "Avatars only"]) expect(html).toContain(`>${option}</option>`);- expect(fixture.setSidebarDensity).not.toHaveBeenCalled();- expect(fixture.api).not.toHaveBeenCalled();- expect(fixture.dispatch).not.toHaveBeenCalled();+ expect(html).not.toContain("Sidebar density");+ expect(html).not.toContain(">Compact</option>");+ expect(html).not.toContain(">Avatars only</option>");});- it("offers the tools layout row right under the density row", () => {+ it("offers the tools layout row", () => {const html = render();expect(html).toContain('aria-label="Choose tools layout"');expect(html).toContain("Tools layout");- expect(html).toContain("Icons density always shows icons");+ expect(html).toContain("As a column of avatars, the sidebar always shows icons.");expect(html).toContain('<option value="rows" selected="">Rows</option>');expect(html).toContain('<option value="toolbar">Toolbar</option>');- expect(html.indexOf('aria-label="Choose sidebar density"')).toBeLessThan(- html.indexOf('aria-label="Choose tools layout"'),- );expect(fixture.setSidebarToolsLayout).not.toHaveBeenCalled();});@@ -362,7 +344,7 @@ describe("Settings → Appearance", () => {expect(html).toContain('aria-label="App language"');expect(html).toContain("Diagnostics");expect(html).not.toContain('aria-label="Show threads"');- expect(html).not.toContain('aria-label="Choose sidebar density"');+ expect(html).not.toContain('aria-label="Choose tools layout"');expect(html).not.toContain('aria-label="Show tool calls in chat"');expect(html).not.toContain("Midnight");});@@ -379,7 +361,7 @@ describe("Settings → Appearance", () => {expect(html).toContain("Midnight");expect(html).toContain('aria-label="Show threads"');expect(html).toContain('aria-label="Notification sounds"');- expect(html).toContain('aria-label="Choose sidebar density"');+ expect(html).toContain('aria-label="Choose tools layout"');expect(html).not.toContain('aria-label="Show tool calls in chat"');});diff --git a/src/components/SettingsModal.groups.test.ts b/src/components/SettingsModal.groups.test.tsindex b34e416afb..6b09efb80d 100644--- a/src/components/SettingsModal.groups.test.ts+++ b/src/components/SettingsModal.groups.test.ts@@ -12,8 +12,6 @@ const fixture = vi.hoisted(() => ({setShowThreads: vi.fn(),showRunCard: true,setShowRunCard: vi.fn(),- sidebarDensity: "comfortable" as "comfortable" | "compact" | "icons",- setSidebarDensity: vi.fn(),notificationSounds: true,setNotificationSounds: vi.fn(),advancedMode: false,@@ -39,11 +37,6 @@ vi.mock("@/lib/run-card-preferences", () => ({useShowRunCard: () => fixture.showRunCard,setShowRunCard: fixture.setShowRunCard,}));-vi.mock("@/lib/sidebar-preferences", async (importOriginal) => ({- ...await importOriginal<typeof import("@/lib/sidebar-preferences")>(),- useSidebarDensity: () => fixture.sidebarDensity,- setSidebarDensity: fixture.setSidebarDensity,-}));vi.mock("@/lib/notification-preferences", () => ({useNotificationSounds: () => fixture.notificationSounds,setNotificationSounds: fixture.setNotificationSounds,@@ -73,7 +66,6 @@ beforeEach(() => {fixture.section = "appearance";fixture.showThreads = true;fixture.showRunCard = true;- fixture.sidebarDensity = "comfortable";fixture.notificationSounds = true;// these pin the Advanced rail; Simple has its own suite (SettingsModal.simple.test.ts)fixture.advancedMode = true;diff --git a/src/components/SettingsModal.simple.test.ts b/src/components/SettingsModal.simple.test.tsindex e7c3148ce7..60a4e5f46f 100644--- a/src/components/SettingsModal.simple.test.ts+++ b/src/components/SettingsModal.simple.test.ts@@ -190,7 +190,7 @@ describe("Settings in Simple mode", () => {expect(fixture.switches.find((props) => props["aria-label"] === "Show your computers")?.checked).toBe(false);});- it("keeps the everyday rows and leaves the fifteen builder controls to Advanced, where search still points", () => {+ it("keeps the everyday rows and leaves the fourteen builder controls to Advanced, where search still points", () => {const general = open("general");for (const shown of ['aria-label="Send usage analytics"', 'aria-label="Color my messages with the bot's color"', 'aria-label="Send messages with"','aria-label="Notification sounds"', 'aria-label="Show the notification feed"', 'aria-label="App language"', 'role="radiogroup" aria-label="Theme"']) {@@ -199,10 +199,10 @@ describe("Settings in Simple mode", () => {expect(placement(open("updates"), "MARKER:updatesConsent;")).toBe("shown");const everyPage = ["general", "engines", "companion", "usage", "updates"].map((section) => open(section as AppSettingsSection)).join("");for (const gone of ["Effort for new bots", "Defaults for new bots", "Group turns", "MCP calls", "Parallel threads", "Automatic recovery", "Event log cleanup",- "Interface font", "Chat width", "Sidebar density", "Pinned bots as circles", "Universal pins", "Tool calls", "This run", "Keep prompt cache warm"]) {+ "Interface font", "Chat width", "Pinned bots as circles", "Universal pins", "Tool calls", "This run", "Keep prompt cache warm"]) {expect(everyPage, gone).not.toContain(`>${gone}<`);}- expect(SIMPLE_ADVANCED_ONLY).toHaveLength(15);+ expect(SIMPLE_ADVANCED_ONLY).toHaveLength(14);expect(SIMPLE_ADVANCED_ONLY.map((key) => t(key))).toEqual(expect.arrayContaining(["Effort for new bots", "Interface font", "Keep prompt cache warm"]));});diff --git a/src/components/SettingsModal.tsx b/src/components/SettingsModal.tsxindex 5ed8b85a55..3277cc1805 100644--- a/src/components/SettingsModal.tsx+++ b/src/components/SettingsModal.tsx@@ -30,6 +30,7 @@ import { RemoteComputerSection } from "./RemoteComputerSection";import { ConnectedWorkspacesSettings } from "./ConnectedWorkspacesSettings";import { PlaceLookCard } from "./PlaceLookCard";import { ChromeRailRow } from "./ChromeRailToggle";+import { WindowFrameRow } from "./WindowFrameRow";import { OrganizationSettings } from "./OrganizationSettings";import { CloudAccountSettings } from "./CloudAccountSettings";import { ProSettingsCard } from "./ProIntroduction";@@ -61,7 +62,7 @@ import { NotificationRows } from "./NotificationSettingsRows";import { useAdvancedMode } from "@/lib/interface-mode";import { Select } from "./Select";import { SavedStepsRow } from "./SavedStepsRow";-import { BrowserProfilesRow, ColorUserBubblesRow, AdvancedModeRow, ExperimentalFeaturesRow, LanguageRow, NewBotEffortRow, PinnedCirclesRow, ReplayTourRow, RunCardRow, SendKeyRow, ShowThreadsRow, SidebarDensityRow, ToolCallsRow, UniversalPinsRow, UpdatesRow } from "./AppSettingsRows";+import { BrowserProfilesRow, ColorUserBubblesRow, AdvancedModeRow, ExperimentalFeaturesRow, LanguageRow, NewBotEffortRow, PinnedCirclesRow, ReplayTourRow, RunCardRow, SendKeyRow, ShowThreadsRow, ToolCallsRow, UniversalPinsRow, UpdatesRow } from "./AppSettingsRows";import { SIMPLE_ADVANCED_ONLY, SimpleAiPage, SimpleBillingPage, SimpleComputerPage, SimpleGeneralPage, SimpleLooksPage, SimpleUpdatesPage, type Disclose, type SimpleDisclosureId } from "./SettingsSimplePages";// labelKey, not a label: t() reads the active pack when called, so a label resolved at module scope would freeze the@@ -84,7 +85,7 @@ export const SECTIONS: Array<{keywords: string[];}> = [{ id: "general", group: "you", labelKey: "settings.section.general", icon: User, keywords: ["profile", "pinned panels", "web panel", "dashboard", "pin a page", "name", "email", "about me", "about", "suggestions", "suggested", "memory", "analytics", "updates", "product updates", "newsletter", "email updates", "effort", "new bots", "reasoning", "threads", "parallel", "concurrency", "cleanup", "retention", "event log", "event-log", "log size", "automatic recovery", "backup model", "fallback", "routines", "conversation", "schedule", "usage", "limit", "plan", "upgrade", "cloud desktop hours", "storage", "saved steps", "repeat", "replay", "computer tasks", "without ai", "forget", ...talkShortcutKeywords()] },- { id: "appearance", group: "you", labelKey: "settings.section.appearance", icon: Palette, keywords: ["skin", "theme", "appearance", "chat width", "width", "wide", "full width", "bubble", "bubbles", "tools", "tool calls", "threads", "show threads", "hide threads", "sidebar", "density", "compact", "comfortable", "avatars", "display", "run", "this run", "run card", "commands", "notifications", "sound", "sounds", "mute", "silent", "chime", "pinned", "circles", "universal", "groups", "top", "send", "enter", "return", "shift+enter", "ctrl+enter", "cmd+enter", "⌘+enter", "new line", "keyboard", "ime", "japanese", "message color", "my messages", "toolbar", "tools layout", "footer", "routines", "triggers", "team map", "color", "colour", "cloud color", "server color", "tint", "sidebar color", "sidebar picture", "picture", "image", "banner", "background", "computers", "your computers", "rail", "strip"] },+ { id: "appearance", group: "you", labelKey: "settings.section.appearance", icon: Palette, keywords: ["skin", "theme", "appearance", "chat width", "width", "wide", "full width", "bubble", "bubbles", "tools", "tool calls", "threads", "show threads", "hide threads", "sidebar", "display", "run", "this run", "run card", "commands", "notifications", "sound", "sounds", "mute", "silent", "chime", "pinned", "circles", "universal", "groups", "top", "send", "enter", "return", "shift+enter", "ctrl+enter", "cmd+enter", "⌘+enter", "new line", "keyboard", "ime", "japanese", "message color", "my messages", "toolbar", "tools layout", "footer", "routines", "triggers", "team map", "color", "colour", "cloud color", "server color", "tint", "sidebar color", "sidebar picture", "picture", "image", "banner", "background", "computers", "your computers", "rail", "strip", "frame", "window frame", "title bar"] },{ id: "companion", group: "you", labelKey: "settings.section.companion", icon: TabletSmartphone, keywords: ["companion", "device", "phone", "desktop", "client", "host", "pair", "pairing", "mobile", "https", "secure", "tailscale", "wifi", "remote", "advanced", "domain", "dns", "self-hosted", "server", "caddy"] },{ id: "engines", group: "ai", labelKey: "settings.section.engines", icon: Terminal, keywords: ["models", "model providers", "engines", "claude", "codex", "grok", "providers", "cli", "sign in", "subscription"] },{ id: "connections", group: "ai", labelKey: "settings.section.connections", icon: KeyRound, keywords: ["keys", "api", "api key", "api keys", "connections", "composio", "box", "xai", "mistral", "cerebras", "meta", "muse", "vps", "router", "openrouter", "base url", "openai", "anthropic", "groq", "greenference", "opencode", "deepseek", "provider", "lm studio", "lmstudio", "llm studio", "llmstudio", "bionic"] },@@ -378,9 +379,9 @@ export function SettingsModal() {<ChatWidthRow /><ColorUserBubblesRow /><SendKeyRow />- <SidebarDensityRow /><SidebarToolsLayoutRow /><ChromeRailRow />+ <WindowFrameRow /><ShowThreadsRow /><PinnedCirclesRow /><UniversalPinsRow />diff --git a/src/components/SettingsSimplePages.tsx b/src/components/SettingsSimplePages.tsxindex b2079c9f7a..92d4fbebff 100644--- a/src/components/SettingsSimplePages.tsx+++ b/src/components/SettingsSimplePages.tsx@@ -25,6 +25,7 @@ import { PlanUsageSummary } from "./PlanUsage";import { SkinPicker } from "./SkinPicker";import { PlaceLookRows } from "./PlaceLookCard";import { ChromeRailRow } from "./ChromeRailToggle";+import { WindowFrameRow } from "./WindowFrameRow";import { ProfileSummaryRow } from "./ProfileSettings";import { ImportSettings } from "./ImportSettings";import { NotificationRows } from "./NotificationSettingsRows";@@ -39,7 +40,7 @@ export type Disclose = (id: SimpleDisclosureId) => { id: SimpleDisclosureId; opeexport const SIMPLE_ADVANCED_ONLY: readonly LocaleKey[] = ["settings.newBotEffort.title", "newBot.defaults", "settings.roomTurns.title", "settings.mcpCalls.title", "settings.threads.title",- "settings.recovery.title", "settings.threadCleanup.title", "settings.font.title", "settings.chatWidth.title", "sidebar.density.title",+ "settings.recovery.title", "settings.threadCleanup.title", "settings.font.title", "settings.chatWidth.title","settings.pinnedCircles.title", "settings.universalPins.title", "settings.toolCalls.title", "settings.runCard.title", "settings.keepWarm.title",];@@ -63,6 +64,7 @@ export function SimpleGeneralPage({ has, peopleOpen, onLooks }: { has: Has; peop<ThemeRow simple /><PlaceLookRows /><ChromeRailRow />+ <WindowFrameRow /><ColorUserBubblesRow simple /><LanguageRow simple /><SendKeyRow simple />diff --git a/src/components/Sidebar.bulk-folders.test.ts b/src/components/Sidebar.bulk-folders.test.tsindex a3f16d1f06..4d63a8327f 100644--- a/src/components/Sidebar.bulk-folders.test.ts+++ b/src/components/Sidebar.bulk-folders.test.ts@@ -33,7 +33,7 @@ const bot: Bot = {],};const render = () => renderToStaticMarkup(createElement(BotThreadList, {- ...botRowProps(initialState, vi.fn(), bot, { density: "comfortable", quiet: false, query: "", onMenu: vi.fn() }), selected: true,+ ...botRowProps(initialState, vi.fn(), bot, { density: "comfortable", query: "", onMenu: vi.fn() }), selected: true,}));describe("selecting threads in a bot with a collapsed folder", () => {diff --git a/src/components/Sidebar.folder-show-all.test.ts b/src/components/Sidebar.folder-show-all.test.tsindex 4ac4fe5725..6db4b8d286 100644--- a/src/components/Sidebar.folder-show-all.test.ts+++ b/src/components/Sidebar.folder-show-all.test.ts@@ -17,7 +17,7 @@ const bot = (filed: NonNullable<Bot["tasks"]>): Bot => ({tasks: [...loose, ...filed],});const render = (value: Bot, query = "") => renderToStaticMarkup(createElement(BotThreadList, {- ...botRowProps(initialState, vi.fn(), value, { density: "comfortable", quiet: false, query, onMenu: vi.fn() }), selected: true,+ ...botRowProps(initialState, vi.fn(), value, { density: "comfortable", query, onMenu: vi.fn() }), selected: true,}));describe("an open folder whose threads are older than the short list", () => {diff --git a/src/components/Sidebar.header.test.ts b/src/components/Sidebar.header.test.tsindex 74eacbaa23..492e1d9d7b 100644--- a/src/components/Sidebar.header.test.ts+++ b/src/components/Sidebar.header.test.ts@@ -11,6 +11,7 @@ const fixture = vi.hoisted(() => ({density: "comfortable" as SidebarDensity,advanced: true,windowChrome: undefined as "mac-inset" | "win-caption" | "native" | undefined,+ windowFrame: undefined as boolean | undefined,hostLabel: undefined as string | undefined,rail: null as { available: boolean; hidden: boolean } | null,}));@@ -26,7 +27,7 @@ vi.mock("./DesktopCapabilities", async (importOriginal) => ({useDesktopCapabilities: () => {const capabilities = initialDesktopCapabilities();const host = { ...capabilities.host, label: fixture.hostLabel ?? capabilities.host.label };- return { capabilities: { ...capabilities, host, windowChrome: fixture.windowChrome }, ready: true };+ return { capabilities: { ...capabilities, host, windowChrome: fixture.windowChrome, windowFrame: fixture.windowFrame }, ready: true };},}));@@ -40,6 +41,7 @@ beforeEach(() => {fixture.density = "comfortable";fixture.advanced = true;fixture.windowChrome = undefined;+ fixture.windowFrame = undefined;fixture.hostLabel = undefined;fixture.rail = null;vi.stubGlobal("window", { innerWidth: 1280, location: { protocol: "http:", search: "" } });@@ -52,34 +54,24 @@ afterEach(() => {});describe("sidebar header", () => {- it.each(["comfortable", "compact", "icons"] as const)(- "keeps collapse, activity and add but no density menu at %s density in Advanced mode",- (density) => {- fixture.density = density;- const html = render();- expect(html).toContain(density === "icons" ? 'aria-label="Expand sidebar"' : 'aria-label="Collapse sidebar to avatars"');- expect(html).toContain('aria-label="Active Threads"');- expect(html).toContain('aria-label="New or share"');- expect(html).not.toContain("Choose sidebar density");- expect(html).not.toContain('title="Sidebar density"');- },- );+ const collapse = /aria-label="(Collapse sidebar to avatars|Expand sidebar)"|data-sidebar-edge-toggle/;- it.each(["comfortable", "compact"] as const)("keeps collapse and add but no activity menu in Simple mode at %s density", (density) => {- fixture.advanced = false;+ it.each(["comfortable", "icons"] as const)("keeps activity and add, and no button collapses or expands it, at %s density in Advanced mode", (density) => {fixture.density = density;const html = render();- expect(html).toContain('aria-label="Collapse sidebar to avatars"');- expect(html).not.toContain('aria-label="Active Threads"');+ expect(html).toContain('aria-label="Active Threads"');expect(html).toContain('aria-label="New or share"');+ expect(html).not.toMatch(collapse);});- it("still offers Expand on an icons rail in Simple mode, so the rail is never a dead end", () => {+ it.each(["comfortable", "icons"] as const)("keeps add, no activity menu and no collapse button in Simple mode at %s density: its edge is dragged instead", (density) => {fixture.advanced = false;- fixture.density = "icons";+ fixture.density = density;const html = render();- expect(html).toContain('aria-label="Expand sidebar"');expect(html).not.toContain('aria-label="Active Threads"');+ expect(html).toContain('aria-label="New or share"');+ expect(html).not.toMatch(collapse);+ expect(html, "the edge that is dragged, open or as avatars, so the avatars are never a dead end").toMatch(/role="separator" aria-label="Resize sidebar"/);});});@@ -121,7 +113,7 @@ describe("sidebar top row", () => {expect(spacer).toBeGreaterThan(slot);expect(switcher).toBeGreaterThan(spacer);expect(buttons).toBeGreaterThan(switcher);- expect(row.slice(buttons).match(/<button/g)).toHaveLength(3);+ expect(row.slice(buttons).match(/<button/g)).toHaveLength(2);const rowClasses = classesOf(row, "data-sidebar-top-row");expect(rowClasses).toEqual(expect.arrayContaining(["relative", "pl-4", "pr-2"]));expect(rowClasses).not.toContain("px-4");@@ -135,13 +127,11 @@ describe("sidebar top row", () => {expect(row).toContain('<span class="min-w-0 truncate @max-[96px]/sidebar-top:hidden">Servers</span>');expect(row).toContain("focus-visible:outline-2");expect(html).toContain('title="New or share"');- expect(row).toContain('title="Collapse to avatars"');- expect(row).toContain('aria-label="Collapse sidebar to avatars"');expect(row).toContain('title="Active Threads"');expect(html.match(/Switch server:/g)).toHaveLength(1);});- it.each(["mac-inset", "win-caption"] as const)("in Simple mode on %s keeps only the top corner: plain search and + at its right end, no drag region, no server pill, and the collapse bump on the edge until hover", (windowChrome) => {+ it.each(["mac-inset", "win-caption"] as const)("in Simple mode on %s keeps only the top corner: plain search and + at its right end, no drag region, no server pill, nothing on the edge", (windowChrome) => {fixture.advanced = false;fixture.windowChrome = windowChrome;desktop();@@ -159,7 +149,7 @@ describe("sidebar top row", () => {expect(row).toMatch(/data-sidebar-search-toggle="true" aria-label="Search bots and messages" aria-expanded="false" title="Search bots and messages" class="[^"]*\bsize-\[26px\][^"]*\brounded-lg\b[^"]*\btext-ink-secondary\b/);expect(row, "no round box round either").not.toContain("bg-composer");expect(html).toMatch(/aria-label="New or share" class="[^"]*\bsize-\[26px\][^"]*\brounded-lg\b/);- expect(html).toMatch(/data-sidebar-edge-toggle="true" aria-label="Collapse sidebar to avatars" aria-expanded="true" title="Collapse to avatars" style="-webkit-app-region:no-drag" class="[^"]*\babsolute\b[^"]*\bpointer-events-none opacity-0\b[^"]*\btouch:pointer-events-auto touch:opacity-100\b[^"]*\btop-\[14px\]/);+ expect(html).not.toContain("data-sidebar-edge-toggle");expect(html).not.toContain('title="Active Threads"');expect(html).not.toContain("data-sidebar-search-pill");});@@ -184,6 +174,33 @@ describe("sidebar top row", () => {},);+ it("with the frame turned off on macOS, makes room for the traffic lights in its corner again, the rail's button after them", () => {+ fixture.windowChrome = "mac-inset";+ fixture.windowFrame = false;+ fixture.rail = { available: true, hidden: false };+ desktop();+ const advanced = topRow(render());+ expect(advanced).toMatch(/^data-sidebar-top-row="true" class="[^"]*" style="-webkit-app-region:drag;height:46px"/);+ expect(classesOf(advanced, "data-traffic-light-space")).toEqual(["w-[72px]", "shrink-0", "md:w-[calc(72px_-_var(--rail-beside,0px))]"]);+ expect(advanced.indexOf("data-traffic-light-space")).toBeLessThan(advanced.indexOf("data-rail-toggle"));+ fixture.advanced = false;+ const simple = topRow(render());+ expect(simple, "Simple keeps its own top row, not the frame's corner").toMatch(/^data-sidebar-top-row="true"/);+ expect(simple.indexOf("data-traffic-light-space")).toBeLessThan(simple.indexOf("data-rail-toggle"));+ fixture.density = "icons";+ expect(classesOf(render(), "data-traffic-light-space"), "the column of avatars keeps a strip above for them").toEqual(["h-5", "w-full"]);+ });++ it("with the frame turned off on Windows, its own title bar is back: nothing makes room and nothing drags", () => {+ fixture.windowChrome = "native";+ fixture.windowFrame = false;+ fixture.hostLabel = "Windows";+ desktop();+ const row = topRow(render());+ expect(row).not.toContain("data-traffic-light-space");+ expect(row).not.toContain("app-region:drag");+ });+it("draws no window buttons in a browser, where the browser has its own", () => {const row = topRow(render());expect(row).not.toContain("bg-[#ff5f57]");@@ -192,7 +209,7 @@ describe("sidebar top row", () => {expect(buttons).toBeGreaterThan(spacer);});- it("collapses Simple mode to a rail: round search and + on top (the frame's top bar holds the lights), the expand bump on the edge, and Apps and the account at the foot", () => {+ it("collapses Simple mode to a rail: round search and + on top (the frame's top bar holds the lights), nothing on the edge, and Apps and the account at the foot", () => {fixture.advanced = false;fixture.density = "icons";fixture.windowChrome = "mac-inset";@@ -211,8 +228,7 @@ describe("sidebar top row", () => {expect(index, marker).toBeGreaterThan(-1);return index;};- expect(html).toMatch(/data-sidebar-edge-toggle="true" aria-label="Expand sidebar" aria-expanded="false"[^>]*class="[^"]*\bopacity-100\b[^"]*"><svg[^>]*lucide-chevron-right/);- expect(foot).not.toContain('aria-label="Expand sidebar"');+ expect(html).not.toContain("data-sidebar-edge-toggle");expect(foot).not.toContain('aria-label="Search bots and messages"');const positions = [at('data-sidebar-nav="apps"'),@@ -304,7 +320,7 @@ describe("the button that hides and shows the window's rail of places", () => {});describe("sidebar head and foot", () => {- it.each(["comfortable", "compact", "icons"] as const)(+ it.each(["comfortable", "icons"] as const)("puts the top row and search in the head, the places in the foot, and the fading list between at %s density",(density) => {fixture.density = density;@@ -335,9 +351,8 @@ describe("sidebar head and foot", () => {});describe("sidebar foot in Simple mode", () => {- it.each(["comfortable", "compact"] as const)("puts the account avatar then the Connect apps pill in the foot, with Automations and Team map in the account menu (%s)", (density) => {+ it("puts the account avatar then the Connect apps pill in the foot, with Automations and Team map in the account menu", () => {fixture.advanced = false;- fixture.density = density;const html = render();const foot = html.slice(html.indexOf('data-glass-bar="bottom"'));expect(foot).toContain('data-sidebar-footer="simple"');diff --git a/src/components/Sidebar.i18n.test.ts b/src/components/Sidebar.i18n.test.tsindex da03587872..f8a3a79c9a 100644--- a/src/components/Sidebar.i18n.test.ts+++ b/src/components/Sidebar.i18n.test.ts@@ -26,7 +26,7 @@ const bot = (overrides: Partial<Bot> = {}): Bot => ({...overrides,}) as Bot;-const rowProps = (value: Bot) => botRowProps(initialState, () => {}, value, { density: "comfortable", quiet: false, query: "", onMenu: () => {} });+const rowProps = (value: Bot) => botRowProps(initialState, () => {}, value, { density: "comfortable", query: "", onMenu: () => {} });function renderRow(value: Bot): string {return renderToStaticMarkup(createElement(BotListItem, rowProps(value)));diff --git a/src/components/Sidebar.pinned-circle-threads.test.ts b/src/components/Sidebar.pinned-circle-threads.test.tsindex 3136fb1c11..fe316b33fc 100644--- a/src/components/Sidebar.pinned-circle-threads.test.ts+++ b/src/components/Sidebar.pinned-circle-threads.test.ts@@ -50,7 +50,7 @@ const frame = (markup: string) => {};const row = (candidate: Bot, selectedId = initialState.selectedId) =>- botRowProps({ ...initialState, selectedId, activeView: "chat" }, vi.fn(), candidate, { density: "comfortable", quiet: false, query: "", onMenu: vi.fn() });+ botRowProps({ ...initialState, selectedId, activeView: "chat" }, vi.fn(), candidate, { density: "comfortable", query: "", onMenu: vi.fn() });function renderCircle(candidate: Bot, selected = false) {return renderToStaticMarkup(createElement(PinnedBotCircle, row(candidate, selected ? candidate.id : initialState.selectedId)));diff --git a/src/components/Sidebar.refresh-permissions.test.ts b/src/components/Sidebar.refresh-permissions.test.tsindex 7783aefff8..64b5427e92 100644--- a/src/components/Sidebar.refresh-permissions.test.ts+++ b/src/components/Sidebar.refresh-permissions.test.ts@@ -36,7 +36,7 @@ const dispatch = vi.fn();let host: HTMLDivElement;let root: Root;const render = (candidate: Bot) => flushSync(() => root.render(createElement(BotThreadList, {- ...botRowProps(initialState, dispatch, candidate, { density: "comfortable", quiet: false, query: "", onMenu: vi.fn() }),+ ...botRowProps(initialState, dispatch, candidate, { density: "comfortable", query: "", onMenu: vi.fn() }),selected: true,})));const refresh = (threadId: string) => flushSync(() => rows.get(threadId)!.onRefreshPermissions!({ threadId } as never));diff --git a/src/components/Sidebar.simple-layout.test.ts b/src/components/Sidebar.simple-layout.test.tsindex 5fb5c55076..a6c16a43be 100644--- a/src/components/Sidebar.simple-layout.test.ts+++ b/src/components/Sidebar.simple-layout.test.ts@@ -52,7 +52,7 @@ import { SidebarResizeHandle } from "./SidebarResizeHandle";import { SidebarTileGrid } from "./SidebarTiles";import { GlassBar, GlassScrollFrame, GlassScroller } from "./GlassScrollFrame";import { SidebarSectionHeader } from "./SidebarSectionHeader";-import { SidebarEdgeToggle, SidebarSearchPill, SidebarSearchToggle } from "./SidebarSimpleTop";+import { SidebarSearchPill, SidebarSearchToggle } from "./SidebarSimpleTop";import { SidebarRailSeparator, SimpleRailFooter } from "./SidebarSimpleRail";const bot = (id: string, extra: Partial<Bot> = {}): Bot => ({@@ -289,11 +289,13 @@ describe("Simple-mode sidebar layout", () => {}expect(width()).toBe("360px");});- it("collapses to a rail from the edge bump, keeping the Simple order with a hairline between sections", () => {- const toggle = render().tree.find((node) => node.type === SidebarEdgeToggle)!.props as Parameters<typeof SidebarEdgeToggle>[0];- expect(toggle.collapsed).toBe(false);- toggle.onToggle();- expect(fixture.storage.get(SIDEBAR_DENSITY_KEY)).toBe("icons");+ const edge = (tree: ReactElement<Props>[]) => tree.find((node) => node.type === SidebarResizeHandle)?.props as Parameters<typeof SidebarResizeHandle>[0] | undefined;++ it("becomes a rail when its edge is dragged narrow, keeping the Simple order with a hairline between sections", () => {+ const handle = edge(render().tree)!;+ expect(handle.avatars).toBe(false);+ handle.onAvatars(true);+ expect(fixture.storage.get(SIDEBAR_DENSITY_KEY)).toBe("avatars");const { root, tree } = render();expect(root.props.className).toContain("w-[92px]");expect(sectionOrder(tree)).toEqual([BOTS_SECTION_ID, CHANNELS_SECTION_ID, userSectionId("Work")]);@@ -301,11 +303,12 @@ describe("Simple-mode sidebar layout", () => {expect(headers(tree)).toEqual([]);expect(tree.filter((node) => node.type === SidebarRailSeparator)).toHaveLength(2);expect(tree.some((node) => node.type === SidebarSearchToggle)).toBe(false);- expect((tree.find((node) => node.type === SidebarEdgeToggle)!.props as Parameters<typeof SidebarEdgeToggle>[0]).collapsed).toBe(true);+ expect(edge(tree)?.avatars, "the rail keeps its edge, to drag it open again").toBe(true);+ expect(edge(tree)?.avatarsWidth).toBe(92);expect(tree.some((node) => node.props["data-sidebar-top-buttons"] !== undefined)).toBe(false);});- it("puts round search and the same + menu at the top of the rail, and the edge bump expands it again", () => {+ it("puts round search and the same + menu at the top of the rail, and dragging its edge out opens it again", () => {setSidebarDensity("icons");const top = () => render().tree.find((node) => node.props["data-sidebar-rail-top"] !== undefined)!;const plus = () => nodes(top().props.children).find((node) => node.type === "button" && node.props["aria-label"] === "New or share")!;@@ -320,7 +323,7 @@ describe("Simple-mode sidebar layout", () => {expect(item("New bot")).toBeDefined();expect(item("New group chat")).toBeDefined();expect(item("Templates")).toBeDefined();- (render().tree.find((node) => node.type === SidebarEdgeToggle)!.props as Parameters<typeof SidebarEdgeToggle>[0]).onToggle();+ edge(render().tree)!.onAvatars(false);expect(fixture.storage.get(SIDEBAR_DENSITY_KEY)).toBe("comfortable");expect(render().tree.some((node) => node.type === SimpleRailFooter)).toBe(false);});@@ -360,7 +363,7 @@ describe("Simple-mode sidebar layout", () => {const opened = vi.fn();window.addEventListener("omb:open-command-palette", opened);const search = railSearch(render(true).tree);- expect(render(true).tree.some((node) => node.type === SidebarEdgeToggle)).toBe(false);+ expect(edge(render(true).tree), "no edge to drag while a side panel holds it collapsed").toBeUndefined();search();expect(opened).toHaveBeenCalledOnce();expect(render(true).tree.some((node) => node.type === SimpleRailFooter)).toBe(true);diff --git a/src/components/Sidebar.simple-mode.test.ts b/src/components/Sidebar.simple-mode.test.tsindex dcbfc9441a..28b3259745 100644--- a/src/components/Sidebar.simple-mode.test.ts+++ b/src/components/Sidebar.simple-mode.test.ts@@ -37,11 +37,11 @@ const bot: Bot = {{ threadId: "unread", title: "Finished reply", createdAt: 6, unread: true },],};-const densities: SidebarDensity[] = ["comfortable", "compact", "icons"];+const densities: SidebarDensity[] = ["comfortable", "icons"];const botRow = (BotListItem as MemoExoticComponent<(props: BotRowProps) => ReactNode>).type;const pinnedCircle = (PinnedBotCircle as MemoExoticComponent<(props: BotRowProps) => ReactNode>).type;const rowProps = (density: SidebarDensity, candidate: Bot = bot, query = "") =>- botRowProps({ ...initialState, ...fixture.state }, fixture.dispatch, candidate, { density, quiet: false, query, onMenu: vi.fn() });+ botRowProps({ ...initialState, ...fixture.state }, fixture.dispatch, candidate, { density, query, onMenu: vi.fn() });type ElementProps = { children?: ReactNode; onClick?: (event: MouseEvent) => void; onKeyDown?: (event: KeyboardEvent) => void; [key: string]: unknown };function findElement(tree: ReactNode, attribute: string, value: string): ReactElement<ElementProps> | undefined {@@ -84,11 +84,9 @@ describe("bot-first sidebar", () => {it.each([{ advanced: true, enabled: true, density: "comfortable", size: 32, spacing: ["gap-2", "py-2", "pl-6"] },- { advanced: true, enabled: true, density: "compact", size: 26, spacing: ["gap-1.5", "py-1", "pl-6"] },{ advanced: true, enabled: true, density: "icons", size: 44, spacing: ["justify-center", "px-1", "py-1.5"] },{ advanced: true, enabled: false, density: "comfortable", size: 44, spacing: ["gap-3", "py-2", "pl-2.5", "pr-9"] },{ advanced: false, enabled: false, density: "comfortable", size: 42, spacing: ["gap-2", "rounded-[10px]", "pl-2", "pr-2", "md:h-[54px]"] },- { advanced: false, enabled: false, density: "compact", size: 36, spacing: ["gap-2.5", "py-1.5", "pl-2", "pr-9"] },{ advanced: false, enabled: false, density: "icons", size: 36, spacing: ["h-[54px]", "justify-center"] },] as const)("sizes bot portraits and row spacing in $density density with threads $enabled (advanced $advanced)", ({ advanced, enabled, density, size, spacing }) => {fixture.advanced = advanced;@@ -136,14 +134,14 @@ describe("bot-first sidebar", () => {expect(markup).toContain("truncate text-[13px] leading-[18px]");});- it.each(["comfortable", "compact"] as const)("puts the bot's role in its name line in Advanced mode, %s density", (density) => {+ it("puts the bot's role in its name line in Advanced mode", () => {fixture.advanced = true;- const markup = renderToStaticMarkup(createElement(BotListItem, rowProps(density, { ...bot, title: "Research" })));+ const markup = renderToStaticMarkup(createElement(BotListItem, rowProps("comfortable", { ...bot, title: "Research" })));const nameLine = markup.match(/<span class="flex min-w-0 grow items-center gap-1\.5 truncate text-ink [^"]*">([\s\S]*?)<\/span><\/span><\/span>/)?.[1] ?? "";expect(nameLine.indexOf(">Atlas<")).toBeGreaterThan(-1);expect(nameLine.indexOf('data-testid="bot-role"')).toBeGreaterThan(nameLine.indexOf(">Atlas<"));expect(nameLine).toContain("Research");- expect(renderToStaticMarkup(createElement(BotListItem, rowProps(density)))).not.toContain('data-testid="bot-role"');+ expect(renderToStaticMarkup(createElement(BotListItem, rowProps("comfortable")))).not.toContain('data-testid="bot-role"');});it("ends a Simple row's preview line with its engine's faded mark, puts the unread dot at the name line's top right where ⋯ shows, and never moves the name", () => {@@ -269,19 +267,18 @@ describe("bot-first sidebar", () => {expect(advanced).toMatch(/data-testid="model-badge"[^>]*><span data-provider-mark="brand" class="[^"]*\bopacity-60\b/);});- it.each(["comfortable", "compact"] as const)("keeps a Simple row to its name, preview and one faded engine mark, naming role, Chief and engine in its tooltip, %s density", (density) => {+ it("keeps a Simple row to its name, preview and one faded engine mark, naming role, Chief and engine in its tooltip", () => {fixture.showThreads = false;const instances = [{ instanceId: "fake", driverKind: "claude", displayName: "Claude", models: { options: [{ id: "test", label: "Sonnet" }] } }] as unknown as AppState["instances"];fixture.state = { ...fixture.state, instances, selectedId: bot.id };const candidate = { ...bot, title: "Research", chiefOfStaff: true, pinned: true, tasks: [], projects: [], messages: [{ id: "m", role: "bot", kind: "text", text: "Done.", at: 1 }] } as Bot;let tree: ReactNode;- function Capture() { tree = botRow(rowProps(density, candidate)); return tree; }+ function Capture() { tree = botRow(rowProps("comfortable", candidate)); return tree; }const markup = renderToStaticMarkup(createElement(Capture));expect(markup).not.toContain('data-testid="bot-role"');expect(markup.match(/data-testid="model-badge"/g)).toHaveLength(1);expect(markup.match(/data-provider-mark=/g)).toHaveLength(1);- if (density === "comfortable") expect(markup).toMatch(/<span class="absolute -left-1 -top-1 flex rounded-full bg-raised p-\[3px\]"><svg[^>]*role="img"[^>]*aria-label="Chief of Staff"[^>]*data-testid="chief-crown"/);- else expect(markup).not.toContain('data-testid="chief-crown"');+ expect(markup).toMatch(/<span class="absolute -left-1 -top-1 flex rounded-full bg-raised p-\[3px\]"><svg[^>]*role="img"[^>]*aria-label="Chief of Staff"[^>]*data-testid="chief-crown"/);expect(markup).not.toContain("lucide-pin");expect(markup).not.toMatch(/tabular-nums text-ink-secondary transition-opacity group-hover:opacity-0/);const row = findElement(tree, "data-sidebar-bot-row", bot.id)!;@@ -293,7 +290,6 @@ describe("bot-first sidebar", () => {{ advanced: false, density: "icons", face: 36, spacing: ["h-[54px]", "justify-center"], name: "font-semibold", preview: "text-[11px]" },{ advanced: true, density: "icons", face: 44, spacing: ["justify-center", "px-1", "py-1.5"], name: "font-semibold", preview: "text-[11px]" },{ advanced: true, density: "comfortable", face: 32, spacing: ["gap-2", "py-1.5", "pl-6", "pr-9"], name: "font-semibold", preview: "text-[11px]" },- { advanced: false, density: "compact", face: 26, spacing: ["gap-1.5", "py-1", "pl-6", "pr-9"], name: "font-semibold", preview: "text-[11px]" },] as const)("sizes group chat rows in $density density (advanced $advanced)", ({ advanced, density, face, spacing, name, preview }) => {fixture.advanced = advanced;const group: Group = { id: "room", threadId: "room-thread", name: "Launch", memberIds: [bot.id], messages: [], defaultResponder: { kind: "mentions" }, bulletin: "", unread: false, createdAt: 1 };@@ -538,7 +534,7 @@ describe("activity-only escape hatch", () => {it("removes selected and settled activity but keeps unread completed replies", () => {const selected = { ...bot, threadId: "approval", tasks: bot.tasks!.map((task) => task.threadId === "working" ? { ...task, busy: false, activity: "idle" as const } : task) };- const markup = renderToStaticMarkup(createElement(SidebarBotActivity, { bot: selected, rowThreadId: selected.threadId, density: "compact", pendingQueued: fixture.state.pendingQueued!, dispatch: fixture.dispatch }));+ const markup = renderToStaticMarkup(createElement(SidebarBotActivity, { bot: selected, rowThreadId: selected.threadId, density: "comfortable", pendingQueued: fixture.state.pendingQueued!, dispatch: fixture.dispatch }));expect(markup).not.toContain('data-sidebar-activity-row="approval"');expect(markup).not.toContain('data-sidebar-activity-row="working"');expect(markup).toContain('data-sidebar-activity-row="unread"');diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsxindex a9c156fb74..c3f456294a 100644--- a/src/components/Sidebar.tsx+++ b/src/components/Sidebar.tsx@@ -1,7 +1,7 @@import { OrganizationIdentity } from "./OrganizationIdentity";import { memo, useCallback, useEffect, useMemo, useRef, useState, type CSSProperties, type Dispatch } from "react";import { createPortal } from "react-dom";-import { Activity, Archive, Bot as BotIcon, Check, ChevronRight, ClipboardCopy, Crown, FolderPlus, Library, Loader2, MessageSquarePlus, MoreHorizontal, Pencil, PanelLeftClose, PanelLeftOpen, Phone, Pin, PinOff, Plus, Search, TextQuote, Trash2, Users, X } from "lucide-react";+import { Activity, Archive, Bot as BotIcon, Check, ChevronRight, ClipboardCopy, Crown, FolderPlus, Library, Loader2, MessageSquarePlus, MoreHorizontal, Pencil, Phone, Pin, PinOff, Plus, Search, TextQuote, Trash2, Users, X } from "lucide-react";import { api, useStore, formatTime, visibleMessages, currentTaskBot, botOpensTo, openBot, openThread, type Action, type AppState, type Bot, type BotProject, type Group, type InstanceInfo, type Message } from "@/state/store";import { approvalModeFor } from "../../shared/approval-mode";import { liveActivityLabel } from "@/lib/live-activity";@@ -80,7 +80,7 @@ import { ELEVATED_CONTROL } from "./elevated";import { departmentOwner, useTeamPeople } from "@/state/team-people";export { TeamMenuItems };import { SidebarResizeHandle, useSidebarWidth } from "./SidebarResizeHandle";-import { PHONE_TOP_BUTTON, SIMPLE_CORNER_BUTTON, SIMPLE_ROW_FOCUS, SIMPLE_TOP_BUTTON, SidebarEdgeToggle, SidebarSearchPill, SidebarSearchToggle } from "./SidebarSimpleTop";+import { PHONE_TOP_BUTTON, SIMPLE_CORNER_BUTTON, SIMPLE_ROW_FOCUS, SIMPLE_TOP_BUTTON, SidebarSearchPill, SidebarSearchToggle } from "./SidebarSimpleTop";import { isSidebarToggle } from "@/lib/keyboard-shortcuts";import { SidebarRailSeparator, SimpleRailFooter } from "./SidebarSimpleRail";import { useShowThreads } from "@/lib/thread-preferences";@@ -110,6 +110,9 @@ export { PinnedBotCircle, PinnedCircleThreadPanel, PinnedCircleThreadSection } fexport { ArchivedBotRow, ArchivedBotsPanel, archivedDeleteAllCopy, botConfirmCopy, type BotConfirmKind } from "./ArchivedBotsPanel";import { roomDeleteCopy } from "./room-delete-copy"; export { roomDeleteCopy };+/** The centre of macOS's traffic lights (14px tall) with the window's frame off, where the window puts them at 16,16. */+export const MAC_TRAFFIC_LIGHT_CENTER_Y = 23;+const SECTION_LABEL_KEYS: Record<string, LocaleKey> = {[PINNED_SECTION_ID]: "sidebar.section.pinned",[CHANNELS_SECTION_ID]: "sidebar.section.channels",@@ -136,13 +139,11 @@ export function openBotContextMenu(onMenu: (menu: MenuState) => void, botId: strexport function GroupListItem({group,density,- quiet = false,query = "",onMenu,}: {group: Group;density: SidebarDensity;- quiet?: boolean;query?: string;onMenu: (menu: { groupId: string; x: number; y: number }) => void;}) {@@ -159,8 +160,7 @@ export function GroupListItem({const expanded = !group.dm && threadsOpen && density !== "icons" && hasThreadList;const simpleRow = !advanced && density === "comfortable";const railTile = !advanced && density === "icons";- const groupStatus = Boolean(group.busyBotId) || Boolean(group.working);- const roomBusy = groupStatus;+ const roomBusy = Boolean(group.busyBotId) || Boolean(group.working);const members = group.memberIds.map((id) => state.bots.find((b) => b.id === id)).filter((b): b is Bot => Boolean(b));@@ -185,7 +185,7 @@ export function GroupListItem({}}className={cn("relative flex w-full items-center rounded-md text-left", SIMPLE_ROW_FOCUS,- density === "icons" ? (railTile ? "h-[54px] justify-center" : "justify-center px-1 py-1.5") : density === "compact" ? "gap-1.5 py-1 pl-6 pr-9" : simpleRow+ density === "icons" ? (railTile ? "h-[54px] justify-center" : "justify-center px-1 py-1.5") : simpleRow? cn("gap-2 rounded-[10px] py-2 pr-2 group-hover:pr-9 group-focus-within:pr-9 max-md:pr-9 touch:pr-9 md:h-[54px] md:py-0", !group.dm && hasThreadList ? "pl-6" : "pl-2") : "gap-2 py-1.5 pl-6 pr-9",selected && !expanded ? "bg-raised" : "hover:bg-raised/50",)}@@ -197,10 +197,10 @@ export function GroupListItem({<div className={cn("flex items-baseline justify-between gap-2", simpleRow && "pr-7")}><span className={cn("truncate text-[14px] text-ink", simpleRow ? "font-medium leading-5" : "font-semibold")}>{group.name}</span>{advanced && selected && last && !expanded && <span className="shrink-0 text-[10px] text-ink-secondary">{formatTime(last.at)}</span>}- {!simpleRow && (expanded || (quiet && !groupStatus)) && group.unread && <span className="size-1.5 shrink-0 rounded-full bg-accent" aria-label={t("task.unreadMany")} />}+ {!simpleRow && expanded && group.unread && <span className="size-1.5 shrink-0 rounded-full bg-accent" aria-label={t("task.unreadMany")} />}{simpleRow && !expanded && group.unread && <RowDot />}</div>- {!expanded && (!quiet || groupStatus) && <div className="flex items-center justify-between gap-2">+ {!expanded && <div className="flex items-center justify-between gap-2"><span className={cn("truncate text-ink-secondary", simpleRow ? "text-[13px] leading-[18px]" : "text-[11px]")}>{group.description || groupPreview(group, state.bots, state.instances, advanced)}</span>{!simpleRow && group.unread && <span className="size-2 shrink-0 rounded-full bg-accent" />}</div>}@@ -218,7 +218,7 @@ export function GroupListItem({onClick={() => { setThreadsOpen(true); dispatch({ type: "newGroupTask", groupId: group.id }); }}className="pointer-events-none absolute right-1 top-1/2 flex size-7 -translate-y-1/2 items-center justify-center rounded text-ink-secondary opacity-0 hover:bg-raised hover:text-ink disabled:opacity-40 group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100 max-md:pointer-events-auto max-md:opacity-70 touch:pointer-events-auto touch:opacity-70 touch:disabled:opacity-40"><Plus size={14} /></button>}</div>- {expanded && <GroupThreadList group={group} selected={selected} density={density} query={group.name.toLowerCase().includes(query.toLowerCase()) ? "" : query} />}+ {expanded && <GroupThreadList group={group} selected={selected} query={group.name.toLowerCase().includes(query.toLowerCase()) ? "" : query} />}</>);}@@ -449,7 +449,7 @@ export function currentArchivableBot(bots: readonly Bot[], id: string): Bot | unconst NO_FOLDERS: BotProject[] = [];-export function BotThreadList({ bot, selected, density, query, pendingQueued, reveal, locale, generatedTitles, dispatch, activityLabel, hidden = false }: BotRowProps & {+export function BotThreadList({ bot, selected, query, pendingQueued, reveal, locale, generatedTitles, dispatch, activityLabel, hidden = false }: BotRowProps & {activityLabel?: string;hidden?: boolean;}) {@@ -513,7 +513,7 @@ export function BotThreadList({ bot, selected, density, query, pendingQueued, re}), [botId, dispatch, generatedTitles]);const renderThread = (task: (typeof tasks)[number]) => {const thread = currentTaskBot(bot, task.threadId);- return <SidebarThreadRow key={task.threadId} task={{ ...task, busy: thread.busy, activity: thread.activity, waitingForTeammates: thread.waitingForTeammates }} ownerId={bot.id} current={selected && task.threadId === bot.threadId} compact={density === "compact"} folders={projects}+ return <SidebarThreadRow key={task.threadId} task={{ ...task, busy: thread.busy, activity: thread.activity, waitingForTeammates: thread.waitingForTeammates }} ownerId={bot.id} current={selected && task.threadId === bot.threadId} folders={projects}activityLabel={task.threadId === bot.threadId ? activityLabel : undefined} now={stampClock(threadRecency(task), now)} locale={locale} {...actions}selectMode={bulk.active} checked={selection.has(task.threadId)} onToggleSelect={bulk.toggle} />;};@@ -655,7 +655,6 @@ export interface BotRowProps {locale: string;generatedTitles: boolean;density: SidebarDensity;- quiet: boolean;query: string;dispatch: Dispatch<Action>;onMenu: (menu: MenuState) => void;@@ -669,7 +668,7 @@ export function botRowProps(state: AppState,dispatch: Dispatch<Action>,bot: Bot,- layout: Pick<BotRowProps, "density" | "quiet" | "query" | "onMenu" | "renameRequest" | "botDrag" | "botDrop" | "botDragging">,+ layout: Pick<BotRowProps, "density" | "query" | "onMenu" | "renameRequest" | "botDrag" | "botDrop" | "botDragging">,): BotRowProps {const selected = state.activeView === "chat" && state.selectedId === bot.id;const reveal = state.revealThread;@@ -696,7 +695,7 @@ export function useVisibleMessages(bot: Bot): Message[] {export const BotListItem = memo(function BotListItem(props: BotRowProps) {const advanced = useAdvancedMode();- const { bot, selected, deleting, mascotMotion, reveal, pendingQueued, instances, liveCall, density, quiet, query, dispatch, onMenu, renameRequest, botDrag: drag, botDrop: drop, botDragging: dragging } = props;+ const { bot, selected, deleting, mascotMotion, reveal, pendingQueued, instances, liveCall, density, query, dispatch, onMenu, renameRequest, botDrag: drag, botDrop: drop, botDragging: dragging } = props;const showThreads = useShowThreads();const liveMedia = useLiveMedia();const remoteClient = typeof window !== "undefined" && window.ogb?.remoteClient?.active === true;@@ -711,7 +710,7 @@ export const BotListItem = memo(function BotListItem(props: BotRowProps) {const simpleRow = !advanced && !showThreads && density === "comfortable";const simpleList = !advanced && !iconOnly;const railTile = iconOnly && !advanced;- const avatarSize = iconOnly ? (railTile ? 36 : 44) : density === "compact" ? (showThreads ? 26 : 36) : (showThreads ? 32 : simpleRow ? 36 : 44);+ const avatarSize = iconOnly ? (railTile ? 36 : 44) : showThreads ? 32 : simpleRow ? 36 : 44;const tooltip = simpleList ? botTooltip(bot, instances) : undefined;const visible = useVisibleMessages(bot);const last = lastNonReceipt(visible);@@ -721,9 +720,7 @@ export const BotListItem = memo(function BotListItem(props: BotRowProps) {"flex w-full items-center rounded-xl text-left transition-colors duration-150", SIMPLE_ROW_FOCUS,iconOnly? railTile ? "h-[54px] justify-center" : "justify-center px-1 py-1.5"- : density === "compact"- ? cn(showThreads ? "gap-1.5 py-1" : "gap-2.5 py-1.5", showThreads ? "pl-6 pr-9 group-hover:pr-[5.75rem] group-focus-within:pr-[5.75rem] max-md:pr-9 touch:pr-[5.75rem]" : "pl-2 pr-9")- : simpleRow ? "gap-2 rounded-[10px] py-2 pl-2 pr-2 md:h-[54px] md:py-0"+ : simpleRow ? "gap-2 rounded-[10px] py-2 pl-2 pr-2 md:h-[54px] md:py-0": cn(showThreads ? "gap-2 py-2" : "gap-3 py-2", showThreads ? "pl-6 pr-9 group-hover:pr-[5.75rem] group-focus-within:pr-[5.75rem] max-md:pr-9 touch:pr-[5.75rem]" : "pl-2.5 pr-9"),!iconOnly && "max-md:rounded-2xl max-md:py-2.5",selected ? "bg-raised" : "hover:bg-raised/50",@@ -732,7 +729,6 @@ export const BotListItem = memo(function BotListItem(props: BotRowProps) {const { waiting, working, teammateWait, queued } = sidebarBotStatus(bot, pendingQueued);const unread = botShowsUnread(bot);const onLiveCall = liveBadgeFor(bot.id, liveMedia, liveCall);- const statusLine = deleting || working || waiting || teammateWait || queued;const body = (<><span className={cn("relative flex shrink-0", simpleRow && "-m-[3px]")} title={iconOnly || simpleList ? undefined : [bot.name, ...details].join(" · ")}>@@ -820,12 +816,11 @@ export const BotListItem = memo(function BotListItem(props: BotRowProps) {{formatTime(last.at)}</span>)}- {simpleList && density === "compact" && <BotEngineMark bot={bot} instances={instances} className="self-center" />}- {(expanded || (quiet && !statusLine)) && unread && <span className="size-1.5 shrink-0 rounded-full bg-accent" aria-label={t("task.unreadMany")} />}+ {expanded && unread && <span className="size-1.5 shrink-0 rounded-full bg-accent" aria-label={t("task.unreadMany")} />}{!renaming && <span className="flex shrink-0 self-center"><OwnerFace bot={bot} /></span>}{simpleRow && (unread || waiting) && <RowDot waiting={waiting} />}</div>- {(!expanded || deleting) && (!quiet || statusLine) && <div className="flex items-center justify-between gap-2">+ {(!expanded || deleting) && <div className="flex items-center justify-between gap-2">{deleting ? (<span role="status" className="flex min-w-0 items-center gap-1.5 truncate text-[13px] leading-[18px] text-ink-secondary"><Loader2 size={12} className="shrink-0 animate-spin" />@@ -945,14 +940,6 @@ export function Sidebar({ open, onClose, collapseToIcons = false }: {const cancelConfirm = useCallback(() => setConfirm(null), []);const [menu, setMenu] = useState<MenuState | null>(null);const [renameRequest, setRenameRequest] = useState<{ botId: string; nonce: number } | null>(null);- const [edgeShown, setEdgeShown] = useState(false);- const edgeTimer = useRef<ReturnType<typeof setTimeout> | null>(null);- const showEdge = (inside: boolean) => {- if (edgeTimer.current) clearTimeout(edgeTimer.current);- edgeTimer.current = inside ? null : setTimeout(() => setEdgeShown(false), 300);- if (inside) setEdgeShown(true);- };- useEffect(() => () => { if (edgeTimer.current) clearTimeout(edgeTimer.current); }, []);const [sectionPicker, setSectionPicker] = useState<MenuState | null>(null);const [newTeam, setNewTeam] = useState(false);const [teamMenu, setTeamMenu] = useState<{ name: string; x: number; y: number } | null>(null);@@ -1008,33 +995,28 @@ export function Sidebar({ open, onClose, collapseToIcons = false }: {const simpleDesk = simple && !phone;const rail = !advanced && density === "icons";const sidePanelOpen = state.computerOpen || state.inspectorOpen;- const sizing = useSidebarWidth({ simple: !advanced, density, sidePanelOpen, sidebarRef });+ const sizing = useSidebarWidth({ simple: !advanced, sidePanelOpen, sidebarRef });const [searchOpen, setSearchOpen] = useState(false);const searchShown = searchOpen || query !== "";const searchToggleRef = useRef<HTMLButtonElement>(null);const closeSearch = () => { setSearchOpen(false); setQuery(""); searchToggleRef.current?.focus(); };- const [lastExpandedDensity, setLastExpandedDensity] = useState<Exclude<SidebarDensity, "icons">>(- () => density === "icons" ? "comfortable" : density,- );const pinnedCircles = usePinnedCircles();const universalPins = useUniversalPins();const [pinnedCircleThreadsCollapsed, setPinnedCircleThreadsCollapsed] = useState(true);- const quietRows = density === "compact";useEffect(() => {- if (density !== "icons") setLastExpandedDensity(density);- else setQuery("");+ if (density === "icons") setQuery("");}, [density]);const toggleCollapsed = () => {- setSidebarDensity(density === "icons" ? lastExpandedDensity : "icons");+ setSidebarDensity(density === "icons" ? "comfortable" : "icons");};useEffect(() => {if (collapseToIcons || phone) return;const onKey = (event: KeyboardEvent) => { if (isSidebarToggle(event)) { event.preventDefault(); toggleCollapsed(); } };window.addEventListener("keydown", onKey);return () => window.removeEventListener("keydown", onKey);- }, [collapseToIcons, phone, density, lastExpandedDensity]);+ }, [collapseToIcons, phone, density]);useEffect(() => {if (!open || confirm || deletingRoom) return;@@ -1093,9 +1075,11 @@ export function Sidebar({ open, onClose, collapseToIcons = false }: {};// A framed window (WindowFrameBar) holds the traffic lights and the rail's button in its top bar, so the top row keeps- // no room for them; in Simple it is only the corner holding Search and New, with the bot tiles beside it.- const framed = windowFramed(capabilities.windowChrome), corner = framed && simpleDesk;- const draggableChrome = framed;+ // no room for them; in Simple it is only the corner holding Search and New, with the bot tiles beside it. With the+ // frame off on macOS, the traffic lights sit in the top row's corner.+ const framed = windowFramed(capabilities), corner = framed && simpleDesk;+ const lights = capabilities.windowChrome === "mac-inset" && !framed;+ const draggableChrome = capabilities.windowChrome !== "native";// SAFETY: Electron's -webkit-app-region is not in React's CSSProperties type; the renderer accepts it as an inline// style.const windowDragStyle = draggableChrome@@ -1163,7 +1147,7 @@ export function Sidebar({ open, onClose, collapseToIcons = false }: {const attention = crossBotAttentionThreads(state.bots, state.pendingQueued, undefined, state.groups);const pinnedThreads = crossBotPinnedThreads(state.bots, state.groups, state.pendingQueued);const pendingBotUndo = teamFeedback?.restoreBot;- const botRow = (bot: Bot) => botRowProps(state, dispatch, bot, { density, quiet: quietRows, query: q, onMenu: setMenu, renameRequest: renameRequest?.botId === bot.id ? renameRequest.nonce : 0, ...drops.row(bot.id) });+ const botRow = (bot: Bot) => botRowProps(state, dispatch, bot, { density, query: q, onMenu: setMenu, renameRequest: renameRequest?.botId === bot.id ? renameRequest.nonce : 0, ...drops.row(bot.id) });const railSearch = () => {if (collapseToIcons) return openCommandPalette();setSearchOpen(true);@@ -1266,18 +1250,19 @@ export function Sidebar({ open, onClose, collapseToIcons = false }: {aria-label={t("sidebar.aria")}data-native-view-overlaydata-sidebar+ data-framed={framed ? "" : undefined}onClick={(event) => {// The phone's list covers the whole screen: choosing the bot that is already open has to dismiss it too.if (phone && open && event.target instanceof Element && !(event.target instanceof HTMLInputElement) && event.target.closest("[data-sidebar-bot-row], [data-sidebar-hero]")) onClose();}}- onPointerEnter={() => showEdge(true)}- onPointerLeave={() => showEdge(false)}style={{ "--sidebar-width": `${sizing.width}px` } as CSSProperties}className={cn(- "relative flex h-full shrink-0 flex-col border-r border-ink/[0.04] bg-panel max-md:[--scroll-fade-surface:var(--color-app)]",- sizing.resizing ? "transition-none" : "transition-[width] duration-200",- density === "icons" ? rail ? "w-[92px]" : "w-[80px]" : density === "compact" ? "w-[272px] md:w-[var(--sidebar-width)]" : advanced ? "w-[320px] md:w-[var(--sidebar-width)]" : "w-[280px] md:w-[var(--sidebar-width)]",- sidePanelOpen ? density === "compact" ? "md:max-w-[272px]" : advanced ? "md:max-w-[320px]" : "md:max-w-[280px]" : "md:max-w-[calc(100vw-320px)]",+ "relative flex h-full shrink-0 flex-col max-md:[--scroll-fade-surface:var(--color-app)]",+ // Framed, the sidebar is the frame's: the window's frame colour shows through it, and the card's edge is its own.+ framed ? "[--scroll-fade-surface:var(--color-frame)]" : "border-r border-ink/[0.04] bg-panel",+ sizing.resizing && !sizing.snapping ? "transition-none" : "transition-[width] duration-200 motion-reduce:transition-none",+ density === "icons" ? rail ? "w-[92px]" : "w-[80px]" : advanced ? "w-[320px] md:w-[var(--sidebar-width)]" : "w-[280px] md:w-[var(--sidebar-width)]",+ sidePanelOpen ? advanced ? "md:max-w-[320px]" : "md:max-w-[280px]" : "md:max-w-[calc(100vw-320px)]",// max-md: rather than an md: cancel: Tailwind v4 emits the native `translate`, and any value but `none` makes// this a containing block for its `fixed` descendants."max-md:absolute max-md:inset-y-0 max-md:left-0 max-md:z-40 max-md:w-full max-md:bg-app",@@ -1293,12 +1278,16 @@ export function Sidebar({ open, onClose, collapseToIcons = false }: {"flex items-center",// The corner is no drag region and takes no clicks but its buttons': the tiles rise into the rest of it.density === "icons" ? "flex-col gap-1 px-2 pt-3.5 pb-1" : corner ? "pointer-events-none relative h-[34px] items-start justify-end px-1.5 pt-1.5" : simpleDesk ? "relative h-[60px] items-start pl-4 pr-4 pt-3" : "relative pl-4 pr-2",- density !== "icons" && !simpleDesk && "h-12 max-md:h-16",+ density !== "icons" && !simpleDesk && !lights && "h-12 max-md:h-16",)}- style={corner ? undefined : windowDragStyle}+ style={corner ? undefined : density !== "icons" && lights && !simpleDesk ? { ...windowDragStyle, height: MAC_TRAFFIC_LIGHT_CENTER_Y * 2 } : windowDragStyle}>{phone ? (<div className="shrink-0" style={windowNoDragStyle}><SidebarProfileMenu iconOnly circle /></div>+ ) : lights ? (+ // The traffic lights span 16-76px of the window; nothing clickable starts before 88px, with the window's rail+ // beside the page or not.+ <div aria-hidden="true" data-traffic-light-space className={density === "icons" ? "h-5 w-full" : "w-[72px] shrink-0 md:w-[calc(72px_-_var(--rail-beside,0px))]"} />) : null}{!phone && !framed && <ChromeRailToggle advanced={advanced} icons={density === "icons"} style={windowNoDragStyle} />}{rail && <div data-sidebar-rail-top className="flex flex-col items-center gap-2 pt-1" style={windowNoDragStyle}><button type="button" onClick={railSearch} aria-label={t("sidebar.searchAria")} title={t("sidebar.searchAria")} className={SIMPLE_TOP_BUTTON}>@@ -1320,18 +1309,6 @@ export function Sidebar({ open, onClose, collapseToIcons = false }: {style={windowNoDragStyle}>{simpleDesk && <SidebarSearchToggle ref={searchToggleRef} corner={corner} open={searchShown} onToggle={() => (searchShown ? closeSearch() : setSearchOpen(true))} />}- {!collapseToIcons && !phone && (advanced || density === "icons") && <button- type="button"- onClick={toggleCollapsed}- aria-label={density === "icons" ? t("sidebar.density.expand") : t("sidebar.density.collapseAria")}- className={cn(- "flex items-center justify-center text-ink-secondary transition-colors hover:bg-ink/[0.06] hover:text-ink focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",- density === "icons" ? "size-[46px] shrink-0 rounded-xl" : "size-8 rounded-full",- )}- title={density === "icons" ? t("sidebar.density.expand") : t("sidebar.density.collapse")}- >- {density === "icons" ? <PanelLeftOpen size={20} strokeWidth={1.5} /> : <PanelLeftClose size={18} strokeWidth={1.5} />}- </button>}{density === "icons" && <buttontype="button"onClick={openCommandPalette}@@ -1365,7 +1342,7 @@ export function Sidebar({ open, onClose, collapseToIcons = false }: {<div className={cn("absolute top-full z-40 mt-1 overflow-hidden", MENU_SHEET,density === "icons" ? "left-0" : "right-0",- density === "icons" ? "w-72" : density === "compact" ? "w-60 md:w-[min(240px,calc(var(--sidebar-width)_-_32px))]" : "w-72 md:w-[min(288px,calc(var(--sidebar-width)_-_32px))]",+ density === "icons" ? "w-72" : "w-72 md:w-[min(288px,calc(var(--sidebar-width)_-_32px))]",attentionMotion.className,)} {...attentionMotion.exitProps}><div className="flex items-center gap-1 py-0.5 pl-2">@@ -1432,7 +1409,6 @@ export function Sidebar({ open, onClose, collapseToIcons = false }: {{attentionPinned && density !== "icons" && (<SidebarAttentionPanelentries={attention}- density={density}onUnpin={() => setAttentionPinned(false)}onJump={(entry) => dispatch(attentionJumpAction(entry))}collapsed={sectionCollapsed(ATTENTION_SECTION_ID)}@@ -1443,7 +1419,6 @@ export function Sidebar({ open, onClose, collapseToIcons = false }: {{density !== "icons" && (<SidebarPinnedThreadsPanelentries={pinnedThreads}- density={density}now={now}onJump={(entry) => dispatch(attentionJumpAction(entry))}onUnpin={(entry) => dispatch(attentionUnpinAction(entry))}@@ -1455,8 +1430,8 @@ export function Sidebar({ open, onClose, collapseToIcons = false }: {{simpleDesk && !tiles && <SidebarNoBots />}</GlassBar>- {density !== "icons" && <SidebarResizeHandle sizing={sizing} sidebarRef={sidebarRef} style={windowNoDragStyle} />}- {!advanced && !collapseToIcons && <SidebarEdgeToggle collapsed={rail} shown={rail || edgeShown} onHover={showEdge} onToggle={toggleCollapsed} style={windowNoDragStyle} anchorRef={sidebarRef} />}+ {!collapseToIcons && !phone && <SidebarResizeHandle sizing={sizing} sidebarRef={sidebarRef} avatars={density === "icons"} avatarsWidth={rail ? 92 : 80}+ onAvatars={(avatars) => setSidebarDensity(avatars ? "icons" : "comfortable")} style={windowNoDragStyle} />}<GlassScroller className={rail ? "[scrollbar-gutter:stable_both-edges]" : simpleDesk ? "px-3" : "px-2"}><div className={cn("flex flex-col", simpleDesk ? cn("gap-0.5 pb-2", !tiles && "pt-2") : advanced ? "gap-0.5" : "gap-1 pb-2 pt-2")}>@@ -1549,7 +1524,6 @@ export function Sidebar({ open, onClose, collapseToIcons = false }: {key={group.id}group={group}density={density}- quiet={quietRows}query={q}onMenu={setRoomMenu}/>diff --git a/src/components/SidebarAttentionPanel.test.ts b/src/components/SidebarAttentionPanel.test.tsindex 3dc1ba30fa..0e6e288eb7 100644--- a/src/components/SidebarAttentionPanel.test.ts+++ b/src/components/SidebarAttentionPanel.test.ts@@ -34,7 +34,6 @@ function renderPanel(function Capture() {tree = SidebarAttentionPanel({entries,- density: "comfortable",onUnpin,onJump,collapsed: options.collapsed ?? false,@@ -106,7 +105,7 @@ describe("pinned attention panel", () => {it("disables collapse when search prevents layout changes", () => {const markup = renderToStaticMarkup(createElement(SidebarAttentionPanel, {- entries: [entry], density: "comfortable", onUnpin: vi.fn(), onJump: vi.fn(), collapsed: false,+ entries: [entry], onUnpin: vi.fn(), onJump: vi.fn(), collapsed: false,}));expect(markup).toMatch(/<button[^>]+disabled=""[^>]+aria-expanded="true"/);expect(markup).toContain("Review permission");diff --git a/src/components/SidebarAttentionPanel.tsx b/src/components/SidebarAttentionPanel.tsxindex 18e5c947d6..dd56d375e1 100644--- a/src/components/SidebarAttentionPanel.tsx+++ b/src/components/SidebarAttentionPanel.tsx@@ -1,24 +1,20 @@import { Activity, ChevronDown, ChevronRight, PinOff } from "lucide-react";-import { cn } from "@/lib/cn";import { t } from "@/lib/i18n";-import type { SidebarDensity } from "@/lib/sidebar-preferences";import { AttentionThreadRows, type AttentionThread } from "./SidebarBotActivity";-export function SidebarAttentionPanel({ entries, density, onUnpin, onJump, collapsed, onToggle }: {+export function SidebarAttentionPanel({ entries, onUnpin, onJump, collapsed, onToggle }: {entries: AttentionThread[];- density: SidebarDensity;onUnpin: () => void;onJump: (entry: AttentionThread) => void;collapsed: boolean;onToggle?: () => void;}) {- const compact = density === "compact";const Chevron = collapsed ? ChevronRight : ChevronDown;return (<sectiondata-testid="sidebar-attention-panel"aria-label={t("attention.title")}- className={cn("mx-2 overflow-hidden rounded-lg border border-hairline/40 bg-inset/30", compact ? "mb-1.5" : "mb-2")}+ className="mx-2 mb-2 overflow-hidden rounded-lg border border-hairline/40 bg-inset/30"><div className="flex items-center gap-1.5 px-2.5 pb-1 pt-1.5 text-[12px] font-medium text-ink-secondary"><button@@ -29,9 +25,9 @@ export function SidebarAttentionPanel({ entries, density, onUnpin, onJump, collaaria-label={t(collapsed ? "sidebar.section.expand" : "sidebar.section.collapse", { name: t("attention.title") })}className="flex size-5 shrink-0 items-center justify-center rounded text-ink-secondary hover:bg-raised hover:text-ink">- <Chevron size={compact ? 11 : 12} aria-hidden="true" />+ <Chevron size={12} aria-hidden="true" /></button>- <Activity size={compact ? 11 : 12} aria-hidden="true" className="shrink-0" />+ <Activity size={12} aria-hidden="true" className="shrink-0" /><span className="min-w-0 flex-1 truncate">{t("attention.title")}</span>{entries.length > 0 && (<span className="text-[11px] font-normal tabular-nums">{entries.length}</span>@@ -43,7 +39,7 @@ export function SidebarAttentionPanel({ entries, density, onUnpin, onJump, collatitle={t("attention.unpin")}className="flex size-5 shrink-0 items-center justify-center rounded text-ink-secondary hover:bg-raised hover:text-ink">- <PinOff size={compact ? 11 : 12} aria-hidden="true" />+ <PinOff size={12} aria-hidden="true" /></button></div>{!collapsed && (entries.length === 0 ? (diff --git a/src/components/SidebarBotListItem.expansion.test.ts b/src/components/SidebarBotListItem.expansion.test.tsindex 8d3fa5988c..c52aebaab1 100644--- a/src/components/SidebarBotListItem.expansion.test.ts+++ b/src/components/SidebarBotListItem.expansion.test.ts@@ -48,7 +48,7 @@ const bot: Bot = {function render(candidate = bot, query = "") {fixture.cursor = 0; fixture.effects = []; fixture.capturing = true;let row;- try { row = (BotListItem as MemoExoticComponent<(props: BotRowProps) => ReactNode>).type(botRowProps({ ...initialState, ...fixture.state }, vi.fn(), candidate, { query, density: "comfortable", quiet: false, onMenu: vi.fn() })); }+ try { row = (BotListItem as MemoExoticComponent<(props: BotRowProps) => ReactNode>).type(botRowProps({ ...initialState, ...fixture.state }, vi.fn(), candidate, { query, density: "comfortable", onMenu: vi.fn() })); }finally { fixture.capturing = false; }return renderToStaticMarkup(row);}diff --git a/src/components/SidebarBotListItem.test.ts b/src/components/SidebarBotListItem.test.tsindex 56b98f2393..e48994623f 100644--- a/src/components/SidebarBotListItem.test.ts+++ b/src/components/SidebarBotListItem.test.ts@@ -33,8 +33,8 @@ const bot = (overrides: Partial<Bot> = {}): Bot => ({...overrides,});-function renderRow(candidate: Bot, quiet = false, density: "comfortable" | "icons" = "comfortable") {- return renderToStaticMarkup(createElement(BotListItem, botRowProps(initialState, vi.fn(), candidate, { density, quiet, query: "", onMenu: vi.fn() })));+function renderRow(candidate: Bot, density: "comfortable" | "icons" = "comfortable") {+ return renderToStaticMarkup(createElement(BotListItem, botRowProps(initialState, vi.fn(), candidate, { density, query: "", onMenu: vi.fn() })));}afterEach(() => {@@ -65,7 +65,7 @@ describe("BotListItem", () => {expect(waiting).toContain('class="flex min-w-0 items-center gap-1.5 truncate text-[13px] leading-[18px] font-semibold text-warning"');expect(waiting).toContain('class="truncate">Waiting for you…</span>');- const icons = opening(renderRow(bot({ activity: "waiting-on-you" }), false, "icons"), "waiting-dot");+ const icons = opening(renderRow(bot({ activity: "waiting-on-you" }), "icons"), "waiting-dot");expect(icons).toContain("size-5");expect(icons).toContain("bg-warning");expect(icons).not.toContain("size-4");@@ -141,7 +141,7 @@ describe("BotListItem", () => {const spoken = { id: "u1", role: "user", kind: "text", text: "what is the weather", at: at(0), via: "call", callId: "c1" };const draw = (candidate: Bot, { selected = false, query = "" } = {}) => renderToStaticMarkup(createElement(BotListItem, botRowProps(selected ? { ...initialState, activeView: "chat", selectedId: candidate.id } : initialState,- vi.fn(), candidate, { density: "comfortable", quiet: false, query, onMenu: vi.fn() },+ vi.fn(), candidate, { density: "comfortable", query, onMenu: vi.fn() },)));it("previews the last reply, not the record that follows it", () => {@@ -249,10 +249,10 @@ describe("BotListItem", () => {});it("keeps the title in an icons-only row's name and tooltip", () => {- const icons = renderRow(bot({ chiefOfStaff: true, title: " Developer " }), false, "icons");+ const icons = renderRow(bot({ chiefOfStaff: true, title: " Developer " }), "icons");expect(icons).toContain('aria-label="Atlas · Developer · Chief of Staff"');expect(icons).toContain('title="Atlas · Developer"');- const untitled = renderRow(bot(), false, "icons");+ const untitled = renderRow(bot(), "icons");expect(untitled).toContain('aria-label="Atlas"');expect(untitled).toContain('title="Atlas"');});@@ -337,9 +337,8 @@ describe("BotListItem", () => {expect(markup).toContain('aria-label="On a Live call"');expect(markup.indexOf('data-testid="live-call-badge"')).toBeGreaterThan(markup.indexOf(">Atlas<"));expect(renderRow(bot({ id: "other" }))).not.toContain('data-testid="live-call-badge"');- expect(renderRow(bot(), true)).toContain('data-testid="live-call-badge"');- const icons = renderRow(bot(), false, "icons");+ const icons = renderRow(bot(), "icons");expect(icons).toContain('data-testid="live-call-badge"');expect(icons).toContain('aria-label="Atlas · On a Live call"');});@@ -436,49 +435,4 @@ describe("bot deletion feedback", () => {expect(markup).toContain(">Delete</button>");expect(markup).not.toContain('disabled=""');});-- describe("quiet rows", () => {- const titleLine = /<div class="truncate text-\[11px\][^"]*">([^<]*)<\/div>/;-- it("reduces an idle bot to one line, its name and role: no title line, no Chief line, no preview", () => {- const markup = renderRow(bot({- title: "Developer",- chiefOfStaff: true,- messages: [{ id: "b1", role: "bot", kind: "text", text: "Created notes.txt with three lines.", at: 2 }] as Bot["messages"],- }), true);- expect(titleLine.test(markup)).toBe(false);- expect(markup).not.toContain("Chief of Staff</span>");- expect(markup).not.toContain("Created notes.txt with three lines.");- expect(markup).toContain(">Atlas<");- expect(markup).toContain('<span class="sr-only">, </span>Developer</span>');- expect(markup).toContain('data-testid="chief-crown"');- expect(markup).toContain('aria-label="Chief of Staff"');- });-- it("keeps the status line while something is happening", () => {- expect(renderRow(bot({ busy: true }), true)).toContain('data-sidebar-working-phrase=""');- expect(renderRow(bot({ activity: "waiting-on-you" }), true)).toContain("Waiting for you…");- expect(renderRow(bot({ waitingForTeammates: true, busy: false }), true)).toContain("Waiting on a teammate…");- });-- it("keeps the unread dot in the name line when the preview line is gone", () => {- const markup = renderRow(bot({ unread: true, messages: [{ id: "b1", role: "bot", kind: "text", text: "hello", at: 1 }] as Bot["messages"] }), true);- expect(markup).toContain('aria-label="Unread threads"');- expect(markup).not.toContain(">hello<");- });-- it("puts the crown right after the name, inside the name line", () => {- const markup = renderRow(bot({ chiefOfStaff: true }), true);- expect(markup.indexOf('data-testid="chief-crown"')).toBeGreaterThan(markup.indexOf(">Atlas<"));- });-- it("draws the same crown as a full row", () => {- const quiet = renderRow(bot({ title: "Developer", chiefOfStaff: true }), true);- const full = renderRow(bot({ title: "Developer", chiefOfStaff: true }));- for (const markup of [quiet, full]) {- expect(markup.match(/data-testid="chief-crown"/g)).toHaveLength(1);- expect(markup).not.toContain("Chief of Staff</span>");- }- });- });});diff --git a/src/components/SidebarFooterNav.files.test.ts b/src/components/SidebarFooterNav.files.test.tsindex 3b0956a6a9..659f903a66 100644--- a/src/components/SidebarFooterNav.files.test.ts+++ b/src/components/SidebarFooterNav.files.test.ts@@ -34,9 +34,9 @@ beforeEach(() => {});afterEach(() => { act(() => root.unmount()); host.remove(); delete window.ogb; });-it.each(["comfortable", "compact"] as const)("leaves Files out of Simple mode's footer and rail, since the account menu holds it (%s)", async (density) => {+it("leaves Files out of Simple mode's footer and rail, since the account menu holds it", async () => {bridge("idle");- await render(density);+ await render("comfortable");expect(row()).toBeNull();await render("icons", {}, true);expect(row()).toBeNull();diff --git a/src/components/SidebarFooterNav.test.ts b/src/components/SidebarFooterNav.test.tsindex 65be8d65f3..aac1523b33 100644--- a/src/components/SidebarFooterNav.test.ts+++ b/src/components/SidebarFooterNav.test.ts@@ -47,9 +47,9 @@ beforeEach(() => {afterEach(() => vi.unstubAllGlobals());describe("sidebar footer places", () => {- it.each(["comfortable", "compact"] as const)("leads Advanced mode's places with Automations, then Team map, with Apps beside the profile instead (%s)", (density) => {+ it("leads Advanced mode's places with Automations, then Team map, with Apps beside the profile instead", () => {fixture.advanced = true;- const { html } = render(density);+ const { html } = render("comfortable");const order = ["automations", "team-map"].map((id) => html.indexOf(`data-sidebar-nav="${id}"`));expect(order.every((index) => index >= 0)).toBe(true);expect(order).toEqual([...order].sort((a, b) => a - b));@@ -59,8 +59,8 @@ describe("sidebar footer places", () => {expect(html).not.toContain('data-sidebar-nav="apps"');});- it.each(["comfortable", "compact"] as const)("leaves no places in Simple mode's sidebar while Files is off: Automations and Team map are in the bottom bar (%s)", (density) => {- expect(render(density).html).toBe("");+ it("leaves no places in Simple mode's sidebar while Files is off: Automations and Team map are in the bottom bar", () => {+ expect(render("comfortable").html).toBe("");});it.each([false, true])("puts Automations on the avatars-only density ahead of Apps, with Team map (advanced: %s)", (advanced) => {@@ -148,9 +148,9 @@ describe("sidebar footer places", () => {});describe("Tools header", () => {- it.each(["comfortable", "compact"] as const)("labels the places with a Tools header, expanded by default (%s)", (density) => {+ it("labels the places with a Tools header, expanded by default", () => {fixture.advanced = true;- const { html } = render(density);+ const { html } = render("comfortable");expect(html).toContain(">Tools<");expect(html).toContain('aria-expanded="true"');expect(html.indexOf(">Tools<")).toBeLessThan(html.indexOf('data-sidebar-nav="automations"'));@@ -234,9 +234,9 @@ describe("Apps beside the profile", () => {});describe("toolbar tools layout", () => {- it.each(["comfortable", "compact"] as const)("toolbar renders the places as icon buttons with labels (%s)", (density) => {+ it("toolbar renders the places as icon buttons with labels", () => {fixture.advanced = true;- const { html } = render(density, { toolsLayout: "toolbar" });+ const { html } = render("comfortable", { toolsLayout: "toolbar" });expect(html).toContain('class="flex flex-row gap-1"');expect(html).not.toContain("flex-col");for (const label of ["Automations", "Team map"]) {diff --git a/src/components/SidebarGroupThreadList.tsx b/src/components/SidebarGroupThreadList.tsxindex 6ab1754adf..03c0acac19 100644--- a/src/components/SidebarGroupThreadList.tsx+++ b/src/components/SidebarGroupThreadList.tsx@@ -2,11 +2,10 @@ import { useMemo, useRef, useState } from "react";import { useStore, type Group } from "@/state/store";import { activeLocale, t } from "@/lib/i18n";import { roomThreadSpeakerId, roomThreadWorking } from "@/lib/room-threads";-import type { SidebarDensity } from "@/lib/sidebar-preferences";import { BulkSelectFilters, ThreadListFooter, deleteThreadsInBulk, useBulkSelect } from "./BulkSelectBar";import { orderedThreadList, SidebarThreadRow, stampClock, threadRecency, useRelativeNow, useRevealedThreadRow, visibleSidebarThreads } from "./SidebarThreadRow";-export function GroupThreadList({ group, selected, density = "comfortable", query = "" }: { group: Group; selected: boolean; density?: SidebarDensity; query?: string }) {+export function GroupThreadList({ group, selected, query = "" }: { group: Group; selected: boolean; query?: string }) {const { state, dispatch } = useStore();const now = useRelativeNow();const [showAll, setShowAll] = useState(false);@@ -37,7 +36,7 @@ export function GroupThreadList({ group, selected, density = "comfortable", querconst locale = activeLocale();return <div className="mb-2 space-y-0.5" role="group" aria-label={t("task.namedList", { name: group.name })}>{bulk.active && <BulkSelectFilters rows={visible} selected={selection} now={now} onChange={bulk.setSelected} onDone={bulk.finish} />}- {visible.map((task) => <SidebarThreadRow key={task.threadId} task={task} ownerId={group.id} current={selected && task.threadId === group.threadId} compact={density === "compact"}+ {visible.map((task) => <SidebarThreadRow key={task.threadId} task={task} ownerId={group.id} current={selected && task.threadId === group.threadId}now={stampClock(threadRecency(task), now)} locale={locale} {...actions} selectMode={bulk.active} checked={selection.has(task.threadId)} onToggleSelect={bulk.toggle} />)}<ThreadListFooter bulk={bulk} rows={visible} selected={selection} total={tasks.length} canShowAll={!query && !showAll && tasks.length > visible.length} canSelect={tasks.length > 1 && !group.dm}onShowAll={() => setShowAll(true)} maxDeletable={tasks.length - 1} freshConversation={false} onDelete={(threadIds) => deleteThreadsInBulk({ groupId }, threadIds, dispatch)} />diff --git a/src/components/SidebarPhoneButton.test.ts b/src/components/SidebarPhoneButton.test.tsindex 9fbc3d76f5..50d5a7c382 100644--- a/src/components/SidebarPhoneButton.test.ts+++ b/src/components/SidebarPhoneButton.test.ts@@ -112,7 +112,7 @@ describe("sidebar phone status", () => {});describe("SidebarPhoneStatusButton", () => {- const render = (density: "comfortable" | "compact" | "icons", status: SidebarPhoneStatus) =>+ const render = (density: "comfortable" | "icons", status: SidebarPhoneStatus) =>renderToStaticMarkup(createElement(SidebarPhoneStatusButton, {density,status,@@ -156,17 +156,4 @@ describe("SidebarPhoneStatusButton", () => {expect(stale).not.toContain("data-phone-plus");expect(stale).not.toContain("text-success");});-- it("uses the same fixed-size control in the compact text sidebar", () => {- const markup = render("compact", {- kind: "stale",- label: "Device paired, not active recently",- pairedCount: 1,- connectedCount: 0,- });-- expect(markup).toContain('data-sidebar-density="compact"');- expect(markup).toContain("size-[46px]");- expect(markup).toContain("shrink-0");- });});diff --git a/src/components/SidebarPinnedThreadsPanel.test.ts b/src/components/SidebarPinnedThreadsPanel.test.tsindex 8411f18aa3..41d5426603 100644--- a/src/components/SidebarPinnedThreadsPanel.test.ts+++ b/src/components/SidebarPinnedThreadsPanel.test.ts@@ -34,7 +34,6 @@ function renderPanel(function Capture() {tree = SidebarPinnedThreadsPanel({entries,- density: "comfortable",now: 1,onJump,collapsed: options.collapsed ?? false,@@ -91,7 +90,7 @@ describe("pinned threads panel", () => {it("disables collapse when search prevents layout changes", () => {const markup = renderToStaticMarkup(createElement(SidebarPinnedThreadsPanel, {- entries: [entry], density: "comfortable", now: 1, onUnpin: vi.fn(), onJump: vi.fn(), collapsed: false,+ entries: [entry], now: 1, onUnpin: vi.fn(), onJump: vi.fn(), collapsed: false,}));expect(markup).toMatch(/<button[^>]+disabled=""[^>]+aria-expanded="true"/);expect(markup).toContain("Quarterly plan");diff --git a/src/components/SidebarPinnedThreadsPanel.tsx b/src/components/SidebarPinnedThreadsPanel.tsxindex c3ee1f50d8..330d970aca 100644--- a/src/components/SidebarPinnedThreadsPanel.tsx+++ b/src/components/SidebarPinnedThreadsPanel.tsx@@ -1,12 +1,9 @@import { ChevronDown, ChevronRight, Pin } from "lucide-react";-import { cn } from "@/lib/cn";import { t } from "@/lib/i18n";-import type { SidebarDensity } from "@/lib/sidebar-preferences";import { PinnedThreadRows, type AttentionThread } from "./SidebarBotActivity";-export function SidebarPinnedThreadsPanel({ entries, density, now, onJump, onUnpin, collapsed, onToggle }: {+export function SidebarPinnedThreadsPanel({ entries, now, onJump, onUnpin, collapsed, onToggle }: {entries: AttentionThread[];- density: SidebarDensity;now: number;onJump: (entry: AttentionThread) => void;onUnpin: (entry: AttentionThread) => void;@@ -14,13 +11,12 @@ export function SidebarPinnedThreadsPanel({ entries, density, now, onJump, onUnponToggle?: () => void;}) {if (entries.length === 0) return null;- const compact = density === "compact";const Chevron = collapsed ? ChevronRight : ChevronDown;return (<sectiondata-testid="sidebar-pinned-threads-panel"aria-label={t("sidebar.pinnedThreads.title")}- className={cn("mx-2 overflow-hidden rounded-lg border border-hairline/40 bg-inset/30", compact ? "mb-1.5" : "mb-2")}+ className="mx-2 mb-2 overflow-hidden rounded-lg border border-hairline/40 bg-inset/30"><div className="flex items-center gap-1.5 px-2.5 pb-1 pt-1.5 text-[12px] font-medium text-ink-secondary"><button@@ -31,9 +27,9 @@ export function SidebarPinnedThreadsPanel({ entries, density, now, onJump, onUnparia-label={t(collapsed ? "sidebar.section.expand" : "sidebar.section.collapse", { name: t("sidebar.pinnedThreads.title") })}className="flex size-5 shrink-0 items-center justify-center rounded text-ink-secondary hover:bg-raised hover:text-ink">- <Chevron size={compact ? 11 : 12} aria-hidden="true" />+ <Chevron size={12} aria-hidden="true" /></button>- <Pin size={compact ? 11 : 12} aria-hidden="true" className="shrink-0" />+ <Pin size={12} aria-hidden="true" className="shrink-0" /><span className="min-w-0 flex-1 truncate">{t("sidebar.pinnedThreads.title")}</span><span className="text-[11px] font-normal tabular-nums">{entries.length}</span></div>diff --git a/src/components/SidebarResizeHandle.test.ts b/src/components/SidebarResizeHandle.test.tsnew file mode 100644index 0000000000..f86b1c82c0--- /dev/null+++ b/src/components/SidebarResizeHandle.test.ts@@ -0,0 +1,137 @@+// @vitest-environment happy-dom+import { act, createElement, useRef, useState } from "react";+import { createRoot, type Root } from "react-dom/client";+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";++import { setLocale } from "@/lib/i18n";+import { SIDEBAR_WIDTH_KEY } from "@/lib/sidebar-preferences";+import { AVATARS_BELOW, nextEdgeDrag, SidebarResizeHandle, useSidebarWidth } from "./SidebarResizeHandle";++(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;++/** The sidebar starts this far from the window's left edge, beside the window's rail. */+const LEFT = 36;+let host: HTMLDivElement, root: Root | null = null;+let seen: boolean[];++function Harness({ avatars: startAvatars }: { avatars: boolean }) {+ const sidebarRef = useRef<HTMLElement>(null);+ const [avatars, setAvatars] = useState(startAvatars);+ const sizing = useSidebarWidth({ simple: false, sidePanelOpen: false, sidebarRef });+ return createElement("aside", { ref: sidebarRef, "data-sidebar": "", style: { "--sidebar-width": `${sizing.width}px` } },+ createElement(SidebarResizeHandle, { sizing, sidebarRef, avatars, avatarsWidth: 80, onAvatars: (next: boolean) => { seen.push(next); setAvatars(next); } }));+}++async function mount(avatars = false) {+ root = createRoot(host);+ await act(async () => root!.render(createElement(Harness, { avatars })));+}+const sidebar = () => host.querySelector<HTMLElement>("[data-sidebar]")!;+const edge = () => host.querySelector<HTMLElement>("[data-sidebar-resize]")!;+const width = () => sidebar().style.getPropertyValue("--sidebar-width");+const pointer = (type: string, at: number) => act(async () => {+ edge().dispatchEvent(new PointerEvent(type, { bubbles: true, button: 0, pointerId: 1, clientX: LEFT + at }));+});+const key = (name: string) => act(async () => { edge().dispatchEvent(new KeyboardEvent("keydown", { key: name, bubbles: true })); });++beforeEach(() => {+ setLocale("en");+ const saved = new Map<string, string>();+ vi.stubGlobal("localStorage", { getItem: (name: string) => saved.get(name) ?? null, setItem: (name: string, value: string) => { saved.set(name, value); } });+ seen = [];+ host = document.createElement("div");+ document.body.append(host);+ vi.spyOn(HTMLElement.prototype, "getBoundingClientRect").mockImplementation(function (this: HTMLElement) {+ const wide = this.hasAttribute("data-sidebar") ? Number.parseFloat(this.style.getPropertyValue("--sidebar-width")) || 0 : 0;+ return { left: LEFT, top: 0, width: wide, height: 800, right: LEFT + wide, bottom: 800, x: LEFT, y: 0, toJSON() {} } as DOMRect;+ });+});+afterEach(async () => {+ await act(async () => root?.unmount());+ root = null;+ host.remove();+ vi.restoreAllMocks();+ vi.unstubAllGlobals();+});++describe("a drag of the sidebar's edge", () => {+ it("is the column of avatars below its threshold, and open above it: at the width it had until the pointer reaches that edge", () => {+ const open = { avatars: false, following: true };+ expect(nextEdgeDrag(open, 300, 320)).toEqual(open);+ expect(nextEdgeDrag(open, AVATARS_BELOW - 1, 320)).toEqual({ avatars: true, following: false });+ const opened = nextEdgeDrag({ avatars: true, following: false }, AVATARS_BELOW, 320);+ expect(opened).toEqual({ avatars: false, following: false });+ expect(nextEdgeDrag(opened, 250, 320), "short of the edge it opened at").toEqual({ avatars: false, following: false });+ expect(nextEdgeDrag(opened, 320, 320)).toEqual({ avatars: false, following: true });+ });++ it("narrower than the threshold, becomes the column of avatars, and the sidebar keeps the width it had for when it opens", async () => {+ localStorage.setItem(SIDEBAR_WIDTH_KEY, "320");+ await mount();+ await pointer("pointerdown", 320);+ expect(edge().getAttribute("data-sidebar-resize"), "the edge is lit while it is dragged").toBe("dragging");+ await pointer("pointermove", 260);+ expect(width()).toBe("260px");+ await pointer("pointermove", 100);+ expect(seen).toEqual([true]);+ expect(width(), "back to the width it had").toBe("320px");+ await pointer("pointerup", 100);+ expect(localStorage.getItem(SIDEBAR_WIDTH_KEY)).toBe("320");+ expect(edge().getAttribute("data-sidebar-resize")).toBe("");+ });++ it("out of the column of avatars, opens the sidebar at its last width, then follows the pointer past that edge, and keeps where it is left", async () => {+ localStorage.setItem(SIDEBAR_WIDTH_KEY, "300");+ await mount(true);+ expect(edge().getAttribute("aria-valuenow"), "as avatars, the edge reports the column's width").toBe("80");+ await pointer("pointerdown", 80);+ await pointer("pointermove", AVATARS_BELOW - 10);+ expect(seen).toEqual([]);+ await pointer("pointermove", 200);+ expect(seen).toEqual([false]);+ expect(width()).toBe("300px");+ await pointer("pointermove", 250);+ expect(width(), "the pointer hasn't reached the open sidebar's edge").toBe("300px");+ await pointer("pointermove", 340);+ expect(width()).toBe("340px");+ await pointer("pointerup", 340);+ expect(localStorage.getItem(SIDEBAR_WIDTH_KEY)).toBe("340");+ });++ it("goes back to the avatars and out again in one drag", async () => {+ localStorage.setItem(SIDEBAR_WIDTH_KEY, "320");+ await mount();+ await pointer("pointerdown", 320);+ await pointer("pointermove", 120);+ await pointer("pointermove", 220);+ expect(seen).toEqual([true, false]);+ expect(width()).toBe("320px");+ await pointer("pointerup", 220);+ expect(localStorage.getItem(SIDEBAR_WIDTH_KEY)).toBe("320");+ });++ it("left open, keeps the width it leaves", async () => {+ localStorage.setItem(SIDEBAR_WIDTH_KEY, "320");+ await mount();+ await pointer("pointerdown", 320);+ await pointer("pointermove", 280);+ await pointer("pointerup", 280);+ expect(seen).toEqual([]);+ expect(localStorage.getItem(SIDEBAR_WIDTH_KEY)).toBe("280");+ });+});++describe("the sidebar's edge from the keyboard", () => {+ it("steps narrower to the open sidebar's narrowest, then to the avatars, and the right arrow opens it again", async () => {+ localStorage.setItem(SIDEBAR_WIDTH_KEY, "256");+ await mount();+ await key("ArrowLeft");+ expect(width()).toBe("240px");+ expect(seen).toEqual([]);+ await key("ArrowLeft");+ expect(seen).toEqual([true]);+ await key("ArrowRight");+ expect(seen).toEqual([true, false]);+ expect(width()).toBe("240px");+ });+});diff --git a/src/components/SidebarResizeHandle.tsx b/src/components/SidebarResizeHandle.tsxindex f99a164863..7fc0055cb6 100644--- a/src/components/SidebarResizeHandle.tsx+++ b/src/components/SidebarResizeHandle.tsx@@ -1,39 +1,57 @@import { useEffect, useRef, useState, type CSSProperties, type RefObject } from "react";+import { cn } from "@/lib/cn";import { t } from "@/lib/i18n";import {+ SIDEBAR_MIN_WIDTH,SIDEBAR_WIDTH_KEY,SIMPLE_SIDEBAR_WIDTH_KEY,clampSidebarWidth,loadSidebarWidth,saveSidebarWidth,- type SidebarDensity,} from "@/lib/sidebar-preferences";-export function sidebarDefaultWidth(density: SidebarDensity, simple: boolean): number {- return density === "compact" ? 272 : simple ? 280 : 320;+export function sidebarDefaultWidth(simple: boolean): number {+ return simple ? 280 : 320;+}++/** Narrower than this, the sidebar's dragged edge leaves its column of avatars; wider again, the sidebar opens. */+export const AVATARS_BELOW = 160;++/** Where a drag of the sidebar's edge has it: its column of avatars, or open; open, at the width it had until the+ * pointer reaches that edge (`following` false), then wherever the pointer is. */+export interface EdgeDrag { avatars: boolean; following: boolean }++/** The drag after the pointer moved to `wanted` pixels from the sidebar's left; `from` is the width it opens at. */+export function nextEdgeDrag(drag: EdgeDrag, wanted: number, from: number): EdgeDrag {+ if (wanted < AVATARS_BELOW) return { avatars: true, following: false };+ if (drag.avatars) return { avatars: false, following: false };+ return { avatars: false, following: drag.following || wanted >= from };}export type SidebarSizing = ReturnType<typeof useSidebarWidth>;-export function useSidebarWidth({ simple, density, sidePanelOpen, sidebarRef }: {+export function useSidebarWidth({ simple, sidePanelOpen, sidebarRef }: {simple: boolean;- density: SidebarDensity;sidePanelOpen: boolean;sidebarRef: RefObject<HTMLElement | null>;}) {const key = simple ? SIMPLE_SIDEBAR_WIDTH_KEY : SIDEBAR_WIDTH_KEY;- const defaultWidth = sidebarDefaultWidth(density, simple);+ const defaultWidth = sidebarDefaultWidth(simple);const cap = simple ? 400 : 480;const maxWidth = sidePanelOpen ? defaultWidth : Math.min(cap, window.innerWidth - 320);const [savedWidth, setSavedWidth] = useState<number | null>(() => loadSidebarWidth(undefined, key));const widthRef = useRef(savedWidth);const [resizing, setResizing] = useState(false);+ const [snapping, setSnapping] = useState(false);+ const snapTimer = useRef<ReturnType<typeof setTimeout> | null>(null);useEffect(() => {const width = loadSidebarWidth(undefined, key);widthRef.current = width;setSavedWidth(width);}, [key]);+ useEffect(() => () => { if (snapTimer.current) clearTimeout(snapTimer.current); }, []);+ const current = () => Math.min(widthRef.current ?? defaultWidth, maxWidth);const resizeTo = (width: number) => {const next = clampSidebarWidth(width, sidePanelOpen ? defaultWidth + 320 : window.innerWidth, cap);if (next === Math.round(sidebarRef.current?.getBoundingClientRect().width ?? defaultWidth)) return null;@@ -45,62 +63,102 @@ export function useSidebarWidth({ simple, density, sidePanelOpen, sidebarRef }:setSavedWidth(width);saveSidebarWidth(width, undefined, key);};- const finishResize = () => {- setResizing(false);- if (widthRef.current !== null) save(widthRef.current);- };return {width: Math.min(widthRef.current ?? defaultWidth, cap),defaultWidth,maxWidth,resizing,+ /** A drag just took the sidebar to its avatars or back: its width animates, mid-drag too. */+ snapping,valueNow: Math.min(savedWidth ?? defaultWidth, maxWidth),- startResize: () => setResizing(true),+ atMinimum: () => current() <= SIDEBAR_MIN_WIDTH,+ /** A drag begins: the width the sidebar has now. */+ startResize: () => { setResizing(true); return current(); },resizeTo,- finishResize,+ /** Back to `width`, unsaved: the drag ends where the sidebar was. */+ restore: (width: number) => {+ widthRef.current = width;+ sidebarRef.current?.style.setProperty("--sidebar-width", `${width}px`);+ },+ snap: () => {+ if (snapTimer.current) clearTimeout(snapTimer.current);+ setSnapping(true);+ snapTimer.current = setTimeout(() => setSnapping(false), 220);+ },+ /** The drag ends, and the width it left is kept. */+ finishResize: () => {+ setResizing(false);+ if (widthRef.current !== null) save(widthRef.current);+ },stepResize: (step: number) => {- const next = resizeTo(Math.min(widthRef.current ?? defaultWidth, maxWidth) + step);+ const next = resizeTo(current() + step);if (next !== null) save(next);},};}-export function SidebarResizeHandle({ sizing, sidebarRef, style }: {+/** The sidebar's edge: dragged, it resizes the sidebar, and past AVATARS_BELOW it leaves the column of avatars or opens+ * the sidebar again at its last width. The arrow keys do the same, a step at a time. */+export function SidebarResizeHandle({ sizing, sidebarRef, avatars, avatarsWidth, onAvatars, style }: {sizing: SidebarSizing;sidebarRef: RefObject<HTMLElement | null>;+ avatars: boolean;+ avatarsWidth: number;+ onAvatars: (avatars: boolean) => void;style?: CSSProperties;}) {+ const drag = useRef<{ state: EdgeDrag; from: number } | null>(null);+ const [dragging, setDragging] = useState(false);+ const end = () => {+ const ended = drag.current;+ drag.current = null;+ setDragging(false);+ if (ended) sizing.finishResize();+ };return (<divrole="separator"aria-label={t("sidebar.resize")}aria-orientation="vertical"- aria-valuemin={240}+ aria-valuemin={avatarsWidth}aria-valuemax={sizing.maxWidth}- aria-valuenow={sizing.valueNow}+ aria-valuenow={avatars ? avatarsWidth : sizing.valueNow}tabIndex={0}- data-sidebar-resize- className="absolute inset-y-0 -right-1 z-20 hidden w-2 cursor-col-resize touch-none hover:bg-accent/20 focus-visible:bg-accent/30 md:block"+ data-sidebar-resize={dragging ? "dragging" : ""}+ className={cn("absolute inset-y-0 -right-1 z-20 hidden w-2 cursor-col-resize touch-none md:block",+ "after:absolute after:inset-y-0 after:left-[3px] after:w-0.5 after:transition-colors after:duration-150 hover:after:bg-accent/50 focus-visible:after:bg-accent",+ dragging && "after:bg-accent")}style={style}onPointerDown={(event) => {if (event.button !== 0) return;event.preventDefault();event.currentTarget.setPointerCapture(event.pointerId);- sizing.startResize();+ drag.current = { state: { avatars, following: !avatars }, from: sizing.startResize() };+ setDragging(true);}}onPointerMove={(event) => {- if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;- const next = sizing.resizeTo(event.clientX - (sidebarRef.current?.getBoundingClientRect().left ?? 0));- if (next !== null) event.currentTarget.setAttribute("aria-valuenow", String(next));- }}- onPointerUp={(event) => {- if (event.currentTarget.hasPointerCapture(event.pointerId)) sizing.finishResize();+ const current = drag.current;+ if (!current || !event.currentTarget.hasPointerCapture(event.pointerId)) return;+ const wanted = event.clientX - (sidebarRef.current?.getBoundingClientRect().left ?? 0);+ const next = nextEdgeDrag(current.state, wanted, current.from);+ if (next.avatars !== current.state.avatars) {+ sizing.snap();+ if (next.avatars) sizing.restore(current.from);+ onAvatars(next.avatars);+ }+ current.state = next;+ const width = next.following ? sizing.resizeTo(wanted) : null;+ if (width !== null) event.currentTarget.setAttribute("aria-valuenow", String(width));}}- onPointerCancel={sizing.finishResize}+ onPointerUp={end}+ onPointerCancel={end}onKeyDown={(event) => {if (event.key !== "ArrowLeft" && event.key !== "ArrowRight") return;event.preventDefault();- sizing.stepResize(event.key === "ArrowRight" ? 16 : -16);+ const wider = event.key === "ArrowRight";+ if (avatars) { if (wider) onAvatars(false); return; }+ if (!wider && sizing.atMinimum()) onAvatars(true);+ else sizing.stepResize(wider ? 16 : -16);}}/>);diff --git a/src/components/SidebarSimpleTop.dom.test.ts b/src/components/SidebarSimpleTop.dom.test.tsdeleted file mode 100644index ecf6fed6c9..0000000000--- a/src/components/SidebarSimpleTop.dom.test.ts+++ /dev/null@@ -1,85 +0,0 @@-// @vitest-environment happy-dom-// The Simple sidebar's edge bump in a real DOM: it must end up last in <body>, pinned to the sidebar's edge, because-// Electron applies -webkit-app-region rects in document order and the chat header's drag rect comes after the sidebar.-import { createElement, useRef } from "react";-import { flushSync } from "react-dom";-import { createRoot, type Root } from "react-dom/client";-import { afterEach, beforeEach, expect, it, vi } from "vitest";--import { SidebarEdgeToggle } from "./SidebarSimpleTop";--let container: HTMLDivElement;-let root: Root;-beforeEach(() => {- vi.stubGlobal("ResizeObserver", class { observe() {} disconnect() {} });- container = document.createElement("div");- document.body.append(container);- root = createRoot(container);-});-afterEach(() => {- flushSync(() => root.unmount());- container.remove();- document.body.innerHTML = "";- vi.unstubAllGlobals();-});--function Harness({ onToggle }: { onToggle: () => void }) {- const aside = useRef<HTMLElement>(null);- return createElement("aside", { ref: aside, "data-sidebar": "" },- createElement(SidebarEdgeToggle, { collapsed: false, onToggle, anchorRef: aside, style: { WebkitAppRegion: "no-drag" } as never }));-}--it("moves the bump to the end of <body>, pinned to the sidebar's right edge, after mounting", async () => {- vi.spyOn(HTMLElement.prototype, "getBoundingClientRect").mockImplementation(function (this: HTMLElement) {- return { left: 0, top: 0, width: 288, height: 900, right: this.hasAttribute("data-sidebar") ? 288 : 0, bottom: 900, x: 0, y: 0, toJSON() {} } as DOMRect;- });- const onToggle = vi.fn();- flushSync(() => root.render(createElement(Harness, { onToggle })));- await new Promise((resolve) => setTimeout(resolve, 0));- const bump = document.querySelector<HTMLButtonElement>("[data-sidebar-edge-toggle]")!;- expect(bump.parentElement).toBe(document.body);- expect(document.body.lastElementChild).toBe(bump);- expect(bump.className).toContain("fixed");- expect(bump.style.left).toBe("288px");- expect(container.querySelector("[data-sidebar-edge-toggle]")).toBeNull();- flushSync(() => bump.click());- expect(onToggle).toHaveBeenCalledOnce();-});--it("sits level with the sidebar's top, below a strip shown above the app, at any sidebar width", async () => {- let top = 0, right = 288;- vi.spyOn(HTMLElement.prototype, "getBoundingClientRect").mockImplementation(function (this: HTMLElement) {- const sidebar = this.hasAttribute("data-sidebar");- return { left: 0, top: sidebar ? top : 0, width: sidebar ? right : 0, height: 900, right: sidebar ? right : 0, bottom: 900, x: 0, y: sidebar ? top : 0, toJSON() {} } as DOMRect;- });- let resized: (() => void) | null = null;- vi.stubGlobal("ResizeObserver", class { constructor(callback: () => void) { resized = callback; } observe() {} disconnect() {} });- flushSync(() => root.render(createElement(Harness, { onToggle: vi.fn() })));- await new Promise((resolve) => setTimeout(resolve, 0));- const bump = document.querySelector<HTMLButtonElement>("[data-sidebar-edge-toggle]")!;- expect(bump.style.top).toBe("14px");- // My Cloud's two-line strip pushes the sidebar 58px down, and the sidebar is at its narrowest.- top = 58; right = 240;- flushSync(() => resized!());- expect(bump.style.top).toBe("72px");- expect(bump.style.left).toBe("240px");-});---it("stays out of sight until the sidebar or the bump is hovered, and reports the hover", async () => {- vi.spyOn(HTMLElement.prototype, "getBoundingClientRect").mockImplementation(() => ({ left: 0, top: 0, width: 280, height: 900, right: 280, bottom: 900, x: 0, y: 0, toJSON() {} }) as DOMRect);- const onHover = vi.fn();- function Hidden({ shown }: { shown: boolean }) {- const aside = useRef<HTMLElement>(null);- return createElement("aside", { ref: aside }, createElement(SidebarEdgeToggle, { collapsed: false, shown, onHover, onToggle: () => {}, anchorRef: aside }));- }- flushSync(() => root.render(createElement(Hidden, { shown: false })));- await new Promise((resolve) => setTimeout(resolve, 0));- const bump = () => document.querySelector<HTMLButtonElement>("[data-sidebar-edge-toggle]")!;- expect(bump().className).toContain("opacity-0");- expect(bump().className).toContain("focus-visible:opacity-100");- flushSync(() => bump().dispatchEvent(new MouseEvent("pointerover", { bubbles: true })));- expect(onHover).toHaveBeenCalledWith(true);- flushSync(() => root.render(createElement(Hidden, { shown: true })));- expect(bump().className).toContain("opacity-100");-});diff --git a/src/components/SidebarSimpleTop.tsx b/src/components/SidebarSimpleTop.tsxindex fafa52d84e..9a95d0a156 100644--- a/src/components/SidebarSimpleTop.tsx+++ b/src/components/SidebarSimpleTop.tsx@@ -1,6 +1,5 @@-import { ChevronLeft, ChevronRight, Search, X } from "lucide-react";-import { useEffect, useState, type CSSProperties, type Ref, type RefObject } from "react";-import { createPortal } from "react-dom";+import { Search, X } from "lucide-react";+import type { Ref } from "react";import { cn } from "@/lib/cn";import { t } from "@/lib/i18n";@@ -24,62 +23,6 @@ export const PHONE_TOP_BUTTON = "flex size-10 shrink-0 items-center justify-centexport const SIMPLE_RAIL_BUTTON = "flex size-9 shrink-0 items-center justify-center rounded-xl text-ink-secondary hover:bg-raised/60 hover:text-ink focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus";-/** The small bump on the sidebar's right edge that collapses it to the rail and back (Simple mode).- * It sits level with the top row, beside the + button; the Simple rail is 92px wide so the bump stays clear of the macOS- * traffic-light zone, which swallows clicks before 88px.- * Once mounted it is portaled to the end of <body> and pinned to the sidebar's edge: Electron applies -webkit-app-region- * rects in document order, so the chat header's drag region (which comes after the sidebar) would otherwise swallow it. */-export function SidebarEdgeToggle({ collapsed, onToggle, style, anchorRef, shown = true, onHover }: {- collapsed: boolean;- onToggle: () => void;- style?: CSSProperties;- anchorRef?: RefObject<HTMLElement | null>;- shown?: boolean;- onHover?: (inside: boolean) => void;-}) {- const [edge, setEdge] = useState<{ left: number; top: number } | null>(null);- // A passive effect, not a layout one: React attaches the parent <aside>'s ref after its children's layout effects run.- // Its top too: a strip above the app (an update, My Cloud asleep, things arriving on My Cloud) moves the sidebar down,- // and the bump with it, so it never sits on the strip's words.- useEffect(() => {- const anchor = anchorRef?.current;- if (!anchor) return;- const measure = () => { const rect = anchor.getBoundingClientRect(); setEdge({ left: Math.round(rect.right), top: Math.round(rect.top) }); };- measure();- const observer = new ResizeObserver(measure);- observer.observe(anchor);- window.addEventListener("resize", measure);- return () => {- observer.disconnect();- window.removeEventListener("resize", measure);- };- }, [anchorRef]);- const Arrow = collapsed ? ChevronRight : ChevronLeft;- const pinned = edge !== null;- const button = (- <button- type="button"- data-sidebar-edge-toggle- onClick={onToggle}- aria-label={t(collapsed ? "sidebar.density.expand" : "sidebar.density.collapseAria")}- aria-expanded={!collapsed}- title={t(collapsed ? "sidebar.density.expand" : "sidebar.density.collapse")}- style={pinned ? { ...style, left: edge.left, top: edge.top + 14 } : style}- onPointerEnter={() => onHover?.(true)}- onPointerLeave={() => onHover?.(false)}- className={cn(- pinned ? "fixed" : "absolute -right-[14px]",- shown ? "opacity-100" : "pointer-events-none opacity-0 focus-visible:pointer-events-auto focus-visible:opacity-100 touch:pointer-events-auto touch:opacity-100",- "transition-opacity duration-150",- "top-[14px] z-30 hidden h-8 w-[14px] items-center justify-center rounded-r-[4px] border border-l-0 border-hairline/50 bg-panel text-ink-tertiary shadow-[1px_0_2px_rgb(0_0_0/0.06)] hover:bg-raised hover:text-ink focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus md:flex",- )}- >- <Arrow size={12} strokeWidth={2.25} aria-hidden="true" />- </button>- );- return pinned ? createPortal(button, document.body) : button;-}-export function SidebarSearchToggle({ open, onToggle, corner = false, ref }: { open: boolean; onToggle: () => void; corner?: boolean; ref?: Ref<HTMLButtonElement> }) {return (<buttondiff --git a/src/components/SidebarThreadRow.relative-now.test.ts b/src/components/SidebarThreadRow.relative-now.test.tsindex 8656c6a18b..0b96a03067 100644--- a/src/components/SidebarThreadRow.relative-now.test.ts+++ b/src/components/SidebarThreadRow.relative-now.test.ts@@ -111,7 +111,7 @@ describe("relative clock tick", () => {],};fixture.index = 0; fixture.effects = [];- const markup = renderToStaticMarkup(createElement(BotThreadList, { ...botRowProps(initialState, vi.fn(), bot, { density: "comfortable", quiet: false, query: "", onMenu: vi.fn() }), selected: true }));+ const markup = renderToStaticMarkup(createElement(BotThreadList, { ...botRowProps(initialState, vi.fn(), bot, { density: "comfortable", query: "", onMenu: vi.fn() }), selected: true }));expect(markup).toContain("just now");expect(markup).toContain("5 min ago");runEffects();diff --git a/src/components/SidebarThreadRow.snooze-expiry.test.ts b/src/components/SidebarThreadRow.snooze-expiry.test.tsindex 12b2673525..9889b1a146 100644--- a/src/components/SidebarThreadRow.snooze-expiry.test.ts+++ b/src/components/SidebarThreadRow.snooze-expiry.test.ts@@ -110,7 +110,7 @@ describe("snooze expiry wake-up", () => {};const render = () => {fixture.index = 0; fixture.effects = [];- return renderToStaticMarkup(createElement(BotThreadList, { ...botRowProps(initialState, vi.fn(), bot, { density: "comfortable", quiet: false, query: "", onMenu: vi.fn() }), selected: true }));+ return renderToStaticMarkup(createElement(BotThreadList, { ...botRowProps(initialState, vi.fn(), bot, { density: "comfortable", query: "", onMenu: vi.fn() }), selected: true }));};const hidden = render();expect(hidden).toContain("Current chat");diff --git a/src/components/SidebarThreadRow.tsx b/src/components/SidebarThreadRow.tsxindex 61fb9b99ba..47c5d16d72 100644--- a/src/components/SidebarThreadRow.tsx+++ b/src/components/SidebarThreadRow.tsx@@ -212,7 +212,6 @@ type ThreadRowProps = {task: ThreadRowTask;ownerId: string;current: boolean;- compact?: boolean;folders?: BotProject[];activityLabel?: string;now?: number;@@ -244,7 +243,7 @@ const sameFields = <T extends object>(a: T, b: T): boolean => {const sameThreadRow = ({ task: previousTask, ...previous }: ThreadRowProps, { task, ...next }: ThreadRowProps): boolean =>sameFields(previousTask, task) && sameFields(previous, next);-export const SidebarThreadRow = memo(function SidebarThreadRow({ task, ownerId, current, compact, folders, onSelect, onRename, onRegenerateTitle, onDelete, onMove, onArchive, onPin, onSnooze, onLink, onRefreshPermissions, activityLabel, now, selectMode = false, checked = false, onToggleSelect, panel = false, preview }: ThreadRowProps) {+export const SidebarThreadRow = memo(function SidebarThreadRow({ task, ownerId, current, folders, onSelect, onRename, onRegenerateTitle, onDelete, onMove, onArchive, onPin, onSnooze, onLink, onRefreshPermissions, activityLabel, now, selectMode = false, checked = false, onToggleSelect, panel = false, preview }: ThreadRowProps) {const [menu, setMenu] = useState<{ left: number; top: number } | null>(null);const menuMotion = useHeldMenuMotion(menu);const [renaming, setRenaming] = useState(false);@@ -324,7 +323,7 @@ export const SidebarThreadRow = memo(function SidebarThreadRow({ task, ownerId,{...(selectMode ? { role: "checkbox", "aria-checked": checked, "aria-disabled": !tickable, "aria-label": t("task.bulk.rowCheck", { title: displayTitle }) } : {})}onClick={choose} onDoubleClick={selectMode ? undefined : startRename} onContextMenu={contextMenu}onKeyDown={(event) => { if (opensRowMenuFromKey(event.key, event.shiftKey, selectMode)) { event.preventDefault(); const rect = event.currentTarget.getBoundingClientRect(); openMenu(rect.left, rect.bottom); } }}- className={cn("flex min-w-0 flex-1 items-center gap-2 rounded-md pl-6 pr-1 text-left text-[13px] font-medium outline-none focus-visible:ring-1 focus-visible:ring-accent/60", compact ? "min-h-7 py-1" : "min-h-8 py-1.5", current ? "font-semibold text-ink" : "text-ink-secondary hover:text-ink", panel && "rounded-[10px] py-2 pl-3 text-[14px]", selectMode && "pl-1.5", selectMode && !tickable && "cursor-not-allowed opacity-60")}>+ className={cn("flex min-w-0 flex-1 items-center gap-2 rounded-md pl-6 pr-1 text-left text-[13px] font-medium outline-none focus-visible:ring-1 focus-visible:ring-accent/60", "min-h-8 py-1.5", current ? "font-semibold text-ink" : "text-ink-secondary hover:text-ink", panel && "rounded-[10px] py-2 pl-3 text-[14px]", selectMode && "pl-1.5", selectMode && !tickable && "cursor-not-allowed opacity-60")}>{selectMode && <span aria-hidden="true" title={tickable ? undefined : t("task.bulk.running")}className={cn("flex size-3.5 shrink-0 items-center justify-center rounded-[3px] border", checked ? "border-accent bg-accent text-white" : "border-ink-tertiary", !tickable && "opacity-50")}>{checked && <Check size={10} strokeWidth={3} />}diff --git a/src/components/SidebarTiles.test.ts b/src/components/SidebarTiles.test.tsindex 8580f38be0..a755f7f069 100644--- a/src/components/SidebarTiles.test.ts+++ b/src/components/SidebarTiles.test.ts@@ -20,7 +20,7 @@ const bot = (extra: Partial<Bot> = {}): Bot => ({});const dispatch = vi.fn();const onMenu = vi.fn();-const props = (candidate: Bot, selected = false) => botRowProps({ ...initialState, bots: [candidate], selectedId: selected ? candidate.id : "", activeView: "chat" }, dispatch, candidate, { density: "comfortable", quiet: false, query: "", onMenu });+const props = (candidate: Bot, selected = false) => botRowProps({ ...initialState, bots: [candidate], selectedId: selected ? candidate.id : "", activeView: "chat" }, dispatch, candidate, { density: "comfortable", query: "", onMenu });const tile = (SidebarBotTile as MemoExoticComponent<(props: Parameters<typeof SidebarBotTile>[0]) => ReactNode>).type;type Props = { children?: ReactNode; [key: string]: unknown };@@ -90,7 +90,7 @@ describe("the tile grid", () => {const pins = (count: number) => Array.from({ length: count }, (_, index) => bot({ id: `pin${index}`, name: `Pin ${index}`, pinned: true }));const grid = (primary: Bot | null, pinned: Bot[]) => {const bots = [...(primary ? [primary] : []), ...pinned];- const row = (candidate: Bot) => botRowProps({ ...initialState, bots, selectedId: "", activeView: "chat" }, dispatch, candidate, { density: "comfortable", quiet: false, query: "", onMenu });+ const row = (candidate: Bot) => botRowProps({ ...initialState, bots, selectedId: "", activeView: "chat" }, dispatch, candidate, { density: "comfortable", query: "", onMenu });return renderToStaticMarkup(createElement(SidebarTileGrid, { primary, pinned, row }));};const tiles = (html: string) => [...html.matchAll(/data-sidebar-bot-row="([^"]+)" data-sidebar-tile="([^"]+)" draggable="(true|false)"/g)]diff --git a/src/components/StackedMauses.tsx b/src/components/StackedMauses.tsxindex cbbbb04913..41dffcbf0d 100644--- a/src/components/StackedMauses.tsx+++ b/src/components/StackedMauses.tsx@@ -6,8 +6,8 @@ import { BotAvatar } from "./Avatar";export function StackedMauses({ members, density, large = false }: { members: Bot[]; density: SidebarDensity; large?: boolean }) {const iconOnly = density === "icons";- const slotSize = iconOnly ? "size-12" : large ? "size-9" : density === "compact" ? "size-7" : "size-8";- const singleSize = iconOnly ? 44 : large ? 36 : density === "compact" ? 26 : 32;+ const slotSize = iconOnly ? "size-12" : large ? "size-9" : "size-8";+ const singleSize = iconOnly ? 44 : large ? 36 : 32;if (members.length <= 1) {const b = members[0];return (diff --git a/src/components/TeamOwner.test.ts b/src/components/TeamOwner.test.tsindex 63be639e87..a2e3fba835 100644--- a/src/components/TeamOwner.test.ts+++ b/src/components/TeamOwner.test.ts@@ -25,7 +25,7 @@ const withStore = (state: AppState, child: ReturnType<typeof createElement>) =>createElement(StoreContext.Provider, { value: { state, dispatch: vi.fn(), flushBotPatches: vi.fn(), refreshInstances: vi.fn(), refreshModels: vi.fn() } as never }, child);const row = (candidate: Bot, selected = false) => {const state = { ...initialState, bots: [candidate], selectedId: selected ? candidate.id : null, activeView: "chat" } as AppState;- return renderToStaticMarkup(createElement(BotListItem, botRowProps(state, vi.fn(), candidate, { density: "comfortable", quiet: false, query: "", onMenu: vi.fn() })));+ return renderToStaticMarkup(createElement(BotListItem, botRowProps(state, vi.fn(), candidate, { density: "comfortable", query: "", onMenu: vi.fn() })));};afterEach(() => setTeamPeople(null));diff --git a/src/components/TriggersPage.tsx b/src/components/TriggersPage.tsxindex 69f4df59e1..b6904d1730 100644--- a/src/components/TriggersPage.tsx+++ b/src/components/TriggersPage.tsx@@ -1,7 +1,7 @@import { useEffect, useMemo, useRef, useState, type CSSProperties } from "react";import { ArrowLeft, Plus, Zap } from "lucide-react";-import { useDesktopCapabilities } from "@/components/DesktopCapabilities";+import { useDesktopCapabilities, windowFramed } from "@/components/DesktopCapabilities";import { automationsFrom, automationSentence, automationStatus, orderAutomations, statusLine, type Automation } from "@/lib/automations";import { cn } from "@/lib/cn";import { t } from "@/lib/i18n";@@ -69,7 +69,7 @@ export function TriggersPage({ onBack, onOpenRoom }: { onBack: () => void; onOpereturn (<main className="flex h-full min-w-0 flex-1 flex-col bg-app animate-workspace-in">- <header className={cn("shrink-0 border-b border-hairline/35 bg-app py-3 pr-4", view === "list" ? "pl-12 md:pl-4" : "pl-4")} style={windowDragStyle}>+ <header className={cn("shrink-0 border-b border-hairline/35 bg-app py-3 pr-4", macInset && !windowFramed(capabilities) && view === "calendar" ? "pl-[86px]" : view === "list" ? "pl-12 md:pl-4" : "pl-4")} style={windowDragStyle}><div className="flex flex-wrap items-center gap-2"><button type="button" ref={backButtonRef} onClick={onBack} aria-label="Back" title="Back" className="flex size-9 shrink-0 items-center justify-center rounded-lg text-ink-secondary hover:bg-raised hover:text-ink" style={windowNoDragStyle}><ArrowLeft size={18} /></button><h1 data-tour="automations-page" className="mr-1 text-[18px] font-semibold tracking-tight text-ink">{t("automations.title")}</h1>diff --git a/src/components/UpdateIndicator.tsx b/src/components/UpdateIndicator.tsxindex be66acca37..cb8acf331a 100644--- a/src/components/UpdateIndicator.tsx+++ b/src/components/UpdateIndicator.tsx@@ -1,6 +1,6 @@import { useEffect, useRef, useState } from "react";import { createPortal } from "react-dom";-import { ArrowDown, Loader2, PackageOpen, RefreshCw, X } from "lucide-react";+import { ArrowDown, ArrowDownToLine, Loader2, PackageOpen, RefreshCw, X } from "lucide-react";import { useUpdaterState, type UpdaterState } from "@/lib/updater";import { releaseHighlights } from "@/lib/release-highlights";@@ -26,31 +26,24 @@ export function updateIndicatorLabel(state: UpdaterState): string {: t("update.button.downloading", { percent: Math.round(state.percent) });}-/** The pill's own words, short enough for the window frame's top bar; its title keeps the long ones. */-export function updatePillText(state: UpdaterState): string {- if (state.status === "downloaded" || state.status === "installing") return t("update.card.restart");- if (state.status === "preparing") return t("update.button.preparing");- return state.percent == null ? t("update.card.downloadingStart") : t("update.card.downloading", { percent: Math.round(state.percent) });-}--/** `bar`: the pill in the window frame's top bar. In a framed window that pill is the only one, so the sidebar's- * round buttons draw nothing. */-export function UpdateIndicator({ className, bar = false }: { className?: string; bar?: boolean }) {+/** `bar`: in the window frame's top bar, a download arrow in that bar's button look (the class given). In a framed+ * window that arrow is the only one, so the sidebar's round buttons draw nothing. */+export function UpdateIndicator({ className, bar }: { className?: string; bar?: string }) {const state = useUpdaterState();- const framed = windowFramed(useDesktopCapabilities().capabilities.windowChrome);+ const framed = windowFramed(useDesktopCapabilities().capabilities);const [open, setOpen] = useState(false);const buttonRef = useRef<HTMLButtonElement>(null);const settled = !state || state.status === "idle" || state.status === "checking" || state.status === "handed-off";useEffect(() => {if (settled) setOpen(false);}, [settled]);- if (framed && !bar) return null;+ if (framed && bar === undefined) return null;if (!state || !updateIndicatorShown(state)) {return open && !settled ? <UpdateCard state={state} onClose={() => setOpen(false)} returnFocusRef={buttonRef} /> : null;}const label = updateIndicatorLabel(state);const ready = state.status === "downloaded";- if (bar) return (+ if (bar !== undefined) return (<><buttonref={buttonRef}@@ -60,16 +53,9 @@ export function UpdateIndicator({ className, bar = false }: { className?: stringaria-haspopup="dialog"title={label}onClick={() => setOpen(true)}- className={cn(- "me-1 flex h-5 shrink-0 items-center gap-1.5 rounded-full bg-menu ps-0.5 pe-2.5 text-[12px] font-medium leading-none text-ink shadow-sm ring-1 ring-ink/10 transition-shadow hover:ring-ink/25",- "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",- className,- )}+ className={cn(bar, "text-accent hover:text-accent", className)}>- <span aria-hidden className="flex size-4 items-center justify-center rounded-full bg-accent text-accent-ink">- <ArrowDown size={11} strokeWidth={2.5} className={cn(!ready && "animate-pulse")} />- </span>- {updatePillText(state)}+ <ArrowDownToLine size={15} strokeWidth={2} aria-hidden className={cn(!ready && "animate-pulse motion-reduce:animate-none")} /></button>{open && <UpdateCard state={state} onClose={() => setOpen(false)} returnFocusRef={buttonRef} />}</>diff --git a/src/components/WindowFrameBar.test.ts b/src/components/WindowFrameBar.test.tsindex ed781dc925..9493d17982 100644--- a/src/components/WindowFrameBar.test.ts+++ b/src/components/WindowFrameBar.test.ts@@ -5,19 +5,24 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";import type { UpdaterState } from "@/types/ogb";+type Place = { local: boolean; name: string; origin?: string; color?: string; home?: boolean; role?: string; localPath?: string };const fixture = vi.hoisted(() => ({windowChrome: "mac-inset" as "mac-inset" | "win-caption" | "native",+ windowFrame: undefined as boolean | undefined,rail: { available: true, hidden: false } as { available: boolean; hidden: boolean } | null,update: null as UpdaterState | null,dispatch: vi.fn(),+ config: {} as { team?: { name: string } },+ look: null as { color: string | null } | null,frameDrawn: vi.fn(),}));vi.mock("@/lib/chrome-rail", () => ({ useChromeRail: () => fixture.rail, setChromeRailHidden: () => {}, sayFrameDrawn: fixture.frameDrawn }));vi.mock("@/lib/updater", () => ({ useUpdaterState: () => fixture.update }));-vi.mock("@/state/store", () => ({ useStore: () => ({ state: {}, dispatch: fixture.dispatch }) }));+vi.mock("@/lib/place-look", () => ({ usePlaceLook: () => fixture.look }));+vi.mock("@/state/store", () => ({ useStore: () => ({ state: { config: fixture.config }, dispatch: fixture.dispatch }) }));vi.mock("./DesktopCapabilities", async (importOriginal) => ({...await importOriginal<typeof import("./DesktopCapabilities")>(),- useDesktopCapabilities: () => ({ capabilities: { windowChrome: fixture.windowChrome }, ready: true }),+ useDesktopCapabilities: () => ({ capabilities: { windowChrome: fixture.windowChrome, windowFrame: fixture.windowFrame }, ready: true }),}));import { setLocale } from "@/lib/i18n";@@ -27,39 +32,89 @@ import { WindowFrameBar } from "./WindowFrameBar";(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;let host: HTMLDivElement, root: Root | null = null;+let place: Place | null;beforeEach(() => {setLocale("en");host = document.createElement("div");document.body.append(host);fixture.windowChrome = "mac-inset";+ fixture.windowFrame = undefined;fixture.rail = { available: true, hidden: false };fixture.update = null;+ fixture.config = {};+ fixture.look = null;fixture.dispatch.mockClear();fixture.frameDrawn.mockClear();+ place = { local: false, name: "My Cloud", origin: "https://cloud.example", color: "blue" };+ Object.assign(window, { ogb: { workspaces: { state: async () => place, onChanged: () => () => {}, menu: async () => {} } } });});-afterEach(async () => { await act(async () => root?.unmount()); root = null; host.remove(); });+afterEach(async () => { await act(async () => root?.unmount()); root = null; host.remove(); delete (window as { ogb?: unknown }).ogb; });async function mount(element: ReturnType<typeof createElement>) {root = createRoot(host);await act(async () => root!.render(element));+ await act(async () => { await Promise.resolve(); });}const bar = () => host.querySelector<HTMLElement>("[data-window-frame-bar]");+const middle = () => host.querySelector<HTMLElement>("[data-window-place]");describe("the window frame's top bar", () => {it("is drawn on macOS, as thin as the traffic lights allow, and drags the window; its first button starts after the lights", async () => {await mount(createElement(WindowFrameBar));const classes = bar()!.className.split(" ");- expect(classes).toEqual(expect.arrayContaining(["h-7", "bg-frame", "pl-[calc(80px_-_var(--rail-beside,0px))]"]));+ expect(classes).toEqual(expect.arrayContaining(["h-7", "bg-frame", "grid"]));expect(bar()!.hasAttribute("data-window-drag"), "the drag region every header marks (window-drag-regions.test.ts)").toBe(true);+ expect(host.querySelector("[data-frame-bar-start]")!.className).toContain("pl-20");const buttons = [...bar()!.querySelectorAll("button")].map((button) => button.getAttribute("aria-label"));expect(buttons, "the rail's button, then the app's settings; no update while there is none").toEqual(["Hide your computers", "App settings"]);expect(bar()!.querySelector("[data-rail-toggle]")!.className).toContain("size-[22px]");});+ it("spans the window under its rail, so the place it names sits in the window's middle with equal sides", async () => {+ await mount(createElement(WindowFrameBar));+ const classes = bar()!.className.split(" ");+ expect(classes, "out under the rail, as far as the page moved").toContain("ml-[calc(-1*var(--rail-beside,0px))]");+ expect(classes, "three columns: the two sides share what is left equally and never shrink below their buttons; the middle gives way first")+ .toContain("grid-cols-[minmax(max-content,1fr)_minmax(0,auto)_minmax(max-content,1fr)]");+ expect([...bar()!.children].map((child) => child.getAttribute("data-frame-bar-start") !== null ? "start" : child.hasAttribute("data-window-place") ? "place" : "end"))+ .toEqual(["start", "place", "end"]);+ });++ it("names the place on screen in its middle, with its mark, quiet and in one line, and keeps it part of the drag region", async () => {+ await mount(createElement(WindowFrameBar));+ expect(middle()!.textContent).toBe("MCMy Cloud");+ expect(middle()!.className.split(" ")).toEqual(expect.arrayContaining(["text-ink-secondary", "min-w-0"]));+ expect(middle()!.querySelector("span:last-child")!.className).toContain("truncate");+ expect(middle()!.querySelector("[aria-hidden='true']")!.getAttribute("style"), "the rail's tile, small, in the place's colour").toContain("width: 16px; height: 16px");+ expect(middle()!.closest("button, a, [role='button']"), "no control: it drags the window like the rest of the bar").toBeNull();+ });++ it.each([+ [{ local: true, name: "Mac mini" }, {}, "This computer"],+ [{ local: true, name: "Lab", localPath: "/Users/me/lab" }, {}, "Lab"],+ [{ local: false, name: "Saved name", home: true }, {}, "My Cloud"],+ [{ local: false, name: "Acme", role: "Admin" }, { team: { name: "Acme" } }, "Acme"],+ [{ local: false, name: "Office", origin: "https://office.example" }, {}, "Office"],+ ] as const)("names %o as it should", async (shown, config, name) => {+ place = { ...shown };+ fixture.config = config;+ await mount(createElement(WindowFrameBar));+ expect(middle()!.querySelector("span:last-child")!.textContent).toBe(name);+ expect(Boolean(middle()!.querySelector("svg.lucide-laptop")), "This computer's laptop").toBe(shown.local);+ });++ it("names nothing where main says nothing (a browser, a remote client, an older app)", async () => {+ delete (window as { ogb?: unknown }).ogb;+ await mount(createElement(WindowFrameBar));+ expect(middle()).toBeNull();+ expect(bar()!.children).toHaveLength(3);+ });+it("leaves the caption buttons the right end on Windows, and draws nothing where the window has its own title bar", async () => {fixture.windowChrome = "win-caption";await mount(createElement(WindowFrameBar));- expect(bar()!.className.split(" ")).toEqual(expect.arrayContaining(["pl-2", "pr-[140px]"]));+ expect(host.querySelector("[data-frame-bar-start]")!.className).toContain("pl-[calc(var(--rail-beside,0px)+8px)]");+ expect(host.querySelector("[data-frame-bar-end]")!.className).toContain("pr-[140px]");await act(async () => root!.unmount());fixture.windowChrome = "native";await mount(createElement(WindowFrameBar));@@ -75,22 +130,38 @@ describe("the window frame's top bar", () => {expect(fixture.frameDrawn).toHaveBeenCalledTimes(1);});+ it("draws nothing once the person turned the frame off, and tells main it draws none, so the traffic lights go back", async () => {+ fixture.windowFrame = false;+ await mount(createElement(WindowFrameBar));+ expect(bar()).toBeNull();+ expect(fixture.frameDrawn).toHaveBeenLastCalledWith(false);+ fixture.windowFrame = true;+ await act(async () => root!.render(createElement(WindowFrameBar)));+ expect(bar()).not.toBeNull();+ expect(fixture.frameDrawn).toHaveBeenLastCalledWith(true);+ });+it("opens the app's settings", async () => {await mount(createElement(WindowFrameBar));await act(async () => bar()!.querySelector<HTMLButtonElement>("[data-frame-settings]")!.click());expect(fixture.dispatch).toHaveBeenCalledWith({ type: "toggleAppSettings", open: true });});- it("holds the update in short words while there is one, and the sidebar's round buttons step aside for it", async () => {+ it("shows a download arrow in the accent while an update waits, its words in its name, and the sidebar's round buttons step aside for it", async () => {fixture.update = { status: "downloading", percent: 45.4 };await mount(createElement("div", null, createElement(WindowFrameBar), createElement("aside", null, createElement(UpdateIndicator))));- expect(bar()!.querySelector("[data-update-indicator]")!.textContent).toBe("Downloading 45%");+ const arrow = () => bar()!.querySelector<HTMLButtonElement>("[data-update-indicator]")!;+ expect(arrow().textContent, "an icon, no words on the bar").toBe("");+ expect(arrow().getAttribute("aria-label")).toBe("Downloading an update, 45%");+ expect(arrow().className.split(" ")).toEqual(expect.arrayContaining(["size-[22px]", "text-accent"]));+ expect(arrow().querySelector("svg")!.getAttribute("class"), "it pulses while it downloads").toContain("animate-pulse");expect(host.querySelector("aside")!.innerHTML, "one update button in a framed window").toBe("");- fixture.update = { status: "downloaded", version: "0.1.134" };+ const order = [...bar()!.querySelectorAll("button")].map((button) => button.hasAttribute("data-update-indicator") ? "update" : button.getAttribute("aria-label"));+ expect(order, "before Settings, at the right end").toEqual(["Hide your computers", "update", "App settings"]);+ fixture.update = { status: "downloaded", version: "0.1.136" };await act(async () => root!.render(createElement(WindowFrameBar)));- const pill = bar()!.querySelector("[data-update-indicator='downloaded']")!;- expect(pill.textContent).toBe("Restart to update");- expect(pill.getAttribute("title"), "its title keeps the long words").toContain("0.1.134");+ expect(arrow().getAttribute("aria-label")).toContain("0.1.136");+ expect(arrow().querySelector("svg")!.getAttribute("class")).not.toContain("animate-pulse");fixture.windowChrome = "native";await act(async () => root!.render(createElement(UpdateIndicator)));expect(host.querySelector("[data-update-indicator='downloaded']"), "unframed, the sidebar keeps its own").not.toBeNull();diff --git a/src/components/WindowFrameBar.tsx b/src/components/WindowFrameBar.tsxindex 21ca75120c..61346ca258 100644--- a/src/components/WindowFrameBar.tsx+++ b/src/components/WindowFrameBar.tsx@@ -1,5 +1,4 @@import { Settings } from "lucide-react";-import { useEffect } from "react";import { sayFrameDrawn } from "@/lib/chrome-rail";@@ -7,44 +6,50 @@ import { cn } from "@/lib/cn";import { t } from "@/lib/i18n";import { useStore } from "@/state/store";import { ChromeRailToggle } from "./ChromeRailToggle";-import { captionChrome, useDesktopCapabilities, windowFramed } from "./DesktopCapabilities";+import { captionChrome, useDesktopCapabilities, windowFrameable, windowFramed } from "./DesktopCapabilities";import { UpdateIndicator } from "./UpdateIndicator";+import { WindowPlaceTitle } from "./WindowPlaceTitle";/** A button in the frame's top bar: small, quiet, the bar's height and no more. */export const FRAME_BAR_BUTTON = "flex size-[22px] shrink-0 items-center justify-center rounded-md text-ink-secondary transition-colors hover:bg-ink/[0.07] hover:text-ink focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-focus";/** The window frame's top bar (windowFramed), as thin as the traffic lights allow: they sit in it on macOS (main puts* them there: electron/window-chrome.mjs), the caption buttons on Windows (WindowCaptionButtons, drawn over its right- * end). The rail's button follows the traffic lights; an update while there is one, and the app's settings, close the- * right end. The whole bar drags the window. It starts at the page's left edge, beside the window's rail when that- * shows, whose own page paints the bar's colour above its places. */+ * end). The rail's button follows the traffic lights; the place on screen is named in its middle; an update while one+ * waits, and the app's settings, close the right end. The whole bar drags the window. It reaches under the window's+ * rail (the page starts --rail-beside in), so its middle is the window's middle. */export function WindowFrameBar() {const { capabilities } = useDesktopCapabilities();const { dispatch } = useStore();- const chrome = capabilities.windowChrome, framed = windowFramed(chrome);- useEffect(() => { if (framed) sayFrameDrawn(); }, [framed]);+ const frameable = windowFrameable(capabilities), framed = windowFramed(capabilities);+ useEffect(() => { if (frameable) sayFrameDrawn(framed); }, [frameable, framed]);if (!framed) return null;- const { dragProps } = captionChrome(chrome);+ const mac = capabilities.windowChrome === "mac-inset";+ const { dragProps } = captionChrome(capabilities.windowChrome);return (<divdata-window-frame-bar{...dragProps}- // macOS: the traffic lights span 12-72px of the window, so the first button starts at 80px, wherever the page does.- className={cn("flex h-7 shrink-0 items-center gap-0.5 bg-frame", chrome === "mac-inset" ? "pl-[calc(80px_-_var(--rail-beside,0px))] pr-2" : "pl-2 pr-[140px]")}+ className="ml-[calc(-1*var(--rail-beside,0px))] grid h-7 shrink-0 grid-cols-[minmax(max-content,1fr)_minmax(0,auto)_minmax(max-content,1fr)] items-center bg-frame">- <ChromeRailToggle bar={FRAME_BAR_BUTTON} />- <div className="min-w-0 flex-1" />- <UpdateIndicator bar />- <button- type="button"- data-frame-settings- aria-label={t("sidebar.appSettings")}- title={t("sidebar.appSettings")}- onClick={() => dispatch({ type: "toggleAppSettings", open: true })}- className={FRAME_BAR_BUTTON}- >- <Settings size={15} strokeWidth={1.75} aria-hidden="true" />- </button>+ {/* macOS: the traffic lights span 12-72px of the window, so the first button starts at 80px. */}+ <div data-frame-bar-start className={cn("flex items-center gap-0.5", mac ? "pl-20" : "pl-[calc(var(--rail-beside,0px)+8px)]")}>+ <ChromeRailToggle bar={FRAME_BAR_BUTTON} />+ </div>+ <WindowPlaceTitle />+ <div data-frame-bar-end className={cn("flex items-center justify-end gap-0.5", mac ? "pr-2" : "pr-[140px]")}>+ <UpdateIndicator bar={FRAME_BAR_BUTTON} />+ <button+ type="button"+ data-frame-settings+ aria-label={t("sidebar.appSettings")}+ title={t("sidebar.appSettings")}+ onClick={() => dispatch({ type: "toggleAppSettings", open: true })}+ className={FRAME_BAR_BUTTON}+ >+ <Settings size={15} strokeWidth={1.75} aria-hidden="true" />+ </button>+ </div></div>);}diff --git a/src/components/WindowFrameRow.test.ts b/src/components/WindowFrameRow.test.tsnew file mode 100644index 0000000000..8b2d523468--- /dev/null+++ b/src/components/WindowFrameRow.test.ts@@ -0,0 +1,77 @@+// @vitest-environment happy-dom+import { act, createElement } from "react";+import { createRoot, type Root } from "react-dom/client";+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";++const fixture = vi.hoisted(() => ({ platform: "darwin" as "darwin" | "win32" | "linux" }));+vi.mock("./DesktopCapabilities", async (importOriginal) => ({+ ...await importOriginal<typeof import("./DesktopCapabilities")>(),+ useDesktopCapabilities: () => ({ capabilities: { host: { platform: fixture.platform } }, ready: true }),+}));++import { setLocale } from "@/lib/i18n";+import { WindowFrameRow } from "./WindowFrameRow";++(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;+let host: HTMLDivElement, root: Root | null = null;+let saved: { on: boolean; restart: boolean };+const set = vi.fn(async (on: boolean) => { saved = { on, restart: fixture.platform === "win32" }; return saved; });+const relaunch = vi.fn(async () => true);++beforeEach(() => {+ setLocale("en");+ fixture.platform = "darwin";+ saved = { on: true, restart: false };+ set.mockClear(); relaunch.mockClear();+ Object.assign(window, { ogb: { windowFrame: { state: async () => saved, set }, relaunch } });+ host = document.createElement("div");+ document.body.append(host);+});+afterEach(async () => { await act(async () => root?.unmount()); root = null; host.remove(); delete (window as { ogb?: unknown }).ogb; });++async function mount() {+ root = createRoot(host);+ await act(async () => root!.render(createElement(WindowFrameRow)));+ await act(async () => { await Promise.resolve(); });+}+const toggle = () => host.querySelector<HTMLButtonElement>('[aria-label="Window frame"]');+const note = () => host.querySelector("[data-window-frame-restart]");++describe("Settings' switch for the window's frame", () => {+ it("is on by default on macOS and turns the frame off at once, with nothing to restart", async () => {+ await mount();+ expect(host.textContent).toContain("Window frame");+ expect(host.textContent).toContain("A thin bar across the top that says where you are");+ expect(toggle()?.getAttribute("aria-checked")).toBe("true");+ await act(async () => { toggle()!.click(); await Promise.resolve(); });+ expect(set).toHaveBeenCalledWith(false);+ expect(toggle()?.getAttribute("aria-checked")).toBe("false");+ expect(note(), "macOS moves its traffic lights at once").toBeNull();+ });++ it("on Windows says the change waits for the app to start again, with Restart now where this page may restart it", async () => {+ fixture.platform = "win32";+ await mount();+ await act(async () => { toggle()!.click(); await Promise.resolve(); });+ expect(note()?.textContent).toContain("Takes effect when");+ expect(note()?.textContent).toContain("restarts.");+ await act(async () => { note()!.querySelector("button")!.click(); });+ expect(relaunch).toHaveBeenCalledOnce();+ await act(async () => root!.unmount());+ Object.assign(window, { ogb: { windowFrame: { state: async () => saved, set } } });+ await mount();+ expect(note()?.textContent, "a server's page can't restart the app: the note alone").toContain("Takes effect when");+ expect(note()?.querySelector("button")).toBeNull();+ });++ it("is nowhere a window has its own title bar for good: Linux, a browser, or an older app", async () => {+ fixture.platform = "linux";+ await mount();+ expect(toggle()).toBeNull();+ await act(async () => root!.unmount());+ fixture.platform = "darwin";+ delete (window as { ogb?: unknown }).ogb;+ await mount();+ expect(toggle()).toBeNull();+ });+});diff --git a/src/components/WindowFrameRow.tsx b/src/components/WindowFrameRow.tsxnew file mode 100644index 0000000000..2337ee3f17--- /dev/null+++ b/src/components/WindowFrameRow.tsx@@ -0,0 +1,35 @@+import { useEffect, useState } from "react";++import { productName } from "@/lib/brand";+import { t } from "@/lib/i18n";+import type { WindowFrameState } from "../../electron/desktop-prefs.mjs";+import { useDesktopCapabilities } from "./DesktopCapabilities";+import { SettingRow, Switch } from "./SettingsPrimitives";++/** Settings' switch for the window's own frame, on macOS and Windows: this desktop's choice. macOS changes at once;+ * Windows draws its own title bar only from the next start, which the row says, with a way to restart where this page+ * may. */+export function WindowFrameRow() {+ const { capabilities } = useDesktopCapabilities();+ const bridge = typeof window === "undefined" ? undefined : window.ogb?.windowFrame;+ const [state, setState] = useState<WindowFrameState | null>(null);+ useEffect(() => {+ if (!bridge) return;+ let alive = true;+ void bridge.state().then((next) => { if (alive) setState(next); }).catch(() => {});+ return () => { alive = false; };+ }, [bridge]);+ const platform = capabilities.host?.platform;+ if (!bridge || !state || (platform !== "darwin" && platform !== "win32")) return null;+ const relaunch = window.ogb?.relaunch;+ const toggle = () => void bridge.set(!state.on).then(setState).catch(() => {});+ return <div data-window-frame-switch>+ <SettingRow title={t("settings.windowFrame.title")} subtitle={t("settings.windowFrame.subtitle")}>+ <Switch checked={state.on} aria-label={t("settings.windowFrame.title")} onClick={toggle} />+ </SettingRow>+ {state.restart && <div role="status" data-window-frame-restart className="flex flex-wrap items-center gap-x-3 gap-y-1 px-4 pb-3 text-[13px] text-ink-secondary">+ <span>{t("settings.windowFrame.restart", { app: productName() })}</span>+ {relaunch && <button type="button" className="ui-button" onClick={() => void relaunch().catch(() => {})}>{t("settings.windowFrame.restartNow")}</button>}+ </div>}+ </div>;+}diff --git a/src/components/WindowPlaceTitle.tsx b/src/components/WindowPlaceTitle.tsxnew file mode 100644index 0000000000..b9bbc51054--- /dev/null+++ b/src/components/WindowPlaceTitle.tsx@@ -0,0 +1,44 @@+import { useEffect, useState } from "react";+import { t } from "@/lib/i18n";+import { usePlaceLook } from "@/lib/place-look";+import { useStore } from "@/state/store";+import { PlaceMark } from "./PlacesRail";++type WorkspaceState = Awaited<ReturnType<NonNullable<NonNullable<typeof window.ogb>["workspaces"]>["state"]>>;++/** The place this window shows, as main tells this page: null in a browser, on a remote client, or until main answers. */+export function useWindowPlace(): WorkspaceState | null {+ const [place, setPlace] = useState<WorkspaceState | null>(null);+ useEffect(() => {+ const workspaces = window.ogb?.remoteClient?.active ? undefined : window.ogb?.workspaces;+ if (!workspaces) return;+ let alive = true;+ const read = () => void workspaces.state().then((next) => { if (alive) setPlace(next); }).catch(() => {});+ read();+ const off = workspaces.onChanged?.(read);+ return () => { alive = false; off?.(); };+ }, []);+ return place;+}++/** What the window's top bar calls the place: This computer, My Cloud while it is the window's only home (a team's name+ * on a team's Cloud), else the name it was saved under. */+export function windowPlaceName(place: WorkspaceState, team: string | undefined): string {+ if (place.home) return team || t("cloudSetup.myCloud");+ if (place.local && !place.localPath) return t("rail.thisComputer");+ return place.name;+}++/** The middle of the window frame's top bar: the place on screen, its mark as the rail draws it and its name, quiet. It+ * stays part of the bar's drag region. */+export function WindowPlaceTitle() {+ const place = useWindowPlace();+ const look = usePlaceLook();+ const { state } = useStore();+ if (!place) return <span aria-hidden="true" />;+ const name = windowPlaceName(place, state.config?.team?.name);+ return <div data-window-place className="flex min-w-0 items-center justify-center gap-1.5 px-2 text-[12px] font-medium text-ink-secondary">+ <PlaceMark place={{ kind: place.local ? "computer" : place.role ? "team" : "cloud", name, color: look?.color ?? place.color ?? null }} size={16} />+ <span className="min-w-0 truncate">{name}</span>+ </div>;+}diff --git a/src/components/touch-actions.test.ts b/src/components/touch-actions.test.tsindex 704949a966..6c6110e857 100644--- a/src/components/touch-actions.test.ts+++ b/src/components/touch-actions.test.ts@@ -26,6 +26,7 @@ const notActions: Array<{ file: string; snippet: string; why: string }> = [{ file: "components/ChatView.tsx", snippet: "-ml-2.5 w-0 shrink-0 text-ink-secondary", why: "decorative chevron in the Simple bot pill; the whole pill is the tap target" },{ file: "components/RoomHeader.tsx", snippet: "-ml-1 w-0 shrink-0 text-ink-secondary", why: "decorative chevron on the Simple room name; the whole name is the tap target" },{ file: "components/ChatHeadPill.tsx", snippet: "-ml-2 flex w-0 shrink-0 overflow-hidden", why: "decorative chevron in the Simple bot pill; the whole pill is the tap target" },+ { file: "components/PlacesRail.tsx", snippet: "h-2 opacity-0 group-hover/tile:opacity-100", why: "decorative pill beside a rail tile on hover; the tile is the tap target and has its own focus ring" },];function sourceFiles(dir: string): string[] {diff --git a/src/components/window-drag-regions.test.ts b/src/components/window-drag-regions.test.tsindex 5870dd4913..d4949b2186 100644--- a/src/components/window-drag-regions.test.ts+++ b/src/components/window-drag-regions.test.ts@@ -72,7 +72,10 @@ describe("caption chrome", () => {);it("frames the window on macOS and Windows: nothing under the frame's top bar moves out of the window's buttons", () => {- expect([windowFramed("mac-inset"), windowFramed("win-caption"), windowFramed("native"), windowFramed(undefined)]).toEqual([true, true, false, false]);+ expect([windowFramed({ windowChrome: "mac-inset" }), windowFramed({ windowChrome: "win-caption" }), windowFramed({ windowChrome: "native" }), windowFramed(undefined)])+ .toEqual([true, true, false, false]);+ expect(windowFramed({ windowChrome: "mac-inset", windowFrame: false }), "the person turned it off").toBe(false);+ expect(captionChrome("mac-inset").draggable, "the headers still drag a window with no title bar of its own").toBe(true);for (const chrome of ["mac-inset", "win-caption", "native"] as const) {expect(Object.keys(captionChrome(chrome))).not.toContain("padClass");expect(Object.keys(captionChrome(chrome))).not.toContain("controlsShiftStyle");diff --git a/src/lib/chrome-rail.ts b/src/lib/chrome-rail.tsindex 48d1b984f9..8c20a060ce 100644--- a/src/lib/chrome-rail.ts+++ b/src/lib/chrome-rail.ts@@ -41,9 +41,10 @@ export function useBesideFramed(): boolean {return framed;}-/** The page beside the rail draws the window's frame: main puts the traffic lights in its top bar. */-export function sayFrameDrawn(): void {- void bridge()?.drawsFrame?.()?.catch(() => {});+/** Whether the page beside the rail draws the window's frame: main puts the traffic lights in its top bar, or back where+ * the window keeps them without it. */+export function sayFrameDrawn(drawn = true): void {+ void bridge()?.drawsFrame?.(drawn)?.catch(() => {});}/** From the person's click: main hides or shows the rail, and this desktop keeps the choice. */diff --git a/src/lib/sidebar-layout.test.ts b/src/lib/sidebar-layout.test.tsindex 0b71040560..c98b64fe28 100644--- a/src/lib/sidebar-layout.test.ts+++ b/src/lib/sidebar-layout.test.ts@@ -138,7 +138,7 @@ describe("sidebar virtual sections", () => {it("shows pinned-circle thread rows only while the circle grid is showing", () => {expect(pinnedCircleThreadListVisible(true, "comfortable", 1)).toBe(true);- expect(pinnedCircleThreadListVisible(true, "compact", 2)).toBe(true);+ expect(pinnedCircleThreadListVisible(true, "comfortable", 2)).toBe(true);expect(pinnedCircleThreadListVisible(false, "comfortable", 1)).toBe(false);expect(pinnedCircleThreadListVisible(true, "icons", 1)).toBe(false);expect(pinnedCircleThreadListVisible(true, "comfortable", 0)).toBe(false);@@ -148,8 +148,8 @@ describe("sidebar virtual sections", () => {expect(sidebarLayoutInteractive("comfortable", "")).toBe(true);expect(sidebarLayoutInteractive("comfortable", "writer")).toBe(false);expect(sidebarLayoutInteractive("icons", "")).toBe(false);- expect(sidebarSectionCollapsed(PINNED_SECTION_ID, [PINNED_SECTION_ID], "compact", "")).toBe(true);- expect(sidebarSectionCollapsed(PINNED_SECTION_ID, [PINNED_SECTION_ID], "compact", "writer")).toBe(false);+ expect(sidebarSectionCollapsed(PINNED_SECTION_ID, [PINNED_SECTION_ID], "comfortable", "")).toBe(true);+ expect(sidebarSectionCollapsed(PINNED_SECTION_ID, [PINNED_SECTION_ID], "comfortable", "writer")).toBe(false);expect(sidebarSectionCollapsed(PINNED_SECTION_ID, [PINNED_SECTION_ID], "icons", "")).toBe(false);});diff --git a/src/lib/sidebar-layout.ts b/src/lib/sidebar-layout.tsindex 1b43b5cdd9..7b98392587 100644--- a/src/lib/sidebar-layout.ts+++ b/src/lib/sidebar-layout.ts@@ -15,7 +15,7 @@ const USER_SECTION_PREFIX = "section:";export type SidebarSectionId = string;export type SectionDropPlace = "before" | "after";-export type SidebarDensityMode = "comfortable" | "compact" | "icons";+export type SidebarDensityMode = "comfortable" | "icons";const GOAL_RUN_PREVIEW_LABEL = {working: "Working",diff --git a/src/lib/sidebar-preferences.density.test.ts b/src/lib/sidebar-preferences.density.test.tsindex a8ffa3e62a..d68ff91981 100644--- a/src/lib/sidebar-preferences.density.test.ts+++ b/src/lib/sidebar-preferences.density.test.ts@@ -51,8 +51,8 @@ describe("shared sidebar density store", () => {const preference = await import("./sidebar-preferences");expect(preference.useSidebarDensity()).toBe("comfortable");expect(hook.serverSnapshot!()).toBe("comfortable");- preference.saveSidebarDensity("compact");- expect(preference.useSidebarDensity()).toBe("compact");+ preference.saveSidebarDensity("icons");+ expect(preference.useSidebarDensity()).toBe("icons");});it("persists a choice and notifies every mounted consumer", async () => {@@ -64,29 +64,29 @@ describe("shared sidebar density store", () => {const unsubscribeSettings = hook.subscribe!(settings);preference.setSidebarDensity("icons");- expect(local.getItem(preference.SIDEBAR_DENSITY_KEY)).toBe("icons");+ expect(local.getItem(preference.SIDEBAR_DENSITY_KEY)).toBe("avatars");expect(sidebar).toHaveBeenCalledOnce();expect(settings).toHaveBeenCalledOnce();expect(hook.snapshot!()).toBe("icons");unsubscribeSidebar();- preference.setSidebarDensity("compact");+ preference.setSidebarDensity("comfortable");expect(sidebar).toHaveBeenCalledOnce();expect(settings).toHaveBeenCalledTimes(2);unsubscribeSettings();vi.resetModules();const reloaded = await import("./sidebar-preferences");- expect(reloaded.useSidebarDensity()).toBe("compact");+ expect(reloaded.useSidebarDensity()).toBe("comfortable");});it("follows another window's change, ignoring unrelated storage", async () => {const preference = await import("./sidebar-preferences");- preference.setSidebarDensity("compact");+ preference.setSidebarDensity("comfortable");const listener = vi.fn();const unsubscribe = hook.subscribe!(listener);- local.setItem(preference.SIDEBAR_DENSITY_KEY, "icons");+ local.setItem(preference.SIDEBAR_DENSITY_KEY, "avatars");storageEvent(preference.SIDEBAR_DENSITY_KEY);expect(listener).toHaveBeenCalledOnce();expect(hook.snapshot!()).toBe("icons");diff --git a/src/lib/sidebar-preferences.test.ts b/src/lib/sidebar-preferences.test.tsindex 289297971e..442c926561 100644--- a/src/lib/sidebar-preferences.test.ts+++ b/src/lib/sidebar-preferences.test.ts@@ -45,19 +45,22 @@ import {import { userSectionId } from "./sidebar-layout";describe("sidebar density preferences", () => {- it("accepts the three supported layouts and rejects stale values", () => {+ it("keeps the column of avatars the sidebar was dragged to; every other value, an older app's included, opens it", () => {+ expect(parseSidebarDensity("avatars")).toBe("icons");expect(parseSidebarDensity("comfortable")).toBe("comfortable");- expect(parseSidebarDensity("compact")).toBe("compact");- expect(parseSidebarDensity("icons")).toBe("icons");- expect(parseSidebarDensity("tiny")).toBe("comfortable");+ expect(parseSidebarDensity("compact"), "Settings' compact density, gone").toBe("comfortable");+ expect(parseSidebarDensity("icons"), "Settings' avatars only, gone: the person drags instead").toBe("comfortable");expect(parseSidebarDensity(null)).toBe("comfortable");});it("loads and saves without making storage availability a launch dependency", () => {const setItem = vi.fn();saveSidebarDensity("icons", { setItem });- expect(setItem).toHaveBeenCalledWith(SIDEBAR_DENSITY_KEY, "icons");- expect(loadSidebarDensity({ getItem: () => "compact" })).toBe("compact");+ expect(setItem).toHaveBeenCalledWith(SIDEBAR_DENSITY_KEY, "avatars");+ saveSidebarDensity("comfortable", { setItem });+ expect(setItem).toHaveBeenLastCalledWith(SIDEBAR_DENSITY_KEY, "comfortable");+ expect(loadSidebarDensity({ getItem: () => "avatars" })).toBe("icons");+ expect(loadSidebarDensity({ getItem: () => "compact" })).toBe("comfortable");expect(loadSidebarDensity({ getItem: () => { throw new Error("blocked"); } })).toBe("comfortable");});});diff --git a/src/lib/sidebar-preferences.ts b/src/lib/sidebar-preferences.tsindex b51359a4d7..1e639054be 100644--- a/src/lib/sidebar-preferences.ts+++ b/src/lib/sidebar-preferences.ts@@ -1,10 +1,10 @@import { useSyncExternalStore } from "react";import { z } from "zod";-export type SidebarDensity = "comfortable" | "compact" | "icons";+/** The sidebar as it is, or "icons": the column of avatars the person dragged its edge down to. */+export type SidebarDensity = "comfortable" | "icons";export type SidebarToolsLayout = "rows" | "toolbar";-export const SIDEBAR_DENSITIES: readonly SidebarDensity[] = ["comfortable", "compact", "icons"];export const SIDEBAR_TOOLS_LAYOUTS: readonly SidebarToolsLayout[] = ["rows", "toolbar"];export const SIDEBAR_DENSITY_KEY = "openmausbot.sidebarDensity";@@ -19,15 +19,12 @@ export const PINNED_CIRCLES_KEY = "openmausbot.pinnedCircles";export const UNIVERSAL_PINS_KEY = "openmausbot.universalPins";export const PINNED_CIRCLE_ORDER_KEY = "openmausbot.pinnedCircleOrder.v1";+/** What the sidebar's key keeps for the column of avatars. The values an older app kept there ("compact", "icons") open+ * the sidebar as it is. */+const AVATARS = "avatars";+export function parseSidebarDensity(value: string | null): SidebarDensity {- switch (value) {- case "comfortable":- case "compact":- case "icons":- return value;- default:- return "comfortable";- }+ return value === AVATARS ? "icons" : "comfortable";}export function loadSidebarDensity(storage?: Pick<Storage, "getItem"> | null): SidebarDensity {@@ -45,7 +42,7 @@ export function saveSidebarDensity(): void {try {const target = storage === undefined ? (globalThis.localStorage ?? null) : storage;- target?.setItem(SIDEBAR_DENSITY_KEY, density);+ target?.setItem(SIDEBAR_DENSITY_KEY, density === "icons" ? AVATARS : density);} catch {}}@@ -170,8 +167,11 @@ export function useSidebarToolsLayout(): SidebarToolsLayout {return useSyncExternalStore(subscribeSidebarToolsLayout, currentSidebarToolsLayout, () => "rows");}+/** The narrowest the open sidebar gets. */+export const SIDEBAR_MIN_WIDTH = 240;+export function clampSidebarWidth(width: number, viewportWidth: number, max = 480): number {- return Math.max(240, Math.min(max, viewportWidth - 320, Math.round(width)));+ return Math.max(SIDEBAR_MIN_WIDTH, Math.min(max, viewportWidth - 320, Math.round(width)));}export function loadSidebarWidth(storage?: Pick<Storage, "getItem"> | null, key = SIDEBAR_WIDTH_KEY): number | null {@@ -180,7 +180,7 @@ export function loadSidebarWidth(storage?: Pick<Storage, "getItem"> | null, keyconst raw = target?.getItem(key);if (raw === null || raw === undefined || !/^\d+$/.test(raw)) return null;const width = Number(raw);- return width >= 240 && width <= 480 ? width : null;+ return width >= SIDEBAR_MIN_WIDTH && width <= 480 ? width : null;} catch {return null;}diff --git a/src/locales/de.json b/src/locales/de.jsonindex 88d9eda6d1..867f4881b0 100644--- a/src/locales/de.json+++ b/src/locales/de.json@@ -751,14 +751,6 @@"sidebar.archived.restored": "{name} wiederhergestellt","sidebar.archived.restoredOne": "1 Bot wiederhergestellt","sidebar.archived.restoredMany": "{count} Bots wiederhergestellt",- "sidebar.density.expand": "Seitenleiste ausklappen",- "sidebar.density.collapseAria": "Seitenleiste auf Avatare einklappen",- "sidebar.density.collapse": "Auf Avatare einklappen",- "sidebar.density.chooseAria": "Dichte der Seitenleiste wählen",- "sidebar.density.title": "Dichte der Seitenleiste",- "sidebar.density.comfortable": "Komfortabel",- "sidebar.density.compact": "Kompakt",- "sidebar.density.iconsOnly": "Nur Avatare","sidebar.new": "Neu","sidebar.newOrShare": "Neu oder teilen","sidebar.newBot": "Neuer Bot",@@ -2643,6 +2635,10 @@"rail.hide": "Deine Computer ausblenden","rail.show": "Deine Computer anzeigen","rail.showSub": "Ein Kreis für jeden Ort, an dem deine Bots leben, am linken Fensterrand.",+ "settings.windowFrame.title": "Fensterrahmen",+ "settings.windowFrame.subtitle": "Eine schmale Leiste oben, die zeigt, wo du bist, und der Chat in einer abgerundeten Karte. Aus sieht das Fenster aus wie zuvor.",+ "settings.windowFrame.restart": "Gilt, sobald {app} neu startet.",+ "settings.windowFrame.restartNow": "Jetzt neu starten","placeLook.title": "Farbe","placeLook.sub": "{name} erscheint in dieser Farbe oben in der Seitenleiste und auf dem Kreis am linken Fensterrand.","placeLook.aria": "Farbe von {name}",diff --git a/src/locales/en.json b/src/locales/en.jsonindex 1ea2a9807e..e763971e26 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -538,6 +538,10 @@"rail.hide": "Hide your computers","rail.show": "Show your computers","rail.showSub": "A circle for each place your bots live, at the window's left edge.",+ "settings.windowFrame.title": "Window frame",+ "settings.windowFrame.subtitle": "A thin bar across the top that says where you are, with the chat in a rounded card. Off, the window looks as it did before.",+ "settings.windowFrame.restart": "Takes effect when {app} restarts.",+ "settings.windowFrame.restartNow": "Restart now","rail.ended": "{name}: ended","rail.remove": "Remove from list","rail.makeHome": "Make {name} my home",@@ -1507,7 +1511,6 @@"settings.userBubbles.title": "Color my messages","settings.userBubbles.subtitle": "In a one-to-one chat, your messages are filled with a gradient of that bot's color. Rooms keep the neutral bubble.","settings.userBubbles.aria": "Color my messages with the bot's color",- "settings.sidebarDensity.subtitle": "How much room each bot and thread takes in the sidebar, on this device only. Avatars only is the same as collapsing the sidebar from its header.","settings.advancedMode.title": "Advanced mode","settings.advancedMode.subtitle": "Show every technical control on this device: usage and tokens, the inspector and other tools for builders. Turn it off for a simpler app. Nothing is deleted either way.","settings.threadDisplay.title": "Threads",@@ -2035,17 +2038,9 @@"sidebar.archived.restored": "{name} restored","sidebar.archived.restoredOne": "1 bot restored","sidebar.archived.restoredMany": "{count} bots restored",- "sidebar.density.expand": "Expand sidebar","sidebar.resize": "Resize sidebar",- "sidebar.density.collapseAria": "Collapse sidebar to avatars",- "sidebar.density.collapse": "Collapse to avatars",- "sidebar.density.chooseAria": "Choose sidebar density",- "sidebar.density.title": "Sidebar density",- "sidebar.density.comfortable": "Comfortable",- "sidebar.density.compact": "Compact",- "sidebar.density.iconsOnly": "Avatars only","sidebar.toolsLayout.title": "Tools layout",- "sidebar.toolsLayout.subtitle": "Show Routines, Triggers, and Team map as rows or as one row of icons. Icons density always shows icons.",+ "sidebar.toolsLayout.subtitle": "Show Routines, Triggers, and Team map as rows or as one row of icons. As a column of avatars, the sidebar always shows icons.","sidebar.toolsLayout.rows": "Rows","sidebar.toolsLayout.toolbar": "Toolbar","sidebar.toolsLayout.chooseAria": "Choose tools layout",diff --git a/src/locales/es.json b/src/locales/es.jsonindex b7c463b9a3..5c0c1583e8 100644--- a/src/locales/es.json+++ b/src/locales/es.json@@ -477,6 +477,10 @@"rail.hide": "Ocultar tus equipos","rail.show": "Mostrar tus equipos","rail.showSub": "Un círculo por cada lugar donde viven tus bots, en el borde izquierdo de la ventana.",+ "settings.windowFrame.title": "Marco de la ventana",+ "settings.windowFrame.subtitle": "Una barra fina arriba que dice dónde estás, con el chat en una tarjeta redondeada. Desactivado, la ventana se ve como antes.",+ "settings.windowFrame.restart": "Se aplica cuando {app} se reinicie.",+ "settings.windowFrame.restartNow": "Reiniciar ahora","placeLook.title": "Color","placeLook.sub": "{name} se muestra en este color en la parte superior de la barra lateral y en su círculo del borde izquierdo de la ventana.","placeLook.aria": "Color de {name}",@@ -1212,7 +1216,6 @@"settings.userBubbles.title": "Colorear mis mensajes","settings.userBubbles.subtitle": "En un chat individual, tus mensajes se rellenan con un degradado del color de ese bot. Los grupos mantienen la burbuja neutra.","settings.userBubbles.aria": "Colorear mis mensajes con el color del bot",- "settings.sidebarDensity.subtitle": "Cuánto espacio ocupa cada bot e hilo en la barra lateral, solo en este dispositivo. «Solo avatares» equivale a contraer la barra lateral desde su encabezado.","settings.advancedMode.title": "Modo avanzado","settings.advancedMode.subtitle": "Muestra todos los controles técnicos en este dispositivo: uso y tokens, el inspector y otras herramientas para creadores. Desactívalo para tener una app más sencilla. No se elimina nada en ningún caso.","settings.threadDisplay.title": "Hilos",@@ -1686,17 +1689,9 @@"sidebar.archived.restored": "{name} restaurado","sidebar.archived.restoredOne": "1 bot restaurado","sidebar.archived.restoredMany": "{count} bots restaurados",- "sidebar.density.expand": "Expandir la barra lateral","sidebar.resize": "Cambiar el tamaño de la barra lateral",- "sidebar.density.collapseAria": "Contraer la barra lateral a avatares",- "sidebar.density.collapse": "Contraer a avatares",- "sidebar.density.chooseAria": "Elegir la densidad de la barra lateral",- "sidebar.density.title": "Densidad de la barra lateral",- "sidebar.density.comfortable": "Cómoda",- "sidebar.density.compact": "Compacta",- "sidebar.density.iconsOnly": "Solo avatares","sidebar.toolsLayout.title": "Diseño de las herramientas",- "sidebar.toolsLayout.subtitle": "Muestra Rutinas, Disparadores y Mapa del equipo como filas o como una sola fila de iconos. La densidad «Solo avatares» siempre muestra iconos.",+ "sidebar.toolsLayout.subtitle": "Muestra Rutinas, Disparadores y Mapa del equipo como filas o como una sola fila de iconos. Como columna de avatares, la barra lateral siempre muestra iconos.","sidebar.toolsLayout.rows": "Filas","sidebar.toolsLayout.toolbar": "Barra de herramientas","sidebar.toolsLayout.chooseAria": "Elegir el diseño de las herramientas",diff --git a/src/locales/fr.json b/src/locales/fr.jsonindex 87e818a348..2511062388 100644--- a/src/locales/fr.json+++ b/src/locales/fr.json@@ -665,14 +665,6 @@"sidebar.archived.restored": "{name} restauré","sidebar.archived.restoredOne": "1 bot restauré","sidebar.archived.restoredMany": "{count} bots restaurés",- "sidebar.density.expand": "Déplier la barre latérale",- "sidebar.density.collapseAria": "Réduire la barre latérale aux avatars",- "sidebar.density.collapse": "Réduire aux avatars",- "sidebar.density.chooseAria": "Choisir la densité de la barre latérale",- "sidebar.density.title": "Densité de la barre latérale",- "sidebar.density.comfortable": "Confortable",- "sidebar.density.compact": "Compacte",- "sidebar.density.iconsOnly": "Avatars seuls","sidebar.new": "Nouveau","sidebar.newOrShare": "Nouveau ou partager","sidebar.newBot": "Nouveau bot",@@ -2620,6 +2612,10 @@"rail.hide": "Masquer vos ordinateurs","rail.show": "Afficher vos ordinateurs","rail.showSub": "Un cercle pour chaque endroit où vivent vos bots, sur le bord gauche de la fenêtre.",+ "settings.windowFrame.title": "Cadre de la fenêtre",+ "settings.windowFrame.subtitle": "Une fine barre en haut qui indique où vous êtes, avec la discussion dans une carte arrondie. Désactivé, la fenêtre redevient comme avant.",+ "settings.windowFrame.restart": "Prend effet au redémarrage de {app}.",+ "settings.windowFrame.restartNow": "Redémarrer maintenant","placeLook.title": "Couleur","placeLook.sub": "{name} s'affiche dans cette couleur en haut de la barre latérale et sur son cercle, au bord gauche de la fenêtre.","placeLook.aria": "Couleur de {name}",diff --git a/src/locales/hi.json b/src/locales/hi.jsonindex 5dc1b29ed6..22d8a7dedd 100644--- a/src/locales/hi.json+++ b/src/locales/hi.json@@ -665,14 +665,6 @@"sidebar.archived.restored": "{name} वापस आ गया","sidebar.archived.restoredOne": "1 बॉट वापस आया","sidebar.archived.restoredMany": "{count} बॉट वापस आए",- "sidebar.density.expand": "साइडबार बड़ा करें",- "sidebar.density.collapseAria": "साइडबार को अवतार तक समेटें",- "sidebar.density.collapse": "अवतार तक समेटें",- "sidebar.density.chooseAria": "साइडबार का घनत्व चुनें",- "sidebar.density.title": "साइडबार का घनत्व",- "sidebar.density.comfortable": "आरामदेह",- "sidebar.density.compact": "सघन",- "sidebar.density.iconsOnly": "केवल अवतार","sidebar.new": "नया","sidebar.newOrShare": "नया या साझा करें","sidebar.newBot": "नया बॉट",@@ -2620,6 +2612,10 @@"rail.hide": "अपने कंप्यूटर छिपाएँ","rail.show": "अपने कंप्यूटर दिखाएँ","rail.showSub": "हर उस जगह के लिए एक गोला जहाँ आपके बॉट रहते हैं, विंडो के बाएँ किनारे पर।",+ "settings.windowFrame.title": "विंडो फ़्रेम",+ "settings.windowFrame.subtitle": "ऊपर एक पतली पट्टी जो बताती है कि आप कहाँ हैं, और चैट गोल कोनों वाले कार्ड में। बंद करने पर विंडो पहले जैसी दिखती है।",+ "settings.windowFrame.restart": "{app} के फिर से शुरू होने पर लागू होगा।",+ "settings.windowFrame.restartNow": "अभी फिर से शुरू करें","placeLook.title": "रंग","placeLook.sub": "{name} साइडबार के ऊपर और विंडो के बाएँ किनारे पर अपने गोले में इसी रंग में दिखता है।","placeLook.aria": "{name} का रंग",diff --git a/src/locales/it.json b/src/locales/it.jsonindex 9d8e028b8b..4cc9367f4c 100644--- a/src/locales/it.json+++ b/src/locales/it.json@@ -481,6 +481,10 @@"rail.hide": "Nascondi i tuoi computer","rail.show": "Mostra i tuoi computer","rail.showSub": "Un cerchio per ogni posto in cui vivono i tuoi bot, sul bordo sinistro della finestra.",+ "settings.windowFrame.title": "Cornice della finestra",+ "settings.windowFrame.subtitle": "Una barra sottile in alto che dice dove sei, con la chat in una scheda arrotondata. Disattivata, la finestra torna com'era prima.",+ "settings.windowFrame.restart": "Si applica al riavvio di {app}.",+ "settings.windowFrame.restartNow": "Riavvia ora","placeLook.title": "Colore","placeLook.sub": "{name} appare in questo colore in cima alla barra laterale e nel suo cerchio sul bordo sinistro della finestra.","placeLook.aria": "Colore di {name}",@@ -1324,7 +1328,6 @@"settings.userBubbles.title": "Colora i miei messaggi","settings.userBubbles.subtitle": "In una chat uno a uno, i tuoi messaggi hanno una sfumatura del colore di quel bot. Le chat di gruppo tengono la bolla neutra.","settings.userBubbles.aria": "Colora i miei messaggi con il colore del bot",- "settings.sidebarDensity.subtitle": "Quanto spazio occupa ogni bot e ogni thread nella barra laterale, solo su questo dispositivo. Solo avatar equivale a richiudere la barra laterale dalla sua intestazione.","settings.advancedMode.title": "Modalità avanzata","settings.advancedMode.subtitle": "Mostra tutti i controlli tecnici su questo dispositivo: utilizzo e token, l'ispettore e altri strumenti per chi costruisce. Disattivala per un'app più semplice. In entrambi i casi non si cancella nulla.","settings.threadDisplay.title": "Thread",@@ -1775,17 +1778,9 @@"sidebar.archived.restored": "{name} ripristinato","sidebar.archived.restoredOne": "1 bot ripristinato","sidebar.archived.restoredMany": "{count} bot ripristinati",- "sidebar.density.expand": "Espandi la barra laterale","sidebar.resize": "Ridimensiona la barra laterale",- "sidebar.density.collapseAria": "Comprimi la barra laterale agli avatar",- "sidebar.density.collapse": "Comprimi agli avatar",- "sidebar.density.chooseAria": "Scegli la densità della barra laterale",- "sidebar.density.title": "Densità della barra laterale",- "sidebar.density.comfortable": "Comoda",- "sidebar.density.compact": "Compatta",- "sidebar.density.iconsOnly": "Solo avatar","sidebar.toolsLayout.title": "Disposizione strumenti",- "sidebar.toolsLayout.subtitle": "Mostra Routine, Trigger e Mappa del team come righe o come un'unica riga di icone. La densità «Solo avatar» mostra sempre le icone.",+ "sidebar.toolsLayout.subtitle": "Mostra Routine, Trigger e Mappa del team come righe o come un'unica riga di icone. Come colonna di avatar, la barra laterale mostra sempre le icone.","sidebar.toolsLayout.rows": "Righe","sidebar.toolsLayout.toolbar": "Barra strumenti","sidebar.toolsLayout.chooseAria": "Scegli la disposizione degli strumenti",diff --git a/src/locales/ja.json b/src/locales/ja.jsonindex 537c258f5e..1fd28cf017 100644--- a/src/locales/ja.json+++ b/src/locales/ja.json@@ -486,6 +486,10 @@"rail.hide": "コンピューターを非表示","rail.show": "コンピューターを表示","rail.showSub": "ウィンドウの左端に、ボットの居場所ごとの円を表示します。",+ "settings.windowFrame.title": "ウィンドウフレーム",+ "settings.windowFrame.subtitle": "上部に今いる場所を示す細いバーを表示し、チャットを角の丸いカードに収めます。オフにすると、ウィンドウは以前の見た目に戻ります。",+ "settings.windowFrame.restart": "{app} を再起動すると反映されます。",+ "settings.windowFrame.restartNow": "今すぐ再起動","placeLook.title": "色","placeLook.sub": "{name} は、サイドバーの上部とウィンドウ左端の丸にこの色で表示されます。","placeLook.aria": "{name} の色",@@ -1357,7 +1361,6 @@"settings.userBubbles.title": "自分のメッセージに色を付ける","settings.userBubbles.subtitle": "1対1のチャットでは、自分のメッセージがそのボットのカラーのグラデーションで表示されます。ルームでは、ニュートラルな吹き出しのままです。","settings.userBubbles.aria": "自分のメッセージにボットの色を付ける",- "settings.sidebarDensity.subtitle": "サイドバーで各ボットとスレッドが占めるスペースを、この端末だけで調整します。「アバターのみ」は、見出しからサイドバーを折りたたむのと同じです。","settings.advancedMode.title": "詳細モード","settings.advancedMode.subtitle": "使用量とトークン、インスペクターなど、開発者向けのすべての操作機能をこの端末で表示します。オフにするとアプリの表示がシンプルになります。どちらでもデータは削除されません。","settings.threadDisplay.title": "スレッド",@@ -1851,17 +1854,9 @@"sidebar.archived.restored": "{name} を戻しました","sidebar.archived.restoredOne": "ボット 1 件を戻しました","sidebar.archived.restoredMany": "ボット {count} 件を戻しました",- "sidebar.density.expand": "サイドバーを広げる","sidebar.resize": "サイドバーのサイズを変更",- "sidebar.density.collapseAria": "サイドバーをアバターだけに畳む",- "sidebar.density.collapse": "アバターだけに畳む",- "sidebar.density.chooseAria": "サイドバーの表示密度を選ぶ",- "sidebar.density.title": "サイドバーの表示密度",- "sidebar.density.comfortable": "ゆったり",- "sidebar.density.compact": "コンパクト",- "sidebar.density.iconsOnly": "アバターのみ","sidebar.toolsLayout.title": "ツールのレイアウト",- "sidebar.toolsLayout.subtitle": "ルーティン、トリガー、チームマップを、行として表示するか、アイコンを1行に並べて表示するかを選びます。アイコン密度では常にアイコンで表示されます。",+ "sidebar.toolsLayout.subtitle": "ルーティン、トリガー、チームマップを、行として表示するか、アイコンを1行に並べて表示するかを選びます。アバターの列にしたサイドバーでは常にアイコンで表示されます。","sidebar.toolsLayout.rows": "行","sidebar.toolsLayout.toolbar": "ツールバー","sidebar.toolsLayout.chooseAria": "ツールのレイアウトを選択",diff --git a/src/locales/ko.json b/src/locales/ko.jsonindex bbb49c2c1c..c1fb85371b 100644--- a/src/locales/ko.json+++ b/src/locales/ko.json@@ -1424,7 +1424,6 @@"settings.userBubbles.title": "내 메시지에 색 입히기","settings.userBubbles.subtitle": "일대일 채팅에서 내 메시지를 그 봇 색상의 그라데이션으로 채워요. 대화방은 중립 말풍선을 유지해요.","settings.userBubbles.aria": "내 메시지에 봇 색상 입히기",- "settings.sidebarDensity.subtitle": "사이드바에서 봇과 스레드 하나가 차지하는 공간이에요. 이 기기에만 적용돼요. 아바타만은 헤더에서 사이드바를 접는 것과 같아요.","settings.advancedMode.title": "고급 모드","settings.advancedMode.subtitle": "이 기기에서 모든 기술적 컨트롤을 보여 줘요: 사용량과 토큰, 인스펙터, 그 밖의 개발자용 도구. 끄면 앱이 더 단순해져요. 어느 쪽이든 삭제되는 것은 없어요.","settings.threadDisplay.title": "스레드",@@ -1944,17 +1943,9 @@"sidebar.archived.restored": "{name} 복원됨","sidebar.archived.restoredOne": "봇 1개 복원됨","sidebar.archived.restoredMany": "봇 {count}개 복원됨",- "sidebar.density.expand": "사이드바 펼치기","sidebar.resize": "사이드바 크기 조절",- "sidebar.density.collapseAria": "사이드바를 아바타만 보이게 접기",- "sidebar.density.collapse": "아바타만 보이게 접기",- "sidebar.density.chooseAria": "사이드바 밀도 선택",- "sidebar.density.title": "사이드바 밀도",- "sidebar.density.comfortable": "여유 있게",- "sidebar.density.compact": "촘촘하게",- "sidebar.density.iconsOnly": "아바타만","sidebar.toolsLayout.title": "도구 배치",- "sidebar.toolsLayout.subtitle": "루틴, 트리거, 팀 맵을 행으로 보여 줄지 아이콘 한 줄로 보여 줄지 정해요. 아이콘 밀도에서는 항상 아이콘으로 보여요.",+ "sidebar.toolsLayout.subtitle": "루틴, 트리거, 팀 맵을 행으로 보여 줄지 아이콘 한 줄로 보여 줄지 정해요. 사이드바를 아바타 열로 줄이면 항상 아이콘으로 보여요.","sidebar.toolsLayout.rows": "행","sidebar.toolsLayout.toolbar": "도구 모음","sidebar.toolsLayout.chooseAria": "도구 배치 선택",@@ -7076,5 +7067,9 @@"botAccess.yours.chat": "{bot}와 대화하고 나만의 대화를 시작할 수 있어요. 접근 권한은 편집할 수 있는 사람이 정해요.","botAccess.yours.other": "접근 권한은 {bot}를 편집할 수 있는 사람이 정해요.","botAccess.viewOnly": "{bot}는 볼 수만 있고 대화할 수는 없어요.",- "botAccess.viewOnlyRoom": "{bot}는 볼 수만 있어서 이 대화방을 읽을 수는 있지만 쓸 수는 없어요."+ "botAccess.viewOnlyRoom": "{bot}는 볼 수만 있어서 이 대화방을 읽을 수는 있지만 쓸 수는 없어요.",+ "settings.windowFrame.title": "창 프레임",+ "settings.windowFrame.subtitle": "위쪽에 지금 있는 곳을 알려 주는 얇은 막대가 생기고, 채팅은 모서리가 둥근 카드 안에 보여요. 끄면 창이 예전 모습으로 돌아가요.",+ "settings.windowFrame.restart": "{app}을(를) 다시 시작하면 적용돼요.",+ "settings.windowFrame.restartNow": "지금 다시 시작"}diff --git a/src/locales/pl.json b/src/locales/pl.jsonindex 34178146e3..ef488cc130 100644--- a/src/locales/pl.json+++ b/src/locales/pl.json@@ -486,6 +486,10 @@"rail.hide": "Ukryj swoje komputery","rail.show": "Pokaż swoje komputery","rail.showSub": "Kółko dla każdego miejsca, w którym mieszkają twoje boty, przy lewej krawędzi okna.",+ "settings.windowFrame.title": "Ramka okna",+ "settings.windowFrame.subtitle": "Cienki pasek u góry, który pokazuje, gdzie jesteś, i czat w zaokrąglonej karcie. Po wyłączeniu okno wygląda jak wcześniej.",+ "settings.windowFrame.restart": "Zmiana zadziała po ponownym uruchomieniu {app}.",+ "settings.windowFrame.restartNow": "Uruchom ponownie teraz","placeLook.title": "Kolor","placeLook.sub": "{name} ma ten kolor na górze paska bocznego i w swoim kółku przy lewej krawędzi okna.","placeLook.aria": "Kolor: {name}",@@ -1350,7 +1354,6 @@"settings.userBubbles.title": "Koloruj moje wiadomości","settings.userBubbles.subtitle": "W czacie jeden na jeden twoje wiadomości mają tło z gradientu w kolorze tego bota. Pokoje zachowują neutralny dymek.","settings.userBubbles.aria": "Koloruj moje wiadomości kolorem bota",- "settings.sidebarDensity.subtitle": "Ile miejsca każdy bot i wątek zajmuje w panelu bocznym, tylko na tym urządzeniu. Opcja Tylko awatary działa tak samo jak zwinięcie panelu bocznego z jego nagłówka.","settings.advancedMode.title": "Tryb zaawansowany","settings.advancedMode.subtitle": "Pokazuj wszystkie techniczne elementy sterujące na tym urządzeniu: wykorzystanie i tokeny, inspektor oraz inne narzędzia dla twórców. Wyłącz, aby uzyskać prostszą aplikację. Nic nie zostanie usunięte w żadnym wariancie.","settings.threadDisplay.title": "Wątki",@@ -1776,17 +1779,9 @@"sidebar.archived.restored": "Przywrócono: {name}","sidebar.archived.restoredOne": "Przywrócono 1 bota","sidebar.archived.restoredMany": "Przywrócone boty: {count}",- "sidebar.density.expand": "Rozwiń panel boczny","sidebar.resize": "Zmień rozmiar panelu bocznego",- "sidebar.density.collapseAria": "Zwiń panel boczny do awatarów",- "sidebar.density.collapse": "Zwiń do awatarów",- "sidebar.density.chooseAria": "Wybierz gęstość panelu bocznego",- "sidebar.density.title": "Gęstość panelu bocznego",- "sidebar.density.comfortable": "Wygodna",- "sidebar.density.compact": "Kompaktowa",- "sidebar.density.iconsOnly": "Tylko awatary","sidebar.toolsLayout.title": "Układ narzędzi",- "sidebar.toolsLayout.subtitle": "Pokazuj rutyny, wyzwalacze i mapę zespołu jako wiersze lub jako jeden wiersz ikon. Tryb ikon zawsze pokazuje ikony.",+ "sidebar.toolsLayout.subtitle": "Pokazuj rutyny, wyzwalacze i mapę zespołu jako wiersze lub jako jeden wiersz ikon. Pasek boczny zwężony do kolumny awatarów zawsze pokazuje ikony.","sidebar.toolsLayout.rows": "Wiersze","sidebar.toolsLayout.toolbar": "Pasek narzędzi","sidebar.toolsLayout.chooseAria": "Wybierz układ narzędzi",diff --git a/src/locales/pt-br.json b/src/locales/pt-br.jsonindex 6432bfef13..5e30e35448 100644--- a/src/locales/pt-br.json+++ b/src/locales/pt-br.json@@ -476,6 +476,10 @@"rail.hide": "Ocultar seus computadores","rail.show": "Mostrar seus computadores","rail.showSub": "Um círculo para cada lugar onde seus bots vivem, na borda esquerda da janela.",+ "settings.windowFrame.title": "Moldura da janela",+ "settings.windowFrame.subtitle": "Uma barra fina no topo que mostra onde você está, com o chat em um cartão arredondado. Desligada, a janela fica como era antes.",+ "settings.windowFrame.restart": "Vale quando o {app} reiniciar.",+ "settings.windowFrame.restartNow": "Reiniciar agora","placeLook.title": "Cor","placeLook.sub": "{name} aparece nesta cor no topo da barra lateral e no círculo dele na borda esquerda da janela.","placeLook.aria": "Cor de {name}",@@ -1269,7 +1273,6 @@"settings.userBubbles.title": "Colorir minhas mensagens","settings.userBubbles.subtitle": "Em uma conversa individual, suas mensagens são preenchidas com um degradê da cor daquele bot. Os grupos mantêm o balão neutro.","settings.userBubbles.aria": "Colorir minhas mensagens com a cor do bot",- "settings.sidebarDensity.subtitle": "Quanto espaço cada bot e conversa ocupa na barra lateral, só neste dispositivo. “Só avatares” é o mesmo que recolher a barra lateral pelo cabeçalho dela.","settings.advancedMode.title": "Modo avançado","settings.advancedMode.subtitle": "Mostra todos os controles técnicos neste dispositivo: uso e tokens, o inspetor e outras ferramentas para quem cria. Desative para ter um app mais simples. Nada é excluído em nenhum dos casos.","settings.threadDisplay.title": "Conversas",@@ -1747,17 +1750,9 @@"sidebar.archived.restored": "{name} restaurado","sidebar.archived.restoredOne": "1 bot restaurado","sidebar.archived.restoredMany": "{count} bots restaurados",- "sidebar.density.expand": "Expandir a barra lateral","sidebar.resize": "Redimensionar a barra lateral",- "sidebar.density.collapseAria": "Recolher a barra lateral para avatares",- "sidebar.density.collapse": "Recolher para avatares",- "sidebar.density.chooseAria": "Escolher a densidade da barra lateral",- "sidebar.density.title": "Densidade da barra lateral",- "sidebar.density.comfortable": "Confortável",- "sidebar.density.compact": "Compacta",- "sidebar.density.iconsOnly": "Só avatares","sidebar.toolsLayout.title": "Layout das ferramentas",- "sidebar.toolsLayout.subtitle": "Mostre Rotinas, Gatilhos e Mapa da equipe como linhas ou como uma única linha de ícones. A densidade “Só avatares” sempre mostra ícones.",+ "sidebar.toolsLayout.subtitle": "Mostre Rotinas, Gatilhos e Mapa da equipe como linhas ou como uma única linha de ícones. Como coluna de avatares, a barra lateral sempre mostra ícones.","sidebar.toolsLayout.rows": "Linhas","sidebar.toolsLayout.toolbar": "Barra de ferramentas","sidebar.toolsLayout.chooseAria": "Escolher o layout das ferramentas",diff --git a/src/locales/ru.json b/src/locales/ru.jsonindex 10fbeb7285..db307b8aa5 100644--- a/src/locales/ru.json+++ b/src/locales/ru.json@@ -486,6 +486,10 @@"rail.hide": "Скрыть ваши компьютеры","rail.show": "Показать ваши компьютеры","rail.showSub": "Кружок для каждого места, где живут ваши боты, у левого края окна.",+ "settings.windowFrame.title": "Рамка окна",+ "settings.windowFrame.subtitle": "Тонкая полоса сверху показывает, где вы, а чат — в карточке со скруглёнными углами. Если выключить, окно станет таким, как раньше.",+ "settings.windowFrame.restart": "Изменение вступит в силу после перезапуска {app}.",+ "settings.windowFrame.restartNow": "Перезапустить сейчас","placeLook.title": "Цвет","placeLook.sub": "{name} отображается этим цветом вверху боковой панели и в своём кружке у левого края окна.","placeLook.aria": "Цвет: {name}",@@ -1356,7 +1360,6 @@"settings.userBubbles.title": "Окрашивать мои сообщения","settings.userBubbles.subtitle": "В личном чате ваши сообщения заливаются градиентом цвета этого бота. В комнатах пузырь остаётся нейтральным.","settings.userBubbles.aria": "Окрашивать мои сообщения цветом бота",- "settings.sidebarDensity.subtitle": "Сколько места занимает каждый бот и каждая ветка в боковой панели, только на этом устройстве. Вариант «Только аватары» равнозначен сворачиванию боковой панели через её заголовок.","settings.advancedMode.title": "Расширенный режим","settings.advancedMode.subtitle": "Показывать все технические элементы управления на этом устройстве: статистику использования и токены, инспектор и другие инструменты для разработчиков. Отключите его, чтобы приложение стало проще. В обоих случаях ничего не удаляется.","settings.threadDisplay.title": "Ветки",@@ -1850,17 +1853,9 @@"sidebar.archived.restored": "{name} восстановлен","sidebar.archived.restoredOne": "Восстановлен 1 бот","sidebar.archived.restoredMany": "Восстановлено ботов: {count}",- "sidebar.density.expand": "Развернуть боковую панель","sidebar.resize": "Изменить размер боковой панели",- "sidebar.density.collapseAria": "Свернуть боковую панель до аватаров",- "sidebar.density.collapse": "Свернуть до аватаров",- "sidebar.density.chooseAria": "Выбрать плотность боковой панели",- "sidebar.density.title": "Плотность боковой панели",- "sidebar.density.comfortable": "Просторная",- "sidebar.density.compact": "Компактная",- "sidebar.density.iconsOnly": "Только аватары","sidebar.toolsLayout.title": "Макет инструментов",- "sidebar.toolsLayout.subtitle": "Показывать «Рутины», «Триггеры» и «Карту команды» строками или одной строкой иконок. В режиме иконок всегда отображаются только иконки.",+ "sidebar.toolsLayout.subtitle": "Показывать «Рутины», «Триггеры» и «Карту команды» строками или одной строкой иконок. Боковая панель, суженная до столбца аватаров, всегда показывает иконки.","sidebar.toolsLayout.rows": "Строки","sidebar.toolsLayout.toolbar": "Панель","sidebar.toolsLayout.chooseAria": "Выбрать макет инструментов",diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.jsonindex 769d5ff0d0..4c52352f39 100644--- a/src/locales/source-hashes.json+++ b/src/locales/source-hashes.json@@ -463,14 +463,6 @@"sidebar.archived.restored": "67de94c6450ad2067044b62c25f935d0ede47feb02ec194d4229d749d9a09f51","sidebar.archived.restoredOne": "e6fc1c203590c494c92c156d8130944502e804b026e10f00c3c7e548b1441fd1","sidebar.archived.restoredMany": "df4d6a1f363c5b3a2ca3900bb237162053bc0b2bcc7de02b9c27cf0d13f7d78f",- "sidebar.density.expand": "37a5d6485e109bf695382308d0e2cd33913c3e5f7e9ab990e8f1a5f4287b2c6a",- "sidebar.density.collapseAria": "36953ceeefeffd1bea4df6ab1c19d39fdb1233b6454360f1dd7ef9eaeabafe82",- "sidebar.density.collapse": "7e800109d502e4d1195cd483a53aa22cc7f56dba3f059d9e8501c15d9c9fa19f",- "sidebar.density.chooseAria": "b2f7b6f71b152b968a39fa4c4244c290d521da624cf554f08e13c40892596dad",- "sidebar.density.title": "801b2ef098741ad59752f8d63436e7f26ff29a005eddce184edae531ee2de5c5",- "sidebar.density.comfortable": "459a23a5980fd5c63646e067c0503210fff540a57e74884956c119b3d2ac5407",- "sidebar.density.compact": "99452646e34b69704c9134a093d5ce5af823cc6d4ed3566fe8ad3ba1555057ae",- "sidebar.density.iconsOnly": "f6952033bd5f09cfe33dc0668c7188b01f8cd2d28a08ec940b5f83cc961f5362","sidebar.new": "18fdd549b2ed367ac0c74cbec1214644728515b30edbcb78e7d322757a7c8359","sidebar.newOrShare": "d23251995ae60ba74b1e2d4de121199d7fc03aedd857c9cc567a350f98e13bcd","sidebar.newBot": "58c1610feb66797946583e275e0a96b3ec05b554757e95d52a1c31e5ec8238a1",@@ -2555,7 +2547,11 @@"botPanel.backups.hint": "70b8fdefbc134b1039c00dfa2c9e14a4b449b727eddad64b2dec852e92f81782","botPanel.backups.row": "40d023d91b8e0864e975c5e8e5099e3267f148d114c2b3831b5b5932e37de9eb","botPanel.backups.remove": "439fc54ae2233f808bb3514d6f90cc0a5075fe0856112a48a5efe28c8e737597",- "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf"+ "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf",+ "settings.windowFrame.title": "deeb39467d5a42e3b771fe51c8090b58cda7d10f29b63c2a452e399bc3307026",+ "settings.windowFrame.subtitle": "9c73958af72ede9828b57959a19a74be08ad99782311a474fbece66a07909784",+ "settings.windowFrame.restart": "f24e00b29dcf80e5c821798ddcff6a3b0a41226d69d3c6292fd62bd2debb231a",+ "settings.windowFrame.restartNow": "09af1002abafb2dadfd2a9e61d7b0493c2a1da0e4859645116db0d462d175b08"},"es": {"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",@@ -3448,7 +3444,6 @@"settings.userBubbles.title": "de480ba92598df1fc797a075362b3c35726d6902cbe97a47420cf5d16be5eca3","settings.userBubbles.subtitle": "85e947f3fafbe2bb350556170e4eca496dddef7ee159b4249ab1be7d11a2a09d","settings.userBubbles.aria": "eb4bc281409b11c0b9e5c5487d057f6acbdf2bbcf3db5588233f7d7bf3a4763f",- "settings.sidebarDensity.subtitle": "32dc613ed0115635225ef649e8d82a070b6683c8abb253e67b4267f636ff6438","settings.advancedMode.title": "98a3db7545f58ba63ce38944debc15d69792c0613bc8a9931b6d4cedcd01670d","settings.advancedMode.subtitle": "3c3865da1d2f2e775dcdc6a0133f9b08d119e41ced1b170d70bf670a8086b6d7","settings.threadDisplay.title": "3e42e385075b9b569620eb6d652cff77b19eab567ee2927d6e1bf901f51d8246",@@ -3879,17 +3874,9 @@"sidebar.archived.restored": "67de94c6450ad2067044b62c25f935d0ede47feb02ec194d4229d749d9a09f51","sidebar.archived.restoredOne": "e6fc1c203590c494c92c156d8130944502e804b026e10f00c3c7e548b1441fd1","sidebar.archived.restoredMany": "df4d6a1f363c5b3a2ca3900bb237162053bc0b2bcc7de02b9c27cf0d13f7d78f",- "sidebar.density.expand": "37a5d6485e109bf695382308d0e2cd33913c3e5f7e9ab990e8f1a5f4287b2c6a","sidebar.resize": "243854b4d0c709a06e41005bc74a72d6b49463cc2d9ac5bc2967666f6b988c88",- "sidebar.density.collapseAria": "36953ceeefeffd1bea4df6ab1c19d39fdb1233b6454360f1dd7ef9eaeabafe82",- "sidebar.density.collapse": "7e800109d502e4d1195cd483a53aa22cc7f56dba3f059d9e8501c15d9c9fa19f",- "sidebar.density.chooseAria": "b2f7b6f71b152b968a39fa4c4244c290d521da624cf554f08e13c40892596dad",- "sidebar.density.title": "801b2ef098741ad59752f8d63436e7f26ff29a005eddce184edae531ee2de5c5",- "sidebar.density.comfortable": "459a23a5980fd5c63646e067c0503210fff540a57e74884956c119b3d2ac5407",- "sidebar.density.compact": "99452646e34b69704c9134a093d5ce5af823cc6d4ed3566fe8ad3ba1555057ae",- "sidebar.density.iconsOnly": "f6952033bd5f09cfe33dc0668c7188b01f8cd2d28a08ec940b5f83cc961f5362","sidebar.toolsLayout.title": "97ca469aeb684fb6921b90467c04fb280aeb2cb4366faf13cc0da18ba5f04ad8",- "sidebar.toolsLayout.subtitle": "cfb38d5320d34cf70299e822c31b83b964d3c39addb165cb0de0c91cb54a4eb8",+ "sidebar.toolsLayout.subtitle": "76c35881d901bc1359db31db30ec03d8edc0c926bac03111c64c82162374e53b","sidebar.toolsLayout.rows": "101f2ff3de22441fcab3e15ca0b09ac3428642cf628558f16fa404fc3137baea","sidebar.toolsLayout.toolbar": "451aa51a0fb5068da31b9bffbc63163d44e746af7b0ee37fa8f305f6e96f198c","sidebar.toolsLayout.chooseAria": "819fc5c0ce4defdf0dd58f419bc347f222b838710ea7f90e0d55071570e9de55",@@ -8020,7 +8007,11 @@"botPanel.backups.hint": "70b8fdefbc134b1039c00dfa2c9e14a4b449b727eddad64b2dec852e92f81782","botPanel.backups.row": "40d023d91b8e0864e975c5e8e5099e3267f148d114c2b3831b5b5932e37de9eb","botPanel.backups.remove": "439fc54ae2233f808bb3514d6f90cc0a5075fe0856112a48a5efe28c8e737597",- "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf"+ "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf",+ "settings.windowFrame.title": "deeb39467d5a42e3b771fe51c8090b58cda7d10f29b63c2a452e399bc3307026",+ "settings.windowFrame.subtitle": "9c73958af72ede9828b57959a19a74be08ad99782311a474fbece66a07909784",+ "settings.windowFrame.restart": "f24e00b29dcf80e5c821798ddcff6a3b0a41226d69d3c6292fd62bd2debb231a",+ "settings.windowFrame.restartNow": "09af1002abafb2dadfd2a9e61d7b0493c2a1da0e4859645116db0d462d175b08"},"fr": {"highlevel.unavailable": "87b8ac7f7610e6dd69f520bc59058fd92f307b9f4bcf804075f25d08bcaa7533",@@ -8403,14 +8394,6 @@"sidebar.archived.restored": "67de94c6450ad2067044b62c25f935d0ede47feb02ec194d4229d749d9a09f51","sidebar.archived.restoredOne": "e6fc1c203590c494c92c156d8130944502e804b026e10f00c3c7e548b1441fd1","sidebar.archived.restoredMany": "df4d6a1f363c5b3a2ca3900bb237162053bc0b2bcc7de02b9c27cf0d13f7d78f",- "sidebar.density.expand": "37a5d6485e109bf695382308d0e2cd33913c3e5f7e9ab990e8f1a5f4287b2c6a",- "sidebar.density.collapseAria": "36953ceeefeffd1bea4df6ab1c19d39fdb1233b6454360f1dd7ef9eaeabafe82",- "sidebar.density.collapse": "7e800109d502e4d1195cd483a53aa22cc7f56dba3f059d9e8501c15d9c9fa19f",- "sidebar.density.chooseAria": "b2f7b6f71b152b968a39fa4c4244c290d521da624cf554f08e13c40892596dad",- "sidebar.density.title": "801b2ef098741ad59752f8d63436e7f26ff29a005eddce184edae531ee2de5c5",- "sidebar.density.comfortable": "459a23a5980fd5c63646e067c0503210fff540a57e74884956c119b3d2ac5407",- "sidebar.density.compact": "99452646e34b69704c9134a093d5ce5af823cc6d4ed3566fe8ad3ba1555057ae",- "sidebar.density.iconsOnly": "f6952033bd5f09cfe33dc0668c7188b01f8cd2d28a08ec940b5f83cc961f5362","sidebar.new": "18fdd549b2ed367ac0c74cbec1214644728515b30edbcb78e7d322757a7c8359","sidebar.newOrShare": "d23251995ae60ba74b1e2d4de121199d7fc03aedd857c9cc567a350f98e13bcd","sidebar.newBot": "58c1610feb66797946583e275e0a96b3ec05b554757e95d52a1c31e5ec8238a1",@@ -10535,7 +10518,11 @@"botPanel.backups.hint": "70b8fdefbc134b1039c00dfa2c9e14a4b449b727eddad64b2dec852e92f81782","botPanel.backups.row": "40d023d91b8e0864e975c5e8e5099e3267f148d114c2b3831b5b5932e37de9eb","botPanel.backups.remove": "439fc54ae2233f808bb3514d6f90cc0a5075fe0856112a48a5efe28c8e737597",- "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf"+ "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf",+ "settings.windowFrame.title": "deeb39467d5a42e3b771fe51c8090b58cda7d10f29b63c2a452e399bc3307026",+ "settings.windowFrame.subtitle": "9c73958af72ede9828b57959a19a74be08ad99782311a474fbece66a07909784",+ "settings.windowFrame.restart": "f24e00b29dcf80e5c821798ddcff6a3b0a41226d69d3c6292fd62bd2debb231a",+ "settings.windowFrame.restartNow": "09af1002abafb2dadfd2a9e61d7b0493c2a1da0e4859645116db0d462d175b08"},"hi": {"highlevel.unavailable": "87b8ac7f7610e6dd69f520bc59058fd92f307b9f4bcf804075f25d08bcaa7533",@@ -10918,14 +10905,6 @@"sidebar.archived.restored": "67de94c6450ad2067044b62c25f935d0ede47feb02ec194d4229d749d9a09f51","sidebar.archived.restoredOne": "e6fc1c203590c494c92c156d8130944502e804b026e10f00c3c7e548b1441fd1","sidebar.archived.restoredMany": "df4d6a1f363c5b3a2ca3900bb237162053bc0b2bcc7de02b9c27cf0d13f7d78f",- "sidebar.density.expand": "37a5d6485e109bf695382308d0e2cd33913c3e5f7e9ab990e8f1a5f4287b2c6a",- "sidebar.density.collapseAria": "36953ceeefeffd1bea4df6ab1c19d39fdb1233b6454360f1dd7ef9eaeabafe82",- "sidebar.density.collapse": "7e800109d502e4d1195cd483a53aa22cc7f56dba3f059d9e8501c15d9c9fa19f",- "sidebar.density.chooseAria": "b2f7b6f71b152b968a39fa4c4244c290d521da624cf554f08e13c40892596dad",- "sidebar.density.title": "801b2ef098741ad59752f8d63436e7f26ff29a005eddce184edae531ee2de5c5",- "sidebar.density.comfortable": "459a23a5980fd5c63646e067c0503210fff540a57e74884956c119b3d2ac5407",- "sidebar.density.compact": "99452646e34b69704c9134a093d5ce5af823cc6d4ed3566fe8ad3ba1555057ae",- "sidebar.density.iconsOnly": "f6952033bd5f09cfe33dc0668c7188b01f8cd2d28a08ec940b5f83cc961f5362","sidebar.new": "18fdd549b2ed367ac0c74cbec1214644728515b30edbcb78e7d322757a7c8359","sidebar.newOrShare": "d23251995ae60ba74b1e2d4de121199d7fc03aedd857c9cc567a350f98e13bcd","sidebar.newBot": "58c1610feb66797946583e275e0a96b3ec05b554757e95d52a1c31e5ec8238a1",@@ -13050,7 +13029,11 @@"botPanel.backups.hint": "70b8fdefbc134b1039c00dfa2c9e14a4b449b727eddad64b2dec852e92f81782","botPanel.backups.row": "40d023d91b8e0864e975c5e8e5099e3267f148d114c2b3831b5b5932e37de9eb","botPanel.backups.remove": "439fc54ae2233f808bb3514d6f90cc0a5075fe0856112a48a5efe28c8e737597",- "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf"+ "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf",+ "settings.windowFrame.title": "deeb39467d5a42e3b771fe51c8090b58cda7d10f29b63c2a452e399bc3307026",+ "settings.windowFrame.subtitle": "9c73958af72ede9828b57959a19a74be08ad99782311a474fbece66a07909784",+ "settings.windowFrame.restart": "f24e00b29dcf80e5c821798ddcff6a3b0a41226d69d3c6292fd62bd2debb231a",+ "settings.windowFrame.restartNow": "09af1002abafb2dadfd2a9e61d7b0493c2a1da0e4859645116db0d462d175b08"},"ja": {"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",@@ -14089,7 +14072,6 @@"settings.userBubbles.title": "de480ba92598df1fc797a075362b3c35726d6902cbe97a47420cf5d16be5eca3","settings.userBubbles.subtitle": "85e947f3fafbe2bb350556170e4eca496dddef7ee159b4249ab1be7d11a2a09d","settings.userBubbles.aria": "eb4bc281409b11c0b9e5c5487d057f6acbdf2bbcf3db5588233f7d7bf3a4763f",- "settings.sidebarDensity.subtitle": "32dc613ed0115635225ef649e8d82a070b6683c8abb253e67b4267f636ff6438","settings.advancedMode.title": "98a3db7545f58ba63ce38944debc15d69792c0613bc8a9931b6d4cedcd01670d","settings.advancedMode.subtitle": "3c3865da1d2f2e775dcdc6a0133f9b08d119e41ced1b170d70bf670a8086b6d7","settings.threadDisplay.title": "3e42e385075b9b569620eb6d652cff77b19eab567ee2927d6e1bf901f51d8246",@@ -14540,17 +14522,9 @@"sidebar.archived.restored": "67de94c6450ad2067044b62c25f935d0ede47feb02ec194d4229d749d9a09f51","sidebar.archived.restoredOne": "e6fc1c203590c494c92c156d8130944502e804b026e10f00c3c7e548b1441fd1","sidebar.archived.restoredMany": "df4d6a1f363c5b3a2ca3900bb237162053bc0b2bcc7de02b9c27cf0d13f7d78f",- "sidebar.density.expand": "37a5d6485e109bf695382308d0e2cd33913c3e5f7e9ab990e8f1a5f4287b2c6a","sidebar.resize": "243854b4d0c709a06e41005bc74a72d6b49463cc2d9ac5bc2967666f6b988c88",- "sidebar.density.collapseAria": "36953ceeefeffd1bea4df6ab1c19d39fdb1233b6454360f1dd7ef9eaeabafe82",- "sidebar.density.collapse": "7e800109d502e4d1195cd483a53aa22cc7f56dba3f059d9e8501c15d9c9fa19f",- "sidebar.density.chooseAria": "b2f7b6f71b152b968a39fa4c4244c290d521da624cf554f08e13c40892596dad",- "sidebar.density.title": "801b2ef098741ad59752f8d63436e7f26ff29a005eddce184edae531ee2de5c5",- "sidebar.density.comfortable": "459a23a5980fd5c63646e067c0503210fff540a57e74884956c119b3d2ac5407",- "sidebar.density.compact": "99452646e34b69704c9134a093d5ce5af823cc6d4ed3566fe8ad3ba1555057ae",- "sidebar.density.iconsOnly": "f6952033bd5f09cfe33dc0668c7188b01f8cd2d28a08ec940b5f83cc961f5362","sidebar.toolsLayout.title": "97ca469aeb684fb6921b90467c04fb280aeb2cb4366faf13cc0da18ba5f04ad8",- "sidebar.toolsLayout.subtitle": "cfb38d5320d34cf70299e822c31b83b964d3c39addb165cb0de0c91cb54a4eb8",+ "sidebar.toolsLayout.subtitle": "76c35881d901bc1359db31db30ec03d8edc0c926bac03111c64c82162374e53b","sidebar.toolsLayout.rows": "101f2ff3de22441fcab3e15ca0b09ac3428642cf628558f16fa404fc3137baea","sidebar.toolsLayout.toolbar": "451aa51a0fb5068da31b9bffbc63163d44e746af7b0ee37fa8f305f6e96f198c","sidebar.toolsLayout.chooseAria": "819fc5c0ce4defdf0dd58f419bc347f222b838710ea7f90e0d55071570e9de55",@@ -19438,7 +19412,11 @@"botPanel.backups.hint": "70b8fdefbc134b1039c00dfa2c9e14a4b449b727eddad64b2dec852e92f81782","botPanel.backups.row": "40d023d91b8e0864e975c5e8e5099e3267f148d114c2b3831b5b5932e37de9eb","botPanel.backups.remove": "439fc54ae2233f808bb3514d6f90cc0a5075fe0856112a48a5efe28c8e737597",- "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf"+ "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf",+ "settings.windowFrame.title": "deeb39467d5a42e3b771fe51c8090b58cda7d10f29b63c2a452e399bc3307026",+ "settings.windowFrame.subtitle": "9c73958af72ede9828b57959a19a74be08ad99782311a474fbece66a07909784",+ "settings.windowFrame.restart": "f24e00b29dcf80e5c821798ddcff6a3b0a41226d69d3c6292fd62bd2debb231a",+ "settings.windowFrame.restartNow": "09af1002abafb2dadfd2a9e61d7b0493c2a1da0e4859645116db0d462d175b08"},"pt-br": {"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",@@ -20389,7 +20367,6 @@"settings.userBubbles.title": "de480ba92598df1fc797a075362b3c35726d6902cbe97a47420cf5d16be5eca3","settings.userBubbles.subtitle": "85e947f3fafbe2bb350556170e4eca496dddef7ee159b4249ab1be7d11a2a09d","settings.userBubbles.aria": "eb4bc281409b11c0b9e5c5487d057f6acbdf2bbcf3db5588233f7d7bf3a4763f",- "settings.sidebarDensity.subtitle": "32dc613ed0115635225ef649e8d82a070b6683c8abb253e67b4267f636ff6438","settings.advancedMode.title": "98a3db7545f58ba63ce38944debc15d69792c0613bc8a9931b6d4cedcd01670d","settings.advancedMode.subtitle": "3c3865da1d2f2e775dcdc6a0133f9b08d119e41ced1b170d70bf670a8086b6d7","settings.threadDisplay.title": "3e42e385075b9b569620eb6d652cff77b19eab567ee2927d6e1bf901f51d8246",@@ -20824,17 +20801,9 @@"sidebar.archived.restored": "67de94c6450ad2067044b62c25f935d0ede47feb02ec194d4229d749d9a09f51","sidebar.archived.restoredOne": "e6fc1c203590c494c92c156d8130944502e804b026e10f00c3c7e548b1441fd1","sidebar.archived.restoredMany": "df4d6a1f363c5b3a2ca3900bb237162053bc0b2bcc7de02b9c27cf0d13f7d78f",- "sidebar.density.expand": "37a5d6485e109bf695382308d0e2cd33913c3e5f7e9ab990e8f1a5f4287b2c6a","sidebar.resize": "243854b4d0c709a06e41005bc74a72d6b49463cc2d9ac5bc2967666f6b988c88",- "sidebar.density.collapseAria": "36953ceeefeffd1bea4df6ab1c19d39fdb1233b6454360f1dd7ef9eaeabafe82",- "sidebar.density.collapse": "7e800109d502e4d1195cd483a53aa22cc7f56dba3f059d9e8501c15d9c9fa19f",- "sidebar.density.chooseAria": "b2f7b6f71b152b968a39fa4c4244c290d521da624cf554f08e13c40892596dad",- "sidebar.density.title": "801b2ef098741ad59752f8d63436e7f26ff29a005eddce184edae531ee2de5c5",- "sidebar.density.comfortable": "459a23a5980fd5c63646e067c0503210fff540a57e74884956c119b3d2ac5407",- "sidebar.density.compact": "99452646e34b69704c9134a093d5ce5af823cc6d4ed3566fe8ad3ba1555057ae",- "sidebar.density.iconsOnly": "f6952033bd5f09cfe33dc0668c7188b01f8cd2d28a08ec940b5f83cc961f5362","sidebar.toolsLayout.title": "97ca469aeb684fb6921b90467c04fb280aeb2cb4366faf13cc0da18ba5f04ad8",- "sidebar.toolsLayout.subtitle": "cfb38d5320d34cf70299e822c31b83b964d3c39addb165cb0de0c91cb54a4eb8",+ "sidebar.toolsLayout.subtitle": "76c35881d901bc1359db31db30ec03d8edc0c926bac03111c64c82162374e53b","sidebar.toolsLayout.rows": "101f2ff3de22441fcab3e15ca0b09ac3428642cf628558f16fa404fc3137baea","sidebar.toolsLayout.toolbar": "451aa51a0fb5068da31b9bffbc63163d44e746af7b0ee37fa8f305f6e96f198c","sidebar.toolsLayout.chooseAria": "819fc5c0ce4defdf0dd58f419bc347f222b838710ea7f90e0d55071570e9de55",@@ -25584,7 +25553,11 @@"botPanel.backups.hint": "70b8fdefbc134b1039c00dfa2c9e14a4b449b727eddad64b2dec852e92f81782","botPanel.backups.row": "40d023d91b8e0864e975c5e8e5099e3267f148d114c2b3831b5b5932e37de9eb","botPanel.backups.remove": "439fc54ae2233f808bb3514d6f90cc0a5075fe0856112a48a5efe28c8e737597",- "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf"+ "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf",+ "settings.windowFrame.title": "deeb39467d5a42e3b771fe51c8090b58cda7d10f29b63c2a452e399bc3307026",+ "settings.windowFrame.subtitle": "9c73958af72ede9828b57959a19a74be08ad99782311a474fbece66a07909784",+ "settings.windowFrame.restart": "f24e00b29dcf80e5c821798ddcff6a3b0a41226d69d3c6292fd62bd2debb231a",+ "settings.windowFrame.restartNow": "09af1002abafb2dadfd2a9e61d7b0493c2a1da0e4859645116db0d462d175b08"},"zh": {"highlevel.unavailable": "87b8ac7f7610e6dd69f520bc59058fd92f307b9f4bcf804075f25d08bcaa7533",@@ -26224,14 +26197,6 @@"sidebar.archived.restored": "67de94c6450ad2067044b62c25f935d0ede47feb02ec194d4229d749d9a09f51","sidebar.archived.restoredOne": "e6fc1c203590c494c92c156d8130944502e804b026e10f00c3c7e548b1441fd1","sidebar.archived.restoredMany": "df4d6a1f363c5b3a2ca3900bb237162053bc0b2bcc7de02b9c27cf0d13f7d78f",- "sidebar.density.expand": "37a5d6485e109bf695382308d0e2cd33913c3e5f7e9ab990e8f1a5f4287b2c6a",- "sidebar.density.collapseAria": "36953ceeefeffd1bea4df6ab1c19d39fdb1233b6454360f1dd7ef9eaeabafe82",- "sidebar.density.collapse": "7e800109d502e4d1195cd483a53aa22cc7f56dba3f059d9e8501c15d9c9fa19f",- "sidebar.density.chooseAria": "b2f7b6f71b152b968a39fa4c4244c290d521da624cf554f08e13c40892596dad",- "sidebar.density.title": "801b2ef098741ad59752f8d63436e7f26ff29a005eddce184edae531ee2de5c5",- "sidebar.density.comfortable": "459a23a5980fd5c63646e067c0503210fff540a57e74884956c119b3d2ac5407",- "sidebar.density.compact": "99452646e34b69704c9134a093d5ce5af823cc6d4ed3566fe8ad3ba1555057ae",- "sidebar.density.iconsOnly": "f6952033bd5f09cfe33dc0668c7188b01f8cd2d28a08ec940b5f83cc961f5362","sidebar.new": "18fdd549b2ed367ac0c74cbec1214644728515b30edbcb78e7d322757a7c8359","sidebar.newOrShare": "d23251995ae60ba74b1e2d4de121199d7fc03aedd857c9cc567a350f98e13bcd","sidebar.newBot": "58c1610feb66797946583e275e0a96b3ec05b554757e95d52a1c31e5ec8238a1",@@ -28950,7 +28915,11 @@"botPanel.backups.hint": "70b8fdefbc134b1039c00dfa2c9e14a4b449b727eddad64b2dec852e92f81782","botPanel.backups.row": "40d023d91b8e0864e975c5e8e5099e3267f148d114c2b3831b5b5932e37de9eb","botPanel.backups.remove": "439fc54ae2233f808bb3514d6f90cc0a5075fe0856112a48a5efe28c8e737597",- "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf"+ "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf",+ "settings.windowFrame.title": "deeb39467d5a42e3b771fe51c8090b58cda7d10f29b63c2a452e399bc3307026",+ "settings.windowFrame.subtitle": "9c73958af72ede9828b57959a19a74be08ad99782311a474fbece66a07909784",+ "settings.windowFrame.restart": "f24e00b29dcf80e5c821798ddcff6a3b0a41226d69d3c6292fd62bd2debb231a",+ "settings.windowFrame.restartNow": "09af1002abafb2dadfd2a9e61d7b0493c2a1da0e4859645116db0d462d175b08"},"zh-tw": {"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",@@ -29552,7 +29521,6 @@"settings.font.serif": "1b5e747e5031cb30527eed165111cf547edb09265bca0b7e319c72f42187c8f9","settings.sendKey.title": "becbbd29d1f61fe205d7c429df6dd886f2337c6c40e8eea742c0519409c82949","settings.sendKey.subtitle": "30a7d3ac5102dad9e2d202785e2cef0185c85241b279d5177fba55e5beda91cd",- "settings.sidebarDensity.subtitle": "32dc613ed0115635225ef649e8d82a070b6683c8abb253e67b4267f636ff6438","settings.advancedMode.title": "98a3db7545f58ba63ce38944debc15d69792c0613bc8a9931b6d4cedcd01670d","settings.advancedMode.subtitle": "3c3865da1d2f2e775dcdc6a0133f9b08d119e41ced1b170d70bf670a8086b6d7","settings.threadDisplay.title": "3e42e385075b9b569620eb6d652cff77b19eab567ee2927d6e1bf901f51d8246",@@ -29896,15 +29864,7 @@"sidebar.archived.restored": "67de94c6450ad2067044b62c25f935d0ede47feb02ec194d4229d749d9a09f51","sidebar.archived.restoredOne": "e6fc1c203590c494c92c156d8130944502e804b026e10f00c3c7e548b1441fd1","sidebar.archived.restoredMany": "df4d6a1f363c5b3a2ca3900bb237162053bc0b2bcc7de02b9c27cf0d13f7d78f",- "sidebar.density.expand": "37a5d6485e109bf695382308d0e2cd33913c3e5f7e9ab990e8f1a5f4287b2c6a","sidebar.resize": "243854b4d0c709a06e41005bc74a72d6b49463cc2d9ac5bc2967666f6b988c88",- "sidebar.density.collapseAria": "36953ceeefeffd1bea4df6ab1c19d39fdb1233b6454360f1dd7ef9eaeabafe82",- "sidebar.density.collapse": "7e800109d502e4d1195cd483a53aa22cc7f56dba3f059d9e8501c15d9c9fa19f",- "sidebar.density.chooseAria": "b2f7b6f71b152b968a39fa4c4244c290d521da624cf554f08e13c40892596dad",- "sidebar.density.title": "801b2ef098741ad59752f8d63436e7f26ff29a005eddce184edae531ee2de5c5",- "sidebar.density.comfortable": "459a23a5980fd5c63646e067c0503210fff540a57e74884956c119b3d2ac5407",- "sidebar.density.compact": "99452646e34b69704c9134a093d5ce5af823cc6d4ed3566fe8ad3ba1555057ae",- "sidebar.density.iconsOnly": "f6952033bd5f09cfe33dc0668c7188b01f8cd2d28a08ec940b5f83cc961f5362","sidebar.new": "18fdd549b2ed367ac0c74cbec1214644728515b30edbcb78e7d322757a7c8359","sidebar.newOrShare": "d23251995ae60ba74b1e2d4de121199d7fc03aedd857c9cc567a350f98e13bcd","sidebar.newBot": "58c1610feb66797946583e275e0a96b3ec05b554757e95d52a1c31e5ec8238a1",@@ -33297,7 +33257,11 @@"botPanel.backups.hint": "70b8fdefbc134b1039c00dfa2c9e14a4b449b727eddad64b2dec852e92f81782","botPanel.backups.row": "40d023d91b8e0864e975c5e8e5099e3267f148d114c2b3831b5b5932e37de9eb","botPanel.backups.remove": "439fc54ae2233f808bb3514d6f90cc0a5075fe0856112a48a5efe28c8e737597",- "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf"+ "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf",+ "settings.windowFrame.title": "deeb39467d5a42e3b771fe51c8090b58cda7d10f29b63c2a452e399bc3307026",+ "settings.windowFrame.subtitle": "9c73958af72ede9828b57959a19a74be08ad99782311a474fbece66a07909784",+ "settings.windowFrame.restart": "f24e00b29dcf80e5c821798ddcff6a3b0a41226d69d3c6292fd62bd2debb231a",+ "settings.windowFrame.restartNow": "09af1002abafb2dadfd2a9e61d7b0493c2a1da0e4859645116db0d462d175b08"},"uk": {"highlevel.unavailable": "87b8ac7f7610e6dd69f520bc59058fd92f307b9f4bcf804075f25d08bcaa7533",@@ -33796,14 +33760,6 @@"sidebar.archived.restored": "67de94c6450ad2067044b62c25f935d0ede47feb02ec194d4229d749d9a09f51","sidebar.archived.restoredOne": "e6fc1c203590c494c92c156d8130944502e804b026e10f00c3c7e548b1441fd1","sidebar.archived.restoredMany": "df4d6a1f363c5b3a2ca3900bb237162053bc0b2bcc7de02b9c27cf0d13f7d78f",- "sidebar.density.expand": "37a5d6485e109bf695382308d0e2cd33913c3e5f7e9ab990e8f1a5f4287b2c6a",- "sidebar.density.collapseAria": "36953ceeefeffd1bea4df6ab1c19d39fdb1233b6454360f1dd7ef9eaeabafe82",- "sidebar.density.collapse": "7e800109d502e4d1195cd483a53aa22cc7f56dba3f059d9e8501c15d9c9fa19f",- "sidebar.density.chooseAria": "b2f7b6f71b152b968a39fa4c4244c290d521da624cf554f08e13c40892596dad",- "sidebar.density.title": "801b2ef098741ad59752f8d63436e7f26ff29a005eddce184edae531ee2de5c5",- "sidebar.density.comfortable": "459a23a5980fd5c63646e067c0503210fff540a57e74884956c119b3d2ac5407",- "sidebar.density.compact": "99452646e34b69704c9134a093d5ce5af823cc6d4ed3566fe8ad3ba1555057ae",- "sidebar.density.iconsOnly": "f6952033bd5f09cfe33dc0668c7188b01f8cd2d28a08ec940b5f83cc961f5362","sidebar.new": "18fdd549b2ed367ac0c74cbec1214644728515b30edbcb78e7d322757a7c8359","sidebar.newOrShare": "d23251995ae60ba74b1e2d4de121199d7fc03aedd857c9cc567a350f98e13bcd","sidebar.newBot": "58c1610feb66797946583e275e0a96b3ec05b554757e95d52a1c31e5ec8238a1",@@ -36255,7 +36211,11 @@"botPanel.backups.hint": "70b8fdefbc134b1039c00dfa2c9e14a4b449b727eddad64b2dec852e92f81782","botPanel.backups.row": "40d023d91b8e0864e975c5e8e5099e3267f148d114c2b3831b5b5932e37de9eb","botPanel.backups.remove": "439fc54ae2233f808bb3514d6f90cc0a5075fe0856112a48a5efe28c8e737597",- "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf"+ "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf",+ "settings.windowFrame.title": "deeb39467d5a42e3b771fe51c8090b58cda7d10f29b63c2a452e399bc3307026",+ "settings.windowFrame.subtitle": "9c73958af72ede9828b57959a19a74be08ad99782311a474fbece66a07909784",+ "settings.windowFrame.restart": "f24e00b29dcf80e5c821798ddcff6a3b0a41226d69d3c6292fd62bd2debb231a",+ "settings.windowFrame.restartNow": "09af1002abafb2dadfd2a9e61d7b0493c2a1da0e4859645116db0d462d175b08"},"vi": {"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",@@ -36943,7 +36903,6 @@"settings.userBubbles.title": "de480ba92598df1fc797a075362b3c35726d6902cbe97a47420cf5d16be5eca3","settings.userBubbles.subtitle": "85e947f3fafbe2bb350556170e4eca496dddef7ee159b4249ab1be7d11a2a09d","settings.userBubbles.aria": "eb4bc281409b11c0b9e5c5487d057f6acbdf2bbcf3db5588233f7d7bf3a4763f",- "settings.sidebarDensity.subtitle": "32dc613ed0115635225ef649e8d82a070b6683c8abb253e67b4267f636ff6438","settings.advancedMode.title": "98a3db7545f58ba63ce38944debc15d69792c0613bc8a9931b6d4cedcd01670d","settings.advancedMode.subtitle": "3c3865da1d2f2e775dcdc6a0133f9b08d119e41ced1b170d70bf670a8086b6d7","settings.threadDisplay.title": "3e42e385075b9b569620eb6d652cff77b19eab567ee2927d6e1bf901f51d8246",@@ -37368,17 +37327,9 @@"sidebar.archived.restored": "67de94c6450ad2067044b62c25f935d0ede47feb02ec194d4229d749d9a09f51","sidebar.archived.restoredOne": "e6fc1c203590c494c92c156d8130944502e804b026e10f00c3c7e548b1441fd1","sidebar.archived.restoredMany": "df4d6a1f363c5b3a2ca3900bb237162053bc0b2bcc7de02b9c27cf0d13f7d78f",- "sidebar.density.expand": "37a5d6485e109bf695382308d0e2cd33913c3e5f7e9ab990e8f1a5f4287b2c6a","sidebar.resize": "243854b4d0c709a06e41005bc74a72d6b49463cc2d9ac5bc2967666f6b988c88",- "sidebar.density.collapseAria": "36953ceeefeffd1bea4df6ab1c19d39fdb1233b6454360f1dd7ef9eaeabafe82",- "sidebar.density.collapse": "7e800109d502e4d1195cd483a53aa22cc7f56dba3f059d9e8501c15d9c9fa19f",- "sidebar.density.chooseAria": "b2f7b6f71b152b968a39fa4c4244c290d521da624cf554f08e13c40892596dad",- "sidebar.density.title": "801b2ef098741ad59752f8d63436e7f26ff29a005eddce184edae531ee2de5c5",- "sidebar.density.comfortable": "459a23a5980fd5c63646e067c0503210fff540a57e74884956c119b3d2ac5407",- "sidebar.density.compact": "99452646e34b69704c9134a093d5ce5af823cc6d4ed3566fe8ad3ba1555057ae",- "sidebar.density.iconsOnly": "f6952033bd5f09cfe33dc0668c7188b01f8cd2d28a08ec940b5f83cc961f5362","sidebar.toolsLayout.title": "97ca469aeb684fb6921b90467c04fb280aeb2cb4366faf13cc0da18ba5f04ad8",- "sidebar.toolsLayout.subtitle": "cfb38d5320d34cf70299e822c31b83b964d3c39addb165cb0de0c91cb54a4eb8",+ "sidebar.toolsLayout.subtitle": "76c35881d901bc1359db31db30ec03d8edc0c926bac03111c64c82162374e53b","sidebar.toolsLayout.rows": "101f2ff3de22441fcab3e15ca0b09ac3428642cf628558f16fa404fc3137baea","sidebar.toolsLayout.toolbar": "451aa51a0fb5068da31b9bffbc63163d44e746af7b0ee37fa8f305f6e96f198c","sidebar.toolsLayout.chooseAria": "819fc5c0ce4defdf0dd58f419bc347f222b838710ea7f90e0d55071570e9de55",@@ -41211,7 +41162,11 @@"botPanel.backups.hint": "70b8fdefbc134b1039c00dfa2c9e14a4b449b727eddad64b2dec852e92f81782","botPanel.backups.row": "40d023d91b8e0864e975c5e8e5099e3267f148d114c2b3831b5b5932e37de9eb","botPanel.backups.remove": "439fc54ae2233f808bb3514d6f90cc0a5075fe0856112a48a5efe28c8e737597",- "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf"+ "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf",+ "settings.windowFrame.title": "deeb39467d5a42e3b771fe51c8090b58cda7d10f29b63c2a452e399bc3307026",+ "settings.windowFrame.subtitle": "9c73958af72ede9828b57959a19a74be08ad99782311a474fbece66a07909784",+ "settings.windowFrame.restart": "f24e00b29dcf80e5c821798ddcff6a3b0a41226d69d3c6292fd62bd2debb231a",+ "settings.windowFrame.restartNow": "09af1002abafb2dadfd2a9e61d7b0493c2a1da0e4859645116db0d462d175b08"},"tr": {"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",@@ -41899,7 +41854,6 @@"settings.userBubbles.title": "de480ba92598df1fc797a075362b3c35726d6902cbe97a47420cf5d16be5eca3","settings.userBubbles.subtitle": "85e947f3fafbe2bb350556170e4eca496dddef7ee159b4249ab1be7d11a2a09d","settings.userBubbles.aria": "eb4bc281409b11c0b9e5c5487d057f6acbdf2bbcf3db5588233f7d7bf3a4763f",- "settings.sidebarDensity.subtitle": "32dc613ed0115635225ef649e8d82a070b6683c8abb253e67b4267f636ff6438","settings.advancedMode.title": "98a3db7545f58ba63ce38944debc15d69792c0613bc8a9931b6d4cedcd01670d","settings.advancedMode.subtitle": "3c3865da1d2f2e775dcdc6a0133f9b08d119e41ced1b170d70bf670a8086b6d7","settings.threadDisplay.title": "3e42e385075b9b569620eb6d652cff77b19eab567ee2927d6e1bf901f51d8246",@@ -42324,17 +42278,9 @@"sidebar.archived.restored": "67de94c6450ad2067044b62c25f935d0ede47feb02ec194d4229d749d9a09f51","sidebar.archived.restoredOne": "e6fc1c203590c494c92c156d8130944502e804b026e10f00c3c7e548b1441fd1","sidebar.archived.restoredMany": "df4d6a1f363c5b3a2ca3900bb237162053bc0b2bcc7de02b9c27cf0d13f7d78f",- "sidebar.density.expand": "37a5d6485e109bf695382308d0e2cd33913c3e5f7e9ab990e8f1a5f4287b2c6a","sidebar.resize": "243854b4d0c709a06e41005bc74a72d6b49463cc2d9ac5bc2967666f6b988c88",- "sidebar.density.collapseAria": "36953ceeefeffd1bea4df6ab1c19d39fdb1233b6454360f1dd7ef9eaeabafe82",- "sidebar.density.collapse": "7e800109d502e4d1195cd483a53aa22cc7f56dba3f059d9e8501c15d9c9fa19f",- "sidebar.density.chooseAria": "b2f7b6f71b152b968a39fa4c4244c290d521da624cf554f08e13c40892596dad",- "sidebar.density.title": "801b2ef098741ad59752f8d63436e7f26ff29a005eddce184edae531ee2de5c5",- "sidebar.density.comfortable": "459a23a5980fd5c63646e067c0503210fff540a57e74884956c119b3d2ac5407",- "sidebar.density.compact": "99452646e34b69704c9134a093d5ce5af823cc6d4ed3566fe8ad3ba1555057ae",- "sidebar.density.iconsOnly": "f6952033bd5f09cfe33dc0668c7188b01f8cd2d28a08ec940b5f83cc961f5362","sidebar.toolsLayout.title": "97ca469aeb684fb6921b90467c04fb280aeb2cb4366faf13cc0da18ba5f04ad8",- "sidebar.toolsLayout.subtitle": "cfb38d5320d34cf70299e822c31b83b964d3c39addb165cb0de0c91cb54a4eb8",+ "sidebar.toolsLayout.subtitle": "76c35881d901bc1359db31db30ec03d8edc0c926bac03111c64c82162374e53b","sidebar.toolsLayout.rows": "101f2ff3de22441fcab3e15ca0b09ac3428642cf628558f16fa404fc3137baea","sidebar.toolsLayout.toolbar": "451aa51a0fb5068da31b9bffbc63163d44e746af7b0ee37fa8f305f6e96f198c","sidebar.toolsLayout.chooseAria": "819fc5c0ce4defdf0dd58f419bc347f222b838710ea7f90e0d55071570e9de55",@@ -46167,7 +46113,11 @@"botPanel.backups.hint": "70b8fdefbc134b1039c00dfa2c9e14a4b449b727eddad64b2dec852e92f81782","botPanel.backups.row": "40d023d91b8e0864e975c5e8e5099e3267f148d114c2b3831b5b5932e37de9eb","botPanel.backups.remove": "439fc54ae2233f808bb3514d6f90cc0a5075fe0856112a48a5efe28c8e737597",- "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf"+ "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf",+ "settings.windowFrame.title": "deeb39467d5a42e3b771fe51c8090b58cda7d10f29b63c2a452e399bc3307026",+ "settings.windowFrame.subtitle": "9c73958af72ede9828b57959a19a74be08ad99782311a474fbece66a07909784",+ "settings.windowFrame.restart": "f24e00b29dcf80e5c821798ddcff6a3b0a41226d69d3c6292fd62bd2debb231a",+ "settings.windowFrame.restartNow": "09af1002abafb2dadfd2a9e61d7b0493c2a1da0e4859645116db0d462d175b08"},"pl": {"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",@@ -47199,7 +47149,6 @@"settings.userBubbles.title": "de480ba92598df1fc797a075362b3c35726d6902cbe97a47420cf5d16be5eca3","settings.userBubbles.subtitle": "85e947f3fafbe2bb350556170e4eca496dddef7ee159b4249ab1be7d11a2a09d","settings.userBubbles.aria": "eb4bc281409b11c0b9e5c5487d057f6acbdf2bbcf3db5588233f7d7bf3a4763f",- "settings.sidebarDensity.subtitle": "32dc613ed0115635225ef649e8d82a070b6683c8abb253e67b4267f636ff6438","settings.advancedMode.title": "98a3db7545f58ba63ce38944debc15d69792c0613bc8a9931b6d4cedcd01670d","settings.advancedMode.subtitle": "3c3865da1d2f2e775dcdc6a0133f9b08d119e41ced1b170d70bf670a8086b6d7","settings.threadDisplay.title": "3e42e385075b9b569620eb6d652cff77b19eab567ee2927d6e1bf901f51d8246",@@ -47619,17 +47568,9 @@"sidebar.archived.restored": "67de94c6450ad2067044b62c25f935d0ede47feb02ec194d4229d749d9a09f51","sidebar.archived.restoredOne": "e6fc1c203590c494c92c156d8130944502e804b026e10f00c3c7e548b1441fd1","sidebar.archived.restoredMany": "df4d6a1f363c5b3a2ca3900bb237162053bc0b2bcc7de02b9c27cf0d13f7d78f",- "sidebar.density.expand": "37a5d6485e109bf695382308d0e2cd33913c3e5f7e9ab990e8f1a5f4287b2c6a","sidebar.resize": "243854b4d0c709a06e41005bc74a72d6b49463cc2d9ac5bc2967666f6b988c88",- "sidebar.density.collapseAria": "36953ceeefeffd1bea4df6ab1c19d39fdb1233b6454360f1dd7ef9eaeabafe82",- "sidebar.density.collapse": "7e800109d502e4d1195cd483a53aa22cc7f56dba3f059d9e8501c15d9c9fa19f",- "sidebar.density.chooseAria": "b2f7b6f71b152b968a39fa4c4244c290d521da624cf554f08e13c40892596dad",- "sidebar.density.title": "801b2ef098741ad59752f8d63436e7f26ff29a005eddce184edae531ee2de5c5",- "sidebar.density.comfortable": "459a23a5980fd5c63646e067c0503210fff540a57e74884956c119b3d2ac5407",- "sidebar.density.compact": "99452646e34b69704c9134a093d5ce5af823cc6d4ed3566fe8ad3ba1555057ae",- "sidebar.density.iconsOnly": "f6952033bd5f09cfe33dc0668c7188b01f8cd2d28a08ec940b5f83cc961f5362","sidebar.toolsLayout.title": "97ca469aeb684fb6921b90467c04fb280aeb2cb4366faf13cc0da18ba5f04ad8",- "sidebar.toolsLayout.subtitle": "cfb38d5320d34cf70299e822c31b83b964d3c39addb165cb0de0c91cb54a4eb8",+ "sidebar.toolsLayout.subtitle": "76c35881d901bc1359db31db30ec03d8edc0c926bac03111c64c82162374e53b","sidebar.toolsLayout.rows": "101f2ff3de22441fcab3e15ca0b09ac3428642cf628558f16fa404fc3137baea","sidebar.toolsLayout.toolbar": "451aa51a0fb5068da31b9bffbc63163d44e746af7b0ee37fa8f305f6e96f198c","sidebar.toolsLayout.chooseAria": "819fc5c0ce4defdf0dd58f419bc347f222b838710ea7f90e0d55071570e9de55",@@ -52452,7 +52393,11 @@"botPanel.backups.hint": "70b8fdefbc134b1039c00dfa2c9e14a4b449b727eddad64b2dec852e92f81782","botPanel.backups.row": "40d023d91b8e0864e975c5e8e5099e3267f148d114c2b3831b5b5932e37de9eb","botPanel.backups.remove": "439fc54ae2233f808bb3514d6f90cc0a5075fe0856112a48a5efe28c8e737597",- "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf"+ "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf",+ "settings.windowFrame.title": "deeb39467d5a42e3b771fe51c8090b58cda7d10f29b63c2a452e399bc3307026",+ "settings.windowFrame.subtitle": "9c73958af72ede9828b57959a19a74be08ad99782311a474fbece66a07909784",+ "settings.windowFrame.restart": "f24e00b29dcf80e5c821798ddcff6a3b0a41226d69d3c6292fd62bd2debb231a",+ "settings.windowFrame.restartNow": "09af1002abafb2dadfd2a9e61d7b0493c2a1da0e4859645116db0d462d175b08"},"ru": {"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",@@ -53491,7 +53436,6 @@"settings.userBubbles.title": "de480ba92598df1fc797a075362b3c35726d6902cbe97a47420cf5d16be5eca3","settings.userBubbles.subtitle": "85e947f3fafbe2bb350556170e4eca496dddef7ee159b4249ab1be7d11a2a09d","settings.userBubbles.aria": "eb4bc281409b11c0b9e5c5487d057f6acbdf2bbcf3db5588233f7d7bf3a4763f",- "settings.sidebarDensity.subtitle": "32dc613ed0115635225ef649e8d82a070b6683c8abb253e67b4267f636ff6438","settings.advancedMode.title": "98a3db7545f58ba63ce38944debc15d69792c0613bc8a9931b6d4cedcd01670d","settings.advancedMode.subtitle": "3c3865da1d2f2e775dcdc6a0133f9b08d119e41ced1b170d70bf670a8086b6d7","settings.threadDisplay.title": "3e42e385075b9b569620eb6d652cff77b19eab567ee2927d6e1bf901f51d8246",@@ -53945,17 +53889,9 @@"sidebar.archived.restored": "67de94c6450ad2067044b62c25f935d0ede47feb02ec194d4229d749d9a09f51","sidebar.archived.restoredOne": "e6fc1c203590c494c92c156d8130944502e804b026e10f00c3c7e548b1441fd1","sidebar.archived.restoredMany": "df4d6a1f363c5b3a2ca3900bb237162053bc0b2bcc7de02b9c27cf0d13f7d78f",- "sidebar.density.expand": "37a5d6485e109bf695382308d0e2cd33913c3e5f7e9ab990e8f1a5f4287b2c6a","sidebar.resize": "243854b4d0c709a06e41005bc74a72d6b49463cc2d9ac5bc2967666f6b988c88",- "sidebar.density.collapseAria": "36953ceeefeffd1bea4df6ab1c19d39fdb1233b6454360f1dd7ef9eaeabafe82",- "sidebar.density.collapse": "7e800109d502e4d1195cd483a53aa22cc7f56dba3f059d9e8501c15d9c9fa19f",- "sidebar.density.chooseAria": "b2f7b6f71b152b968a39fa4c4244c290d521da624cf554f08e13c40892596dad",- "sidebar.density.title": "801b2ef098741ad59752f8d63436e7f26ff29a005eddce184edae531ee2de5c5",- "sidebar.density.comfortable": "459a23a5980fd5c63646e067c0503210fff540a57e74884956c119b3d2ac5407",- "sidebar.density.compact": "99452646e34b69704c9134a093d5ce5af823cc6d4ed3566fe8ad3ba1555057ae",- "sidebar.density.iconsOnly": "f6952033bd5f09cfe33dc0668c7188b01f8cd2d28a08ec940b5f83cc961f5362","sidebar.toolsLayout.title": "97ca469aeb684fb6921b90467c04fb280aeb2cb4366faf13cc0da18ba5f04ad8",- "sidebar.toolsLayout.subtitle": "cfb38d5320d34cf70299e822c31b83b964d3c39addb165cb0de0c91cb54a4eb8",+ "sidebar.toolsLayout.subtitle": "76c35881d901bc1359db31db30ec03d8edc0c926bac03111c64c82162374e53b","sidebar.toolsLayout.rows": "101f2ff3de22441fcab3e15ca0b09ac3428642cf628558f16fa404fc3137baea","sidebar.toolsLayout.toolbar": "451aa51a0fb5068da31b9bffbc63163d44e746af7b0ee37fa8f305f6e96f198c","sidebar.toolsLayout.chooseAria": "819fc5c0ce4defdf0dd58f419bc347f222b838710ea7f90e0d55071570e9de55",@@ -58818,7 +58754,11 @@"botPanel.backups.hint": "70b8fdefbc134b1039c00dfa2c9e14a4b449b727eddad64b2dec852e92f81782","botPanel.backups.row": "40d023d91b8e0864e975c5e8e5099e3267f148d114c2b3831b5b5932e37de9eb","botPanel.backups.remove": "439fc54ae2233f808bb3514d6f90cc0a5075fe0856112a48a5efe28c8e737597",- "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf"+ "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf",+ "settings.windowFrame.title": "deeb39467d5a42e3b771fe51c8090b58cda7d10f29b63c2a452e399bc3307026",+ "settings.windowFrame.subtitle": "9c73958af72ede9828b57959a19a74be08ad99782311a474fbece66a07909784",+ "settings.windowFrame.restart": "f24e00b29dcf80e5c821798ddcff6a3b0a41226d69d3c6292fd62bd2debb231a",+ "settings.windowFrame.restartNow": "09af1002abafb2dadfd2a9e61d7b0493c2a1da0e4859645116db0d462d175b08"},"it": {"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",@@ -59825,7 +59765,6 @@"settings.userBubbles.title": "de480ba92598df1fc797a075362b3c35726d6902cbe97a47420cf5d16be5eca3","settings.userBubbles.subtitle": "85e947f3fafbe2bb350556170e4eca496dddef7ee159b4249ab1be7d11a2a09d","settings.userBubbles.aria": "eb4bc281409b11c0b9e5c5487d057f6acbdf2bbcf3db5588233f7d7bf3a4763f",- "settings.sidebarDensity.subtitle": "32dc613ed0115635225ef649e8d82a070b6683c8abb253e67b4267f636ff6438","settings.advancedMode.title": "98a3db7545f58ba63ce38944debc15d69792c0613bc8a9931b6d4cedcd01670d","settings.advancedMode.subtitle": "3c3865da1d2f2e775dcdc6a0133f9b08d119e41ced1b170d70bf670a8086b6d7","settings.threadDisplay.title": "3e42e385075b9b569620eb6d652cff77b19eab567ee2927d6e1bf901f51d8246",@@ -60272,17 +60211,9 @@"sidebar.archived.restored": "67de94c6450ad2067044b62c25f935d0ede47feb02ec194d4229d749d9a09f51","sidebar.archived.restoredOne": "e6fc1c203590c494c92c156d8130944502e804b026e10f00c3c7e548b1441fd1","sidebar.archived.restoredMany": "df4d6a1f363c5b3a2ca3900bb237162053bc0b2bcc7de02b9c27cf0d13f7d78f",- "sidebar.density.expand": "37a5d6485e109bf695382308d0e2cd33913c3e5f7e9ab990e8f1a5f4287b2c6a","sidebar.resize": "243854b4d0c709a06e41005bc74a72d6b49463cc2d9ac5bc2967666f6b988c88",- "sidebar.density.collapseAria": "36953ceeefeffd1bea4df6ab1c19d39fdb1233b6454360f1dd7ef9eaeabafe82",- "sidebar.density.collapse": "7e800109d502e4d1195cd483a53aa22cc7f56dba3f059d9e8501c15d9c9fa19f",- "sidebar.density.chooseAria": "b2f7b6f71b152b968a39fa4c4244c290d521da624cf554f08e13c40892596dad",- "sidebar.density.title": "801b2ef098741ad59752f8d63436e7f26ff29a005eddce184edae531ee2de5c5",- "sidebar.density.comfortable": "459a23a5980fd5c63646e067c0503210fff540a57e74884956c119b3d2ac5407",- "sidebar.density.compact": "99452646e34b69704c9134a093d5ce5af823cc6d4ed3566fe8ad3ba1555057ae",- "sidebar.density.iconsOnly": "f6952033bd5f09cfe33dc0668c7188b01f8cd2d28a08ec940b5f83cc961f5362","sidebar.toolsLayout.title": "97ca469aeb684fb6921b90467c04fb280aeb2cb4366faf13cc0da18ba5f04ad8",- "sidebar.toolsLayout.subtitle": "cfb38d5320d34cf70299e822c31b83b964d3c39addb165cb0de0c91cb54a4eb8",+ "sidebar.toolsLayout.subtitle": "76c35881d901bc1359db31db30ec03d8edc0c926bac03111c64c82162374e53b","sidebar.toolsLayout.rows": "101f2ff3de22441fcab3e15ca0b09ac3428642cf628558f16fa404fc3137baea","sidebar.toolsLayout.toolbar": "451aa51a0fb5068da31b9bffbc63163d44e746af7b0ee37fa8f305f6e96f198c","sidebar.toolsLayout.chooseAria": "819fc5c0ce4defdf0dd58f419bc347f222b838710ea7f90e0d55071570e9de55",@@ -64980,7 +64911,11 @@"botPanel.backups.hint": "70b8fdefbc134b1039c00dfa2c9e14a4b449b727eddad64b2dec852e92f81782","botPanel.backups.row": "40d023d91b8e0864e975c5e8e5099e3267f148d114c2b3831b5b5932e37de9eb","botPanel.backups.remove": "439fc54ae2233f808bb3514d6f90cc0a5075fe0856112a48a5efe28c8e737597",- "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf"+ "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf",+ "settings.windowFrame.title": "deeb39467d5a42e3b771fe51c8090b58cda7d10f29b63c2a452e399bc3307026",+ "settings.windowFrame.subtitle": "9c73958af72ede9828b57959a19a74be08ad99782311a474fbece66a07909784",+ "settings.windowFrame.restart": "f24e00b29dcf80e5c821798ddcff6a3b0a41226d69d3c6292fd62bd2debb231a",+ "settings.windowFrame.restartNow": "09af1002abafb2dadfd2a9e61d7b0493c2a1da0e4859645116db0d462d175b08"},"ko": {"connectedWorkspaces.localTitle": "7d6deafeab011d734c3fdd1bfd6f69544fbb746a004019269bdb48544b01164b",@@ -66233,7 +66168,6 @@"settings.userBubbles.title": "de480ba92598df1fc797a075362b3c35726d6902cbe97a47420cf5d16be5eca3","settings.userBubbles.subtitle": "85e947f3fafbe2bb350556170e4eca496dddef7ee159b4249ab1be7d11a2a09d","settings.userBubbles.aria": "eb4bc281409b11c0b9e5c5487d057f6acbdf2bbcf3db5588233f7d7bf3a4763f",- "settings.sidebarDensity.subtitle": "32dc613ed0115635225ef649e8d82a070b6683c8abb253e67b4267f636ff6438","settings.advancedMode.title": "98a3db7545f58ba63ce38944debc15d69792c0613bc8a9931b6d4cedcd01670d","settings.advancedMode.subtitle": "3c3865da1d2f2e775dcdc6a0133f9b08d119e41ced1b170d70bf670a8086b6d7","settings.threadDisplay.title": "3e42e385075b9b569620eb6d652cff77b19eab567ee2927d6e1bf901f51d8246",@@ -66750,17 +66684,9 @@"sidebar.archived.restored": "67de94c6450ad2067044b62c25f935d0ede47feb02ec194d4229d749d9a09f51","sidebar.archived.restoredOne": "e6fc1c203590c494c92c156d8130944502e804b026e10f00c3c7e548b1441fd1","sidebar.archived.restoredMany": "df4d6a1f363c5b3a2ca3900bb237162053bc0b2bcc7de02b9c27cf0d13f7d78f",- "sidebar.density.expand": "37a5d6485e109bf695382308d0e2cd33913c3e5f7e9ab990e8f1a5f4287b2c6a","sidebar.resize": "243854b4d0c709a06e41005bc74a72d6b49463cc2d9ac5bc2967666f6b988c88",- "sidebar.density.collapseAria": "36953ceeefeffd1bea4df6ab1c19d39fdb1233b6454360f1dd7ef9eaeabafe82",- "sidebar.density.collapse": "7e800109d502e4d1195cd483a53aa22cc7f56dba3f059d9e8501c15d9c9fa19f",- "sidebar.density.chooseAria": "b2f7b6f71b152b968a39fa4c4244c290d521da624cf554f08e13c40892596dad",- "sidebar.density.title": "801b2ef098741ad59752f8d63436e7f26ff29a005eddce184edae531ee2de5c5",- "sidebar.density.comfortable": "459a23a5980fd5c63646e067c0503210fff540a57e74884956c119b3d2ac5407",- "sidebar.density.compact": "99452646e34b69704c9134a093d5ce5af823cc6d4ed3566fe8ad3ba1555057ae",- "sidebar.density.iconsOnly": "f6952033bd5f09cfe33dc0668c7188b01f8cd2d28a08ec940b5f83cc961f5362","sidebar.toolsLayout.title": "97ca469aeb684fb6921b90467c04fb280aeb2cb4366faf13cc0da18ba5f04ad8",- "sidebar.toolsLayout.subtitle": "cfb38d5320d34cf70299e822c31b83b964d3c39addb165cb0de0c91cb54a4eb8",+ "sidebar.toolsLayout.subtitle": "76c35881d901bc1359db31db30ec03d8edc0c926bac03111c64c82162374e53b","sidebar.toolsLayout.rows": "101f2ff3de22441fcab3e15ca0b09ac3428642cf628558f16fa404fc3137baea","sidebar.toolsLayout.toolbar": "451aa51a0fb5068da31b9bffbc63163d44e746af7b0ee37fa8f305f6e96f198c","sidebar.toolsLayout.chooseAria": "819fc5c0ce4defdf0dd58f419bc347f222b838710ea7f90e0d55071570e9de55",@@ -71866,7 +71792,11 @@"botPanel.backups.hint": "70b8fdefbc134b1039c00dfa2c9e14a4b449b727eddad64b2dec852e92f81782","botPanel.backups.row": "40d023d91b8e0864e975c5e8e5099e3267f148d114c2b3831b5b5932e37de9eb","botPanel.backups.remove": "439fc54ae2233f808bb3514d6f90cc0a5075fe0856112a48a5efe28c8e737597",- "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf"+ "botPanel.backups.choose": "43857778c944d0b87720e26a1c5b48f978dbe0a411b6937fe258f5c3491ef4bf",+ "settings.windowFrame.title": "deeb39467d5a42e3b771fe51c8090b58cda7d10f29b63c2a452e399bc3307026",+ "settings.windowFrame.subtitle": "9c73958af72ede9828b57959a19a74be08ad99782311a474fbece66a07909784",+ "settings.windowFrame.restart": "f24e00b29dcf80e5c821798ddcff6a3b0a41226d69d3c6292fd62bd2debb231a",+ "settings.windowFrame.restartNow": "09af1002abafb2dadfd2a9e61d7b0493c2a1da0e4859645116db0d462d175b08"}}}diff --git a/src/locales/tr.json b/src/locales/tr.jsonindex dced77fce0..48fd965d7c 100644--- a/src/locales/tr.json+++ b/src/locales/tr.json@@ -931,7 +931,6 @@"settings.userBubbles.title": "Mesajlarımı renklendir","settings.userBubbles.subtitle": "Bire bir sohbette mesajlarınız o botun renginden bir renk geçişiyle doldurulur. Odalarda nötr balon korunur.","settings.userBubbles.aria": "Mesajlarımı botun rengiyle renklendir",- "settings.sidebarDensity.subtitle": "Yalnızca bu cihazda, her bir botun ve iş parçacığının kenar çubuğunda ne kadar yer kaplayacağı. Yalnızca avatarlar, kenar çubuğunu başlığından daraltmakla aynıdır.","settings.advancedMode.title": "Gelişmiş mod","settings.advancedMode.subtitle": "Bu cihazdaki tüm teknik kontrolleri gösterin: kullanım ve token'lar, denetleyici ve geliştiriciler için diğer araçlar. Daha basit bir uygulama için kapatın. Her iki durumda da hiçbir şey silinmez.","settings.threadDisplay.title": "İş parçacıkları",@@ -1399,17 +1398,9 @@"sidebar.archived.restored": "{name} geri yüklendi","sidebar.archived.restoredOne": "1 bot geri yüklendi","sidebar.archived.restoredMany": "{count} bot geri yüklendi",- "sidebar.density.expand": "Kenar çubuğunu genişlet","sidebar.resize": "Kenar çubuğunu yeniden boyutlandır",- "sidebar.density.collapseAria": "Kenar çubuğunu avatarlara daralt",- "sidebar.density.collapse": "Avatarlara daralt",- "sidebar.density.chooseAria": "Kenar çubuğu yoğunluğunu seçin",- "sidebar.density.title": "Kenar çubuğu yoğunluğu",- "sidebar.density.comfortable": "Rahat",- "sidebar.density.compact": "Kompakt",- "sidebar.density.iconsOnly": "Yalnızca avatarlar","sidebar.toolsLayout.title": "Araç düzeni",- "sidebar.toolsLayout.subtitle": "Rutinler, Tetikleyiciler ve Ekip haritasını satırlar halinde ya da tek sıra simge olarak gösterin. Yalnızca avatarlar yoğunluğu her zaman simgeleri gösterir.",+ "sidebar.toolsLayout.subtitle": "Rutinler, Tetikleyiciler ve Ekip haritasını satırlar halinde ya da tek sıra simge olarak gösterin. Avatar sütununa daraltılan kenar çubuğu her zaman simgeleri gösterir.","sidebar.toolsLayout.rows": "Satırlar","sidebar.toolsLayout.toolbar": "Araç çubuğu","sidebar.toolsLayout.chooseAria": "Araç düzenini seçin",@@ -5062,6 +5053,10 @@"rail.hide": "Bilgisayarlarınızı gizleyin","rail.show": "Bilgisayarlarınızı gösterin","rail.showSub": "Botlarınızın yaşadığı her yer için pencerenin sol kenarında bir daire.",+ "settings.windowFrame.title": "Pencere çerçevesi",+ "settings.windowFrame.subtitle": "Üstte nerede olduğunuzu gösteren ince bir çubuk ve sohbet yuvarlatılmış bir kartta. Kapalıyken pencere eskisi gibi görünür.",+ "settings.windowFrame.restart": "{app} yeniden başladığında geçerli olur.",+ "settings.windowFrame.restartNow": "Şimdi yeniden başlat","placeLook.title": "Renk","placeLook.sub": "{name}, kenar çubuğunun üstünde ve pencerenin sol kenarındaki dairesinde bu renkte görünür.","placeLook.aria": "{name} rengi",diff --git a/src/locales/uk.json b/src/locales/uk.jsonindex 984d76c512..5941780f02 100644--- a/src/locales/uk.json+++ b/src/locales/uk.json@@ -781,14 +781,6 @@"sidebar.archived.restored": "{name} відновлено","sidebar.archived.restoredOne": "1 бота відновлено","sidebar.archived.restoredMany": "{count} ботів відновлено",- "sidebar.density.expand": "Розгорнути бічну панель",- "sidebar.density.collapseAria": "Згорнути бічну панель до аватарок",- "sidebar.density.collapse": "Згорнути до аватарок",- "sidebar.density.chooseAria": "Оберіть щільність бічної панелі",- "sidebar.density.title": "Щільність бічної панелі",- "sidebar.density.comfortable": "Простора",- "sidebar.density.compact": "Компактна",- "sidebar.density.iconsOnly": "Лише аватарки","sidebar.new": "Нове","sidebar.newOrShare": "Нове або поділитися","sidebar.newBot": "Новий бот",@@ -3063,6 +3055,10 @@"rail.hide": "Сховати ваші комп'ютери","rail.show": "Показати ваші комп'ютери","rail.showSub": "Кружечок для кожного місця, де живуть ваші боти, біля лівого краю вікна.",+ "settings.windowFrame.title": "Рамка вікна",+ "settings.windowFrame.subtitle": "Тонка смуга вгорі показує, де ви, а чат — у картці із заокругленими кутами. Якщо вимкнути, вікно виглядатиме, як раніше.",+ "settings.windowFrame.restart": "Зміна набуде чинності після перезапуску {app}.",+ "settings.windowFrame.restartNow": "Перезапустити зараз","placeLook.title": "Колір","placeLook.sub": "{name} показується цим кольором угорі бічної панелі та у своєму кружечку біля лівого краю вікна.","placeLook.aria": "Колір: {name}",diff --git a/src/locales/vi.json b/src/locales/vi.jsonindex 3c61e0f703..dc13a076e9 100644--- a/src/locales/vi.json+++ b/src/locales/vi.json@@ -931,7 +931,6 @@"settings.userBubbles.title": "Tô màu tin nhắn của tôi","settings.userBubbles.subtitle": "Trong cuộc trò chuyện 1-1, tin nhắn của bạn được tô bằng dải màu chuyển sắc theo màu của bot đó. Các phòng vẫn giữ bong bóng màu trung tính.","settings.userBubbles.aria": "Tô màu tin nhắn của tôi theo màu của bot",- "settings.sidebarDensity.subtitle": "Độ rộng của từng bot và luồng trong thanh bên, chỉ trên thiết bị này. Tùy chọn chỉ hiển thị ảnh đại diện tương đương với việc thu gọn thanh bên từ phần đầu trang.","settings.advancedMode.title": "Chế độ nâng cao","settings.advancedMode.subtitle": "Hiển thị mọi tùy chọn kỹ thuật trên thiết bị này: mức sử dụng và token, trình kiểm tra và các công cụ khác dành cho nhà phát triển. Hãy tắt để ứng dụng đơn giản hơn. Cả hai cách đều không làm mất dữ liệu nào.","settings.threadDisplay.title": "Luồng",@@ -1399,17 +1398,9 @@"sidebar.archived.restored": "Đã khôi phục {name}","sidebar.archived.restoredOne": "Đã khôi phục 1 bot","sidebar.archived.restoredMany": "Đã khôi phục {count} bot",- "sidebar.density.expand": "Mở rộng thanh bên","sidebar.resize": "Thay đổi kích thước thanh bên",- "sidebar.density.collapseAria": "Thu gọn thanh bên chỉ hiện ảnh đại diện",- "sidebar.density.collapse": "Thu gọn chỉ hiện ảnh đại diện",- "sidebar.density.chooseAria": "Chọn mật độ thanh bên",- "sidebar.density.title": "Mật độ thanh bên",- "sidebar.density.comfortable": "Rộng rãi",- "sidebar.density.compact": "Gọn gàng",- "sidebar.density.iconsOnly": "Chỉ ảnh đại diện","sidebar.toolsLayout.title": "Bố cục công cụ",- "sidebar.toolsLayout.subtitle": "Hiển thị Tác vụ định kỳ, Trình kích hoạt và Sơ đồ team dưới dạng các hàng hoặc một hàng biểu tượng. Mật độ Chỉ ảnh đại diện luôn hiển thị biểu tượng.",+ "sidebar.toolsLayout.subtitle": "Hiển thị Tác vụ định kỳ, Trình kích hoạt và Sơ đồ team dưới dạng các hàng hoặc một hàng biểu tượng. Khi thu gọn thành cột ảnh đại diện, thanh bên luôn hiển thị biểu tượng.","sidebar.toolsLayout.rows": "Hàng","sidebar.toolsLayout.toolbar": "Thanh công cụ","sidebar.toolsLayout.chooseAria": "Chọn bố cục công cụ",@@ -5062,6 +5053,10 @@"rail.hide": "Ẩn các máy tính của bạn","rail.show": "Hiện các máy tính của bạn","rail.showSub": "Một vòng tròn cho mỗi nơi các bot của bạn sống, ở mép trái cửa sổ.",+ "settings.windowFrame.title": "Khung cửa sổ",+ "settings.windowFrame.subtitle": "Một thanh mảnh ở trên cùng cho biết bạn đang ở đâu, với cuộc trò chuyện trong một thẻ bo góc. Khi tắt, cửa sổ trông như trước đây.",+ "settings.windowFrame.restart": "Có hiệu lực khi {app} khởi động lại.",+ "settings.windowFrame.restartNow": "Khởi động lại ngay","placeLook.title": "Màu","placeLook.sub": "{name} hiện màu này ở đầu thanh bên và trên vòng tròn của nó ở cạnh trái cửa sổ.","placeLook.aria": "Màu của {name}",diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.jsonindex 0917359a20..4810755be6 100644--- a/src/locales/zh-tw.json+++ b/src/locales/zh-tw.json@@ -845,7 +845,6 @@"settings.font.serif": "襯線體","settings.sendKey.title": "傳送訊息的按鍵","settings.sendKey.subtitle": "選擇 Shift+Enter 或 {key} 後,按 Enter 會換行,適合用 Enter 確認選字的輸入法(例如日文輸入)。無論選哪一項,{key} 都會傳送。僅套用於這部裝置。",- "settings.sidebarDensity.subtitle": "每個機器人與對話在側邊欄中所占的空間,僅套用於這部裝置。「僅顯示頭像」等同於從側邊欄標題列將其收合。","settings.advancedMode.title": "進階模式","settings.advancedMode.subtitle": "在這部裝置上顯示所有技術控制項:用量與 token、檢查器,以及其他給開發者的工具。關閉即可使用較精簡的介面。無論開或關都不會刪除任何內容。","settings.threadDisplay.title": "對話",@@ -1229,15 +1228,7 @@"sidebar.archived.restored": "已還原 {name}","sidebar.archived.restoredOne": "已還原 1 個機器人","sidebar.archived.restoredMany": "已還原 {count} 個機器人",- "sidebar.density.expand": "展開側邊欄","sidebar.resize": "調整側邊欄大小",- "sidebar.density.collapseAria": "將側邊欄收合為頭像",- "sidebar.density.collapse": "收合為頭像",- "sidebar.density.chooseAria": "選擇側邊欄密度",- "sidebar.density.title": "側邊欄密度",- "sidebar.density.comfortable": "寬鬆",- "sidebar.density.compact": "緊湊",- "sidebar.density.iconsOnly": "僅顯示頭像","sidebar.new": "新增","sidebar.newOrShare": "新增或分享","sidebar.newBot": "新增機器人",@@ -4452,6 +4443,10 @@"rail.hide": "隱藏你的電腦","rail.show": "顯示你的電腦","rail.showSub": "在視窗左側邊緣,為你的機器人所在的每個地方顯示一個圓圈。",+ "settings.windowFrame.title": "視窗外框",+ "settings.windowFrame.subtitle": "頂端一條細長的列,顯示你所在的位置,聊天則放在圓角卡片中。關閉後,視窗會恢復成以前的樣子。",+ "settings.windowFrame.restart": "{app} 重新啟動後生效。",+ "settings.windowFrame.restartNow": "立即重新啟動","placeLook.title": "顏色","placeLook.sub": "{name} 會以這個顏色顯示在側邊欄頂端,以及視窗左側它的圓圈上。","placeLook.aria": "{name} 的顏色",diff --git a/src/locales/zh.json b/src/locales/zh.jsonindex 16cf7c79c7..f698f17ec5 100644--- a/src/locales/zh.json+++ b/src/locales/zh.json@@ -944,14 +944,6 @@"sidebar.archived.restored": "已恢复 {name}","sidebar.archived.restoredOne": "已恢复 1 个机器人","sidebar.archived.restoredMany": "已恢复 {count} 个机器人",- "sidebar.density.expand": "展开侧边栏",- "sidebar.density.collapseAria": "将侧边栏收起为头像",- "sidebar.density.collapse": "收起为头像",- "sidebar.density.chooseAria": "选择侧边栏密度",- "sidebar.density.title": "侧边栏密度",- "sidebar.density.comfortable": "宽松",- "sidebar.density.compact": "紧凑",- "sidebar.density.iconsOnly": "仅头像","sidebar.new": "新建","sidebar.newOrShare": "新建或分享","sidebar.newBot": "新建机器人",@@ -3471,6 +3463,10 @@"rail.hide": "隐藏你的电脑","rail.show": "显示你的电脑","rail.showSub": "在窗口左边缘,为你的机器人所在的每个地方显示一个圆圈。",+ "settings.windowFrame.title": "窗口外框",+ "settings.windowFrame.subtitle": "顶部一条细长的栏,显示你所在的位置,聊天放在圆角卡片中。关闭后,窗口会恢复成以前的样子。",+ "settings.windowFrame.restart": "{app} 重新启动后生效。",+ "settings.windowFrame.restartNow": "立即重新启动","placeLook.title": "颜色","placeLook.sub": "{name} 会以这个颜色显示在侧边栏顶部,以及窗口左侧它的圆圈上。","placeLook.aria": "{name} 的颜色",diff --git a/src/styles.css b/src/styles.cssindex d973d3c1d4..2625670df5 100644--- a/src/styles.css+++ b/src/styles.css@@ -162,11 +162,10 @@there `raised` is pure white and a card is too. */--color-control: #282828;--color-hairline: #383838;- /* the window's frame: its top bar and the rail of places, around the app's- rounded card. A step from the sidebar toward the ink, so every skin gets- one without naming it: a shade darker on the light skins, lighter on the- dark ones. */- --color-frame: color-mix(in oklab, var(--color-panel) 93%, var(--color-ink));+ /* the window's frame: its top bar, the rail of places and the sidebar,+ around the app's rounded card. The app's own colour a step darker, so it+ stays in the skin's family: --frame-shade of black. */+ --color-frame: color-mix(in oklab, var(--color-app), black var(--frame-shade));--color-ink: #f5f5f5;--color-ink-secondary: #f5f5f5a8;/* quiet text: timestamps, hints, placeholders, calendar hours. It used to@@ -232,6 +231,10 @@:root {--code-color-scheme: dark;+ /* how far the frame steps from the app's colour toward black: further on+ the dark skins, whose colours sit close to black, and a small step on the+ light ones (2.5%), where the quiet ink must still clear 4.5:1 on it */+ --frame-shade: 30%;/* ink carried by a filled accent / danger surface (see the rule at thebottom of this file, which is what makes them take effect) */--color-accent-ink: #ffffff;@@ -317,6 +320,7 @@───────────────────────────────────────────────────────────────────────── */[data-skin="atelier"] {--code-color-scheme: light;+ --frame-shade: 3%;--color-app: #f5f1eb; /* outermost ground */--color-panel: #fbf8f2; /* sidebar */--color-raised: #ffffff; /* content — raised means lighter here */@@ -461,6 +465,7 @@───────────────────────────────────────────────────────────────────────── */[data-skin="lagoon"] {--code-color-scheme: light;+ --frame-shade: 4%;/* The tint is the point, so it is carried by the surfaces, not by a button:the ground sits 13 points of green-blue above its red channel, roughlythree times Atelier's cream cast, which is what makes the skin read as@@ -590,6 +595,7 @@───────────────────────────────────────────────────────────────────────── */[data-skin="linen"] {--code-color-scheme: light;+ --frame-shade: 3.5%;--color-app: #eceff3;--color-panel: #f5f6f8;--color-raised: #ffffff;@@ -713,6 +719,7 @@───────────────────────────────────────────────────────────────────────── */[data-skin="daylight"] {--code-color-scheme: light;+ --frame-shade: 6%;--color-app: #fcfcfc; /* the thread */--color-panel: #f5f5f5; /* sidebar, one step down from the thread */--color-raised: #e4e4e4;@@ -783,6 +790,7 @@───────────────────────────────────────────────────────────────────────── */[data-skin="meadow"] {--code-color-scheme: light;+ --frame-shade: 6%;--color-app: #ffffff; /* the thread */--color-panel: #f6f8f6; /* sidebar */--color-raised: #e9eeea;@@ -844,6 +852,7 @@───────────────────────────────────────────────────────────────────────── */[data-skin="pop"] {--code-color-scheme: light;+ --frame-shade: 6%;--color-app: #fdf5ea; /* the page */--color-panel: #f6ebdb; /* sidebar */--color-raised: #efe3d1;@@ -1583,6 +1592,9 @@ body {.place-banner img { --place-banner-strength: 0.26; filter: blur(1.5px) saturate(0.85) brightness(0.8); }}.place-tint[data-under-banner] { display: none; }+/* In a framed window the sidebar sits on the frame, under the top bar and beside the rail: its colour or picture rounds+ its top-left corner where the two meet, as the card beside it does. */+[data-sidebar][data-framed] :is(.place-tint, .place-banner) { border-top-left-radius: 12px; }@media (prefers-reduced-transparency: reduce) {.place-banner { display: none; }.place-tint[data-under-banner] { display: block; }diff --git a/src/types/ogb.d.ts b/src/types/ogb.d.tsindex 2319dfa469..f8bf402e0c 100644--- a/src/types/ogb.d.ts+++ b/src/types/ogb.d.ts@@ -36,6 +36,9 @@ const __APP_VERSION__: string;packaged: boolean;};windowChrome: "mac-inset" | "win-caption" | "native";+ /** The page draws the window's frame: false once the person turned it off. Absent on an older app, whose window+ * draws it. */+ windowFrame?: boolean;screenPreview: {available: boolean;interaction: "direct" | "portal-picker" | "none";@@ -155,8 +158,9 @@ const __APP_VERSION__: string;rail?: import("../../electron/chrome-rail.mjs").ChromeRailBridge;workspaces?: {/** `color`: a saved server's colour name (its owner chose it while setting the Cloud up); `home`: this window's- * home is this Cloud, so there is nothing to switch to. */- state: () => Promise<{ local: boolean; name: string; origin?: string; color?: string; home?: boolean; role?: string }>;+ * home is this Cloud, so there is nothing to switch to; `localPath`: a local workspace's folder, absent for This+ * computer's own. */+ state: () => Promise<{ local: boolean; name: string; origin?: string; color?: string; home?: boolean; role?: string; localPath?: string }>;/** The native server menu; resolves when it closes. `from: "howto"`: the Show me how tip opened it. */menu: (options?: { from?: "howto" }) => Promise<void>;/** One plain line for the next page, served once: a team this person is no longer in. */@@ -337,6 +341,12 @@ const __APP_VERSION__: string;openExternal?(url: string): Promise<boolean>;/** Recolor the native window chrome for a skin; absent on older builds. */applySkin?(skin: string): Promise<boolean>;+ /** The window's own frame, this desktop's choice (Settings → Appearance). Absent on an older app. */+ windowFrame?: {+ state(): Promise<import("../../electron/desktop-prefs.mjs").WindowFrameState>;+ /** From the person's click on another server's page. */+ set(on: boolean): Promise<import("../../electron/desktop-prefs.mjs").WindowFrameState>;+ };/** The renderer-drawn Windows caption buttons; absent outside the* frameless Windows shell (macOS/Linux/browser keep native chrome). */windowControls?: {