@kabmo-labs/kabmo 0.18.0 → 0.19.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.
- package/README.md +10 -7
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +475 -474
- package/dist/client/static/js/{index-tc09dtca.js → index-fcee4c13.js} +766 -765
- package/dist/client/static/js/index-sxdw908m.css +1 -0
- package/marketplace/plugins/command-runner/package.json +3 -2
- package/marketplace/plugins/git-forge/package.json +3 -2
- package/marketplace/plugins/session-info/package.json +3 -2
- package/marketplace/plugins/stats/package.json +3 -2
- package/package.json +3 -1
- package/src/client/components/auth/login-screen/index.tsx +2 -1
- package/src/client/components/common/ComposerPicker.tsx +1 -1
- package/src/client/components/common/FolderPicker.tsx +2 -2
- package/src/client/components/common/Modal.tsx +2 -2
- package/src/client/components/common/PWAInstallButton.tsx +2 -2
- package/src/client/components/common/ViewportSelector.tsx +1 -1
- package/src/client/components/common/anchored-menu/index.tsx +5 -1
- package/src/client/components/common/batch-selection/SelectionCheckbox.tsx +2 -1
- package/src/client/components/common/brand-wordmark/index.test.tsx +13 -2
- package/src/client/components/common/brand-wordmark/index.tsx +13 -2
- package/src/client/components/common/checkbox/style.test.ts +139 -0
- package/src/client/components/common/checkbox/style.ts +51 -0
- package/src/client/components/common/context-usage-button/index.tsx +2 -2
- package/src/client/components/common/file-icon/index.tsx +23 -9
- package/src/client/components/common/header-controls/MoreMenu.tsx +1 -1
- package/src/client/components/common/markdown-review/ReviewPopover.tsx +1 -1
- package/src/client/components/common/panel-mark/index.tsx +97 -0
- package/src/client/components/common/provider-icon/glyphs.test.ts +1 -1
- package/src/client/components/common/provider-icon/index.test.ts +14 -0
- package/src/client/components/common/provider-icon/index.tsx +4 -0
- package/src/client/components/common/provider-icon/resolve.test.ts +8 -7
- package/src/client/components/common/provider-icon/resolve.ts +16 -3
- package/src/client/components/common/session-actions-menu/index.tsx +1 -1
- package/src/client/components/common/toolbar-row/index.tsx +1 -1
- package/src/client/components/layout/ActivityBar.tsx +22 -3
- package/src/client/components/layout/LeftDock.tsx +9 -2
- package/src/client/components/layout/PanelVisibilityMenu.tsx +1 -1
- package/src/client/components/layout/WindowAura.tsx +27 -0
- package/src/client/components/layout/desktop-layout/LeftColumn.tsx +1 -1
- package/src/client/components/layout/desktop-layout/TopNavbar.tsx +2 -2
- package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +11 -2
- package/src/client/components/layout/desktop-layout/index.tsx +3 -1
- package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +3 -3
- package/src/client/components/layout/session-sidebar/Header.tsx +1 -1
- package/src/client/components/layout/session-sidebar/OverflowMenu.tsx +1 -1
- package/src/client/components/layout/session-sidebar/Toolbar.tsx +1 -1
- package/src/client/components/layout/session-sidebar/about-modal/index.tsx +2 -2
- package/src/client/components/layout/session-sidebar/modern/ActionRow.tsx +1 -1
- package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +13 -5
- package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +2 -2
- package/src/client/components/layout/session-sidebar/scheduler-modal/TaskForm.tsx +2 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +2 -2
- package/src/client/components/mobile/LayoutWrapper.tsx +3 -1
- package/src/client/components/mobile/mobile-main-view/Header.tsx +2 -2
- package/src/client/components/mobile/mobile-session-sidebar/Header.tsx +1 -1
- package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +1 -1
- package/src/client/components/mobile/panel-chips.tsx +10 -2
- package/src/client/components/settings/Modal.tsx +4 -4
- package/src/client/components/settings/ProjectSelectorDropdown.tsx +2 -2
- package/src/client/components/settings/apply-side-effects.test.ts +30 -0
- package/src/client/components/settings/apply-side-effects.ts +14 -0
- package/src/client/components/settings/categories/AppearanceSettings.tsx +6 -0
- package/src/client/components/settings/categories/appearance-settings/EditorBlameSection.tsx +2 -1
- package/src/client/components/settings/categories/appearance-settings/EditorTypingSection.tsx +2 -1
- package/src/client/components/settings/categories/appearance-settings/IconStyleSection.tsx +144 -0
- package/src/client/components/settings/categories/appearance-settings/SurfaceStyleSection.test.tsx +120 -0
- package/src/client/components/settings/categories/appearance-settings/SurfaceStyleSection.tsx +180 -0
- package/src/client/components/settings/categories/mcp-settings/DetailPane.tsx +2 -1
- package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +2 -2
- package/src/client/components/settings/categories/omp-settings/OrderedChips.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/AvailableList.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/BuiltinList.tsx +21 -3
- package/src/client/components/settings/categories/panel-plugins/PluginCard.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/PluginMark.test.ts +51 -2
- package/src/client/components/settings/categories/panel-plugins/PluginMark.tsx +43 -10
- package/src/client/components/settings/categories/plugin-settings/DetailPane.tsx +2 -1
- package/src/client/components/settings/categories/plugin-settings/SettingsSection.tsx +2 -1
- package/src/client/components/settings/categories/project-settings/ModelDropdown.tsx +1 -1
- package/src/client/components/settings/categories/project-settings/WorktreeSettings.tsx +2 -1
- package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/EntryAdvanced.tsx +3 -2
- package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +2 -2
- package/src/client/components/settings/categories/skill-catalog/GitImportPanel.tsx +3 -2
- package/src/client/components/settings/categories/skill-settings/DetailHeader.tsx +2 -1
- package/src/client/components/settings/categories/token-usage-settings/Controls.tsx +1 -1
- package/src/client/components/workspace/btw-panel/TopicMenu.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/AiMessageFooter.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +4 -3
- package/src/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/index.tsx +2 -6
- package/src/client/components/workspace/context-panel/CostBreakdownPopover.tsx +1 -1
- package/src/client/components/workspace/diff-panel/index.tsx +2 -2
- package/src/client/components/workspace/editor/PluginRail.tsx +1 -1
- package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +2 -2
- package/src/client/components/workspace/editor/TabContextMenu.tsx +1 -1
- package/src/client/components/workspace/editor/Tabs.tsx +1 -1
- package/src/client/components/workspace/file-explorer/ContextMenu.tsx +1 -1
- package/src/client/components/workspace/file-explorer/Modals.tsx +10 -10
- package/src/client/components/workspace/file-explorer/RootMenu.tsx +1 -1
- package/src/client/components/workspace/git-panel/BranchToolbar.test.tsx +130 -0
- package/src/client/components/workspace/git-panel/BranchToolbar.tsx +21 -11
- package/src/client/components/workspace/git-panel/CommitBox.tsx +2 -1
- package/src/client/components/workspace/git-panel/Modals.tsx +2 -2
- package/src/client/components/workspace/git-panel/StashSection.tsx +2 -1
- package/src/client/components/workspace/git-panel/branch-modal/DeleteDialog.tsx +2 -1
- package/src/client/components/workspace/git-panel/branch-modal/RenameDialog.tsx +2 -1
- package/src/client/components/workspace/git-panel/commit-modal/index.tsx +2 -2
- package/src/client/components/workspace/git-panel/index.tsx +7 -0
- package/src/client/components/workspace/model-dropdown/Panel.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/SpecsTooltip.tsx +1 -1
- package/src/client/components/workspace/plugin-panel/catalog.tsx +7 -0
- package/src/client/components/workspace/plugin-panel/resolve.tsx +4 -0
- package/src/client/components/workspace/search-panel/Body.tsx +1 -1
- package/src/client/components/workspace/usage-panel/ProviderSelect.tsx +1 -1
- package/src/client/glass.css +785 -0
- package/src/client/glass.test.ts +346 -0
- package/src/client/hooks/ui/glass-support.ts +57 -0
- package/src/client/hooks/ui/icon-style.ts +59 -0
- package/src/client/hooks/ui/stuck-header.test.ts +188 -0
- package/src/client/hooks/ui/stuck-header.ts +91 -0
- package/src/client/hooks/ui/style-attributes.test.ts +120 -0
- package/src/client/hooks/ui/surface-style.ts +56 -0
- package/src/client/hooks/workspace/panel-hues.ts +23 -0
- package/src/client/main.tsx +10 -0
- package/src/client/tailwind.css +264 -11
- package/src/server/lib/assets/shell-attributes.server.ts +80 -0
- package/src/server/lib/assets/shell-attributes.test.ts +86 -0
- package/src/server/lib/omp/rpc/frame-fold-host.test-util.ts +1 -0
- package/src/server/lib/omp/rpc/frame-fold-signals.test.ts +2 -30
- package/src/server/lib/omp/rpc/frame-fold.test.ts +55 -0
- package/src/server/lib/omp/rpc/frame-fold.ts +4 -0
- package/src/server/lib/omp/rpc/manager.ts +2 -2
- package/src/server/lib/omp/rpc/process-helpers.ts +11 -0
- package/src/server/lib/omp/rpc/process.test.ts +106 -0
- package/src/server/lib/omp/rpc/process.ts +28 -4
- package/src/server/lib/omp/rpc/run-settle.server.ts +12 -0
- package/src/server/lib/omp/rpc/run-settle.test.ts +22 -0
- package/src/server/lib/omp/rpc/session-command-guards.ts +5 -0
- package/src/server/lib/omp/rpc/session-commands.test.ts +9 -1
- package/src/server/lib/omp/rpc/session-commands.ts +11 -0
- package/src/server/lib/omp/rpc/terminal-settle.ts +29 -7
- package/src/server/lib/panels/bundled-catalog.server.ts +1 -0
- package/src/server/lib/panels/manifest.test.ts +20 -0
- package/src/server/lib/panels/manifest.ts +12 -0
- package/src/server/lib/panels/scan.server.ts +4 -0
- package/src/server/lib/queue/delivery-dispatch.server.test.ts +48 -0
- package/src/server/lib/queue/delivery-harness.ts +8 -4
- package/src/server/lib/queue/delivery.server.test.ts +29 -0
- package/src/server/lib/queue/delivery.server.ts +39 -0
- package/src/server/lib/queue/store.server.test.ts +22 -2
- package/src/server/lib/queue/store.server.ts +33 -11
- package/src/server/plugins/ssr.ts +22 -5
- package/src/shared/lib/icons/file-brand-color.ts +38 -0
- package/src/shared/lib/icons/icon-paint-css.test.ts +234 -0
- package/src/shared/lib/icons/icon-paint-css.ts +284 -0
- package/src/shared/lib/icons/icon-paint-panel.ts +100 -0
- package/src/shared/lib/icons/tint-hues.generated.ts +230 -0
- package/src/shared/lib/icons/tint.test.ts +273 -0
- package/src/shared/lib/icons/tint.ts +219 -0
- package/src/shared/lib/models/provider/brand-color.test.ts +116 -0
- package/src/shared/lib/models/provider/brand-color.ts +103 -0
- package/src/shared/lib/omp/rpc/frame.test.ts +65 -0
- package/src/shared/lib/omp/rpc/frame.ts +58 -3
- package/src/shared/lib/settings/defaults.ts +4 -0
- package/src/shared/lib/theme/catalog.test.ts +5 -4
- package/src/shared/lib/theme/catalog.ts +18 -3
- package/src/shared/lib/theme/glass-support.test.ts +38 -0
- package/src/shared/lib/theme/glass-support.ts +73 -0
- package/src/shared/lib/theme/icon-style.test.ts +74 -0
- package/src/shared/lib/theme/icon-style.ts +90 -0
- package/src/shared/lib/theme/legibility.ts +91 -0
- package/src/shared/lib/theme/palettes/dark-extended.ts +152 -0
- package/src/shared/lib/theme/palettes/light-extended.ts +157 -0
- package/src/shared/lib/theme/surface-style.test.ts +68 -0
- package/src/shared/lib/theme/surface-style.ts +91 -0
- package/src/shared/lib/theme/theme.test.ts +11 -7
- package/src/shared/lib/workspace/panel-hues.test.ts +68 -0
- package/src/shared/lib/workspace/panel-hues.ts +57 -0
- package/src/shared/types/panels-registry.ts +6 -0
- package/src/shared/types/panels.ts +14 -0
- package/src/shared/types/settings/state.ts +26 -0
- package/src/test-support/fake-omp-frames.ts +163 -0
- package/dist/client/static/js/index-hp75vsv9.css +0 -1
- /package/src/{client/components/common/file-icon/brand-paths.ts → shared/lib/icons/file-brand-paths.ts} +0 -0
|
@@ -26,11 +26,13 @@
|
|
|
26
26
|
* `rgb(138,138,138)` in both the inactive and the active state, against a
|
|
27
27
|
* built-in's `text-ink/40` → `text-ink`.
|
|
28
28
|
*
|
|
29
|
-
* A mask has no document to inherit into, so the host supplies the paint
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
29
|
+
* A mask has no document to inherit into, so the host supplies the paint and the
|
|
30
|
+
* file supplies only its alpha channel. That paint is `var(--plugin-color,
|
|
31
|
+
* currentColor)`: monochrome resolves to the ink the mask always used, and
|
|
32
|
+
* `[data-icon-style="color"]` defines `--plugin-color` from a hue derived from
|
|
33
|
+
* the plugin's own name — so a marketplace mark gets its own colour without the
|
|
34
|
+
* host guessing one at build time, and without the component reading the mode
|
|
35
|
+
* from JavaScript.
|
|
34
36
|
*
|
|
35
37
|
* A RASTER mark keeps the `<img>`. Masking a PNG or a JPEG would throw away its
|
|
36
38
|
* colour — a brand logo the plugin chose to ship — and a JPEG has no alpha to
|
|
@@ -38,17 +40,41 @@
|
|
|
38
40
|
*/
|
|
39
41
|
|
|
40
42
|
import { providerInitials } from '@/shared/lib/models/provider/glyph';
|
|
43
|
+
import { hashHue } from '@/shared/lib/icons/tint';
|
|
44
|
+
import { legiblePair } from '@/shared/lib/theme/legibility';
|
|
41
45
|
|
|
42
46
|
interface PluginMarkProps {
|
|
43
47
|
name: string;
|
|
44
48
|
/** The registry's content-addressed icon URL, when the plugin declares one. */
|
|
45
49
|
iconUrl?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The mark colour the plugin's manifest declares (`color`), when it does.
|
|
52
|
+
*
|
|
53
|
+
* Set as a custom property pair (`--plugin-declared-light`/`-dark`), not as a
|
|
54
|
+
* colour, so the STYLE still decides whether it is used: `monochrome` leaves
|
|
55
|
+
* the mark in the palette ink, and the declared brand colour only appears under
|
|
56
|
+
* `[data-icon-style="color"]`. Two values because a brand hex is legible on one
|
|
57
|
+
* variant and not the other; `legiblePair` derives both.
|
|
58
|
+
*/
|
|
59
|
+
color?: string;
|
|
46
60
|
size?: number;
|
|
47
61
|
/** Filled background behind the fallback, for a card that wants a tile. */
|
|
48
62
|
tile?: boolean;
|
|
49
63
|
}
|
|
50
64
|
|
|
51
|
-
export function PluginMark({ name, iconUrl, size = 16, tile = false }: PluginMarkProps) {
|
|
65
|
+
export function PluginMark({ name, iconUrl, color, size = 16, tile = false }: PluginMarkProps) {
|
|
66
|
+
// The mark's own colour, on the same wheel as every functional glyph. Set as a
|
|
67
|
+
// custom property rather than a colour so the STYLE decides whether it is used:
|
|
68
|
+
// monochrome leaves `--plugin-color` undefined and the mark keeps the ink.
|
|
69
|
+
// A declared brand colour is clamped the way every other brand mark is
|
|
70
|
+
// (`legiblePair`): a bright hex like `#34d399` is 1.9:1 on white paper, so the
|
|
71
|
+
// light and dark values are derived instead of trusted.
|
|
72
|
+
const declared = color ? legiblePair(color) : null;
|
|
73
|
+
const hue = {
|
|
74
|
+
'--icon-hue': String(hashHue(name)),
|
|
75
|
+
...(declared ? { '--plugin-declared-light': declared.light } : {}),
|
|
76
|
+
...(declared?.dark ? { '--plugin-declared-dark': declared.dark } : {}),
|
|
77
|
+
} as Record<string, string>;
|
|
52
78
|
if (iconUrl) {
|
|
53
79
|
// The QUERY is stripped before the extension is read: the registry's URL is
|
|
54
80
|
// `/api/panels/icon/<plugin>/<path>?v=<hash>`, so the extension is on the
|
|
@@ -59,13 +85,15 @@ export function PluginMark({ name, iconUrl, size = 16, tile = false }: PluginMar
|
|
|
59
85
|
return (
|
|
60
86
|
<span
|
|
61
87
|
aria-hidden="true"
|
|
88
|
+
data-plugin-mark=""
|
|
62
89
|
className="inline-block flex-shrink-0"
|
|
63
90
|
style={{
|
|
91
|
+
...hue,
|
|
64
92
|
width: size,
|
|
65
93
|
height: size,
|
|
66
|
-
// The ink the mask is cut out of
|
|
67
|
-
//
|
|
68
|
-
backgroundColor: 'currentColor',
|
|
94
|
+
// The ink the mask is cut out of — or the plugin's own colour, which
|
|
95
|
+
// `[data-icon-style="color"]` supplies through `--plugin-color`.
|
|
96
|
+
backgroundColor: 'var(--plugin-color, currentColor)',
|
|
69
97
|
maskImage: `url("${iconUrl}")`,
|
|
70
98
|
maskSize: 'contain',
|
|
71
99
|
maskRepeat: 'no-repeat',
|
|
@@ -98,10 +126,15 @@ export function PluginMark({ name, iconUrl, size = 16, tile = false }: PluginMar
|
|
|
98
126
|
return (
|
|
99
127
|
<span
|
|
100
128
|
aria-hidden="true"
|
|
101
|
-
|
|
129
|
+
data-plugin-mark=""
|
|
130
|
+
className={`inline-flex flex-shrink-0 items-center justify-center font-semibold lowercase leading-none ${
|
|
102
131
|
tile ? 'rounded bg-ink/5' : ''
|
|
103
132
|
}`}
|
|
104
133
|
style={{
|
|
134
|
+
...hue,
|
|
135
|
+
// 45% of the palette ink is what `text-ink/45` meant; stated as a value
|
|
136
|
+
// so the colour mode can replace it without a second class.
|
|
137
|
+
color: 'var(--plugin-color, color-mix(in srgb, var(--theme-ink) 45%, transparent))',
|
|
105
138
|
height: size,
|
|
106
139
|
minWidth: size,
|
|
107
140
|
paddingInline: Math.max(1, Math.round(size * 0.12)),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CHECKBOX_CLASS } from '@/client/components/common/checkbox/style';
|
|
1
2
|
import { useEffect, useState } from 'preact/hooks';
|
|
2
3
|
import { ExternalLink, RotateCcw, Trash2 } from 'lucide-preact';
|
|
3
4
|
import type { PluginFeatureSpec, PluginItem } from '@/shared/types';
|
|
@@ -268,7 +269,7 @@ function FeaturesSection({
|
|
|
268
269
|
: prev.filter((name) => name !== feature.name),
|
|
269
270
|
)
|
|
270
271
|
}
|
|
271
|
-
className=
|
|
272
|
+
className={`${CHECKBOX_CLASS} mt-0.5 accent-ink cursor-pointer disabled:opacity-60`}
|
|
272
273
|
/>
|
|
273
274
|
<span className="min-w-0">
|
|
274
275
|
<span className="text-xs font-medium text-ink font-mono">{feature.name}</span>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CHECKBOX_CLASS } from '@/client/components/common/checkbox/style';
|
|
1
2
|
import { useEffect, useState } from 'preact/hooks';
|
|
2
3
|
import { Check, ChevronDown, ChevronRight, KeyRound } from 'lucide-preact';
|
|
3
4
|
import type { PluginItem, PluginSettingSpec } from '@/shared/types';
|
|
@@ -172,7 +173,7 @@ function SettingInput({
|
|
|
172
173
|
checked={value === 'true'}
|
|
173
174
|
disabled={disabled}
|
|
174
175
|
onChange={(event) => onChange(event.currentTarget.checked ? 'true' : 'false')}
|
|
175
|
-
className=
|
|
176
|
+
className={`${CHECKBOX_CLASS} accent-ink cursor-pointer`}
|
|
176
177
|
/>
|
|
177
178
|
<span className="text-[11px] text-ink/70">{value === 'true' ? 'true' : 'false'}</span>
|
|
178
179
|
</label>
|
|
@@ -95,7 +95,7 @@ export function ProjectModelDropdown({
|
|
|
95
95
|
</button>
|
|
96
96
|
|
|
97
97
|
{isOpen && (
|
|
98
|
-
<div className="absolute right-0 mt-1 w-[288px] bg-paper border border-ink/15 rounded-lg shadow-xl z-50 overflow-hidden">
|
|
98
|
+
<div className="glass-popover absolute right-0 mt-1 w-[288px] bg-paper border border-ink/15 rounded-lg shadow-xl z-50 overflow-hidden">
|
|
99
99
|
<div className="flex items-center gap-1.5 px-2.5 py-2 border-b border-ink/10">
|
|
100
100
|
<Search size={12} className="text-ink/40 shrink-0" />
|
|
101
101
|
<input
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* the next create uses — including one started by a scheduled task.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
+
import { CHECKBOX_CLASS } from '@/client/components/common/checkbox/style';
|
|
21
22
|
import { useState } from 'preact/hooks';
|
|
22
23
|
import { readKabmoSetting, writeSetting } from '@/shared/lib/settings/client';
|
|
23
24
|
import { useWorktrees } from '@/client/hooks/workspace/worktree/index';
|
|
@@ -131,7 +132,7 @@ export function WorktreeSettings({ root, folderId, onReport }: WorktreeSettingsP
|
|
|
131
132
|
setCarry(next);
|
|
132
133
|
writeSetting(WORKTREE_CARRY_SETTING, next);
|
|
133
134
|
}}
|
|
134
|
-
className=
|
|
135
|
+
className={`${CHECKBOX_CLASS} mt-0.5`}
|
|
135
136
|
/>
|
|
136
137
|
<span className="flex flex-col gap-0.5">
|
|
137
138
|
<span className="text-xs font-semibold text-ink">Copy ignored files into new worktrees</span>
|
|
@@ -56,14 +56,14 @@ export function DeleteProviderModal({
|
|
|
56
56
|
|
|
57
57
|
return (
|
|
58
58
|
<div
|
|
59
|
-
className="fixed inset-0 z-[70] flex items-center justify-center
|
|
59
|
+
className="fixed inset-0 z-[70] flex items-center justify-center modal-scrim backdrop-blur-[2px] p-4"
|
|
60
60
|
onClick={isDeleting ? undefined : onClose}
|
|
61
61
|
role="dialog"
|
|
62
62
|
aria-modal="true"
|
|
63
63
|
aria-label="Confirm provider deletion"
|
|
64
64
|
>
|
|
65
65
|
<div
|
|
66
|
-
className="bg-paper border border-ink/20 rounded-xl shadow-2xl w-[min(94vw,460px)] max-h-full overflow-y-auto scrollbar-overlay-container text-ink"
|
|
66
|
+
className="glass-overlay bg-paper border border-ink/20 rounded-xl shadow-2xl w-[min(94vw,460px)] max-h-full overflow-y-auto scrollbar-overlay-container text-ink"
|
|
67
67
|
onClick={(e) => e.stopPropagation()}
|
|
68
68
|
>
|
|
69
69
|
<div className="flex items-center gap-3 px-5 py-4 border-b border-ink/10">
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CHECKBOX_CLASS } from '@/client/components/common/checkbox/style';
|
|
1
2
|
import { Plus, X } from 'lucide-preact';
|
|
2
3
|
import { PROVIDER_DISCOVERY_TYPES } from '@/shared/lib/models/provider/dialect';
|
|
3
4
|
import type { ProviderDiscoveryType } from '@/shared/types/settings/provider';
|
|
@@ -95,7 +96,7 @@ export function EntryAdvanced({
|
|
|
95
96
|
type="checkbox"
|
|
96
97
|
checked={discovery.injectV1 === true}
|
|
97
98
|
onChange={(e) => patch({ injectV1: e.currentTarget.checked })}
|
|
98
|
-
className=
|
|
99
|
+
className={`${CHECKBOX_CLASS} mt-0.5`}
|
|
99
100
|
/>
|
|
100
101
|
<span>
|
|
101
102
|
Skip the forced <span className="font-mono">/v1</span> prefix — for a gateway rooted at a
|
|
@@ -109,7 +110,7 @@ export function EntryAdvanced({
|
|
|
109
110
|
type="checkbox"
|
|
110
111
|
checked={discovery.advertisedReasoning === true}
|
|
111
112
|
onChange={(e) => patch({ advertisedReasoning: e.currentTarget.checked })}
|
|
112
|
-
className=
|
|
113
|
+
className={`${CHECKBOX_CLASS} mt-0.5`}
|
|
113
114
|
/>
|
|
114
115
|
<span>Trust the reasoning ladder the endpoint advertises in its model rows.</span>
|
|
115
116
|
</label>
|
|
@@ -79,14 +79,14 @@ export function LogoutProviderModal({ isOpen, provider, onClose, onSignedOut }:
|
|
|
79
79
|
|
|
80
80
|
return (
|
|
81
81
|
<div
|
|
82
|
-
className="fixed inset-0 z-[70] flex items-center justify-center
|
|
82
|
+
className="fixed inset-0 z-[70] flex items-center justify-center modal-scrim backdrop-blur-[2px] p-4"
|
|
83
83
|
onClick={busyId !== null ? undefined : onClose}
|
|
84
84
|
role="dialog"
|
|
85
85
|
aria-modal="true"
|
|
86
86
|
aria-label="Confirm sign out"
|
|
87
87
|
>
|
|
88
88
|
<div
|
|
89
|
-
className="bg-paper border border-ink/20 rounded-xl shadow-2xl w-[min(94vw,480px)] max-h-full overflow-y-auto scrollbar-overlay-container text-ink"
|
|
89
|
+
className="glass-overlay bg-paper border border-ink/20 rounded-xl shadow-2xl w-[min(94vw,480px)] max-h-full overflow-y-auto scrollbar-overlay-container text-ink"
|
|
90
90
|
onClick={(e) => e.stopPropagation()}
|
|
91
91
|
>
|
|
92
92
|
<div className="flex items-center gap-3 px-5 py-4 border-b border-ink/10">
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CHECKBOX_CLASS } from '@/client/components/common/checkbox/style';
|
|
1
2
|
import { useEffect, useState } from 'preact/hooks';
|
|
2
3
|
import type { ComponentChildren } from 'preact';
|
|
3
4
|
import { AlertCircle, Check, GitBranch, Loader2, Search } from 'lucide-preact';
|
|
@@ -123,7 +124,7 @@ export function GitImportPanel({ controller, onInstalled }: GitImportPanelProps)
|
|
|
123
124
|
checked={isSelected}
|
|
124
125
|
disabled={Boolean(blocked)}
|
|
125
126
|
onChange={() => controller.toggle(skill.path)}
|
|
126
|
-
className=
|
|
127
|
+
className={`${CHECKBOX_CLASS} mt-0.5 accent-ink cursor-pointer disabled:cursor-not-allowed`}
|
|
127
128
|
/>
|
|
128
129
|
<div className="min-w-0 flex-1">
|
|
129
130
|
<div className="flex items-center gap-2 min-w-0">
|
|
@@ -190,7 +191,7 @@ export function GitImportPanel({ controller, onInstalled }: GitImportPanelProps)
|
|
|
190
191
|
type="checkbox"
|
|
191
192
|
checked={overwrite}
|
|
192
193
|
onChange={(event) => controller.setOverwrite(event.currentTarget.checked)}
|
|
193
|
-
className=
|
|
194
|
+
className={`${CHECKBOX_CLASS} mt-0.5 accent-ink cursor-pointer`}
|
|
194
195
|
/>
|
|
195
196
|
<span className="text-[11px] text-ink/70 leading-relaxed">
|
|
196
197
|
Replace skills that already have the same name
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CHECKBOX_CLASS } from '@/client/components/common/checkbox/style';
|
|
1
2
|
import type { ComponentChildren } from 'preact';
|
|
2
3
|
import { AlertCircle, Check, Eye, EyeOff, Loader2, Lock, RefreshCw, Save, Sparkles, Trash2 } from 'lucide-preact';
|
|
3
4
|
import type { SkillItem } from '@/shared/types';
|
|
@@ -147,7 +148,7 @@ export function SkillDetailHeader({
|
|
|
147
148
|
checked={hidden}
|
|
148
149
|
disabled={readOnly}
|
|
149
150
|
onChange={(event) => onHiddenChange(event.currentTarget.checked)}
|
|
150
|
-
className=
|
|
151
|
+
className={`${CHECKBOX_CLASS} mt-0.5 accent-ink cursor-pointer disabled:cursor-not-allowed`}
|
|
151
152
|
/>
|
|
152
153
|
<span className="text-[11px] text-ink/75 leading-relaxed">
|
|
153
154
|
<span className="inline-flex items-center gap-1">
|
|
@@ -75,7 +75,7 @@ export function TokenUsageControls({
|
|
|
75
75
|
// `right-0` menu hung off its right edge landed at x=-157. From
|
|
76
76
|
// `sm` up the trigger is narrow and right-aligned, so the menu
|
|
77
77
|
// follows it.
|
|
78
|
-
<div className="absolute left-0 top-full z-30 mt-1 w-64 max-w-[calc(100vw-2rem)] divide-y divide-ink/5 rounded-md border border-ink/15 bg-paper py-1 text-[11px] shadow-lg sm:left-auto sm:right-0">
|
|
78
|
+
<div className="glass-popover absolute left-0 top-full z-30 mt-1 w-64 max-w-[calc(100vw-2rem)] divide-y divide-ink/5 rounded-md border border-ink/15 bg-paper py-1 text-[11px] shadow-lg sm:left-auto sm:right-0">
|
|
79
79
|
{ranges.map((entry) => (
|
|
80
80
|
<button
|
|
81
81
|
key={entry.id}
|
|
@@ -59,7 +59,7 @@ export function BtwTopicMenu({ topics, activeTopicId, onSelectTopic, onDeleteTop
|
|
|
59
59
|
ref={menuRef}
|
|
60
60
|
role="menu"
|
|
61
61
|
aria-label="Side question history"
|
|
62
|
-
className="absolute left-0 top-full mt-1 z-50 bg-paper border border-ink/15 rounded-lg shadow-xl min-w-[280px] max-h-72 overflow-y-auto scrollbar-overlay-container p-1"
|
|
62
|
+
className="glass-popover absolute left-0 top-full mt-1 z-50 bg-paper border border-ink/15 rounded-lg shadow-xl min-w-[280px] max-h-72 overflow-y-auto scrollbar-overlay-container p-1"
|
|
63
63
|
>
|
|
64
64
|
{topics.length === 0 && (
|
|
65
65
|
<div className="px-2.5 py-2 text-[12px] text-ink/50">No side questions yet.</div>
|
|
@@ -149,12 +149,12 @@ export function AiMessageFooter({
|
|
|
149
149
|
|
|
150
150
|
{isMenuOpen && (
|
|
151
151
|
<div
|
|
152
|
-
className="fixed inset-0 z-[70] flex items-end
|
|
152
|
+
className="fixed inset-0 z-[70] flex items-end modal-scrim backdrop-blur-[1px] animate-in fade-in duration-150"
|
|
153
153
|
role="presentation"
|
|
154
154
|
onClick={() => setIsMenuOpen(false)}
|
|
155
155
|
>
|
|
156
156
|
<div
|
|
157
|
-
className="w-full max-h-[80vh] overflow-y-auto rounded-t-2xl border border-ink/15 bg-paper pb-[max(0.75rem,env(safe-area-inset-bottom,0px))] shadow-2xl animate-in slide-in-from-bottom-4 duration-200"
|
|
157
|
+
className="glass-overlay w-full max-h-[80vh] overflow-y-auto rounded-t-2xl border border-ink/15 bg-paper pb-[max(0.75rem,env(safe-area-inset-bottom,0px))] shadow-2xl animate-in slide-in-from-bottom-4 duration-200"
|
|
158
158
|
role="dialog"
|
|
159
159
|
aria-modal="true"
|
|
160
160
|
aria-labelledby={`message-actions-${msgId}`}
|
|
@@ -69,13 +69,13 @@ export function NewChatModal({
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
return (
|
|
72
|
-
<div className="fixed inset-0 z-50 flex items-center justify-center
|
|
72
|
+
<div className="fixed inset-0 z-50 flex items-center justify-center modal-scrim animate-in fade-in duration-200 p-4">
|
|
73
73
|
<div
|
|
74
|
-
className="bg-canvas border border-ink/15 rounded-xl shadow-xl w-full flex flex-col overflow-hidden"
|
|
74
|
+
className="glass-overlay bg-canvas border border-ink/15 rounded-xl shadow-xl w-full flex flex-col overflow-hidden"
|
|
75
75
|
style={maximized ? MODAL_EXPANDED_STYLE : MODAL_DEFAULT_STYLE}
|
|
76
76
|
onClick={(e) => e.stopPropagation()}
|
|
77
77
|
>
|
|
78
|
-
<div className="flex items-center justify-between px-4 py-3 border-b border-ink/10
|
|
78
|
+
<div className="flex items-center justify-between px-4 py-3 border-b border-ink/10">
|
|
79
79
|
<h2 className="text-[13px] font-semibold text-ink">New Chat</h2>
|
|
80
80
|
<div className="flex items-center gap-0.5">
|
|
81
81
|
<button
|
|
@@ -35,14 +35,14 @@ export function UndoConfirmModal({ content, isOmpSession, undoing, error, onClos
|
|
|
35
35
|
|
|
36
36
|
return (
|
|
37
37
|
<div
|
|
38
|
-
className="fixed inset-0 z-50 flex items-center justify-center
|
|
38
|
+
className="fixed inset-0 z-50 flex items-center justify-center modal-scrim animate-in fade-in duration-200 p-4"
|
|
39
39
|
onClick={undoing ? undefined : onClose}
|
|
40
40
|
role="dialog"
|
|
41
41
|
aria-modal="true"
|
|
42
42
|
aria-label="Confirm undo"
|
|
43
43
|
>
|
|
44
44
|
<div
|
|
45
|
-
className="bg-paper border border-ink/20 rounded-xl shadow-xl w-[min(94vw,420px)] overflow-hidden"
|
|
45
|
+
className="glass-overlay bg-paper border border-ink/20 rounded-xl shadow-xl w-[min(94vw,420px)] overflow-hidden"
|
|
46
46
|
onClick={(e) => e.stopPropagation()}
|
|
47
47
|
>
|
|
48
48
|
<div className="flex items-center gap-3 px-4 py-3 border-b border-ink/10">
|
|
@@ -32,7 +32,7 @@ export function AccessDropdown({ value, onSelect }: AccessDropdownProps) {
|
|
|
32
32
|
<span className="hidden lg:inline">{ACCESS_LEVEL_LABELS[value]}</span>
|
|
33
33
|
</button>
|
|
34
34
|
{showAccess && (
|
|
35
|
-
<div className="absolute bottom-full left-0 mb-1 w-40 bg-paper border border-ink/20 rounded-md shadow-lg z-50 py-1 text-xs">
|
|
35
|
+
<div className="glass-popover absolute bottom-full left-0 mb-1 w-40 bg-paper border border-ink/20 rounded-md shadow-lg z-50 py-1 text-xs">
|
|
36
36
|
<div className="px-3 py-1 text-[10px] uppercase tracking-wider text-ink/40 font-semibold mb-1">Access Control</div>
|
|
37
37
|
{APPROVAL_MODES.map(mode => (
|
|
38
38
|
<button
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
* accepts the same vocabulary.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
+
import { CHECKBOX_CLASS } from '@/client/components/common/checkbox/style';
|
|
24
25
|
import { useEffect, useRef, useState } from 'preact/hooks';
|
|
25
26
|
import type { ComponentChildren } from 'preact';
|
|
26
27
|
import { Target, X } from 'lucide-preact';
|
|
@@ -121,9 +122,9 @@ export function GoalModal({ open, goal, goalRecord, pending, defaultBudget = nul
|
|
|
121
122
|
};
|
|
122
123
|
|
|
123
124
|
return (
|
|
124
|
-
<div className="fixed inset-0 z-[60] flex items-center justify-center
|
|
125
|
+
<div className="fixed inset-0 z-[60] flex items-center justify-center modal-scrim p-4" onClick={onClose}>
|
|
125
126
|
<div
|
|
126
|
-
className="w-full max-w-lg overflow-hidden rounded-xl border border-ink/15 bg-paper shadow-xl"
|
|
127
|
+
className="glass-overlay w-full max-w-lg overflow-hidden rounded-xl border border-ink/15 bg-paper shadow-xl"
|
|
127
128
|
onClick={(event) => event.stopPropagation()}
|
|
128
129
|
>
|
|
129
130
|
<div className="flex items-center justify-between border-b border-ink/10 px-4 py-3">
|
|
@@ -258,7 +259,7 @@ export function GoalModal({ open, goal, goalRecord, pending, defaultBudget = nul
|
|
|
258
259
|
type="checkbox"
|
|
259
260
|
checked={guided}
|
|
260
261
|
onChange={(event) => setGuided(event.currentTarget.checked)}
|
|
261
|
-
className=
|
|
262
|
+
className={`${CHECKBOX_CLASS} mt-0.5`}
|
|
262
263
|
/>
|
|
263
264
|
<span>
|
|
264
265
|
Let the agent interview me first — it asks one question per turn, then writes the objective itself.
|
|
@@ -30,7 +30,7 @@ export function ThinkingLevelDropdown({ thinkingLevels, currentThinking, onSelec
|
|
|
30
30
|
<span className="hidden lg:inline">{currentThinking}</span>
|
|
31
31
|
</button>
|
|
32
32
|
{showThinking && thinkingLevels.length > 0 && (
|
|
33
|
-
<div className="absolute bottom-full left-0 mb-1 w-40 bg-paper border border-ink/20 rounded-md shadow-lg z-50 py-1 text-xs">
|
|
33
|
+
<div className="glass-popover absolute bottom-full left-0 mb-1 w-40 bg-paper border border-ink/20 rounded-md shadow-lg z-50 py-1 text-xs">
|
|
34
34
|
<div className="px-3 py-1 text-[10px] uppercase tracking-wider text-ink/40 font-semibold mb-1">Thinking Level</div>
|
|
35
35
|
{thinkingLevels.map(level => (
|
|
36
36
|
<button
|
package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.tsx
CHANGED
|
@@ -127,7 +127,7 @@ export function WaitingDependencyPicker({
|
|
|
127
127
|
</button>
|
|
128
128
|
|
|
129
129
|
{open && (
|
|
130
|
-
<div className="absolute bottom-full left-0 mb-1.5 w-72 bg-paper border border-ink/10 rounded-lg shadow-lg z-50 flex flex-col overflow-hidden text-xs py-1">
|
|
130
|
+
<div className="glass-popover absolute bottom-full left-0 mb-1.5 w-72 bg-paper border border-ink/10 rounded-lg shadow-lg z-50 flex flex-col overflow-hidden text-xs py-1">
|
|
131
131
|
<div className="flex items-center justify-between px-3 py-1.5 border-b border-ink/5">
|
|
132
132
|
<span className="text-[10px] uppercase tracking-wider text-ink/40 font-semibold">Wait for session</span>
|
|
133
133
|
{value && (
|
|
@@ -67,8 +67,8 @@ export function PlanReviewPanel({ proposal, deciding, error, onDecide, onDismiss
|
|
|
67
67
|
.join('\n\n');
|
|
68
68
|
|
|
69
69
|
return (
|
|
70
|
-
<div className="fixed inset-0 z-[70] flex items-center justify-center
|
|
71
|
-
<div className="flex h-[88vh] w-full max-w-5xl flex-col overflow-hidden rounded-xl border border-ink/15 bg-paper shadow-2xl">
|
|
70
|
+
<div className="fixed inset-0 z-[70] flex items-center justify-center modal-scrim p-4">
|
|
71
|
+
<div className="glass-overlay flex h-[88vh] w-full max-w-5xl flex-col overflow-hidden rounded-xl border border-ink/15 bg-paper shadow-2xl">
|
|
72
72
|
<div className="flex items-center justify-between border-b border-ink/10 px-4 py-3">
|
|
73
73
|
<div className="flex min-w-0 items-center gap-2">
|
|
74
74
|
<FileText size={15} className="shrink-0 text-ink/60" />
|
|
@@ -81,7 +81,7 @@ export function WorkspacePicker({
|
|
|
81
81
|
{open && (
|
|
82
82
|
<div
|
|
83
83
|
role="menu"
|
|
84
|
-
className="absolute bottom-full left-0 mb-1.5 w-64 bg-paper border border-ink/10 rounded-lg shadow-lg z-50 flex flex-col overflow-hidden text-xs py-1"
|
|
84
|
+
className="glass-popover absolute bottom-full left-0 mb-1.5 w-64 bg-paper border border-ink/10 rounded-lg shadow-lg z-50 flex flex-col overflow-hidden text-xs py-1"
|
|
85
85
|
>
|
|
86
86
|
<div className="px-3 py-1.5 text-[10px] uppercase tracking-wider text-ink/40 font-semibold border-b border-ink/5">
|
|
87
87
|
Target Workspace
|
|
@@ -172,7 +172,7 @@ export function WorktreePicker({ folders, selectedFolderId, target, setTarget, o
|
|
|
172
172
|
{open && (
|
|
173
173
|
<div
|
|
174
174
|
role="menu"
|
|
175
|
-
className="absolute bottom-full left-0 mb-1.5 w-72 bg-paper border border-ink/10 rounded-lg shadow-lg z-50 flex flex-col overflow-hidden text-xs py-1"
|
|
175
|
+
className="glass-popover absolute bottom-full left-0 mb-1.5 w-72 bg-paper border border-ink/10 rounded-lg shadow-lg z-50 flex flex-col overflow-hidden text-xs py-1"
|
|
176
176
|
>
|
|
177
177
|
<div className="px-3 py-1.5 text-[10px] uppercase tracking-wider text-ink/40 font-semibold border-b border-ink/5">
|
|
178
178
|
Project root
|
package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/index.tsx
CHANGED
|
@@ -142,11 +142,7 @@ export function ExtensionDialog({ request, onRespond }: ExtensionDialogProps) {
|
|
|
142
142
|
|
|
143
143
|
return (
|
|
144
144
|
<div
|
|
145
|
-
className="extension-dialog-backdrop fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6"
|
|
146
|
-
style={{
|
|
147
|
-
background: 'color-mix(in srgb, var(--theme-ink) 55%, transparent)',
|
|
148
|
-
backdropFilter: 'blur(8px)',
|
|
149
|
-
}}
|
|
145
|
+
className="extension-dialog-backdrop modal-scrim fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6 backdrop-blur-[8px]"
|
|
150
146
|
onMouseDown={(e) => {
|
|
151
147
|
if (e.target === e.currentTarget) cancel();
|
|
152
148
|
}}
|
|
@@ -157,7 +153,7 @@ export function ExtensionDialog({ request, onRespond }: ExtensionDialogProps) {
|
|
|
157
153
|
aria-modal="true"
|
|
158
154
|
aria-label={request.title || methodMeta.label}
|
|
159
155
|
tabIndex={-1}
|
|
160
|
-
className="extension-dialog-panel w-full max-w-[560px] overflow-hidden rounded-2xl border border-ink/15 bg-paper shadow-2xl outline-none"
|
|
156
|
+
className="glass-overlay extension-dialog-panel w-full max-w-[560px] overflow-hidden rounded-2xl border border-ink/15 bg-paper shadow-2xl outline-none"
|
|
161
157
|
style={{
|
|
162
158
|
boxShadow: '0 24px 64px -8px color-mix(in srgb, var(--theme-ink) 28%, transparent)',
|
|
163
159
|
}}
|
|
@@ -40,7 +40,7 @@ export function CostBreakdownPopover({
|
|
|
40
40
|
return (
|
|
41
41
|
<div
|
|
42
42
|
ref={ref}
|
|
43
|
-
className="absolute top-full right-0 mt-1.5 z-50 w-64 bg-paper border border-ink/10 rounded-lg shadow-lg p-3"
|
|
43
|
+
className="glass-popover absolute top-full right-0 mt-1.5 z-50 w-64 bg-paper border border-ink/10 rounded-lg shadow-lg p-3"
|
|
44
44
|
role="dialog"
|
|
45
45
|
aria-modal="false"
|
|
46
46
|
>
|
|
@@ -259,8 +259,8 @@ export function DiffPanel({
|
|
|
259
259
|
|
|
260
260
|
{/* Discard Confirmation Modal */}
|
|
261
261
|
{showDiscardConfirm && (
|
|
262
|
-
<div className="fixed inset-0
|
|
263
|
-
<div className="bg-paper rounded-lg shadow-xl p-4 w-full max-w-sm border border-ink/15">
|
|
262
|
+
<div className="fixed inset-0 modal-scrim z-50 flex items-center justify-center p-4 backdrop-blur-xs">
|
|
263
|
+
<div className="glass-overlay bg-paper rounded-lg shadow-xl p-4 w-full max-w-sm border border-ink/15">
|
|
264
264
|
<h3 className="font-semibold text-ink mb-1.5 text-sm">Discard Changes?</h3>
|
|
265
265
|
<p className="text-xs text-ink/70 mb-4">
|
|
266
266
|
Are you sure you want to discard all unstaged changes in <span className="font-mono font-medium text-ink">{filePath}</span>? This cannot be undone.
|
|
@@ -70,7 +70,7 @@ export function EditorPluginRail({ activeKey, onSelect, plugins }: EditorPluginR
|
|
|
70
70
|
aria-label={plugin.title}
|
|
71
71
|
aria-pressed={active}
|
|
72
72
|
>
|
|
73
|
-
<PluginMark name={plugin.name} iconUrl={plugin.iconUrl} size={16} />
|
|
73
|
+
<PluginMark name={plugin.name} iconUrl={plugin.iconUrl} color={plugin.color} size={16} />
|
|
74
74
|
</button>
|
|
75
75
|
);
|
|
76
76
|
})}
|
|
@@ -33,14 +33,14 @@ export function SaveDeletedFileModal({ fileName, filePath, onClose, onConfirm }:
|
|
|
33
33
|
|
|
34
34
|
return (
|
|
35
35
|
<div
|
|
36
|
-
className="fixed inset-0 z-50 flex items-center justify-center
|
|
36
|
+
className="fixed inset-0 z-50 flex items-center justify-center modal-scrim animate-in fade-in duration-200 p-4"
|
|
37
37
|
onClick={onClose}
|
|
38
38
|
role="dialog"
|
|
39
39
|
aria-modal="true"
|
|
40
40
|
aria-label="Save deleted file"
|
|
41
41
|
>
|
|
42
42
|
<div
|
|
43
|
-
className="bg-paper border border-ink/20 rounded-xl shadow-xl w-[min(94vw,440px)] overflow-hidden"
|
|
43
|
+
className="glass-overlay bg-paper border border-ink/20 rounded-xl shadow-xl w-[min(94vw,440px)] overflow-hidden"
|
|
44
44
|
onClick={(e) => e.stopPropagation()}
|
|
45
45
|
>
|
|
46
46
|
<div className="flex items-center gap-3 px-4 py-3 border-b border-ink/10">
|
|
@@ -50,7 +50,7 @@ export function TabContextMenu({ x, y, rows, onAction, onClose }: TabContextMenu
|
|
|
50
50
|
ref={menuRef}
|
|
51
51
|
role="menu"
|
|
52
52
|
aria-label="Tab actions"
|
|
53
|
-
className="absolute w-52 bg-paper border border-ink/15 rounded-md shadow-xl py-1 text-xs text-ink"
|
|
53
|
+
className="glass-popover absolute w-52 bg-paper border border-ink/15 rounded-md shadow-xl py-1 text-xs text-ink"
|
|
54
54
|
style={{ left: `${position.left}px`, top: `${position.top}px` }}
|
|
55
55
|
onClick={(event) => event.stopPropagation()}
|
|
56
56
|
>
|
|
@@ -244,7 +244,7 @@ export function EditorTabs({
|
|
|
244
244
|
</button>
|
|
245
245
|
|
|
246
246
|
{showDropdown && (
|
|
247
|
-
<div className="absolute right-0 top-full mt-1 w-52 bg-paper border border-ink/10 rounded shadow-lg z-50 py-1">
|
|
247
|
+
<div className="glass-popover absolute right-0 top-full mt-1 w-52 bg-paper border border-ink/10 rounded shadow-lg z-50 py-1">
|
|
248
248
|
<div className="px-3 py-1 text-[10px] uppercase font-mono text-ink/40 border-b border-ink/10 mb-1">
|
|
249
249
|
Older Tabs
|
|
250
250
|
</div>
|
|
@@ -129,7 +129,7 @@ export function FileContextMenu({ x, y, isFolder, hasGitStatus, pasteLabel, chai
|
|
|
129
129
|
>
|
|
130
130
|
<div
|
|
131
131
|
ref={menuRef}
|
|
132
|
-
className="fixed z-50 bg-paper border border-ink/15 shadow-2xl rounded-lg py-1 min-w-[185px] text-xs text-ink font-sans"
|
|
132
|
+
className="glass-popover fixed z-50 bg-paper border border-ink/15 shadow-2xl rounded-lg py-1 min-w-[185px] text-xs text-ink font-sans"
|
|
133
133
|
style={{ top: posY, left: posX }}
|
|
134
134
|
onClick={e => e.stopPropagation()}
|
|
135
135
|
>
|
|
@@ -35,8 +35,8 @@ interface NewFileModalProps {
|
|
|
35
35
|
export function FileCreateModal({ folderPath, kind, value, error, isLoading, onChange, onCancel, onSubmit }: NewFileModalProps) {
|
|
36
36
|
const label = kind === 'folder' ? 'Folder' : 'File';
|
|
37
37
|
return createPortal(
|
|
38
|
-
<div className="fixed inset-0
|
|
39
|
-
<form onSubmit={onSubmit} className="bg-paper rounded shadow-xl p-4 w-full max-w-sm border border-ink/10 font-sans">
|
|
38
|
+
<div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center p-4 backdrop-blur-sm">
|
|
39
|
+
<form onSubmit={onSubmit} className="glass-overlay bg-paper rounded shadow-xl p-4 w-full max-w-sm border border-ink/10 font-sans">
|
|
40
40
|
<h3 className="font-semibold text-ink mb-3 text-sm">New {label}</h3>
|
|
41
41
|
<div className="flex items-center gap-1 mb-1 text-xs font-mono text-ink/50 min-w-0">
|
|
42
42
|
<span className="truncate" title={folderPath}>{folderPath || '.'}/</span>
|
|
@@ -92,8 +92,8 @@ interface DeleteModalProps {
|
|
|
92
92
|
|
|
93
93
|
export function FileDeleteModal({ fileName, displayName, isFolder, isLoading, onCancel, onConfirm }: DeleteModalProps) {
|
|
94
94
|
return createPortal(
|
|
95
|
-
<div className="fixed inset-0
|
|
96
|
-
<div className="bg-paper rounded shadow-xl p-4 w-full max-w-sm border border-ink/10 font-sans">
|
|
95
|
+
<div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center p-4 backdrop-blur-sm">
|
|
96
|
+
<div className="glass-overlay bg-paper rounded shadow-xl p-4 w-full max-w-sm border border-ink/10 font-sans">
|
|
97
97
|
<h3 className="font-semibold text-ink mb-2 text-sm">Delete {isFolder ? 'Folder' : 'File'}</h3>
|
|
98
98
|
<p className="text-xs text-ink/70 mb-4">Are you sure you want to delete <span className="font-mono bg-canvas px-1 rounded">{fileName}</span>? This action cannot be undone.</p>
|
|
99
99
|
{/* A collapsed chain row is LABELLED `com/java/app/package` but its path
|
|
@@ -158,8 +158,8 @@ interface RenameModalProps {
|
|
|
158
158
|
*/
|
|
159
159
|
export function FileRenameModal({ isFolder, renameValue, originalPath, displayName, error, isLoading, onChange, onCancel, onSubmit }: RenameModalProps) {
|
|
160
160
|
return createPortal(
|
|
161
|
-
<div className="fixed inset-0
|
|
162
|
-
<form onSubmit={onSubmit} className="bg-paper rounded shadow-xl p-4 w-full max-w-sm border border-ink/10 font-sans">
|
|
161
|
+
<div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center p-4 backdrop-blur-sm">
|
|
162
|
+
<form onSubmit={onSubmit} className="glass-overlay bg-paper rounded shadow-xl p-4 w-full max-w-sm border border-ink/10 font-sans">
|
|
163
163
|
<h3 className="font-semibold text-ink mb-3 text-sm">Rename {isFolder ? 'Folder' : 'File'}</h3>
|
|
164
164
|
<input
|
|
165
165
|
autoFocus
|
|
@@ -215,8 +215,8 @@ interface HistoryModalProps {
|
|
|
215
215
|
export function FileHistoryModal({ filePath, fetcherState, fetcherData, onClose }: HistoryModalProps) {
|
|
216
216
|
const rows = fetcherData?.type === 'history' ? fetcherData.data : undefined;
|
|
217
217
|
return createPortal(
|
|
218
|
-
<div className="fixed inset-0
|
|
219
|
-
<div className="bg-paper rounded-lg shadow-xl w-full max-w-4xl border border-ink/10 flex flex-col max-h-[85vh]">
|
|
218
|
+
<div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center p-4 backdrop-blur-sm">
|
|
219
|
+
<div className="glass-overlay bg-paper rounded-lg shadow-xl w-full max-w-4xl border border-ink/10 flex flex-col max-h-[85vh]">
|
|
220
220
|
<div className="flex items-center justify-between p-4 border-b border-ink/10">
|
|
221
221
|
<h3 className="text-sm font-semibold text-ink flex items-center space-x-2">
|
|
222
222
|
<History size={16} className="text-ink/60" />
|
|
@@ -230,7 +230,7 @@ export function FileHistoryModal({ filePath, fetcherState, fetcherData, onClose
|
|
|
230
230
|
</button>
|
|
231
231
|
</div>
|
|
232
232
|
|
|
233
|
-
<div className="flex-1 scrollbar-overlay-container
|
|
233
|
+
<div className="flex-1 scrollbar-overlay-container p-2">
|
|
234
234
|
{fetcherState === 'idle' ? (
|
|
235
235
|
rows ? (
|
|
236
236
|
rows.length > 0 ? (
|
|
@@ -245,7 +245,7 @@ export function FileHistoryModal({ filePath, fetcherState, fetcherData, onClose
|
|
|
245
245
|
</thead>
|
|
246
246
|
<tbody className="divide-y divide-ink/5">
|
|
247
247
|
{rows.map((row, i) => (
|
|
248
|
-
<tr key={i} className="hover:bg-ink/[0.03] transition-colors group
|
|
248
|
+
<tr key={i} className="hover:bg-ink/[0.03] transition-colors group">
|
|
249
249
|
<td className="px-3 py-2 text-ink">
|
|
250
250
|
{row.message ? <span className="font-medium text-ink/90 group-hover:text-ink">{row.message}</span> : null}
|
|
251
251
|
</td>
|
|
@@ -50,7 +50,7 @@ export function RootContextMenu({ x, y, pasteLabel, busy, onAction, menuRef }: R
|
|
|
50
50
|
>
|
|
51
51
|
<div
|
|
52
52
|
ref={menuRef}
|
|
53
|
-
className="fixed z-50 bg-paper border border-ink/15 shadow-2xl rounded-lg py-1 min-w-[185px] text-xs text-ink font-sans"
|
|
53
|
+
className="glass-popover fixed z-50 bg-paper border border-ink/15 shadow-2xl rounded-lg py-1 min-w-[185px] text-xs text-ink font-sans"
|
|
54
54
|
style={{ top: posY, left: posX }}
|
|
55
55
|
onClick={(e) => e.stopPropagation()}
|
|
56
56
|
>
|