@kabmo-labs/kabmo 0.18.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/README.md +43 -13
  2. package/dist/client/index.html +3 -3
  3. package/dist/client/index.js +485 -484
  4. package/dist/client/static/js/index-0721wrkf.css +1 -0
  5. package/dist/client/static/js/{index-tc09dtca.js → index-zg32n2sk.js} +778 -777
  6. package/dist/client/static/{manifest-42r8wcmg.webmanifest → manifest-q6h8k9e0.webmanifest} +1 -1
  7. package/index.html +1 -1
  8. package/marketplace/plugins/command-runner/package.json +3 -2
  9. package/marketplace/plugins/git-forge/package.json +3 -2
  10. package/marketplace/plugins/session-info/package.json +3 -2
  11. package/marketplace/plugins/stats/package.json +3 -2
  12. package/package.json +3 -1
  13. package/public/manifest.webmanifest +1 -1
  14. package/src/client/components/auth/login-screen/index.tsx +2 -1
  15. package/src/client/components/common/ComposerPicker.tsx +1 -1
  16. package/src/client/components/common/FolderPicker.tsx +2 -2
  17. package/src/client/components/common/Modal.tsx +2 -2
  18. package/src/client/components/common/PWAInstallButton.tsx +2 -2
  19. package/src/client/components/common/ViewportSelector.tsx +1 -1
  20. package/src/client/components/common/anchored-menu/index.tsx +5 -1
  21. package/src/client/components/common/batch-selection/SelectionCheckbox.tsx +2 -1
  22. package/src/client/components/common/brand-wordmark/index.test.tsx +13 -2
  23. package/src/client/components/common/brand-wordmark/index.tsx +13 -2
  24. package/src/client/components/common/checkbox/style.test.ts +142 -0
  25. package/src/client/components/common/checkbox/style.ts +51 -0
  26. package/src/client/components/common/context-usage-button/index.tsx +2 -2
  27. package/src/client/components/common/file-icon/index.tsx +23 -9
  28. package/src/client/components/common/header-controls/MoreMenu.tsx +1 -1
  29. package/src/client/components/common/markdown-review/ReviewPopover.tsx +1 -1
  30. package/src/client/components/common/panel-mark/index.test.tsx +124 -0
  31. package/src/client/components/common/panel-mark/index.tsx +105 -0
  32. package/src/client/components/common/provider-icon/glyphs.test.ts +1 -1
  33. package/src/client/components/common/provider-icon/index.test.ts +14 -0
  34. package/src/client/components/common/provider-icon/index.tsx +4 -0
  35. package/src/client/components/common/provider-icon/resolve.test.ts +8 -7
  36. package/src/client/components/common/provider-icon/resolve.ts +16 -3
  37. package/src/client/components/common/session-actions-menu/index.tsx +1 -1
  38. package/src/client/components/common/toolbar-row/index.tsx +1 -1
  39. package/src/client/components/layout/ActivityBar.tsx +22 -3
  40. package/src/client/components/layout/LeftDock.tsx +9 -2
  41. package/src/client/components/layout/PanelVisibilityMenu.tsx +1 -1
  42. package/src/client/components/layout/WindowAura.tsx +27 -0
  43. package/src/client/components/layout/desktop-layout/LeftColumn.tsx +1 -1
  44. package/src/client/components/layout/desktop-layout/TopNavbar.tsx +2 -2
  45. package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +11 -2
  46. package/src/client/components/layout/desktop-layout/index.tsx +3 -1
  47. package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +3 -3
  48. package/src/client/components/layout/session-sidebar/Header.tsx +1 -1
  49. package/src/client/components/layout/session-sidebar/OverflowMenu.tsx +1 -1
  50. package/src/client/components/layout/session-sidebar/Toolbar.tsx +1 -1
  51. package/src/client/components/layout/session-sidebar/about-modal/index.tsx +2 -2
  52. package/src/client/components/layout/session-sidebar/modern/ActionRow.tsx +1 -1
  53. package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +13 -5
  54. package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +2 -2
  55. package/src/client/components/layout/session-sidebar/scheduler-modal/TaskForm.tsx +2 -1
  56. package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +2 -2
  57. package/src/client/components/mobile/LayoutWrapper.tsx +3 -1
  58. package/src/client/components/mobile/mobile-main-view/Header.tsx +2 -2
  59. package/src/client/components/mobile/mobile-session-sidebar/Header.tsx +1 -1
  60. package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +1 -1
  61. package/src/client/components/mobile/panel-chips.tsx +10 -2
  62. package/src/client/components/settings/Modal.tsx +4 -4
  63. package/src/client/components/settings/ProjectSelectorDropdown.tsx +2 -2
  64. package/src/client/components/settings/apply-side-effects.test.ts +30 -0
  65. package/src/client/components/settings/apply-side-effects.ts +14 -0
  66. package/src/client/components/settings/categories/AppearanceSettings.tsx +6 -0
  67. package/src/client/components/settings/categories/appearance-settings/EditorBlameSection.tsx +2 -1
  68. package/src/client/components/settings/categories/appearance-settings/EditorTypingSection.tsx +2 -1
  69. package/src/client/components/settings/categories/appearance-settings/IconStyleSection.tsx +144 -0
  70. package/src/client/components/settings/categories/appearance-settings/SurfaceStyleSection.test.tsx +120 -0
  71. package/src/client/components/settings/categories/appearance-settings/SurfaceStyleSection.tsx +180 -0
  72. package/src/client/components/settings/categories/mcp-settings/DetailPane.tsx +2 -1
  73. package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +2 -2
  74. package/src/client/components/settings/categories/omp-settings/OrderedChips.tsx +1 -1
  75. package/src/client/components/settings/categories/panel-plugins/AvailableList.tsx +1 -1
  76. package/src/client/components/settings/categories/panel-plugins/BuiltinList.tsx +21 -3
  77. package/src/client/components/settings/categories/panel-plugins/GitFreshness.test.tsx +46 -0
  78. package/src/client/components/settings/categories/panel-plugins/GitFreshness.tsx +1 -1
  79. package/src/client/components/settings/categories/panel-plugins/InstalledList.tsx +7 -9
  80. package/src/client/components/settings/categories/panel-plugins/PluginCard.test.tsx +149 -0
  81. package/src/client/components/settings/categories/panel-plugins/PluginCard.tsx +34 -7
  82. package/src/client/components/settings/categories/panel-plugins/PluginMark.test.ts +66 -2
  83. package/src/client/components/settings/categories/panel-plugins/PluginMark.tsx +47 -10
  84. package/src/client/components/settings/categories/panel-plugins/Section.tsx +7 -1
  85. package/src/client/components/settings/categories/panel-plugins/Toolbar.tsx +35 -2
  86. package/src/client/components/settings/categories/plugin-settings/DetailPane.tsx +2 -1
  87. package/src/client/components/settings/categories/plugin-settings/SettingsSection.tsx +2 -1
  88. package/src/client/components/settings/categories/project-settings/ModelDropdown.tsx +1 -1
  89. package/src/client/components/settings/categories/project-settings/WorktreeSettings.tsx +2 -1
  90. package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +2 -2
  91. package/src/client/components/settings/categories/provider-settings/EntryAdvanced.tsx +3 -2
  92. package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +2 -2
  93. package/src/client/components/settings/categories/skill-catalog/GitImportPanel.tsx +3 -2
  94. package/src/client/components/settings/categories/skill-settings/DetailHeader.tsx +2 -1
  95. package/src/client/components/settings/categories/token-usage-settings/Controls.tsx +1 -1
  96. package/src/client/components/workspace/btw-panel/TopicMenu.tsx +1 -1
  97. package/src/client/components/workspace/chat-timeline/AiMessageFooter.tsx +2 -2
  98. package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +3 -3
  99. package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +2 -2
  100. package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.tsx +1 -1
  101. package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +4 -3
  102. package/src/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown.tsx +1 -1
  103. package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.tsx +1 -1
  104. package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +2 -2
  105. package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.tsx +1 -1
  106. package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.tsx +1 -1
  107. package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/index.tsx +2 -6
  108. package/src/client/components/workspace/context-panel/CostBreakdownPopover.tsx +1 -1
  109. package/src/client/components/workspace/diff-panel/index.tsx +2 -2
  110. package/src/client/components/workspace/editor/PluginRail.tsx +1 -1
  111. package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +2 -2
  112. package/src/client/components/workspace/editor/TabContextMenu.tsx +1 -1
  113. package/src/client/components/workspace/editor/Tabs.tsx +1 -1
  114. package/src/client/components/workspace/file-explorer/ContextMenu.tsx +1 -1
  115. package/src/client/components/workspace/file-explorer/Modals.tsx +10 -10
  116. package/src/client/components/workspace/file-explorer/RootMenu.tsx +1 -1
  117. package/src/client/components/workspace/git-panel/BranchToolbar.test.tsx +130 -0
  118. package/src/client/components/workspace/git-panel/BranchToolbar.tsx +21 -11
  119. package/src/client/components/workspace/git-panel/CommitBox.tsx +2 -1
  120. package/src/client/components/workspace/git-panel/Modals.tsx +2 -2
  121. package/src/client/components/workspace/git-panel/StashSection.tsx +2 -1
  122. package/src/client/components/workspace/git-panel/branch-modal/DeleteDialog.tsx +2 -1
  123. package/src/client/components/workspace/git-panel/branch-modal/RenameDialog.tsx +2 -1
  124. package/src/client/components/workspace/git-panel/commit-modal/index.tsx +2 -2
  125. package/src/client/components/workspace/git-panel/index.tsx +7 -0
  126. package/src/client/components/workspace/model-dropdown/Panel.tsx +1 -1
  127. package/src/client/components/workspace/model-dropdown/SpecsTooltip.tsx +1 -1
  128. package/src/client/components/workspace/plugin-panel/catalog.tsx +7 -0
  129. package/src/client/components/workspace/plugin-panel/resolve.tsx +4 -0
  130. package/src/client/components/workspace/search-panel/Body.tsx +1 -1
  131. package/src/client/components/workspace/usage-panel/ProviderSelect.tsx +1 -1
  132. package/src/client/glass-sticky.test.ts +46 -0
  133. package/src/client/glass.css +795 -0
  134. package/src/client/glass.test.ts +306 -0
  135. package/src/client/hooks/ui/glass-support.ts +57 -0
  136. package/src/client/hooks/ui/icon-style.ts +59 -0
  137. package/src/client/hooks/ui/stuck-header.test.ts +213 -0
  138. package/src/client/hooks/ui/stuck-header.ts +122 -0
  139. package/src/client/hooks/ui/style-attributes.test.ts +120 -0
  140. package/src/client/hooks/ui/surface-style.ts +56 -0
  141. package/src/client/hooks/workspace/panel-hues.ts +23 -0
  142. package/src/client/hooks/workspace/panel-registry.ts +8 -4
  143. package/src/client/main.tsx +10 -0
  144. package/src/client/tailwind.css +264 -11
  145. package/src/server/lib/assets/shell-attributes.server.ts +80 -0
  146. package/src/server/lib/assets/shell-attributes.test.ts +86 -0
  147. package/src/server/lib/lifecycle/tls.test.ts +6 -1
  148. package/src/server/lib/omp/rpc/frame-fold-host.test-util.ts +1 -0
  149. package/src/server/lib/omp/rpc/frame-fold-signals.test.ts +2 -30
  150. package/src/server/lib/omp/rpc/frame-fold.test.ts +55 -0
  151. package/src/server/lib/omp/rpc/frame-fold.ts +4 -0
  152. package/src/server/lib/omp/rpc/manager.ts +2 -2
  153. package/src/server/lib/omp/rpc/process-helpers.ts +11 -0
  154. package/src/server/lib/omp/rpc/process.test.ts +106 -0
  155. package/src/server/lib/omp/rpc/process.ts +28 -4
  156. package/src/server/lib/omp/rpc/run-settle.server.ts +12 -0
  157. package/src/server/lib/omp/rpc/run-settle.test.ts +22 -0
  158. package/src/server/lib/omp/rpc/session-command-guards.ts +5 -0
  159. package/src/server/lib/omp/rpc/session-commands.test.ts +9 -1
  160. package/src/server/lib/omp/rpc/session-commands.ts +11 -0
  161. package/src/server/lib/omp/rpc/terminal-settle.ts +29 -7
  162. package/src/server/lib/panels/bundled-catalog.server.ts +1 -0
  163. package/src/server/lib/panels/git-update.server.test.ts +20 -0
  164. package/src/server/lib/panels/git-update.server.ts +20 -4
  165. package/src/server/lib/panels/manifest.test.ts +20 -0
  166. package/src/server/lib/panels/manifest.ts +12 -0
  167. package/src/server/lib/panels/scan.server.ts +4 -0
  168. package/src/server/lib/panels/sync.server.ts +9 -1
  169. package/src/server/lib/panels/update.server.test.ts +193 -0
  170. package/src/server/lib/panels/update.server.ts +210 -0
  171. package/src/server/lib/plugins/server-half.server.ts +42 -0
  172. package/src/server/lib/queue/delivery-dispatch.server.test.ts +48 -0
  173. package/src/server/lib/queue/delivery-harness.ts +8 -4
  174. package/src/server/lib/queue/delivery.server.test.ts +29 -0
  175. package/src/server/lib/queue/delivery.server.ts +39 -0
  176. package/src/server/lib/queue/store.server.test.ts +22 -2
  177. package/src/server/lib/queue/store.server.ts +33 -11
  178. package/src/server/lib/terminal/attach-replay.test.ts +26 -8
  179. package/src/server/plugins/ssr.ts +22 -5
  180. package/src/server/routes/panels/install-route.test.ts +238 -0
  181. package/src/server/routes/panels/install.ts +36 -64
  182. package/src/server/routes/panels/panel-routes.test-util.ts +6 -1
  183. package/src/server/routes/panels/routes.test.ts +1 -118
  184. package/src/shared/lib/icons/file-brand-color.ts +38 -0
  185. package/src/shared/lib/icons/icon-paint-css.test.ts +235 -0
  186. package/src/shared/lib/icons/icon-paint-css.ts +285 -0
  187. package/src/shared/lib/icons/icon-paint-panel.ts +109 -0
  188. package/src/shared/lib/icons/icon-tone.ts +166 -0
  189. package/src/shared/lib/icons/tint-hues.generated.ts +277 -0
  190. package/src/shared/lib/icons/tint.test.ts +333 -0
  191. package/src/shared/lib/icons/tint.ts +248 -0
  192. package/src/shared/lib/models/provider/brand-color.test.ts +116 -0
  193. package/src/shared/lib/models/provider/brand-color.ts +103 -0
  194. package/src/shared/lib/omp/rpc/frame.test.ts +65 -0
  195. package/src/shared/lib/omp/rpc/frame.ts +58 -3
  196. package/src/shared/lib/panels/update.test.ts +107 -0
  197. package/src/shared/lib/panels/update.ts +73 -0
  198. package/src/shared/lib/settings/defaults.ts +4 -0
  199. package/src/shared/lib/theme/catalog.test.ts +5 -4
  200. package/src/shared/lib/theme/catalog.ts +18 -3
  201. package/src/shared/lib/theme/color.ts +50 -0
  202. package/src/shared/lib/theme/glass-support.test.ts +38 -0
  203. package/src/shared/lib/theme/glass-support.ts +73 -0
  204. package/src/shared/lib/theme/icon-style.test.ts +74 -0
  205. package/src/shared/lib/theme/icon-style.ts +90 -0
  206. package/src/shared/lib/theme/legibility.ts +91 -0
  207. package/src/shared/lib/theme/palettes/dark-extended.ts +152 -0
  208. package/src/shared/lib/theme/palettes/light-extended.ts +157 -0
  209. package/src/shared/lib/theme/surface-style.test.ts +68 -0
  210. package/src/shared/lib/theme/surface-style.ts +91 -0
  211. package/src/shared/lib/theme/theme.test.ts +11 -7
  212. package/src/shared/lib/workspace/panel-hues.test.ts +68 -0
  213. package/src/shared/lib/workspace/panel-hues.ts +57 -0
  214. package/src/shared/types/panels-registry.ts +6 -0
  215. package/src/shared/types/panels.ts +14 -0
  216. package/src/shared/types/settings/state.ts +26 -0
  217. package/src/test-support/fake-omp-frames.ts +163 -0
  218. package/dist/client/static/js/index-hp75vsv9.css +0 -1
  219. /package/src/{client/components/common/file-icon/brand-paths.ts → shared/lib/icons/file-brand-paths.ts} +0 -0
@@ -0,0 +1,124 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * A PANEL's mark — one colour per panel, on every surface.
8
+ *
9
+ * Rendered with `h()` (no JSX) against happy-dom.
10
+ *
11
+ * Three facts are load-bearing here, and each was a real defect:
12
+ *
13
+ * - **A built-in view takes its PANEL id's hue**, and it says so with `builtin`,
14
+ * not by inference from whether it has an icon. The rail used to hash the panel
15
+ * id while Settings drew the bare glyph and took the GLYPH's hue, so `Files`
16
+ * was `hsl(0 …)` in one place and `hsl(320 …)` in the other.
17
+ * - **A plugin keeps its OWN mark colour**, which is keyed by its name — the same
18
+ * key its marketplace card uses.
19
+ * - **Both stamp the LIGHT TONE** for that hue. Light's paint is a solved hex
20
+ * (`icon-tone.ts`), so a runtime hue with no tone falls back to the dated pair
21
+ * the tone replaced — visible as one dull mark in an otherwise bright rail.
22
+ */
23
+
24
+ import { afterAll, afterEach, beforeEach, describe, expect, test } from 'bun:test';
25
+ import { Window } from 'happy-dom';
26
+ import { h, render } from 'preact';
27
+ import type { ComponentChild } from 'preact';
28
+ import { act } from 'preact/test-utils';
29
+ import { PanelMark } from '@/client/components/common/panel-mark';
30
+ import { ICON_TONES } from '@/shared/lib/icons/tint-hues.generated';
31
+ import { hashHue } from '@/shared/lib/icons/tint';
32
+ import { resolvePanelHues } from '@/shared/lib/workspace/panel-hues';
33
+
34
+ const DOM_GLOBALS = ['window', 'document', 'navigator', 'Node', 'Element', 'HTMLElement', 'Event'] as const;
35
+ const nativeGlobals: Partial<Record<(typeof DOM_GLOBALS)[number], unknown>> = {};
36
+
37
+ let container: HTMLElement;
38
+
39
+ beforeEach(() => {
40
+ const win = new Window({ url: 'http://localhost' });
41
+ const target = globalThis as unknown as Record<string, unknown>;
42
+ for (const key of DOM_GLOBALS) {
43
+ if (!(key in nativeGlobals)) nativeGlobals[key] = target[key];
44
+ target[key] = (win as unknown as Record<string, unknown>)[key];
45
+ }
46
+ container = document.createElement('div');
47
+ document.body.appendChild(container);
48
+ });
49
+
50
+ afterEach(() => {
51
+ render(null, container);
52
+ container.remove();
53
+ });
54
+
55
+ afterAll(() => {
56
+ const target = globalThis as unknown as Record<string, unknown>;
57
+ for (const key of DOM_GLOBALS) {
58
+ if (key in nativeGlobals) target[key] = nativeGlobals[key];
59
+ else delete target[key];
60
+ }
61
+ });
62
+
63
+ function paint(node: ComponentChild): HTMLElement {
64
+ act(() => {
65
+ render(node, container);
66
+ });
67
+ const mark = container.querySelector<HTMLElement>('[data-panel-mark]');
68
+ if (!mark) throw new Error('no panel mark rendered');
69
+ return mark;
70
+ }
71
+
72
+ describe('PanelMark', () => {
73
+ test('a built-in view takes the hue of its PANEL id, resolved over the whole set', () => {
74
+ // Not the glyph's hue: `Files` draws `lucide-files` (320°), but the panel's
75
+ // own id hashes to 0°. One panel, one colour, on every surface.
76
+ const mark = paint(h(PanelMark, { panelId: 'files', builtin: true, name: 'Files', size: 20 }));
77
+ const hue = Number(mark.style.getPropertyValue('--panel-hue'));
78
+
79
+ expect(hue).toBe(resolvePanelHues().get('files')!);
80
+ expect(mark.style.getPropertyValue('--panel-tone')).toBe(ICON_TONES[hue]!);
81
+ });
82
+
83
+ test('a plugin mark is keyed by its NAME, the same key its card uses', () => {
84
+ // Keying a plugin panel by its slot id gave one plugin two colours: the rail
85
+ // drew the slot's hash, its marketplace card drew the name's.
86
+ const mark = paint(h(PanelMark, { panelId: 'plugin:git-forge', builtin: false, name: 'git-forge', size: 20 }));
87
+ const hue = hashHue('git-forge');
88
+
89
+ expect(Number(mark.style.getPropertyValue('--panel-hue'))).toBe(hue);
90
+ expect(mark.style.getPropertyValue('--panel-tone')).toBe(ICON_TONES[hue]!);
91
+ });
92
+
93
+ test('a declared brand colour rides alongside the tone, as a clamped pair', () => {
94
+ // The plugin author's colour is theirs: it is surfaced as a pair the
95
+ // stylesheet reads BEFORE the hue, and `data-declared` exempts it from the
96
+ // rail's idle filter so one brand is not two shades in two places.
97
+ const mark = paint(
98
+ h(PanelMark, { panelId: 'plugin:stats', builtin: false, name: 'stats', color: '#f59e0b', size: 20 }),
99
+ );
100
+
101
+ expect(mark.getAttribute('data-declared')).toBe('');
102
+ expect(mark.style.getPropertyValue('--panel-color-light')).toMatch(/^#[0-9a-f]{6}$/);
103
+ expect(mark.style.getPropertyValue('--panel-color-dark')).toMatch(/^#[0-9a-f]{6}$/);
104
+ // The tone is still stamped: a declared colour that cannot be parsed must not
105
+ // leave the mark on the dated fallback.
106
+ expect(mark.style.getPropertyValue('--panel-tone')).toMatch(/^#[0-9a-f]{6}$/);
107
+ });
108
+
109
+ test('no declared colour leaves both colour variables unset', () => {
110
+ const mark = paint(h(PanelMark, { panelId: 'files', builtin: true, name: 'Files', size: 20 }));
111
+
112
+ expect(mark.getAttribute('data-declared')).toBeNull();
113
+ expect(mark.style.getPropertyValue('--panel-color-light')).toBe('');
114
+ expect(mark.style.getPropertyValue('--panel-color-dark')).toBe('');
115
+ });
116
+
117
+ test('an idle mark says so through the attribute, not through its colour', () => {
118
+ // The state is a luminance filter in the stylesheet; a caller's `text-ink/30`
119
+ // would outrank the hue and paint the rail monochrome, which is what the
120
+ // attribute replaced.
121
+ expect(paint(h(PanelMark, { panelId: 'files', builtin: true, name: 'Files', size: 20, idle: true })).getAttribute('data-idle')).toBe('');
122
+ expect(paint(h(PanelMark, { panelId: 'git', builtin: true, name: 'Git', size: 20 })).getAttribute('data-idle')).toBeNull();
123
+ });
124
+ });
@@ -0,0 +1,105 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * A PANEL's mark, wherever a panel is listed.
8
+ *
9
+ * The activity bar, the phone's chip strip and the Built-in list in Settings all
10
+ * draw the same thing, and before this component each one decided its colour for
11
+ * itself: the rail stamped the PANEL id's hue, while the two lists drew the bare
12
+ * glyph and therefore took the GLYPH's hue — so `Files` was `hsl(0 …)` in one
13
+ * place and `hsl(320 …)` in the other, and `Wiki`'s `BookOpen` fell through to
14
+ * the `info` signal colour because it means something as a glyph but nothing as
15
+ * a panel.
16
+ *
17
+ * Two rules, and the split between them is the point:
18
+ *
19
+ * - **A BUILT-IN view** takes the hue of its PANEL ID (`usePanelHues`, resolved
20
+ * over the whole set of built-in views so the answer cannot depend on what a
21
+ * surface is drawing). That is one colour per view, everywhere.
22
+ * - **A PLUGIN panel** takes the plugin's OWN mark colour — the brand hex its
23
+ * manifest declares, else the hue of its name — because that is what its
24
+ * marketplace card draws. Keying it by the slot id instead gave one plugin two
25
+ * colours, which is the defect this component exists to remove.
26
+ *
27
+ * A declared brand colour still wins over everything: it is surfaced as the
28
+ * `--panel-color-light`/`-dark` pair, which the stylesheet reads before the hue.
29
+ * `data-declared` says the mark carries one, because the rail must not dim a
30
+ * colour the plugin author chose (see `icon-paint-css.ts`).
31
+ */
32
+
33
+ import type { ReactNode } from 'preact/compat';
34
+ import { legiblePair } from '@/shared/lib/theme/legibility';
35
+ import { hashHue, iconTone } from '@/shared/lib/icons/tint';
36
+ import { usePanelHues } from '@/client/hooks/workspace/panel-hues';
37
+ import { panelHueOf } from '@/shared/lib/workspace/panel-hues';
38
+ import { PluginMark } from '@/client/components/settings/categories/panel-plugins/PluginMark';
39
+
40
+ interface PanelMarkProps {
41
+ /** The panel id a BUILT-IN view's hue is keyed by. */
42
+ panelId: string;
43
+ /**
44
+ * Which KIND of panel this is: a built-in view takes the panel-id hue, a
45
+ * plugin keeps its own mark colour. Stated rather than inferred from `icon`,
46
+ * because a built-in view may have no glyph of its own and would otherwise be
47
+ * recoloured as if it were a plugin.
48
+ */
49
+ builtin: boolean;
50
+ /** A built-in view's own glyph, when it has one. */
51
+ icon?: ReactNode;
52
+ /** The plugin's display name; also the fallback mark when it ships no icon. */
53
+ name: string;
54
+ iconUrl?: string;
55
+ /** The colour the plugin's manifest declares, when it declares one. */
56
+ color?: string;
57
+ size: number;
58
+ /**
59
+ * The mark's state, when the surface has one. `undefined` means "no state":
60
+ * the rail is the only caller that dims an inactive mark, and it must be able
61
+ * to say so without every other surface pretending to be inactive.
62
+ */
63
+ idle?: boolean;
64
+ /** Extra classes for the wrapper — a surface's own layout, nothing about colour. */
65
+ className?: string;
66
+ }
67
+
68
+ export function PanelMark({
69
+ panelId,
70
+ builtin,
71
+ icon,
72
+ name,
73
+ iconUrl,
74
+ color,
75
+ size,
76
+ idle,
77
+ className,
78
+ }: PanelMarkProps) {
79
+ const hues = usePanelHues();
80
+ const declared = color ? legiblePair(color) : null;
81
+ // The panel's hue, whichever family it is. A built-in view takes its id's hue
82
+ // (resolved over the whole set, so the answer cannot depend on the surface); a
83
+ // plugin takes the hue of its name, which is the one its own mark stamps. Both
84
+ // then need the LIGHT TONE for that hue — the solved table, since a panel's
85
+ // hue is only known at runtime and therefore cannot be a generated CSS row.
86
+ const hue = builtin ? panelHueOf(hues, panelId) : hashHue(name);
87
+ return (
88
+ <span
89
+ className={className ?? 'inline-flex'}
90
+ data-panel-mark=""
91
+ data-idle={idle === true ? '' : undefined}
92
+ // Stamped from the DATA (`panel.color`), not guessed from the stylesheet:
93
+ // the rail's idle filter is exempted by this attribute.
94
+ data-declared={declared ? '' : undefined}
95
+ style={{
96
+ '--panel-hue': String(hue),
97
+ '--panel-tone': iconTone(hue),
98
+ ...(declared ? { '--panel-color-light': declared.light } : {}),
99
+ ...(declared?.dark ? { '--panel-color-dark': declared.dark } : {}),
100
+ }}
101
+ >
102
+ {icon ?? <PluginMark name={name} iconUrl={iconUrl} color={color} size={size} />}
103
+ </span>
104
+ );
105
+ }
@@ -18,7 +18,7 @@
18
18
  */
19
19
 
20
20
  import { describe, expect, test } from 'bun:test';
21
- import { BRAND_ICONS, BRAND_VIEWBOX } from '@/client/components/common/file-icon/brand-paths';
21
+ import { BRAND_ICONS, BRAND_VIEWBOX } from '@/shared/lib/icons/file-brand-paths';
22
22
  import { PROVIDER_GLYPHS } from '@/client/components/common/provider-icon/glyphs';
23
23
 
24
24
  describe('PROVIDER_GLYPHS', () => {
@@ -104,4 +104,18 @@ describe('ProviderIcon ink', () => {
104
104
  expect(el.querySelector('svg')).toBeNull();
105
105
  expect(el.textContent).toBe('ti.');
106
106
  });
107
+
108
+ test('a built-in mark names itself, so the colour rule has a key', () => {
109
+ const svg = paint(h(ProviderIcon, { slug: 'claude' })).querySelector('svg');
110
+
111
+ expect(svg?.getAttribute('data-provider')).toBe('claude');
112
+ });
113
+
114
+ test('the attribute is the GLYPH name, not the spelling the caller passed', () => {
115
+ // `claude-code` folds to the `claude` glyph; the colour row is keyed on the
116
+ // glyph, so a caller's spelling cannot miss it.
117
+ const svg = paint(h(ProviderIcon, { slug: 'claude-code' })).querySelector('svg');
118
+
119
+ expect(svg?.getAttribute('data-provider')).toBe('claude');
120
+ });
107
121
  });
@@ -132,6 +132,10 @@ export function ProviderIcon({
132
132
  // carry their own attributes (`azure`'s `fill-opacity`, `synthetic`'s
133
133
  // stroked outline, the baked `currentColor` paths) keep them.
134
134
  fill="currentColor"
135
+ // The colour rule's key: `<html data-icon-style="color">` paints
136
+ // `svg[data-provider=…]` from the brand table, and the attribute is absent
137
+ // for a plugin's own art so no guessed brand colour can land on it.
138
+ data-provider={glyph.brandKey ?? undefined}
135
139
  // `block` + the explicit width/height are the containment contract: an
136
140
  // inline SVG sits on the text baseline and adds descender space, which is
137
141
  // how a mark "fits" its attributes yet still pushes a plate's edge.
@@ -58,18 +58,18 @@ describe('resolveProviderMark', () => {
58
58
  test('a registered glyph wins over the built-in mark for that provider', () => {
59
59
  const mark = resolveProviderMark(['deepseek'], [row('demo', 'deepseek', CUSTOM)]);
60
60
 
61
- expect(mark).toEqual({ viewBox: '0 0 32 32', body: '<path d="M4 4h24v24H4z"/>' });
61
+ expect(mark).toEqual({ viewBox: '0 0 32 32', body: '<path d="M4 4h24v24H4z"/>', brandKey: null });
62
62
  });
63
63
 
64
64
  test('a registration leaves every other provider on its built-in mark', () => {
65
65
  const rows = [row('demo', 'deepseek', CUSTOM)];
66
66
 
67
- expect(resolveProviderMark(['openai'], rows)).toBe(PROVIDER_GLYPHS.openai);
68
- expect(resolveProviderMark(['deepseek'], rows)).not.toBe(PROVIDER_GLYPHS.deepseek);
67
+ expect(resolveProviderMark(['openai'], rows)).toEqual({ ...PROVIDER_GLYPHS.openai, brandKey: 'openai' });
68
+ expect(resolveProviderMark(['deepseek'], rows)?.brandKey).toBeNull();
69
69
  });
70
70
 
71
71
  test('an unregistered provider is unchanged, unknown ones still fall to initials', () => {
72
- expect(resolveProviderMark(['deepseek'], [])).toBe(PROVIDER_GLYPHS.deepseek);
72
+ expect(resolveProviderMark(['deepseek'], [])).toEqual({ ...PROVIDER_GLYPHS.deepseek, brandKey: 'deepseek' });
73
73
  expect(resolveProviderMark(['my-private-gateway'], [])).toBeNull();
74
74
  });
75
75
 
@@ -95,9 +95,10 @@ describe('resolveProviderMark', () => {
95
95
 
96
96
  test('a malformed glyph falls through instead of rendering a broken mark', () => {
97
97
  // On a provider the built-in table knows, the built-in mark comes back.
98
- expect(resolveProviderMark(['deepseek'], [row('demo', 'deepseek', MALFORMED)])).toBe(
99
- PROVIDER_GLYPHS.deepseek,
100
- );
98
+ expect(resolveProviderMark(['deepseek'], [row('demo', 'deepseek', MALFORMED)])).toEqual({
99
+ ...PROVIDER_GLYPHS.deepseek,
100
+ brandKey: 'deepseek',
101
+ });
101
102
  // With no built-in either, there is nothing to draw and the badge runs.
102
103
  expect(resolveProviderMark(['acme'], [row('demo', 'acme', MALFORMED)])).toBeNull();
103
104
  });
@@ -62,6 +62,18 @@ export function parseRegisteredGlyph(source: string): ProviderGlyph | null {
62
62
  return { viewBox: box, body };
63
63
  }
64
64
 
65
+ /**
66
+ * A mark ready to draw, plus the built-in name it came from.
67
+ *
68
+ * `brandKey` is what the colour rule keys on (`BRAND_COLORS` in
69
+ * `shared/lib/models/provider/brand-color.ts`) and is `null` for a plugin's own
70
+ * art: a registration is the user's SVG, and painting it in a brand colour this
71
+ * build guessed would be a colour the author never chose.
72
+ */
73
+ export interface ResolvedProviderMark extends ProviderGlyph {
74
+ brandKey: string | null;
75
+ }
76
+
65
77
  /**
66
78
  * The mark to draw for a provider: a plugin's registration when one matches,
67
79
  * otherwise the built-in table entry.
@@ -78,7 +90,7 @@ export function parseRegisteredGlyph(source: string): ProviderGlyph | null {
78
90
  export function resolveProviderMark(
79
91
  candidates: ReadonlyArray<string | null | undefined>,
80
92
  registered: ListSlotRows<ProviderIconRegistration>,
81
- ): ProviderGlyph | null {
93
+ ): ResolvedProviderMark | null {
82
94
  for (const candidate of candidates) {
83
95
  if (!candidate) continue;
84
96
  const key = foldProviderKey(candidate);
@@ -86,9 +98,10 @@ export function resolveProviderMark(
86
98
  const entry = registered.find((row) => foldProviderKey(row.registration.provider) === key);
87
99
  if (!entry) continue;
88
100
  const glyph = parseRegisteredGlyph(entry.registration.glyph);
89
- if (glyph) return glyph;
101
+ if (glyph) return { ...glyph, brandKey: null };
90
102
  break;
91
103
  }
92
104
  const name = resolveProviderGlyph(...candidates);
93
- return name ? (PROVIDER_GLYPHS[name] ?? null) : null;
105
+ const glyph = name ? PROVIDER_GLYPHS[name] : undefined;
106
+ return glyph ? { ...glyph, brandKey: name ?? null } : null;
94
107
  }
@@ -167,7 +167,7 @@ export function SessionActionsMenu({
167
167
  // the position before the browser paints, so this never flashes.
168
168
  visibility: pos ? 'visible' : 'hidden',
169
169
  }}
170
- className="fixed z-[70] w-44 bg-paper border border-ink/15 rounded-lg shadow-xl py-1 text-xs text-ink font-sans"
170
+ className="glass-popover fixed z-[70] w-44 bg-paper border border-ink/15 rounded-lg shadow-xl py-1 text-xs text-ink font-sans"
171
171
  onClick={(e) => e.stopPropagation()}
172
172
  >
173
173
  {onRename && (
@@ -231,7 +231,7 @@ function OverflowMenu({ actions }: { actions: ToolbarOverflowAction[] }) {
231
231
  // settles the position before the browser paints.
232
232
  visibility: position ? 'visible' : 'hidden',
233
233
  }}
234
- className="fixed z-[80] w-52 bg-paper border border-ink/15 rounded-lg shadow-lg py-1 text-xs"
234
+ className="glass-popover fixed z-[80] w-52 bg-paper border border-ink/15 rounded-lg shadow-lg py-1 text-xs"
235
235
  >
236
236
  {actions.map((action) => (
237
237
  <button
@@ -39,7 +39,7 @@ import { pluginEnablementKey } from '@/shared/lib/workspace/panel-ids';
39
39
  import { PANEL_MARK_SIZE } from '@/shared/lib/workspace/right-panels';
40
40
  import { SESSIONS_VIEW_ID, isLeftDockPanelId } from '@/shared/lib/workspace/left-dock';
41
41
  import { BUILTIN_PANELS } from '@/client/components/workspace/panels/builtin';
42
- import { PluginMark } from '@/client/components/settings/categories/panel-plugins/PluginMark';
42
+ import { PanelMark } from '@/client/components/common/panel-mark';
43
43
  import { PanelVisibilityMenu, type PanelVisibilityItem } from '@/client/components/layout/PanelVisibilityMenu';
44
44
 
45
45
  interface ActivityBarProps {
@@ -126,7 +126,7 @@ export function ActivityBar({ side, activePanel, onChangePanel, isPanelOpen, has
126
126
  ref={navRef}
127
127
  onContextMenu={openMenu}
128
128
  aria-label={side === 'left' ? 'Left panel views' : 'Right panel views'}
129
- className={`w-11 flex-shrink-0 ${side === 'left' ? 'border-r' : 'border-l'} border-ink/10 bg-paper flex flex-col items-center py-3 space-y-2 z-10`}
129
+ className={`glass-chrome w-11 flex-shrink-0 ${side === 'left' ? 'border-r' : 'border-l'} border-ink/10 bg-paper flex flex-col items-center py-3 space-y-2 z-10`}
130
130
  >
131
131
  <div className="flex flex-col items-center space-y-1 w-full">
132
132
  {drawn.map((panel, index) => (
@@ -243,7 +243,26 @@ function PanelButton({
243
243
  title={panel.title}
244
244
  aria-label={panel.title}
245
245
  >
246
- {panel.builtin && panel.icon ? panel.icon : panel.builtin ? <PluginMark name={panel.label} size={PANEL_MARK_SIZE} /> : <PluginMark name={panel.name} iconUrl={panel.iconUrl} size={PANEL_MARK_SIZE} />}
246
+ {/* The mark's wrapper carries the state as OPACITY, not as a text colour:
247
+ a `text-ink/40` here outranks the colour mode's hue rule, which is what
248
+ kept this rail monochrome while the panels behind it were tinted. In
249
+ the monochrome mode nothing dims the ink twice — `[data-idle]` is only
250
+ read under `[data-icon-style="color"]`.
251
+
252
+ The colour itself is NOT decided here: `PanelMark` stamps the same
253
+ `--panel-hue` the phone's chip strip and Settings read, so this button
254
+ cannot disagree with them about what `Files` looks like. */}
255
+ <PanelMark
256
+ className="panel-rail-mark inline-flex"
257
+ panelId={panel.id}
258
+ builtin={panel.builtin}
259
+ icon={panel.builtin ? panel.icon : undefined}
260
+ name={panel.builtin ? panel.label : panel.name}
261
+ {...(panel.iconUrl ? { iconUrl: panel.iconUrl } : {})}
262
+ {...(panel.color ? { color: panel.color } : {})}
263
+ size={PANEL_MARK_SIZE}
264
+ idle={!isActive}
265
+ />
247
266
  {showGitDot ? (
248
267
  <span
249
268
  className="absolute top-1.5 right-1.5 w-1.5 h-1.5 rounded-full bg-info"
@@ -101,7 +101,14 @@ export function LeftDockView({
101
101
  if (!panel.builtin && !isActive) return null;
102
102
  const viewBody: PanelBodyProps = { ...body, active: isActive, enabled: isActive };
103
103
  return (
104
- <div key={panel.id} className={isActive ? 'w-full h-full' : 'hidden'}>
104
+ // `data-panel-chrome`, like the right column's slot: a plugin
105
+ // placed on the LEFT draws its own `bg-paper` root too, and the
106
+ // column it lands in is chrome — one marker, both columns.
107
+ <div
108
+ key={panel.id}
109
+ data-panel-chrome=""
110
+ className={isActive ? 'w-full h-full' : 'hidden'}
111
+ >
105
112
  <PanelHostProvider value={viewBody}>{panel.render(viewBody)}</PanelHostProvider>
106
113
  </div>
107
114
  );
@@ -110,7 +117,7 @@ export function LeftDockView({
110
117
  whose bundle has not loaded — a notice, never a blank column. The
111
118
  session list is always drawable, so it is never this case. */}
112
119
  {!active ? (
113
- <div className="w-full h-full">
120
+ <div data-panel-chrome="" className="w-full h-full">
114
121
  <PluginPanelBody panelKey={activeView} />
115
122
  </div>
116
123
  ) : null}
@@ -76,7 +76,7 @@ export function PanelVisibilityMenu({ anchor, items, hidden, onToggle, onClose }
76
76
  // the position before the browser paints, so this never flashes.
77
77
  visibility: pos ? 'visible' : 'hidden',
78
78
  }}
79
- className="fixed z-[70] w-52 bg-paper border border-ink/15 rounded-lg shadow-xl py-1 text-xs text-ink font-sans"
79
+ className="glass-popover fixed z-[70] w-52 bg-paper border border-ink/15 rounded-lg shadow-xl py-1 text-xs text-ink font-sans"
80
80
  onClick={(e) => e.stopPropagation()}
81
81
  >
82
82
  <div className="px-3 py-1 text-[10px] uppercase font-mono text-ink/40 border-b border-ink/10 mb-1">
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The glow the glass plane blurs.
8
+ *
9
+ * Three empty, palette-tinted blobs under the window's frosted plane
10
+ * (`glass.css` draws them from `--aura`, which each child maps to a theme token).
11
+ * They exist because a `backdrop-filter` can only sample what is painted behind
12
+ * it: over a flat canvas the frost is indistinguishable from a plain translucent
13
+ * panel, and the whole material reads as "slightly washed out" instead of glass.
14
+ *
15
+ * It renders in every document and is inert in the classic look — no rule
16
+ * targets it without `[data-surface="glass"]` — because a conditional mount here
17
+ * would be a second place that knows about the surface style.
18
+ */
19
+ export function WindowAura() {
20
+ return (
21
+ <div className="app-window-aura" aria-hidden="true">
22
+ <i />
23
+ <i />
24
+ <i />
25
+ </div>
26
+ );
27
+ }
@@ -122,7 +122,7 @@ export function LeftColumn({
122
122
  view, then the strip across the whole width again. The rail must not
123
123
  start above the title — it would run under the app's own titlebar —
124
124
  and the strip must not stop at the view's edge. */}
125
- <div className="flex flex-col h-full w-full bg-paper">
125
+ <div className="glass-chrome flex flex-col h-full w-full bg-paper">
126
126
  <SessionSidebarHeader streamStatus={streamStatus} onCollapse={onCollapse} />
127
127
  <div className="flex flex-1 min-h-0 w-full">
128
128
  {railEnabled ? (
@@ -62,7 +62,7 @@ export function TopNavbar({
62
62
  );
63
63
  return (
64
64
  <header
65
- className="h-10 flex-shrink-0 border-b border-ink/10 bg-paper flex items-center justify-between z-20 titlebar-drag-region select-none"
65
+ className="glass-chrome h-10 flex-shrink-0 border-b border-ink/10 bg-paper flex items-center justify-between z-20 titlebar-drag-region select-none"
66
66
  {...dragRegionProps()}
67
67
  style={{
68
68
  // The sidebar's own header carries the left inset while it is open.
@@ -83,7 +83,7 @@ export function TopNavbar({
83
83
  <PanelLeft size={16} />
84
84
  </button>
85
85
  <span className="relative font-bold text-sm tracking-tight hidden sm:flex items-center flex-shrink-0">
86
- <BrandWordmark />
86
+ <BrandWordmark glow />
87
87
  {/* Same badge placement the sidebar header and the phone use:
88
88
  the stream indicator belongs to the wordmark, not to the
89
89
  control cluster. */}
@@ -301,8 +301,17 @@ export function WorkspacePanels(props: WorkspacePanelsProps) {
301
301
  onClose: onToggleRightPanel,
302
302
  layout: 'desktop',
303
303
  };
304
+ // `glass-chrome` + `data-panel-chrome` on the SLOT, not on each
305
+ // view: the right panel is column chrome, exactly like the session
306
+ // sidebar, and ten built-in views plus every plugin panel paint
307
+ // their own `bg-paper` root. Marking the slot makes the column one
308
+ // surface and leaves a future view nothing to forget.
304
309
  return (
305
- <div key={panel.id} className={isActiveView ? 'w-full h-full' : 'hidden'}>
310
+ <div
311
+ key={panel.id}
312
+ data-panel-chrome=""
313
+ className={`glass-chrome w-full h-full${isActiveView ? '' : ' hidden'}`}
314
+ >
306
315
  <PanelHostProvider value={body}>{panel.render(body)}</PanelHostProvider>
307
316
  </div>
308
317
  );
@@ -310,7 +319,7 @@ export function WorkspacePanels(props: WorkspacePanelsProps) {
310
319
  {/* The selection names a panel that is switched off, uninstalled, or
311
320
  whose bundle has not loaded — a notice, never a blank column. */}
312
321
  {!activePanel ? (
313
- <div className="w-full h-full">
322
+ <div data-panel-chrome="" className="glass-chrome w-full h-full">
314
323
  <PluginPanelBody panelKey={activeRightPanel} />
315
324
  </div>
316
325
  ) : null}
@@ -9,6 +9,7 @@ import type { OpenedFile } from '@/shared/types/fs';
9
9
  import { useSessionState } from '@/client/hooks/workspace/session-state';
10
10
  import { TopNavbar } from '@/client/components/layout/desktop-layout/TopNavbar';
11
11
  import { WorkspacePanels } from '@/client/components/layout/desktop-layout/WorkspacePanels';
12
+ import { WindowAura } from '@/client/components/layout/WindowAura';
12
13
  import { usePanelSlotPlugins } from '@/client/components/workspace/plugin-panel/resolve';
13
14
  import { useAgentStreamStatus } from '@/client/hooks/chat/omp/status';
14
15
  import { usePanelWidths } from '@/client/hooks/workspace/panel-widths';
@@ -224,8 +225,9 @@ export function DesktopLayout({ sessionId, onSwitchToMobile, appSettings = {} }:
224
225
  return (
225
226
  <div
226
227
  data-testid="app-root"
227
- className="relative flex flex-col h-screen w-screen overflow-hidden bg-canvas text-ink font-sans selection:bg-ink selection:text-canvas"
228
+ className="app-window relative flex flex-col h-screen w-screen overflow-hidden bg-canvas text-ink font-sans selection:bg-ink selection:text-canvas"
228
229
  >
230
+ <WindowAura />
229
231
 
230
232
  {/* Main Workspace: the resizable LEFT dock (rail + view, see
231
233
  `LeftColumn`) plus the right stack. */}
@@ -122,8 +122,8 @@ export function CategoryHeader({
122
122
  ) : (
123
123
  <ProjectIcon
124
124
  size={15}
125
- className="text-ink/75"
126
- style={{ color: folder.accentColor || undefined }}
125
+ className="project-accent-mark text-ink/75"
126
+ style={folder.accentColor ? { '--project-accent': folder.accentColor } : undefined}
127
127
  />
128
128
  )}
129
129
  </span>
@@ -182,7 +182,7 @@ export function CategoryHeader({
182
182
  anchor={showMenu ? anchor : null}
183
183
  align="end"
184
184
  ariaLabel={`Options for ${folder.name}`}
185
- className="w-44 rounded-md border border-ink/15 bg-paper py-1 text-xs shadow-lg"
185
+ className="glass-popover w-44 rounded-md border border-ink/15 bg-paper py-1 text-xs shadow-lg"
186
186
  onClose={onCloseMenu}
187
187
  >
188
188
  <WorkspaceOptionsMenu
@@ -38,7 +38,7 @@ export function SessionSidebarHeader({
38
38
  same placement the phone's header uses — it reads as part of the
39
39
  title instead of competing with the icon controls for a slot. */}
40
40
  <span className="relative font-bold text-sm tracking-tight flex items-center">
41
- <BrandWordmark />
41
+ <BrandWordmark glow />
42
42
  <span className="absolute -top-0.5 -right-1.5 flex">
43
43
  <StreamStatusDot status={streamStatus} />
44
44
  </span>
@@ -101,7 +101,7 @@ export function ToolbarOverflowMenu({
101
101
  {open && (
102
102
  <div
103
103
  role="menu"
104
- className={`absolute right-0 top-full mt-2 w-52 bg-paper border border-ink/15 shadow-lg z-50 py-1 text-xs ${
104
+ className={`glass-popover absolute right-0 top-full mt-2 w-52 bg-paper border border-ink/15 shadow-lg z-50 py-1 text-xs ${
105
105
  mobile ? 'rounded-xl p-2' : 'rounded-lg'
106
106
  }`}
107
107
  >
@@ -221,7 +221,7 @@ export function SessionSidebarToolbar({
221
221
  <ArrowUpDown size={14} />
222
222
  </button>
223
223
  {optionsOpen && (
224
- <div className="absolute right-0 top-full mt-2 w-48 bg-paper border border-ink/15 rounded-lg shadow-lg z-50 py-1" onMouseLeave={onCloseOptions}>
224
+ <div className="glass-popover absolute right-0 top-full mt-2 w-48 bg-paper border border-ink/15 rounded-lg shadow-lg z-50 py-1" onMouseLeave={onCloseOptions}>
225
225
  <SortMenu variant="desktop" sortOption={sortOption} onSortChange={onSortChange} />
226
226
  </div>
227
227
  )}
@@ -44,11 +44,11 @@ export function AboutModal({ isOpen, onClose, updates, onToast }: AboutModalProp
44
44
  return createPortal(
45
45
  <>
46
46
  <div
47
- className="fixed inset-0 bg-ink/40 backdrop-blur-[2px] z-50 flex items-center justify-center p-4 animate-in fade-in duration-200"
47
+ className="fixed inset-0 modal-scrim backdrop-blur-[2px] z-50 flex items-center justify-center p-4 animate-in fade-in duration-200"
48
48
  onClick={onClose}
49
49
  >
50
50
  <div
51
- className="relative bg-paper border border-ink/15 rounded-2xl shadow-2xl w-full max-w-[340px] p-6 text-center text-ink select-none"
51
+ className="glass-overlay relative bg-paper border border-ink/15 rounded-2xl shadow-2xl w-full max-w-[340px] p-6 text-center text-ink select-none"
52
52
  onClick={(e) => e.stopPropagation()}
53
53
  >
54
54
  {/* Close Button */}
@@ -136,7 +136,7 @@ export function SidebarActionRow({
136
136
  </button>
137
137
  {optionsOpen && (
138
138
  <div
139
- className="absolute right-0 top-full z-50 mt-1 w-48 rounded-lg border border-ink/15 bg-paper py-1 shadow-lg"
139
+ className="glass-popover absolute right-0 top-full z-50 mt-1 w-48 rounded-lg border border-ink/15 bg-paper py-1 shadow-lg"
140
140
  onMouseLeave={onCloseOptions}
141
141
  >
142
142
  <SortMenu variant="desktop" sortOption={sortOption} onSortChange={onSortChange} />