@kabmo-labs/kabmo 0.21.0 → 0.22.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 +7 -2
- package/dist/client/index.html +9 -8
- package/dist/client/index.js +334 -334
- package/dist/client/static/js/{index-zg32n2sk.js → index-297dck9a.js} +784 -791
- package/dist/client/static/js/index-7ppta1pb.css +1 -0
- package/extensions/kabmo-modes/commands.ts +17 -3
- package/extensions/kabmo-modes/goal-start.ts +101 -0
- package/extensions/kabmo-modes/goal.test.ts +80 -5
- package/extensions/kabmo-modes/goal.ts +13 -38
- package/extensions/kabmo-modes/prompts.test.ts +12 -0
- package/extensions/kabmo-modes/prompts.ts +9 -2
- package/index.html +8 -7
- package/package.json +2 -2
- package/src/cli/lib/args.js +9 -0
- package/src/cli/lib/args.test.js +26 -0
- package/src/cli/lib/commands/doctor.js +153 -0
- package/src/cli/lib/commands/doctor.test.js +139 -0
- package/src/cli/lib/commands/serve.js +23 -10
- package/src/cli/lib/commands/status.js +22 -3
- package/src/cli/lib/omp-setup.js +131 -0
- package/src/cli/lib/omp-setup.test.js +115 -0
- package/src/cli/main.js +1 -1
- package/src/client/components/common/DemoDataBadge.tsx +52 -0
- package/src/client/components/common/FolderPicker.tsx +2 -2
- package/src/client/components/common/Modal.tsx +15 -1
- package/src/client/components/common/code-surface/blame-panel.ts +1 -1
- package/src/client/components/common/context-usage-button/index.test.tsx +1 -1
- package/src/client/components/common/context-usage-button/index.tsx +4 -4
- package/src/client/components/common/demo-data-badge.test.tsx +58 -0
- package/src/client/components/common/diagram-viewer/index.tsx +2 -2
- package/src/client/components/common/editor-view-buttons/index.tsx +2 -2
- package/src/client/components/common/header-controls/MoreMenu.tsx +1 -1
- package/src/client/components/common/header-controls/index.tsx +4 -1
- package/src/client/components/common/markdown-review/ReviewPopover.tsx +2 -2
- package/src/client/components/common/markdown-review/ReviewSummary.tsx +1 -1
- package/src/client/components/common/panel-mark/index.tsx +2 -1
- package/src/client/components/common/server-control/Panel.tsx +3 -3
- package/src/client/components/common/server-control/index.tsx +1 -1
- package/src/client/components/common/shell-update-button/Modal.tsx +1 -1
- package/src/client/components/common/todo-row/index.tsx +1 -1
- package/src/client/components/layout/ActivityBar.tsx +4 -0
- package/src/client/components/layout/ShellNotice.tsx +33 -0
- package/src/client/components/layout/desktop-layout/index.tsx +14 -16
- package/src/client/components/layout/desktop-layout/resizer/index.tsx +14 -1
- package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +2 -1
- package/src/client/components/layout/session-sidebar/ClassicView.tsx +5 -1
- package/src/client/components/layout/session-sidebar/SessionList.tsx +1 -1
- package/src/client/components/layout/session-sidebar/SessionListNotice.tsx +56 -0
- package/src/client/components/layout/session-sidebar/SessionsView.tsx +2 -0
- package/src/client/components/layout/session-sidebar/about-modal/UpdateSection.tsx +1 -1
- package/src/client/components/layout/session-sidebar/about-modal/index.tsx +12 -1
- package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +2 -1
- package/src/client/components/layout/session-sidebar/modern/index.tsx +6 -2
- package/src/client/components/layout/session-sidebar/new-workspace-modal/CloneField.tsx +1 -1
- 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 +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/TaskList.tsx +3 -3
- package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
- package/src/client/components/layout/session-sidebar/session-list-states.test.tsx +150 -0
- package/src/client/components/layout/session-sidebar/variant-props.ts +6 -0
- package/src/client/components/mobile/LayoutWrapper.tsx +20 -30
- package/src/client/components/mobile/MainView.tsx +5 -2
- package/src/client/components/mobile/RightSidebar.tsx +1 -1
- package/src/client/components/mobile/SessionSidebar.tsx +3 -0
- package/src/client/components/mobile/mobile-main-view/Header.tsx +2 -2
- package/src/client/components/mobile/mobile-session-sidebar/ClassicDrawer.tsx +7 -1
- package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +1 -1
- package/src/client/components/settings/Modal.tsx +15 -1
- package/src/client/components/settings/ProjectSelectorDropdown.tsx +1 -1
- package/src/client/components/settings/Sidebar.tsx +2 -2
- package/src/client/components/settings/categories/OmpSettings.tsx +1 -1
- package/src/client/components/settings/categories/TokenUsageSettings.tsx +1 -1
- package/src/client/components/settings/categories/agent-settings/DetailPane.tsx +3 -3
- package/src/client/components/settings/categories/appearance-settings/EditorFontSection.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/EditorThemeSection.tsx +2 -2
- package/src/client/components/settings/categories/appearance-settings/IconStyleSection.tsx +5 -5
- package/src/client/components/settings/categories/appearance-settings/SidebarStyleSection.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/SurfaceStyleSection.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/ThemeCard.tsx +1 -1
- package/src/client/components/settings/categories/chat-settings/ComposerStyleSection.tsx +1 -1
- package/src/client/components/settings/categories/chat-settings/GoalSection.tsx +1 -1
- package/src/client/components/settings/categories/command-settings/DetailPane.tsx +2 -2
- package/src/client/components/settings/categories/omp-settings/ConfigTabs.tsx +5 -5
- package/src/client/components/settings/categories/omp-settings/EngineHeader.tsx +3 -3
- package/src/client/components/settings/categories/omp-settings/RoleRow.tsx +2 -2
- package/src/client/components/settings/categories/panel-plugins/LeftDockSettings.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/PluginCard.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/PluginMark.tsx +4 -3
- package/src/client/components/settings/categories/plugin-settings/SidebarList.tsx +2 -2
- package/src/client/components/settings/categories/project-settings/AddProjectModal.tsx +1 -1
- package/src/client/components/settings/categories/project-settings/NameInput.tsx +1 -1
- package/src/client/components/settings/categories/project-settings/PathField.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/AddModelModal.tsx +3 -3
- package/src/client/components/settings/categories/provider-settings/AddProviderModal.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/AuthSection.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/EntryAdvanced.tsx +4 -4
- package/src/client/components/settings/categories/provider-settings/EntryModal.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/LoginModal.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/ModelCapabilitiesModal.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/ModelsList.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/PriceFields.tsx +1 -1
- package/src/client/components/settings/categories/token-usage-settings/Breakdown.tsx +4 -4
- package/src/client/components/settings/categories/token-usage-settings/Chart.tsx +2 -2
- package/src/client/components/settings/categories/token-usage-settings/Controls.tsx +1 -1
- package/src/client/components/settings/categories/token-usage-settings/MetricsGrid.tsx +1 -1
- package/src/client/components/settings/categories/usage-settings/KenariCard.tsx +5 -5
- package/src/client/components/workspace/browser-panel/AddressBar.tsx +1 -1
- package/src/client/components/workspace/browser-panel/Screencast.tsx +6 -6
- package/src/client/components/workspace/browser-panel/TabStrip.tsx +1 -1
- package/src/client/components/workspace/browser-panel/index.tsx +1 -1
- package/src/client/components/workspace/browser-toolbar/index.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/AttachmentChips.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/GeneratingIndicator.tsx +13 -26
- package/src/client/components/workspace/chat-timeline/GoalNotice.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/MessageItem.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/MinimapShortcuts.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/QueueList.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/SubagentView.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/TaskResultContent.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/ThinkingSection.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/ToolCallingSection.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/ArmedGoalStrip.tsx +71 -0
- package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +4 -3
- package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.test.ts +176 -0
- package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +70 -81
- package/src/client/components/workspace/chat-timeline/chat-input/GoalSurfaces.tsx +10 -1
- package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.test.ts +20 -0
- package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.tsx +13 -7
- package/src/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.test.ts +65 -3
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +69 -19
- package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/chat-input/composer-portal.test.tsx +174 -0
- package/src/client/components/workspace/chat-timeline/chat-input/goal-modal-parts.tsx +80 -0
- package/src/client/components/workspace/chat-timeline/chat-input/modes-props.ts +15 -3
- package/src/client/components/workspace/chat-timeline/chat-input/styles.test.tsx +3 -1
- package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
- 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/ask-panel/FrameControl.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OptionRow.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionBlock.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionCard.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/Header.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/SelectBody.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/hashline-patch/index.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AstEdit.tsx +6 -6
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Bash.tsx +13 -13
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Checkpoint.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/ContextNotes.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Debug.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Edit.tsx +9 -9
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Eval.tsx +10 -10
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/FileMatches.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Goal.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/GoalRecord.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Lsp.tsx +6 -6
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/ManageSkill.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Memory.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Proc.tsx +15 -15
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Read.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Resolve.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/SearchFs.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/SearchTool.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/SecurityScan.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/TaskResult.tsx +7 -7
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Think.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Todo.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.missing.test.ts +4 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.tsx +17 -17
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/WebSearch.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ArtifactChip.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/EnvelopeHeader.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ExcerptCode.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/FallbackOutput.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/JsonCodeBlock.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/OutputWindow.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolBody.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolFactChips.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolPanelHeader.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Minimal.tsx +1 -1
- package/src/client/components/workspace/context-panel/RawJsonViewer.tsx +2 -2
- package/src/client/components/workspace/context-panel/StatsGrid.tsx +1 -1
- package/src/client/components/workspace/context-panel/index.tsx +1 -1
- package/src/client/components/workspace/diff-panel/ConflictBanner.tsx +1 -1
- package/src/client/components/workspace/editor/EmptyEditor.tsx +1 -1
- package/src/client/components/workspace/editor/FindWidget.tsx +1 -1
- package/src/client/components/workspace/editor/Tabs.tsx +1 -1
- package/src/client/components/workspace/editor/Toolbar.tsx +1 -1
- package/src/client/components/workspace/file-explorer/OutlineSection.tsx +2 -2
- package/src/client/components/workspace/file-explorer/RowLabel.tsx +1 -1
- package/src/client/components/workspace/file-explorer/index.tsx +1 -1
- package/src/client/components/workspace/git-panel/BranchToolbar.tsx +2 -2
- package/src/client/components/workspace/git-panel/ChangesList.tsx +3 -3
- package/src/client/components/workspace/git-panel/ConflictItem.tsx +3 -3
- package/src/client/components/workspace/git-panel/FileItem.tsx +2 -2
- package/src/client/components/workspace/git-panel/StashSection.tsx +5 -5
- package/src/client/components/workspace/git-panel/TreeItem.tsx +2 -2
- package/src/client/components/workspace/git-panel/branch-modal/BranchRow.tsx +4 -4
- package/src/client/components/workspace/git-panel/branch-modal/DeleteDialog.tsx +2 -2
- package/src/client/components/workspace/git-panel/index.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/Item.tsx +3 -3
- package/src/client/components/workspace/model-dropdown/Section.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/index.tsx +3 -3
- package/src/client/components/workspace/plan-panel/index.tsx +2 -2
- package/src/client/components/workspace/repo-picker/Modal.tsx +1 -1
- package/src/client/components/workspace/repo-picker/Row.tsx +6 -6
- package/src/client/components/workspace/search-panel/Body.tsx +2 -2
- package/src/client/components/workspace/search-panel/Results.tsx +1 -1
- package/src/client/components/workspace/search-panel/index.tsx +1 -1
- package/src/client/components/workspace/terminal-panel/index.tsx +1 -1
- package/src/client/components/workspace/todo-panel/PhaseGroup.tsx +1 -1
- package/src/client/components/workspace/todo-panel/index.tsx +2 -2
- package/src/client/components/workspace/user-browser-panel/AddressBar.tsx +5 -5
- package/src/client/components/workspace/user-browser-panel/AnnotateBar.test.tsx +13 -13
- package/src/client/components/workspace/user-browser-panel/AnnotateBar.tsx +4 -4
- package/src/client/components/workspace/user-browser-panel/AnnotateLayer.tsx +1 -1
- package/src/client/components/workspace/user-browser-panel/AnnotateTarget.tsx +7 -7
- package/src/client/components/workspace/user-browser-panel/Frame.tsx +1 -1
- package/src/client/components/workspace/wiki-panel/Nav.tsx +1 -1
- package/src/client/components/workspace/wiki-panel/index.tsx +2 -2
- package/src/client/glass.css +50 -0
- package/src/client/glass.test.ts +68 -24
- package/src/client/hooks/chat/composer/browser-context.test.ts +6 -6
- package/src/client/hooks/chat/composer/use-draft.test.ts +2 -2
- package/src/client/hooks/chat/omp/prompt-send.test.ts +36 -0
- package/src/client/hooks/chat/omp/prompt-send.ts +24 -18
- package/src/client/hooks/chat/omp/session-list.tsx +24 -70
- package/src/client/hooks/chat/omp/session-merges.ts +89 -0
- package/src/client/hooks/chat/omp/session-sidebar-controller.ts +4 -1
- package/src/client/hooks/chat/timeline/armed-goal-send.test.ts +168 -0
- package/src/client/hooks/chat/timeline/armed-goal.test.ts +178 -0
- package/src/client/hooks/chat/timeline/goal-command.ts +57 -27
- package/src/client/hooks/chat/timeline/index.ts +7 -4
- package/src/client/hooks/chat/timeline/mode-post.ts +46 -0
- package/src/client/hooks/chat/timeline/modes-contract.ts +94 -0
- package/src/client/hooks/chat/timeline/modes.ts +60 -95
- package/src/client/hooks/chat/timeline/send-props.ts +97 -0
- package/src/client/hooks/chat/timeline/send-steer.test.ts +6 -0
- package/src/client/hooks/chat/timeline/send.test-util.ts +55 -8
- package/src/client/hooks/chat/timeline/send.test.ts +17 -1
- package/src/client/hooks/chat/timeline/send.ts +64 -72
- package/src/client/hooks/ui/dialog-behaviour.ts +143 -0
- package/src/client/hooks/ui/theme.ts +17 -0
- package/src/client/hooks/workspace/copy-tab-path.ts +23 -0
- package/src/client/hooks/workspace/mobile-back.ts +71 -0
- package/src/client/palette-class.test.ts +93 -0
- package/src/client/tailwind-contrast.test.ts +194 -0
- package/src/client/tailwind.css +327 -8
- package/src/server/lib/assets/theme-shell.server.ts +4 -10
- package/src/server/lib/omp/config/provider-seeds.test.ts +39 -1
- package/src/server/lib/omp/config/provider-seeds.ts +32 -3
- package/src/server/lib/omp/config/provider-vision-compat.test.ts +140 -0
- package/src/server/lib/omp/core/host-resolution.test.ts +1 -55
- package/src/server/lib/omp/core/install-hint.test.ts +48 -0
- package/src/server/lib/omp/core/install-hint.ts +64 -0
- package/src/server/lib/omp/core/startup.test.ts +125 -0
- package/src/server/lib/omp/core/startup.ts +5 -1
- package/src/server/lib/omp/mode/request.ts +14 -6
- package/src/server/plugins/ssr.ts +2 -1
- package/src/shared/lib/browser/annotate.test.ts +22 -22
- package/src/shared/lib/browser/annotate.ts +14 -14
- package/src/shared/lib/browser/page-context.ts +6 -6
- package/src/shared/lib/icons/icon-paint-authority.test.ts +86 -0
- package/src/shared/lib/icons/icon-paint-authority.ts +94 -0
- package/src/shared/lib/icons/icon-paint-css.test.ts +139 -25
- package/src/shared/lib/icons/icon-paint-css.ts +76 -50
- package/src/shared/lib/icons/icon-paint-panel.ts +15 -18
- package/src/shared/lib/icons/icon-paint-weight.ts +142 -0
- package/src/shared/lib/icons/icon-tone.ts +58 -13
- package/src/shared/lib/icons/tint-hues.generated.ts +51 -6
- package/src/shared/lib/icons/tint-tones.test.ts +257 -0
- package/src/shared/lib/icons/tint.test.ts +3 -211
- package/src/shared/lib/icons/tint.ts +23 -25
- package/src/shared/lib/omp/mode/actions.ts +40 -0
- package/src/shared/lib/omp/mode/types.ts +12 -0
- package/src/shared/lib/theme/css.ts +21 -0
- package/src/shared/lib/theme/first-frame.ts +38 -0
- package/src/shared/lib/theme/ink-scale.test.ts +151 -0
- package/src/shared/lib/theme/ink-scale.ts +103 -0
- package/src/shared/lib/theme/shell-palette.test.ts +22 -5
- package/src/shared/lib/theme/shell-palette.ts +9 -4
- package/src/shared/lib/theme/theme.test.ts +28 -3
- package/src/shared/lib/workspace/project-accent.test.ts +33 -1
- package/src/shared/lib/workspace/project-accent.ts +23 -0
- package/src/shared/types/omp/agent.ts +24 -9
- package/dist/client/static/js/index-0721wrkf.css +0 -1
|
@@ -45,7 +45,10 @@ interface HeaderControlsProps {
|
|
|
45
45
|
/** The hit area each layout gives an icon-only control. */
|
|
46
46
|
const ICON_BUTTON_CLASS: Record<HeaderLayout, string> = {
|
|
47
47
|
desktop: 'p-1.5 rounded hover:bg-ink/10 transition-colors text-ink/60 hover:text-ink cursor-pointer',
|
|
48
|
-
|
|
48
|
+
// A phone's row is a touch surface. `.tap-target` sets the 44px floor on a
|
|
49
|
+
// coarse pointer and the plate below is the RESTING size; on a desktop the
|
|
50
|
+
// class is inert, so the header keeps the density it was measured at.
|
|
51
|
+
mobile: 'tap-target w-8 h-8 rounded-lg hover:bg-ink/5 active:bg-ink/10 flex items-center justify-center text-ink transition-colors cursor-pointer',
|
|
49
52
|
};
|
|
50
53
|
|
|
51
54
|
const ICON_SIZE: Record<HeaderLayout, number> = { desktop: 16, mobile: 18 };
|
|
@@ -90,7 +90,7 @@ export function ReviewPopover({ block, verdict, note, anchor, onSave, onRemove,
|
|
|
90
90
|
<button
|
|
91
91
|
type="button"
|
|
92
92
|
aria-pressed={verdict === 'good'}
|
|
93
|
-
title="This block is good
|
|
93
|
+
title="This block is good, so leave it alone"
|
|
94
94
|
onClick={() => submit('good')}
|
|
95
95
|
className={`${ACTION_CLASS} border px-2 text-[11px] ${
|
|
96
96
|
verdict === 'good' ? 'border-ink bg-ink/10 text-ink' : 'border-ink/15 text-ink/70 hover:border-ink/40'
|
|
@@ -124,7 +124,7 @@ export function ReviewPopover({ block, verdict, note, anchor, onSave, onRemove,
|
|
|
124
124
|
ref={field}
|
|
125
125
|
defaultValue={note}
|
|
126
126
|
rows={3}
|
|
127
|
-
placeholder="What is wrong
|
|
127
|
+
placeholder="What is wrong (or right) with this block…"
|
|
128
128
|
onKeyDown={(event) => {
|
|
129
129
|
// ⌘↵ saves the CURRENT verdict; a block with none is not saved by a
|
|
130
130
|
// keystroke that cannot say which answer it means.
|
|
@@ -97,7 +97,7 @@ export function ReviewSummary({ counts, outdated, error, sent, onSend, onRemoveO
|
|
|
97
97
|
type="button"
|
|
98
98
|
disabled={total === 0}
|
|
99
99
|
onClick={onSend}
|
|
100
|
-
title="Put this review into the chat box
|
|
100
|
+
title="Put this review into the chat box; you still choose to send it"
|
|
101
101
|
className="flex items-center gap-1 rounded border border-ink bg-ink px-2 py-1 text-canvas transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed"
|
|
102
102
|
>
|
|
103
103
|
<Send size={11} /> Send to chat
|
|
@@ -94,7 +94,8 @@ export function PanelMark({
|
|
|
94
94
|
data-declared={declared ? '' : undefined}
|
|
95
95
|
style={{
|
|
96
96
|
'--panel-hue': String(hue),
|
|
97
|
-
'--panel-tone': iconTone(hue),
|
|
97
|
+
'--panel-tone': iconTone(hue, 'light'),
|
|
98
|
+
'--panel-tone-dark': iconTone(hue, 'dark'),
|
|
98
99
|
...(declared ? { '--panel-color-light': declared.light } : {}),
|
|
99
100
|
...(declared?.dark ? { '--panel-color-dark': declared.dark } : {}),
|
|
100
101
|
}}
|
|
@@ -198,7 +198,7 @@ export function ServerPanel({ open, onClose, variant, store, triggerRef }: Serve
|
|
|
198
198
|
type="button"
|
|
199
199
|
onClick={() => void store.reload()}
|
|
200
200
|
disabled={store.busy}
|
|
201
|
-
title="Refresh
|
|
201
|
+
title="Refresh: re-probe every server"
|
|
202
202
|
aria-label="Refresh servers"
|
|
203
203
|
className="p-1 rounded text-ink/40 hover:text-ink hover:bg-ink/10 cursor-pointer disabled:opacity-40"
|
|
204
204
|
>
|
|
@@ -215,7 +215,7 @@ export function ServerPanel({ open, onClose, variant, store, triggerRef }: Serve
|
|
|
215
215
|
|
|
216
216
|
{entries.length > 0 && (
|
|
217
217
|
<>
|
|
218
|
-
<p className="px-1 text-[
|
|
218
|
+
<p className="px-1 text-[10px] uppercase tracking-wide text-ink/35">This window</p>
|
|
219
219
|
{entries.map((server) => (
|
|
220
220
|
<Row
|
|
221
221
|
key={server.id}
|
|
@@ -232,7 +232,7 @@ export function ServerPanel({ open, onClose, variant, store, triggerRef }: Serve
|
|
|
232
232
|
|
|
233
233
|
{detected.length > 0 && (
|
|
234
234
|
<>
|
|
235
|
-
<p className="px-1 pt-1 text-[
|
|
235
|
+
<p className="px-1 pt-1 text-[10px] uppercase tracking-wide text-ink/35">
|
|
236
236
|
Found on this machine
|
|
237
237
|
</p>
|
|
238
238
|
{detected.map((server) => (
|
|
@@ -68,7 +68,7 @@ export function ServerControl({ variant }: ServerControlProps) {
|
|
|
68
68
|
if (!available) return null;
|
|
69
69
|
|
|
70
70
|
const summary = active
|
|
71
|
-
? `Server: ${active.label}
|
|
71
|
+
? `Server: ${active.label}, ${active.running ? 'running' : 'stopped'}`
|
|
72
72
|
: 'Choose a server';
|
|
73
73
|
|
|
74
74
|
if (variant === 'chip') {
|
|
@@ -63,7 +63,7 @@ function installNote(download: ShellDownload): string {
|
|
|
63
63
|
case 'windows':
|
|
64
64
|
return 'Kabmo downloads the new installer and runs it silently. The window closes and reopens on the new version.';
|
|
65
65
|
case 'linux':
|
|
66
|
-
return 'Kabmo downloads the new AppImage over the one it is running from and restarts. A package install (.deb / .rpm) cannot replace itself
|
|
66
|
+
return 'Kabmo downloads the new AppImage over the one it is running from and restarts. A package install (.deb / .rpm) cannot replace itself, so that build is offered the release page instead.';
|
|
67
67
|
default:
|
|
68
68
|
return 'Kabmo installs the new build and restarts.';
|
|
69
69
|
}
|
|
@@ -83,7 +83,7 @@ export function TodoRow({ task, current }: { task: TodoItem; current: boolean })
|
|
|
83
83
|
)}
|
|
84
84
|
</div>
|
|
85
85
|
{visual.active && (
|
|
86
|
-
<span className="shrink-0 rounded bg-ink/8 px-1.5 py-0.5 font-mono text-[
|
|
86
|
+
<span className="shrink-0 rounded bg-ink/8 px-1.5 py-0.5 font-mono text-[10px] uppercase tracking-wider text-ink/70">
|
|
87
87
|
Now
|
|
88
88
|
</span>
|
|
89
89
|
)}
|
|
@@ -242,6 +242,10 @@ function PanelButton({
|
|
|
242
242
|
onDragEnd={onDragEnd}
|
|
243
243
|
title={panel.title}
|
|
244
244
|
aria-label={panel.title}
|
|
245
|
+
// A rail button is a TOGGLE: it says which view the column is showing.
|
|
246
|
+
// Without this the state existed only as a border colour, which assistive
|
|
247
|
+
// tech cannot read and measured as `aria-pressed: null` on all six marks.
|
|
248
|
+
aria-pressed={isActive}
|
|
245
249
|
>
|
|
246
250
|
{/* The mark's wrapper carries the state as OPACITY, not as a text colour:
|
|
247
251
|
a `text-ink/40` here outranks the colour mode's hue rule, which is what
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The two things every shell states before its own layout: the document's one
|
|
8
|
+
* `h1`, and whether this instance is running on demo data.
|
|
9
|
+
*
|
|
10
|
+
* Shared by the desktop and the phone because both are the SAME product: a phone
|
|
11
|
+
* that omitted them would leave a page with no heading and a demo instance that
|
|
12
|
+
* looks real on the device most likely to be handed to someone else. Stated in
|
|
13
|
+
* one component so a new layout cannot ship with only one of them.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { DemoDataBadge } from '@/client/components/common/DemoDataBadge';
|
|
17
|
+
|
|
18
|
+
export function ShellNotice({ isMock }: { isMock: boolean }) {
|
|
19
|
+
return (
|
|
20
|
+
<>
|
|
21
|
+
{/* The page's one h1. Every panel below heads its own section with an h2 or
|
|
22
|
+
h3, and a document with no h1 gives a screen reader no entry point.
|
|
23
|
+
Visually hidden because the wordmark IS the product's name on screen
|
|
24
|
+
(`BrandWordmark`), and two visible names are one name twice. */}
|
|
25
|
+
<h1 className="sr-only">Kabmo</h1>
|
|
26
|
+
{/* Demo data is stated at the SHELL, not left to a panel deep in Settings:
|
|
27
|
+
measured in `MOCK=true`, the drawer and the transcript were
|
|
28
|
+
indistinguishable from a real install, and only two panels in Settings
|
|
29
|
+
said the word "Mock". */}
|
|
30
|
+
{isMock && <DemoDataBadge variant="strip" />}
|
|
31
|
+
</>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
@@ -5,11 +5,11 @@ import { LeftColumn } from '@/client/components/layout/desktop-layout/LeftColumn
|
|
|
5
5
|
import { SettingsModal } from '@/client/components/settings/LazyModal';
|
|
6
6
|
import { activeProjectForSession, effectiveRootFor } from '@/shared/lib/workspace/active-project';
|
|
7
7
|
import { useFileTabs } from '@/client/hooks/workspace/file-tabs';
|
|
8
|
-
import type { OpenedFile } from '@/shared/types/fs';
|
|
9
8
|
import { useSessionState } from '@/client/hooks/workspace/session-state';
|
|
10
9
|
import { TopNavbar } from '@/client/components/layout/desktop-layout/TopNavbar';
|
|
11
10
|
import { WorkspacePanels } from '@/client/components/layout/desktop-layout/WorkspacePanels';
|
|
12
11
|
import { WindowAura } from '@/client/components/layout/WindowAura';
|
|
12
|
+
import { ShellNotice } from '@/client/components/layout/ShellNotice';
|
|
13
13
|
import { usePanelSlotPlugins } from '@/client/components/workspace/plugin-panel/resolve';
|
|
14
14
|
import { useAgentStreamStatus } from '@/client/hooks/chat/omp/status';
|
|
15
15
|
import { usePanelWidths } from '@/client/hooks/workspace/panel-widths';
|
|
@@ -30,6 +30,7 @@ import type { EditorDropResult } from '@/client/hooks/editor/use-editor-drop';
|
|
|
30
30
|
import { ToastStack } from '@/client/components/common/ToastStack';
|
|
31
31
|
import { SessionDeleteModal } from '@/client/components/common/session-delete-modal';
|
|
32
32
|
import { useNavbarSessionActions } from '@/client/hooks/workspace/navbar-session-actions';
|
|
33
|
+
import { useCopyTabPath } from '@/client/hooks/workspace/copy-tab-path';
|
|
33
34
|
|
|
34
35
|
interface DesktopLayoutProps {
|
|
35
36
|
sessionId: string | null;
|
|
@@ -38,7 +39,7 @@ interface DesktopLayoutProps {
|
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
export function DesktopLayout({ sessionId, onSwitchToMobile, appSettings = {} }: DesktopLayoutProps) {
|
|
41
|
-
const { folders } = useSidebarData();
|
|
42
|
+
const { folders, isMock } = useSidebarData();
|
|
42
43
|
const [showRightPanel, setShowRightPanel] = useSessionState<boolean>('layout.showRightPanel', appSettings.showRightPanel ?? true);
|
|
43
44
|
const [activeRightPanel, setActiveRightPanel] = useSessionState<string>('layout.activeRightPanel', (appSettings.activeRightPanel as string) ?? 'files');
|
|
44
45
|
const [showLeftPanel, setShowLeftPanel] = useSessionState<boolean>('layout.showLeftPanel', appSettings.showLeftPanel ?? true);
|
|
@@ -96,17 +97,9 @@ export function DesktopLayout({ sessionId, onSwitchToMobile, appSettings = {} }:
|
|
|
96
97
|
convertDiffToEditor,
|
|
97
98
|
} = useFileTabs(activeProjectPath, sessionId || '', handleOpenTab);
|
|
98
99
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
* Copy Path needs the tab's own path (which may be a diff's), and Reveal needs the
|
|
103
|
-
* Files panel to expand to it — both live here because the strip has no workspace
|
|
104
|
-
* scope of its own.
|
|
105
|
-
*/
|
|
106
|
-
const handleCopyTabPath = useCallback((tab: OpenedFile) => {
|
|
107
|
-
if (!tab.path) return;
|
|
108
|
-
void navigator.clipboard?.writeText(tab.path);
|
|
109
|
-
}, []);
|
|
100
|
+
// The tab strip's Copy Path action. Extracted because the layout's own
|
|
101
|
+
// state must stay readable: one action, one owner.
|
|
102
|
+
const handleCopyTabPath = useCopyTabPath();
|
|
110
103
|
|
|
111
104
|
// Three ways the column has content: a file, a chosen takeover, and a
|
|
112
105
|
// takeover that merely exists. Only the first two OPEN it — installing a
|
|
@@ -228,6 +221,7 @@ export function DesktopLayout({ sessionId, onSwitchToMobile, appSettings = {} }:
|
|
|
228
221
|
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"
|
|
229
222
|
>
|
|
230
223
|
<WindowAura />
|
|
224
|
+
<ShellNotice isMock={isMock} />
|
|
231
225
|
|
|
232
226
|
{/* Main Workspace: the resizable LEFT dock (rail + view, see
|
|
233
227
|
`LeftColumn`) plus the right stack. */}
|
|
@@ -264,9 +258,13 @@ export function DesktopLayout({ sessionId, onSwitchToMobile, appSettings = {} }:
|
|
|
264
258
|
onOpenFile={(file) => handleOpenFile(file as Parameters<typeof handleOpenFile>[0])}
|
|
265
259
|
/>
|
|
266
260
|
|
|
267
|
-
{/* Right stack: top navbar + resizable workspace (the group's filler)
|
|
261
|
+
{/* Right stack: top navbar + resizable workspace (the group's filler).
|
|
262
|
+
The column IS the document's main content, so it carries the
|
|
263
|
+
landmark: a screen reader could otherwise jump only between the
|
|
264
|
+
sidebar's `aside` and the header's `nav`, with everything the app
|
|
265
|
+
exists for unreachable by landmark. */}
|
|
268
266
|
<Panel id="main-right-stack" filler minSize={0}>
|
|
269
|
-
<
|
|
267
|
+
<main className="flex flex-col h-full">
|
|
270
268
|
<PluginBootstrap workspacePath={activeProjectPath} />
|
|
271
269
|
<TopNavbar
|
|
272
270
|
sessionTitle={sessionTitle}
|
|
@@ -318,7 +316,7 @@ export function DesktopLayout({ sessionId, onSwitchToMobile, appSettings = {} }:
|
|
|
318
316
|
onSessionTitle={setSessionTitle}
|
|
319
317
|
onPanelWidths={commitWidths}
|
|
320
318
|
/>
|
|
321
|
-
</
|
|
319
|
+
</main>
|
|
322
320
|
</Panel>
|
|
323
321
|
</Group>
|
|
324
322
|
</div>
|
|
@@ -135,6 +135,17 @@ export function Panel(props: {
|
|
|
135
135
|
filler ? null : clamp(toPx(defaultSize, minPx), minPx, maxPx),
|
|
136
136
|
);
|
|
137
137
|
const sizePxRef = useRef(sizePx);
|
|
138
|
+
// A width TRANSITION on the first frame is a layout shift, not an animation:
|
|
139
|
+
// the stored width arrives from settings in a later render, and every
|
|
140
|
+
// intermediate value the transition swept through counted as a shift —
|
|
141
|
+
// measured 268 → 276 → 288 → 312 → 333 px on mount, four entries in one load.
|
|
142
|
+
// Transitions start only after the panel has committed its first size, so the
|
|
143
|
+
// first paint is already the width the user will see.
|
|
144
|
+
const [transitionReady, setTransitionReady] = useState(false);
|
|
145
|
+
useEffect(() => {
|
|
146
|
+
const frame = requestAnimationFrame(() => setTransitionReady(true));
|
|
147
|
+
return () => cancelAnimationFrame(frame);
|
|
148
|
+
}, []);
|
|
138
149
|
|
|
139
150
|
/**
|
|
140
151
|
* The ONE way a size is applied: the ref and the state move together.
|
|
@@ -234,7 +245,9 @@ export function Panel(props: {
|
|
|
234
245
|
// (see useSeparatorDrag), and this transition is what makes those steps
|
|
235
246
|
// read as one movement. It also carries a panel to its remembered width
|
|
236
247
|
// on a view switch, and to zero on collapse, instead of snapping.
|
|
237
|
-
transition:
|
|
248
|
+
transition: transitionReady
|
|
249
|
+
? `${orientation === 'horizontal' ? 'width' : 'height'} 200ms cubic-bezier(0.22, 1, 0.36, 1)`
|
|
250
|
+
: 'none',
|
|
238
251
|
overflow: 'hidden',
|
|
239
252
|
position: 'relative',
|
|
240
253
|
};
|
|
@@ -22,6 +22,7 @@ import { NewWorktreeModal } from '@/client/components/workspace/worktree-modal/i
|
|
|
22
22
|
import { SelectionCheckbox } from '@/client/components/common/batch-selection/SelectionCheckbox';
|
|
23
23
|
import { WorkspaceOptionsMenu } from '@/client/components/common/workspace-options-menu';
|
|
24
24
|
import { getProjectIcon } from '@/shared/lib/workspace/project-icon';
|
|
25
|
+
import { projectAccentStyle } from '@/shared/lib/workspace/project-accent';
|
|
25
26
|
import type { WorkspaceFolderData } from '@/shared/types';
|
|
26
27
|
|
|
27
28
|
export interface CategoryHeaderCheckbox {
|
|
@@ -123,7 +124,7 @@ export function CategoryHeader({
|
|
|
123
124
|
<ProjectIcon
|
|
124
125
|
size={15}
|
|
125
126
|
className="project-accent-mark text-ink/75"
|
|
126
|
-
style={folder.accentColor
|
|
127
|
+
style={projectAccentStyle(folder.accentColor) as unknown as Record<string, string>}
|
|
127
128
|
/>
|
|
128
129
|
)}
|
|
129
130
|
</span>
|
|
@@ -20,12 +20,14 @@ import { useState } from 'preact/hooks';
|
|
|
20
20
|
import { SessionSidebarToolbar } from '@/client/components/layout/session-sidebar/Toolbar';
|
|
21
21
|
import { SessionSidebarSessionList } from '@/client/components/layout/session-sidebar/SessionList';
|
|
22
22
|
import { SessionListSkeleton } from '@/client/components/layout/session-sidebar/Skeleton';
|
|
23
|
+
import { SessionListNotice } from '@/client/components/layout/session-sidebar/SessionListNotice';
|
|
23
24
|
import type { SessionSidebarVariantProps } from '@/client/components/layout/session-sidebar/variant-props';
|
|
24
25
|
|
|
25
26
|
export function ClassicSidebarView({
|
|
26
27
|
className = '',
|
|
27
28
|
folders,
|
|
28
29
|
initializing,
|
|
30
|
+
failed,
|
|
29
31
|
activeSessionId,
|
|
30
32
|
sessionStatus,
|
|
31
33
|
searchQuery,
|
|
@@ -98,7 +100,9 @@ export function ClassicSidebarView({
|
|
|
98
100
|
selecting={batchActive}
|
|
99
101
|
/>
|
|
100
102
|
|
|
101
|
-
{
|
|
103
|
+
{failed ? (
|
|
104
|
+
<SessionListNotice onRetry={onRefresh} />
|
|
105
|
+
) : initializing ? (
|
|
102
106
|
<SessionListSkeleton />
|
|
103
107
|
) : (
|
|
104
108
|
<SessionSidebarSessionList
|
|
@@ -41,7 +41,7 @@ export function SessionSidebarSessionList({
|
|
|
41
41
|
return (
|
|
42
42
|
<div className="flex-1 scrollbar-overlay-container p-2 space-y-4">
|
|
43
43
|
{folders.length === 0 ? (
|
|
44
|
-
<div className="text-center py-8 text-xs text-
|
|
44
|
+
<div className="text-center py-8 text-xs text-muted">
|
|
45
45
|
{searchQuery ? 'No results found.' : 'No workspaces available.'}
|
|
46
46
|
</div>
|
|
47
47
|
) : (
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* What the session list says when the read FAILED.
|
|
8
|
+
*
|
|
9
|
+
* The list used to have two states: `initializing` (skeleton) and data. A failed
|
|
10
|
+
* read therefore looked exactly like a slow one, forever — measured with `/api/**`
|
|
11
|
+
* aborted, the drawer still drew placeholders after seven seconds, with no text,
|
|
12
|
+
* no `role="alert"` and no control to retry. R-27 asks for the third state and
|
|
13
|
+
* asks it to name the cause and the next action, which is what this draws.
|
|
14
|
+
*
|
|
15
|
+
* Two audiences, one component: the desktop dock and the phone's drawer both get
|
|
16
|
+
* it from here, so the two layouts cannot word the same failure differently. It
|
|
17
|
+
* is deliberately NOT a skeleton with an error tint: the shape that means "still
|
|
18
|
+
* coming" must not be the shape that means "this is not coming".
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
import { AlertTriangle, RefreshCw } from 'lucide-preact';
|
|
22
|
+
|
|
23
|
+
interface SessionListNoticeProps {
|
|
24
|
+
/** `touch` is the phone drawer: taller targets, roomier text. */
|
|
25
|
+
touch?: boolean;
|
|
26
|
+
/** The user's own retry — the same `refreshNow` the toolbar's button calls. */
|
|
27
|
+
onRetry: () => void;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function SessionListNotice({ touch = false, onRetry }: SessionListNoticeProps) {
|
|
31
|
+
return (
|
|
32
|
+
<div
|
|
33
|
+
role="alert"
|
|
34
|
+
className={`flex flex-col items-center justify-center gap-2 px-4 text-center ${touch ? 'py-10' : 'py-8'}`}
|
|
35
|
+
>
|
|
36
|
+
<span className="flex h-8 w-8 items-center justify-center rounded-md border border-ink/10 bg-ink/5 text-muted">
|
|
37
|
+
<AlertTriangle size={15} aria-hidden="true" />
|
|
38
|
+
</span>
|
|
39
|
+
<p className="text-xs font-semibold text-ink">The session list could not be loaded.</p>
|
|
40
|
+
<p className={`text-muted leading-relaxed ${touch ? 'text-xs' : 'text-[11px]'}`}>
|
|
41
|
+
The live connection closed before the first reply arrived. Your sessions are still on
|
|
42
|
+
disk; they are not shown here because this tab never received them.
|
|
43
|
+
</p>
|
|
44
|
+
<button
|
|
45
|
+
type="button"
|
|
46
|
+
onClick={onRetry}
|
|
47
|
+
className={`mt-1 inline-flex items-center gap-1.5 rounded-md border border-ink/20 bg-paper px-2.5 font-medium text-ink transition-colors hover:bg-ink/5 ${
|
|
48
|
+
touch ? 'h-11 text-sm' : 'h-7 text-xs'
|
|
49
|
+
}`}
|
|
50
|
+
>
|
|
51
|
+
<RefreshCw size={13} aria-hidden="true" />
|
|
52
|
+
Try again
|
|
53
|
+
</button>
|
|
54
|
+
</div>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
@@ -56,6 +56,7 @@ export function SessionsView({
|
|
|
56
56
|
const {
|
|
57
57
|
folders,
|
|
58
58
|
initializing,
|
|
59
|
+
failed,
|
|
59
60
|
refreshNow,
|
|
60
61
|
isRefreshing,
|
|
61
62
|
activeSessionId,
|
|
@@ -180,6 +181,7 @@ export function SessionsView({
|
|
|
180
181
|
className: `flex-1 min-h-0 w-full ${className}`,
|
|
181
182
|
folders: processedFolders,
|
|
182
183
|
initializing,
|
|
184
|
+
failed,
|
|
183
185
|
activeSessionId,
|
|
184
186
|
sessionStatus,
|
|
185
187
|
searchQuery,
|
|
@@ -79,7 +79,7 @@ export function UpdateSection({ updates, onToast }: UpdateSectionProps) {
|
|
|
79
79
|
<section className="mt-5 border-y border-ink/10 py-3 text-left" aria-labelledby="updates-heading">
|
|
80
80
|
<div className="flex items-center justify-between gap-3">
|
|
81
81
|
<h3 id="updates-heading" className="text-xs font-semibold text-ink">Updates</h3>
|
|
82
|
-
{updates.info && <span className="font-mono text-[
|
|
82
|
+
{updates.info && <span className="font-mono text-[10px] text-ink/40">checked</span>}
|
|
83
83
|
</div>
|
|
84
84
|
|
|
85
85
|
{updates.progress && (
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useState } from 'preact/hooks';
|
|
1
|
+
import { useRef, useState } from 'preact/hooks';
|
|
2
2
|
import { createPortal } from 'preact/compat';
|
|
3
3
|
import { Heart, X } from 'lucide-preact';
|
|
4
4
|
import packageJson from '@/../package.json';
|
|
@@ -9,6 +9,7 @@ import { SocialLinks } from '@/client/components/layout/session-sidebar/about-mo
|
|
|
9
9
|
import { UpdateSection } from '@/client/components/layout/session-sidebar/about-modal/UpdateSection';
|
|
10
10
|
import { VersionLine } from '@/client/components/layout/session-sidebar/about-modal/VersionLine';
|
|
11
11
|
import { useKabmoEvent } from '@/client/hooks/ui/window-event';
|
|
12
|
+
import { useDialogBehaviour } from '@/client/hooks/ui/dialog-behaviour';
|
|
12
13
|
import { UPDATE_POPUP_OPEN_EVENT } from '@/shared/lib/updates/popup-state';
|
|
13
14
|
import type { UpdateTarget } from '@/shared/types/updates';
|
|
14
15
|
|
|
@@ -23,6 +24,11 @@ export function AboutModal({ isOpen, onClose, updates, onToast }: AboutModalProp
|
|
|
23
24
|
// Which product's "what am I running" notes are open. The dialog draws above
|
|
24
25
|
// this panel instead of replacing it, so closing it returns here.
|
|
25
26
|
const [notesTarget, setNotesTarget] = useState<UpdateTarget | null>(null);
|
|
27
|
+
// The About sheet is a dialog to assistive tech and to the keyboard. It had
|
|
28
|
+
// neither: measured in the running console it carried no `role`, no
|
|
29
|
+
// `aria-modal`, and Escape did nothing while focus sat inside it.
|
|
30
|
+
const panelRef = useRef<HTMLDivElement | null>(null);
|
|
31
|
+
useDialogBehaviour(panelRef, { open: isOpen, onClose });
|
|
26
32
|
|
|
27
33
|
// "What's new" opens the popup, which draws at a higher layer: leaving this
|
|
28
34
|
// dialog mounted would stack two modals over the same subject, and its
|
|
@@ -48,6 +54,11 @@ export function AboutModal({ isOpen, onClose, updates, onToast }: AboutModalProp
|
|
|
48
54
|
onClick={onClose}
|
|
49
55
|
>
|
|
50
56
|
<div
|
|
57
|
+
ref={panelRef}
|
|
58
|
+
role="dialog"
|
|
59
|
+
aria-modal="true"
|
|
60
|
+
aria-label="About Kabmo"
|
|
61
|
+
tabIndex={-1}
|
|
51
62
|
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
63
|
onClick={(e) => e.stopPropagation()}
|
|
53
64
|
>
|
|
@@ -55,6 +55,7 @@ import { anchorRectOf, type AnchorRect } from '@/shared/lib/ui/menu-anchor';
|
|
|
55
55
|
import { SelectionCheckbox } from '@/client/components/common/batch-selection/SelectionCheckbox';
|
|
56
56
|
import type { CategoryHeaderCheckbox } from '@/client/components/layout/session-sidebar/CategoryHeader';
|
|
57
57
|
import { getProjectIcon } from '@/shared/lib/workspace/project-icon';
|
|
58
|
+
import { projectAccentStyle } from '@/shared/lib/workspace/project-accent';
|
|
58
59
|
import type { WorkspaceFolderData } from '@/shared/types';
|
|
59
60
|
|
|
60
61
|
export interface WorkspaceHeaderProps {
|
|
@@ -136,7 +137,7 @@ export function WorkspaceHeader({
|
|
|
136
137
|
referrerPolicy="no-referrer"
|
|
137
138
|
/>
|
|
138
139
|
) : (
|
|
139
|
-
<ProjectIcon size={15} className="project-accent-mark text-ink/70" style={accent
|
|
140
|
+
<ProjectIcon size={15} className="project-accent-mark text-ink/70" style={projectAccentStyle(accent) as unknown as Record<string, string>} />
|
|
140
141
|
)}
|
|
141
142
|
</span>
|
|
142
143
|
)}
|
|
@@ -26,6 +26,7 @@ import { FilterChips } from '@/client/components/layout/session-sidebar/modern/F
|
|
|
26
26
|
import { SidebarActionRow } from '@/client/components/layout/session-sidebar/modern/ActionRow';
|
|
27
27
|
import { WorkspaceSection } from '@/client/components/layout/session-sidebar/modern/WorkspaceSection';
|
|
28
28
|
import { ModernSidebarSkeleton } from '@/client/components/layout/session-sidebar/modern/Skeleton';
|
|
29
|
+
import { SessionListNotice } from '@/client/components/layout/session-sidebar/SessionListNotice';
|
|
29
30
|
import {
|
|
30
31
|
focusFolders,
|
|
31
32
|
runningSessionCount,
|
|
@@ -37,6 +38,7 @@ export function ModernSidebarView({
|
|
|
37
38
|
className = '',
|
|
38
39
|
folders,
|
|
39
40
|
initializing,
|
|
41
|
+
failed,
|
|
40
42
|
activeSessionId,
|
|
41
43
|
sessionStatus,
|
|
42
44
|
searchQuery,
|
|
@@ -109,10 +111,12 @@ export function ModernSidebarView({
|
|
|
109
111
|
/>
|
|
110
112
|
|
|
111
113
|
<div className="mt-1 flex-1 scrollbar-overlay-container px-2 pb-3">
|
|
112
|
-
{
|
|
114
|
+
{failed ? (
|
|
115
|
+
<SessionListNotice touch={touch} onRetry={onRefresh} />
|
|
116
|
+
) : initializing ? (
|
|
113
117
|
<ModernSidebarSkeleton touch={touch} />
|
|
114
118
|
) : visible.length === 0 ? (
|
|
115
|
-
<div className="px-1 py-8 text-center text-[11px] leading-relaxed text-
|
|
119
|
+
<div className="px-1 py-8 text-center text-[11px] leading-relaxed text-muted">
|
|
116
120
|
{focus === 'running'
|
|
117
121
|
? 'Nothing is running right now.'
|
|
118
122
|
: searchQuery
|
|
@@ -42,7 +42,7 @@ export function CloneField({ parent, busy, onClone }: CloneFieldProps) {
|
|
|
42
42
|
<div>
|
|
43
43
|
<label className="block text-xs font-semibold mb-1 text-ink">
|
|
44
44
|
Clone Git Repository{' '}
|
|
45
|
-
<span className="text-ink/40 font-normal">(optional
|
|
45
|
+
<span className="text-ink/40 font-normal">(optional: clones into the path above)</span>
|
|
46
46
|
</label>
|
|
47
47
|
<div className="flex items-center space-x-2">
|
|
48
48
|
<input
|
|
@@ -174,7 +174,7 @@ function NewWorkspaceForm({
|
|
|
174
174
|
<label className="block text-xs font-semibold mb-1 text-ink">
|
|
175
175
|
Workspace Name{' '}
|
|
176
176
|
<span className="text-ink/40 font-normal">
|
|
177
|
-
{tab === 'clone' ? '(optional
|
|
177
|
+
{tab === 'clone' ? '(optional: defaults to the repository name)' : ''}
|
|
178
178
|
</span>
|
|
179
179
|
</label>
|
|
180
180
|
<input
|
|
@@ -190,7 +190,7 @@ function NewWorkspaceForm({
|
|
|
190
190
|
<label className="block text-xs font-semibold mb-1 text-ink">
|
|
191
191
|
{tab === 'clone' ? 'Clone Into' : 'Project Path'}{' '}
|
|
192
192
|
<span className="text-ink/40 font-normal">
|
|
193
|
-
{tab === 'create' ? '(optional
|
|
193
|
+
{tab === 'create' ? '(optional: binds omp sessions)' : ''}
|
|
194
194
|
</span>
|
|
195
195
|
</label>
|
|
196
196
|
<LocationBar
|
|
@@ -180,7 +180,7 @@ export function TaskForm({
|
|
|
180
180
|
</select>
|
|
181
181
|
</div>
|
|
182
182
|
<div className="flex items-end">
|
|
183
|
-
<label className={`flex items-center gap-2 text-[11px] ${activeSessionId ? 'text-ink/70' : 'text-ink/
|
|
183
|
+
<label className={`flex items-center gap-2 text-[11px] ${activeSessionId ? 'text-ink/70' : 'text-ink/35'}`}>
|
|
184
184
|
<input
|
|
185
185
|
type="checkbox"
|
|
186
186
|
checked={useActiveSession}
|
|
@@ -42,7 +42,7 @@ interface TaskListProps {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
function formatAbsolute(at: number | null): string {
|
|
45
|
-
return at === null ? '
|
|
45
|
+
return at === null ? '–' : new Date(at).toLocaleString();
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/** A short label for the prompt when the task has no name. */
|
|
@@ -115,7 +115,7 @@ export function TaskList({
|
|
|
115
115
|
<span className="text-ink/30"> · </span>
|
|
116
116
|
{!task.enabled
|
|
117
117
|
? task.kind === 'once' && task.lastRunAt !== null
|
|
118
|
-
? 'Ran once
|
|
118
|
+
? 'Ran once, with no next run'
|
|
119
119
|
: 'Paused'
|
|
120
120
|
: `Next ${formatAbsolute(task.nextRunAt)}`}
|
|
121
121
|
</p>
|
|
@@ -204,7 +204,7 @@ export function TaskList({
|
|
|
204
204
|
>
|
|
205
205
|
{run.status}
|
|
206
206
|
</span>
|
|
207
|
-
<span className="min-w-0 flex-1 text-ink/60 break-words">{run.detail || '
|
|
207
|
+
<span className="min-w-0 flex-1 text-ink/60 break-words">{run.detail || '–'}</span>
|
|
208
208
|
</div>
|
|
209
209
|
))}
|
|
210
210
|
</div>
|
|
@@ -109,7 +109,7 @@ export function SchedulerModal({
|
|
|
109
109
|
onToast?.(failure, 'error');
|
|
110
110
|
return;
|
|
111
111
|
}
|
|
112
|
-
onToast?.('Task dispatched
|
|
112
|
+
onToast?.('Task dispatched. Open the session to watch it run.', 'success');
|
|
113
113
|
};
|
|
114
114
|
|
|
115
115
|
const remove = async (id: string) => {
|