Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
fix(glass): kanban add column, board toolbar, pill, saturation, rail and label polish (visual QA N3, N4, N8-N11, M1, M3, M6, L4)
iceclatterWT95baa864ec45
diff --git a/src/renderer/components/TabBar.tsx b/src/renderer/components/TabBar.tsxindex 0fe629956..f6c56653b 100644--- a/src/renderer/components/TabBar.tsx+++ b/src/renderer/components/TabBar.tsx@@ -472,7 +472,7 @@ export function TabBar({createPortal(<divref={menuFlip.ref}- className="tab-menu"+ className="tab-menu tab-menu--tabbar"style={{ top: menuFlip.top, left: menuFlip.left }}onClick={(e) => e.stopPropagation()}>diff --git a/src/renderer/styles.css b/src/renderer/styles.cssindex bf8b164ac..cf00bcbad 100644--- a/src/renderer/styles.css+++ b/src/renderer/styles.css@@ -7182,6 +7182,19 @@ button.group-node__setup:disabled {/* Liquid Glass: symmetric around the dot — it hugged the next token ("87% 5h ·98% wk", visual QAL2). Gated so the default look stays byte-identical. */:root[data-nt-glass='on'] .usage-pill__sep { margin-right: 6px; }+/* Liquid Glass: when the pill runs out of room it drops whole trailing segments ("100% Grok"), never+ characters ("100% Fable…", visual QA round 2, N8) — a one-line wrapping row whose overflow is+ clipped. Every provider stays in the popover. */+:root[data-nt-glass='on'] .usage-pill__summary {+ display: flex;+ flex-wrap: wrap;+ align-items: center;+ height: 16px;+ line-height: 16px;+}+:root[data-nt-glass='on'] .usage-pill__summary > * {+ flex: 0 0 auto;+}/* While the popover is open, rise above the sessions sidebar (z-index 12) — a tall sidebarreaches the bottom-left corner and would cover the panel. Closed pill keeps its low layer soit never draws over the sidebar itself.@@ -12835,6 +12848,10 @@ button.group-node__setup:disabled {:root[data-nt-glass='on'] .theme-select__menu button {gap: 8px;}+/* …and the trigger left-aligns the name like the list does (space-between centred it, M6). */+:root[data-nt-glass='on'] .theme-select__trigger .bind-select__val {+ flex: 1;+}.theme-select__group {padding: 6px 10px 2px;font-size: 11px;@@ -13582,19 +13599,23 @@ body.focus-mode .dock:hover {energy of a 20px rim band): Clear 2.55 → 0.20, Readable 1.90 → 0.07 — now equal to themenu's own interior, i.e. no sharper at the rim than in the middle. */--glass-t: 0.7;+ /* Saturation: 1.5 from the Readable tick to Tinted, rising to 1.8 only at Clear (visual QA round+ 2, N9: 1.6–2.0 turned dark glass over a yellow wallpaper olive and light Clear glass pink;+ HIG liquid-glass › Tauri and Electron suggests about 1.2–1.5). */+ --glass-sat: calc(150% + 30% * max(0, 1 - var(--glass-t) / 0.7));--glass-refract: url(#nt-refract);- --glass-blur: blur(calc(16px + 12px * var(--glass-t))) saturate(calc(200% - 55% * var(--glass-t)))+ --glass-blur: blur(calc(16px + 12px * var(--glass-t))) saturate(var(--glass-sat))var(--glass-refract);/* Small controls left of the tick: the backdrop under them is DIMMED (dark theme) or brightened(light theme) as the fill thins, toward Apple's "dark dimming layer" for bright content(materials.md). 1 at the tick and right of it; `--glass-control-dim` at Clear. The fill alone(0.35) left the tab label at 1.98:1 over the Sunrise gradient. It moves backdrop pixels only. */--glass-control-dim: 0.7;- --glass-control-blur: blur(calc(16px + 12px * var(--glass-t))) saturate(calc(200% - 55% * var(--glass-t)))+ --glass-control-blur: blur(calc(16px + 12px * var(--glass-t))) saturate(var(--glass-sat))brightness(calc(1 - (1 - var(--glass-control-dim)) * max(0, 1 - var(--glass-t) / 0.7))) var(--glass-refract);/* Text surfaces never frost less than at the Readable tick (0.7), whatever the slider says. */--glass-text-blur: blur(calc(16px + 12px * max(var(--glass-t), 0.7)))- saturate(calc(200% - 55% * max(var(--glass-t), 0.7))) var(--glass-refract);+ saturate(150%) var(--glass-refract);/* Terminal nodes frost 15% less than the chrome (the user asked for less blur under the terminalwindows): same curve, radius × 0.85, same saturation and refraction. They also FLATTEN thebackdrop's luminance (HIG: regular glass "blurs and adjusts the luminosity"): a blurred photo@@ -13604,7 +13625,7 @@ body.focus-mode .dock:hover {at Readable, empty glass over the lake photo's snow/water edge: brightness swing 2.2:1 → 1.28:1(0.51 still left 1.53:1). */--glass-term-blur: blur(calc((16px + 12px * var(--glass-t)) * 0.85))- saturate(calc(200% - 55% * var(--glass-t))) contrast(calc(1 - var(--glass-t))) var(--glass-refract);+ saturate(var(--glass-sat)) contrast(calc(1 - var(--glass-t))) var(--glass-refract);}/* Outermost chrome: fill + blur, in two groups (Phase 4 slider scope, lib/glassContrast.ts@@ -13631,6 +13652,7 @@ body.focus-mode .dock:hover {.nt-settings,.kanban-header,.kanban-col,+ .kanban-add-col,.kanban-modal) {background: var(--glass-chrome-bg) !important;@@ -13663,6 +13685,18 @@ body.focus-mode .dock:hover {glass a hover is a neutral lift over the same fill. */:root[data-nt-glass='on'] .usage-refresh {color: var(--text);+ /* One diameter for the round buttons in the bottom-left row (RAM pill 26, refresh was 24 — N10). */+ width: 26px;+ height: 26px;+ border-radius: 13px;+}+/* The zoom column matches the sessions toggle above it (34px, not 30 — their centres sat 2px apart,+ visual QA L4/N10). The canvas pills' left offset reads the same variable and moves with it. */+:root[data-nt-glass='on'] {+ --controls-w: 34px;+}+:root[data-nt-glass='on'] .react-flow__controls-button:hover {+ background: var(--glass-lift-hover);}:root[data-nt-glass='on'] :is(.sysres-pill, .usage-pill, .usage-refresh):hover {background:@@ -13749,16 +13783,21 @@ body.focus-mode .dock:hover {slab, visual QA L7), and the flares go. */:root[data-nt-glass='on'] .tab.active {background: var(--glass-lift);+ color: var(--text-strong);+}+/* Its two icons read at 3:1 on the lift (visual QA round 2, N2: 2.0:1 at the default 0.45). */+:root[data-nt-glass='on'] .tab.active :is(.tab__board-toggle, .tab__caret) {+ opacity: 0.8;}/* Input wells: the default `bg-bg` well is the opaque page colour, which read as a hole punched inthe frosted page (visual QA M4). On glass it is a sink (dark) or a lift (light) of the page with ahairline — each moves AWAY from the ink, so the field's text keeps at least the page's contrast. */-:root[data-nt-glass='on'] :is(input, select, textarea).bg-bg {+:root[data-nt-glass='on'] :is(:is(input, select, textarea).bg-bg, .bind-select) {background: rgba(0, 0, 0, 0.22);border-color: var(--glass-edge);}-:root[data-nt-glass='on'][data-theme='light'] :is(input, select, textarea).bg-bg {+:root[data-nt-glass='on'][data-theme='light'] :is(:is(input, select, textarea).bg-bg, .bind-select) {background: rgba(255, 255, 255, 0.55);}@@ -13780,9 +13819,35 @@ body.focus-mode .dock:hover {background: var(--glass-lift);color: var(--text-strong);}-/* Its two icons read at 3:1 on the lift (visual QA round 2, N2: 2.0:1 at the default 0.45). */-:root[data-nt-glass='on'] .tab.active :is(.tab__board-toggle, .tab__caret) {- opacity: 0.8;+/* Hovers that painted `--panel-header` (= the fill again, a dark slab on glass — N5). */+:root[data-nt-glass='on'] :is(.dock-btn:not(.dock-add):hover:not(:disabled), .dock-zoom:hover, .ss-row:hover) {+ background: var(--glass-lift-hover);+}+:root[data-nt-glass='on'] .dock-zoom.active {+ background: var(--glass-lift);+ color: var(--text-strong);+}+/* The default Button is `bg-panel-header`, the fill stacked on its own panel ("Set default" read as+ a dark slab, N5): a neutral lift instead; its own hover (`bg-fill-weak`) still applies. */+:root[data-nt-glass='on'] button.bg-panel-header:not(:hover) {+ background-color: var(--glass-lift-hover);+}+/* Segmented controls: the selected segment is a neutral lifted thumb, as in Apple's segmented+ control, so the one filled accent per view stays the primary action (N12: Settings → Agents+ showed seven accent fills). */+:root[data-nt-glass='on'] .seg-pill-opt {+ color: var(--muted);+}+:root[data-nt-glass='on'] .seg-pill-opt.active {+ background: var(--glass-lift);+ color: var(--text-strong);+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);+}+/* Placeholders were a hard-coded #757575 in both themes (2.5–3.5:1, N6). On glass they keep 4.5:1+ on the text-surface fill: `--glass-placeholder` is pinned by glassContrast.test.ts. */+/* Sticky notes keep theirs: the note's own colour is the surface there, not glass. */+:root[data-nt-glass='on'] :not(.sticky-node__body)::placeholder {+ color: var(--glass-placeholder);}:root[data-nt-glass='on'] .settings-nav-row {background: transparent;@@ -13790,10 +13855,15 @@ body.focus-mode .dock:hover {:root[data-nt-glass='on'] :is(.palette__item.active, .settings-nav-row[aria-current='page']) {background: var(--glass-select);box-shadow: none;+ color: var(--text-strong);}:root[data-nt-glass='on'] .tab.active::after {display: none;}+/* The project menu hangs from its caret, 3px INSIDE the glass bar (N11); on glass it clears the bar. */+:root[data-nt-glass='on'] .tab-menu--tabbar {+ top: calc(var(--tabbar-h) + 4px) !important;+}/* The node's label row has its own `--panel` fill (for the glyph grid, which stands glass down);on glass that stacked a third band between header and body (visual QA M7). */@@ -13867,6 +13937,24 @@ body.focus-mode .dock:hover {:root[data-nt-glass='on'] .kanban-col {border-color: var(--glass-edge);}+/* "+ Add column" was styled for an opaque board (4% tint, 50% ink, dashed 15% border) and vanished+ into the wallpaper (visual QA round 2, N3). On glass it is a text surface like the columns. */+:root[data-nt-glass='on'] .kanban-add-col {+ border: 1px solid var(--glass-edge);+ color: var(--text);+}+:root[data-nt-glass='on'] .kanban-add-col:hover {+ background:+ linear-gradient(var(--glass-lift), var(--glass-lift)),+ var(--glass-chrome-bg) !important;+ border-color: var(--glass-edge);+ color: var(--text-strong);+}+/* On the board the toolbar cluster straddled the header strip's bottom edge and sat 6px above the+ columns (N4): it drops into the strip's row instead, centred in its 46px. */+:root[data-nt-glass='on'] .canvas-root:has(> .kanban-overlay) > .controls-cluster {+ top: calc(var(--tabbar-h) + 6px);+}:root[data-nt-glass='on'] :is(.kanban-col__dot, .kanban-header__dot) {background: transparent !important;box-shadow: inset 0 0 0 1.5px var(--muted);@@ -13877,37 +13965,6 @@ body.focus-mode .dock:hover {}:root[data-nt-glass='on'] .kanban-card:hover {background: var(--glass-lift);- color: var(--text-strong);-}-/* Hovers that painted `--panel-header` (= the fill again, a dark slab on glass — N5). */-:root[data-nt-glass='on'] :is(.dock-btn:not(.dock-add):hover:not(:disabled), .dock-zoom:hover, .ss-row:hover) {- background: var(--glass-lift-hover);-}-:root[data-nt-glass='on'] .dock-zoom.active {- background: var(--glass-lift);- color: var(--text-strong);-}-/* The default Button is `bg-panel-header`, the fill stacked on its own panel ("Set default" read as- a dark slab, N5): a neutral lift instead; its own hover (`bg-fill-weak`) still applies. */-:root[data-nt-glass='on'] button.bg-panel-header:not(:hover) {- background-color: var(--glass-lift-hover);-}-/* Segmented controls: the selected segment is a neutral lifted thumb, as in Apple's segmented- control, so the one filled accent per view stays the primary action (N12: Settings → Agents- showed seven accent fills). */-:root[data-nt-glass='on'] .seg-pill-opt {- color: var(--muted);-}-:root[data-nt-glass='on'] .seg-pill-opt.active {- background: var(--glass-lift);- color: var(--text-strong);- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);-}-/* Placeholders were a hard-coded #757575 in both themes (2.5–3.5:1, N6). On glass they keep 4.5:1- on the text-surface fill: `--glass-placeholder` is pinned by glassContrast.test.ts. */-/* Sticky notes keep theirs: the note's own colour is the surface there, not glass. */-:root[data-nt-glass='on'] :not(.sticky-node__body)::placeholder {- color: var(--glass-placeholder);}:root[data-nt-glass='on'] .kanban-col--drop {border-color: var(--text);@@ -13920,7 +13977,6 @@ body.focus-mode .dock:hover {:root[data-nt-glass='on'] .kanban-card--drop-after::after {background: var(--text);box-shadow: none;- color: var(--text-strong);}:root[data-nt-glass='on'] .kanban-badge--running {color: var(--state-working);@@ -13933,6 +13989,11 @@ body.focus-mode .dock:hover {/* The card modal's terminal: the same glass as a terminal node (ModalTerminal sets the`--term-glass-*` tint inline). The modal itself is text-surface glass (listed above), so thetint needs no blur of its own; the tint alone carries its foreground's 4.5:1. */+/* The card modal's comments & activity panel hard-codes 35–55% ink for its title, times and events+ (3.1–3.6:1 on glass, visual QA M3): secondary label on glass, like the rest of the look. */+:root[data-nt-glass='on'] :is(.board-log__title, .board-log__hint, .board-log__time, .board-log__event-body) {+ color: var(--muted);+}:root[data-nt-glass='on'] .kanban-modal__termwrap--glass {background: var(--term-glass-bg);}@@ -13983,6 +14044,21 @@ body.focus-mode .dock:hover {--mm-unread: var(--state-unread);}+/* Meters in the OK range were solid system green, which on glass also means "finished, unseen" and+ "success" (visual QA M1: one colour, two meanings). Under Liquid Glass an OK meter is neutral ink;+ yellow and red still mean warning and critical. The fills are inline literals from+ lib/usageFormat.ts (the notch HUD draws them too and loads no stylesheet), so this matches the+ serialised green — `styles.liquid-glass.test.ts` pins that literal. The default look is untouched.+ ponytail: attribute match on the inline colour; move the fills to tokens if the HUD ever loads CSS. */+:root[data-nt-glass='on']+ :is(.usage-bar__fill, .usage-pill__minibar-fill, .ctx-pill__fill, .ctx-bar__fill)[style*='rgb(48, 209, 88)'] {+ background: rgba(var(--tint-rgb), 0.6) !important;+}+:root[data-nt-glass='on'] .ss-ctx[style*='rgb(48, 209, 88)'] {+ background: var(--glass-lift) !important;+ color: var(--text-strong);+}+/* Status labels on a glass header are ink, not coloured text: the hue tints the chip BEHIND thelabel (stained glass) and fills the dot. `-webkit-text-fill-color` paints the glyphs while`color`, and so `currentColor`, keeps the status hue for the chip and the dot. */diff --git a/src/renderer/styles.liquid-glass.test.ts b/src/renderer/styles.liquid-glass.test.tsindex 9d2c94786..c653565cd 100644--- a/src/renderer/styles.liquid-glass.test.ts+++ b/src/renderer/styles.liquid-glass.test.ts@@ -1,6 +1,7 @@import { readFileSync } from 'node:fs'import { join } from 'node:path'import { describe, expect, it } from 'vitest'+import { SYSTEM_COLORS } from './lib/palette'/*** Liquid Glass is a THEME, so its CSS must (a) be unreachable unless `data-nt-glass` is on, and@@ -59,22 +60,55 @@ describe('Liquid Glass stylesheet', () => {it('slider scope: text surfaces take the readable-floored fill, small controls the slider fill', () => {const outer = (needle: string): Rule | undefined =>gated(needle).find((r) => /backdrop-filter:/.test(r.body) && r.selector.includes(':is('))- for (const text of ['.nt-settings', '.palette', '.ctx-menu', '.tab-menu', '.sessions-sidebar', '.confirm', '.usage-popover', '.kanban-col', '.kanban-modal']) {+ for (const text of ['.nt-settings', '.palette', '.ctx-menu', '.tab-menu', '.sessions-sidebar', '.confirm', '.usage-popover', '.kanban-col', '.kanban-add-col', '.kanban-modal']) {expect(outer(text)?.body, text).toMatch(/var\(--glass-chrome-bg\)[\s\S]*var\(--glass-text-blur\)/)}- for (const control of ['.tabbar','.react-flow__controls', '.react-flow__minimap', '.usage-pill', '.sysres-pill', '.usage-refresh', '.controls-cluster > button', '.sessions-icon-cluster button']) {+ for (const control of ['.tabbar', '.react-flow__controls', '.react-flow__minimap', '.usage-pill', '.sysres-pill', '.usage-refresh', '.controls-cluster > button', '.sessions-icon-cluster button']) {expect(outer(control)?.body, control).toMatch(/var\(--glass-control-bg\)[\s\S]*var\(--glass-control-blur\)/)}})it('row highlights on glass never re-stack a panel token (visual QA H1/H2)', () => {- for (const row of ['.palette__item.active', '.settings-nav-row', '.ctx-item', '.tab-menu button', '.tab.active']) {- const hits = gated(row).filter((r) => /background:/.test(r.body))+ for (const row of ['.palette__item.active', '.settings-nav-row', '.ctx-item', '.tab-menu button', '.tab.active', '.dock-btn', '.dock-zoom', '.ss-row:hover', 'button.bg-panel-header', '.seg-pill-opt.active']) {+ const hits = gated(row).filter((r) => /background(-color)?:/.test(r.body))expect(hits.length, row).toBeGreaterThan(0)for (const r of hits) expect(r.body, row).not.toMatch(/--panel|--glass-chrome-bg/)}})+ it('highlighted rows carry --text-strong, the ink their readable alpha is solved for (N2)', () => {+ for (const row of ['.palette__item.active', '.ctx-item', '.tab.active', '.dock-zoom.active', '.seg-pill-opt.active']) {+ const hits = gated(row).filter((r) => /background(-color)?:/.test(r.body))+ expect(hits.some((r) => /color:\s*var\(--text-strong\)/.test(r.body)), row).toBe(true)+ }+ })++ it('never translucent without a working blur (N1)', () => {+ // A container that hosts pop-out menus is no backdrop root: its glass lives on ::before.+ const host = rules.find((r) => r.selector === `${GATE} :is(.dock, .dock-menu, .dock-menu__sub)`)+ expect(host?.body).toMatch(/background:\s*transparent\s*!important/)+ expect(host?.body).toMatch(/(^|[^-])backdrop-filter:\s*none/)+ const layer = rules.find((r) => r.selector === `${GATE} :is(.dock, .dock-menu, .dock-menu__sub)::before`)+ expect(layer?.body).toMatch(/background:\s*var\(--glass-chrome-bg\)[\s\S]*backdrop-filter:\s*var\(--glass-text-blur\)/)+ const dock = rules.find((r) => r.selector === `${GATE} .dock::before`)+ expect(dock?.body).toMatch(/var\(--glass-control-bg\)[\s\S]*var\(--glass-control-blur\)/)+ // Popovers inside a glass node (their backdrop root) cannot blur, so they are solid.+ const solid = rules.find((r) => r.selector === `${GATE} :is(.ctx-popover, .color-popover)`)+ expect(solid?.body).toMatch(/background:\s*rgb\(var\(--menu-rgb\)\)\s*!important/)+ // …and nothing else hands any of them a translucent glass fill on the element itself.+ for (const nested of ['.dock-menu', '.dock-menu__sub', '.ctx-popover', '.color-popover']) {+ const fills = gated(nested).filter(+ (r) => !r.selector.includes('::before') && /background:[^;]*var\(--glass-(chrome|control)-bg\)/.test(r.body)+ )+ expect(fills.map((r) => r.selector), nested).toEqual([])+ }+ })++ it('OK-range meters match the literal green the fills are drawn in (M1)', () => {+ expect(SYSTEM_COLORS.dark.green.toLowerCase()).toBe('#30d158') // = rgb(48, 209, 88)+ expect(gated('[style*=').some((r) => r.selector.includes("[style*='rgb(48, 209, 88)']"))).toBe(true)+ })+it('kanban cards are a lift without their own blur (no glass on glass)', () => {const card = gated('.kanban-card').find((r) => r.selector === `${GATE} .kanban-card`)expect(card?.body).toMatch(/background:\s*var\(--glass-lift-hover\)/)