@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
|
@@ -38,7 +38,7 @@ export function GitFileItem({ change, isStaged, repo, rootPath, onAction }: GitF
|
|
|
38
38
|
onClick={handleOpenDiff}
|
|
39
39
|
>
|
|
40
40
|
<div className="flex items-center space-x-1.5 flex-1 min-w-0 pr-2">
|
|
41
|
-
<span className={`font-bold font-mono text-[
|
|
41
|
+
<span className={`font-bold font-mono text-[10px] w-3 flex-shrink-0 text-center ${colorClass}`} title={`Status: ${statusInfo.label}`}>
|
|
42
42
|
{charStatus}
|
|
43
43
|
</span>
|
|
44
44
|
<FileIcon name={fileName} size={12} className="flex-shrink-0" />
|
|
@@ -46,7 +46,7 @@ export function GitFileItem({ change, isStaged, repo, rootPath, onAction }: GitF
|
|
|
46
46
|
{fileName}
|
|
47
47
|
</span>
|
|
48
48
|
{dirPath && (
|
|
49
|
-
<span className="text-[
|
|
49
|
+
<span className="text-[10px] text-ink/40 truncate ml-1">
|
|
50
50
|
{dirPath}
|
|
51
51
|
</span>
|
|
52
52
|
)}
|
|
@@ -128,7 +128,7 @@ export function GitStashSection({ rootPath, repo, isBusy, onAction }: GitStashSe
|
|
|
128
128
|
<Archive size={12} />
|
|
129
129
|
<span>Stash</span>
|
|
130
130
|
{stashes.length > 0 && (
|
|
131
|
-
<span className="font-normal ml-1 border border-ink/20 rounded-full px-1.5 text-[
|
|
131
|
+
<span className="font-normal ml-1 border border-ink/20 rounded-full px-1.5 text-[10px] text-ink/50">
|
|
132
132
|
{stashes.length}
|
|
133
133
|
</span>
|
|
134
134
|
)}
|
|
@@ -202,13 +202,13 @@ export function GitStashSection({ rootPath, repo, isBusy, onAction }: GitStashSe
|
|
|
202
202
|
<span className="min-w-0 truncate text-[10px] text-ink/80" title={entry.subject}>
|
|
203
203
|
{entry.subject}
|
|
204
204
|
</span>
|
|
205
|
-
<span className="text-[
|
|
205
|
+
<span className="text-[10px] text-ink/40 text-right truncate">{entry.date}</span>
|
|
206
206
|
<div className="flex items-center justify-end gap-0.5 touch-visible opacity-0 group-hover/stash:opacity-100">
|
|
207
207
|
<button
|
|
208
208
|
type="button"
|
|
209
209
|
onClick={() => run('stash_apply', { ref: entry.ref, pop: '1' })}
|
|
210
210
|
disabled={isBusy}
|
|
211
|
-
title="Pop
|
|
211
|
+
title="Pop: apply and remove the entry"
|
|
212
212
|
aria-label="Pop stash"
|
|
213
213
|
className="w-5 h-5 flex items-center justify-center rounded hover:text-ink hover:bg-ink/10 cursor-pointer transition-colors disabled:opacity-40"
|
|
214
214
|
>
|
|
@@ -218,7 +218,7 @@ export function GitStashSection({ rootPath, repo, isBusy, onAction }: GitStashSe
|
|
|
218
218
|
type="button"
|
|
219
219
|
onClick={() => run('stash_apply', { ref: entry.ref })}
|
|
220
220
|
disabled={isBusy}
|
|
221
|
-
title="Apply
|
|
221
|
+
title="Apply: keep the entry"
|
|
222
222
|
aria-label="Apply stash"
|
|
223
223
|
className="w-5 h-5 flex items-center justify-center rounded hover:text-ink hover:bg-ink/10 cursor-pointer transition-colors disabled:opacity-40"
|
|
224
224
|
>
|
|
@@ -228,7 +228,7 @@ export function GitStashSection({ rootPath, repo, isBusy, onAction }: GitStashSe
|
|
|
228
228
|
type="button"
|
|
229
229
|
onClick={() => run('stash_drop', { ref: entry.ref })}
|
|
230
230
|
disabled={isBusy}
|
|
231
|
-
title="Drop
|
|
231
|
+
title="Drop: discard the entry (the stash is not recoverable from the panel)"
|
|
232
232
|
aria-label="Drop stash"
|
|
233
233
|
className="w-5 h-5 flex items-center justify-center rounded hover:text-error hover:bg-error/10 cursor-pointer transition-colors disabled:opacity-40"
|
|
234
234
|
>
|
|
@@ -38,7 +38,7 @@ export function GitTreeItem({
|
|
|
38
38
|
</span>
|
|
39
39
|
<FileIcon name={node.name} isFolder={true} isOpen={isOpen} size={13} className="flex-shrink-0" />
|
|
40
40
|
<span className="font-medium text-ink truncate">{node.name}</span>
|
|
41
|
-
<span className="text-[
|
|
41
|
+
<span className="text-[10px] text-ink/40 font-normal px-1 py-0.2 bg-ink/5 rounded-full ml-1">
|
|
42
42
|
{node.changeCount}
|
|
43
43
|
</span>
|
|
44
44
|
</div>
|
|
@@ -135,7 +135,7 @@ export function GitTreeItem({
|
|
|
135
135
|
>
|
|
136
136
|
<div className="flex items-center space-x-1.5 flex-1 min-w-0 pr-1">
|
|
137
137
|
<span className="w-3.5 h-3.5 flex items-center justify-center flex-shrink-0">
|
|
138
|
-
<span className={`font-bold font-mono text-[
|
|
138
|
+
<span className={`font-bold font-mono text-[10px] ${colorClass}`} title={`Status: ${statusInfo.label}`}>
|
|
139
139
|
{charStatus}
|
|
140
140
|
</span>
|
|
141
141
|
</span>
|
|
@@ -80,7 +80,7 @@ export function BranchRow({ branch, detached, onCheckout, onMerge, onRename, onD
|
|
|
80
80
|
</div>
|
|
81
81
|
|
|
82
82
|
<div className="h-5 flex items-center justify-end">
|
|
83
|
-
{branch.date && <span className="text-[
|
|
83
|
+
{branch.date && <span className="text-[10px] text-ink/40 truncate">{branch.date}</span>}
|
|
84
84
|
</div>
|
|
85
85
|
|
|
86
86
|
<div className="h-5 flex items-center justify-end gap-0.5 touch-visible opacity-0 group-hover/row:opacity-100">
|
|
@@ -131,7 +131,7 @@ function TrackingBadge({ branch }: { branch: GitBranchDetail }) {
|
|
|
131
131
|
if (branch.gone) {
|
|
132
132
|
return (
|
|
133
133
|
<span
|
|
134
|
-
className="text-[
|
|
134
|
+
className="text-[10px] font-mono text-warning border border-warning/30 rounded px-1 truncate"
|
|
135
135
|
title={`${branch.upstream} no longer exists on the remote — fetch --prune to drop it`}
|
|
136
136
|
>
|
|
137
137
|
gone
|
|
@@ -144,14 +144,14 @@ function TrackingBadge({ branch }: { branch: GitBranchDetail }) {
|
|
|
144
144
|
// fresh `git checkout -b` produces, and reporting ↑0 ↓0 would hide
|
|
145
145
|
// unpushed commits.
|
|
146
146
|
return (
|
|
147
|
-
<span className="text-[
|
|
147
|
+
<span className="text-[10px] font-mono text-ink/40 truncate" title="No upstream: this branch has never been published">
|
|
148
148
|
unpublished
|
|
149
149
|
</span>
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
return (
|
|
154
|
-
<span className="flex items-center gap-1 text-[
|
|
154
|
+
<span className="flex items-center gap-1 text-[10px] font-mono text-ink/50 min-w-0">
|
|
155
155
|
<span className="truncate" title={branch.upstream}>{branch.upstream}</span>
|
|
156
156
|
{(branch.ahead > 0 || branch.behind > 0) && (
|
|
157
157
|
<span className="tabular-nums text-ink/70 flex-shrink-0">
|
|
@@ -61,11 +61,11 @@ export function DeleteBranchDialog({
|
|
|
61
61
|
<div className="text-[10px] font-mono text-ink/60 border border-ink/10 rounded p-2 bg-canvas/40 flex flex-col gap-0.5">
|
|
62
62
|
<div className="flex items-center justify-between gap-2">
|
|
63
63
|
<span className="text-ink/40">last commit</span>
|
|
64
|
-
<span className="truncate">{branch.subject || '
|
|
64
|
+
<span className="truncate">{branch.subject || '–'}</span>
|
|
65
65
|
</div>
|
|
66
66
|
<div className="flex items-center justify-between gap-2">
|
|
67
67
|
<span className="text-ink/40">when</span>
|
|
68
|
-
<span>{branch.date || '
|
|
68
|
+
<span>{branch.date || '–'}</span>
|
|
69
69
|
</div>
|
|
70
70
|
</div>
|
|
71
71
|
|
|
@@ -161,7 +161,7 @@ export function GitPanel({ className = '', enabled = true, rootPath, refreshKey
|
|
|
161
161
|
if (!enabled) {
|
|
162
162
|
return (
|
|
163
163
|
<div className={`flex flex-col h-full bg-paper items-center justify-center text-ink/40 ${className}`}>
|
|
164
|
-
<span className="text-xs font-mono">No session selected</span>
|
|
164
|
+
<span className="text-xs font-mono text-muted">No session selected</span>
|
|
165
165
|
</div>
|
|
166
166
|
);
|
|
167
167
|
}
|
|
@@ -159,7 +159,7 @@ export function ModelDropdownItem({
|
|
|
159
159
|
composer trigger follows. */}
|
|
160
160
|
{showProvider && (
|
|
161
161
|
<span
|
|
162
|
-
className="shrink-0 whitespace-nowrap rounded border border-ink/15 bg-ink/5 px-1 font-mono text-[
|
|
162
|
+
className="shrink-0 whitespace-nowrap rounded border border-ink/15 bg-ink/5 px-1 font-mono text-[10px] leading-4 text-ink/55"
|
|
163
163
|
title={`Provider: ${model.provider}`}
|
|
164
164
|
>
|
|
165
165
|
{model.provider}
|
|
@@ -170,11 +170,11 @@ export function ModelDropdownItem({
|
|
|
170
170
|
type="button"
|
|
171
171
|
onClick={(e) => onToggleFavorite(model, e)}
|
|
172
172
|
title={model.isFavorite ? 'Remove from favorites' : 'Add to favorites'}
|
|
173
|
-
className="p-1 rounded text-ink/30 hover:text-
|
|
173
|
+
className="group p-1 rounded text-ink/30 hover:text-warning hover:bg-warning/10 transition-colors cursor-pointer"
|
|
174
174
|
>
|
|
175
175
|
<Star
|
|
176
176
|
size={13}
|
|
177
|
-
className={model.isFavorite ? 'fill-
|
|
177
|
+
className={model.isFavorite ? 'fill-current text-warning' : 'text-ink/30 group-hover:text-warning'}
|
|
178
178
|
/>
|
|
179
179
|
</button>
|
|
180
180
|
</div>
|
|
@@ -65,7 +65,7 @@ export function ModelDropdownSection({
|
|
|
65
65
|
<div className="flex items-center gap-2 min-w-0">
|
|
66
66
|
{iconType === 'star' && (
|
|
67
67
|
<span className="inline-flex items-center justify-center w-[18px] h-[18px] shrink-0">
|
|
68
|
-
<Star size={12} className="fill-
|
|
68
|
+
<Star size={12} className="fill-current text-warning" />
|
|
69
69
|
</span>
|
|
70
70
|
)}
|
|
71
71
|
{iconType === 'recent' && (
|
|
@@ -249,7 +249,7 @@ export function ModelDropdown({
|
|
|
249
249
|
setHoveredRow(null);
|
|
250
250
|
setFocusedIndex(-1);
|
|
251
251
|
}}
|
|
252
|
-
className="flex items-center space-x-1.5 hover:bg-ink/5 px-2 py-1 rounded transition-colors text-xs text-
|
|
252
|
+
className="tap-chip flex items-center space-x-1.5 hover:bg-ink/5 px-2 py-1 rounded transition-colors text-xs text-muted font-medium cursor-pointer min-w-0 max-w-full"
|
|
253
253
|
title={selectedModel ? `${selectedModel.provider} • ${selectedModel.name}` : 'Select a model'}
|
|
254
254
|
>
|
|
255
255
|
{selectedModel ? (
|
|
@@ -267,8 +267,8 @@ export function ModelDropdown({
|
|
|
267
267
|
takes the slack, because it is the part the reader is choosing
|
|
268
268
|
and the only part whose identity survives a cut. */}
|
|
269
269
|
<span className="flex items-baseline gap-1 min-w-0">
|
|
270
|
-
<span className="shrink-0 text-
|
|
271
|
-
<span className="text-ink/
|
|
270
|
+
<span className="shrink-0 text-muted font-normal">{selectedModel.provider}</span>
|
|
271
|
+
<span className="text-ink/50 flex-shrink-0">•</span>
|
|
272
272
|
<span className="min-w-0 flex-1 truncate">{selectedModel.name}</span>
|
|
273
273
|
</span>
|
|
274
274
|
</>
|
|
@@ -102,7 +102,7 @@ export function PlanPanel({ className = '', active = true }: PlanPanelProps) {
|
|
|
102
102
|
if (!sessionId) {
|
|
103
103
|
return (
|
|
104
104
|
<div className={`flex h-full flex-col items-center justify-center bg-paper text-ink/40 ${className}`}>
|
|
105
|
-
<span className="text-xs font-mono">No session selected</span>
|
|
105
|
+
<span className="text-xs font-mono text-muted">No session selected</span>
|
|
106
106
|
</div>
|
|
107
107
|
);
|
|
108
108
|
}
|
|
@@ -116,7 +116,7 @@ export function PlanPanel({ className = '', active = true }: PlanPanelProps) {
|
|
|
116
116
|
<FileText size={12} className="flex-shrink-0 text-ink/50" />
|
|
117
117
|
<span className="truncate text-[11px] font-medium text-ink/70">Plan mode</span>
|
|
118
118
|
{hasPlan && (
|
|
119
|
-
<span className="flex-shrink-0 rounded border border-ink/15 bg-ink/5 px-1.5 py-0.5 font-mono text-[
|
|
119
|
+
<span className="flex-shrink-0 rounded border border-ink/15 bg-ink/5 px-1.5 py-0.5 font-mono text-[10px] text-ink/60">
|
|
120
120
|
{files.length}
|
|
121
121
|
</span>
|
|
122
122
|
)}
|
|
@@ -207,7 +207,7 @@ export function RepoModal({
|
|
|
207
207
|
) : (
|
|
208
208
|
groups.map((group) => (
|
|
209
209
|
<div key={group.key}>
|
|
210
|
-
<div className="px-4 py-1 text-[
|
|
210
|
+
<div className="px-4 py-1 text-[10px] uppercase tracking-wider text-ink/40 font-semibold bg-canvas/40 border-b border-ink/5 sticky top-0">
|
|
211
211
|
{group.label ?? repoLabel('.', rootPath)}
|
|
212
212
|
</div>
|
|
213
213
|
{group.paths.map((path) => {
|
|
@@ -140,7 +140,7 @@ function StateBadges({ row }: { row: GitRepoDetail }) {
|
|
|
140
140
|
badges.push(
|
|
141
141
|
<span
|
|
142
142
|
key="operation"
|
|
143
|
-
className="flex flex-shrink-0 items-center gap-0.5 rounded border border-warning/30 px-1 text-[
|
|
143
|
+
className="flex flex-shrink-0 items-center gap-0.5 rounded border border-warning/30 px-1 text-[10px] font-mono text-warning"
|
|
144
144
|
title={
|
|
145
145
|
row.operation === 'stash-pop'
|
|
146
146
|
? `A stash pop stopped on ${row.conflicts} conflict(s)`
|
|
@@ -155,7 +155,7 @@ function StateBadges({ row }: { row: GitRepoDetail }) {
|
|
|
155
155
|
badges.push(
|
|
156
156
|
<span
|
|
157
157
|
key="conflicts"
|
|
158
|
-
className="flex flex-shrink-0 items-center gap-0.5 rounded border border-warning/30 px-1 text-[
|
|
158
|
+
className="flex flex-shrink-0 items-center gap-0.5 rounded border border-warning/30 px-1 text-[10px] font-mono text-warning"
|
|
159
159
|
title={`${row.conflicts} conflicted path(s)`}
|
|
160
160
|
>
|
|
161
161
|
<AlertTriangle size={9} />
|
|
@@ -168,7 +168,7 @@ function StateBadges({ row }: { row: GitRepoDetail }) {
|
|
|
168
168
|
badges.push(
|
|
169
169
|
<span
|
|
170
170
|
key="dirty"
|
|
171
|
-
className="flex-shrink-0 rounded border border-info/30 px-1 text-[
|
|
171
|
+
className="flex-shrink-0 rounded border border-info/30 px-1 text-[10px] font-mono tabular-nums text-info"
|
|
172
172
|
title={`${row.changed} changed, ${row.untracked} untracked`}
|
|
173
173
|
>
|
|
174
174
|
{row.changed > 0 ? `${row.changed}±` : ''}
|
|
@@ -182,7 +182,7 @@ function StateBadges({ row }: { row: GitRepoDetail }) {
|
|
|
182
182
|
badges.push(
|
|
183
183
|
<span
|
|
184
184
|
key="gone"
|
|
185
|
-
className="flex-shrink-0 rounded border border-warning/30 px-1 text-[
|
|
185
|
+
className="flex-shrink-0 rounded border border-warning/30 px-1 text-[10px] font-mono text-warning"
|
|
186
186
|
title={`${row.upstream} no longer exists on the remote — fetch --prune to drop it`}
|
|
187
187
|
>
|
|
188
188
|
gone
|
|
@@ -192,7 +192,7 @@ function StateBadges({ row }: { row: GitRepoDetail }) {
|
|
|
192
192
|
badges.push(
|
|
193
193
|
<span
|
|
194
194
|
key="track"
|
|
195
|
-
className="flex flex-shrink-0 items-center gap-0.5 text-[
|
|
195
|
+
className="flex flex-shrink-0 items-center gap-0.5 text-[10px] font-mono tabular-nums text-ink/60"
|
|
196
196
|
title={`${row.ahead} ahead of, ${row.behind} behind ${row.upstream}`}
|
|
197
197
|
>
|
|
198
198
|
{row.ahead > 0 && (
|
|
@@ -213,7 +213,7 @@ function StateBadges({ row }: { row: GitRepoDetail }) {
|
|
|
213
213
|
|
|
214
214
|
if (badges.length === 0) {
|
|
215
215
|
return (
|
|
216
|
-
<span className="text-[
|
|
216
|
+
<span className="text-[10px] font-mono text-ink/30" title="Nothing to report: clean and in sync">
|
|
217
217
|
clean, in sync
|
|
218
218
|
</span>
|
|
219
219
|
);
|
|
@@ -187,7 +187,7 @@ export function SearchPanelBody({
|
|
|
187
187
|
placeholder="Search"
|
|
188
188
|
value={query}
|
|
189
189
|
onChange={(e) => setQuery(e.currentTarget.value)}
|
|
190
|
-
className="w-full bg-transparent border-none text-xs px-2 py-1.5 focus:outline-none text-ink placeholder-ink/
|
|
190
|
+
className="w-full bg-transparent border-none text-xs px-2 py-1.5 focus:outline-none text-ink placeholder-ink/35 min-w-0"
|
|
191
191
|
/>
|
|
192
192
|
{query && (
|
|
193
193
|
<button
|
|
@@ -234,7 +234,7 @@ export function SearchPanelBody({
|
|
|
234
234
|
placeholder="Replace"
|
|
235
235
|
value={replaceQuery}
|
|
236
236
|
onChange={(e) => setReplaceQuery(e.currentTarget.value)}
|
|
237
|
-
className="flex-1 min-w-0 bg-transparent border-none text-xs px-2 py-1.5 focus:outline-none text-ink placeholder-ink/
|
|
237
|
+
className="flex-1 min-w-0 bg-transparent border-none text-xs px-2 py-1.5 focus:outline-none text-ink placeholder-ink/35"
|
|
238
238
|
/>
|
|
239
239
|
{replaceQuery && (
|
|
240
240
|
<button
|
|
@@ -153,7 +153,7 @@ export function SearchResults({
|
|
|
153
153
|
<div className="flex items-center min-w-0">
|
|
154
154
|
<FileIcon name={entry.file} size={12} className="mr-1.5 flex-shrink-0" />
|
|
155
155
|
<span className="truncate">{entry.file}</span>
|
|
156
|
-
<span className="ml-2 bg-ink/10 text-[
|
|
156
|
+
<span className="ml-2 bg-ink/10 text-[10px] px-1.5 py-0.5 rounded-full flex-shrink-0">
|
|
157
157
|
{entry.count}
|
|
158
158
|
</span>
|
|
159
159
|
</div>
|
|
@@ -89,7 +89,7 @@ export function SearchPanel({ className = '', enabled = true, rootPath, onOpenFi
|
|
|
89
89
|
if (!enabled) {
|
|
90
90
|
return (
|
|
91
91
|
<div className={`flex flex-col h-full bg-paper items-center justify-center text-ink/40 ${className}`}>
|
|
92
|
-
<span className="text-xs font-mono">No session selected</span>
|
|
92
|
+
<span className="text-xs font-mono text-muted">No session selected</span>
|
|
93
93
|
</div>
|
|
94
94
|
);
|
|
95
95
|
}
|
|
@@ -166,7 +166,7 @@ export function TerminalPanel({ className = '', enabled = true, rootPath, showHe
|
|
|
166
166
|
if (!enabled) {
|
|
167
167
|
return (
|
|
168
168
|
<div className={`flex flex-col h-full bg-paper items-center justify-center text-ink/40 ${className}`}>
|
|
169
|
-
<span className="text-xs font-mono">No session selected</span>
|
|
169
|
+
<span className="text-xs font-mono text-muted">No session selected</span>
|
|
170
170
|
</div>
|
|
171
171
|
);
|
|
172
172
|
}
|
|
@@ -51,7 +51,7 @@ export function TodoPhaseGroup({ phase, index, collapsed, currentKey, onToggle }
|
|
|
51
51
|
>
|
|
52
52
|
{index + 1}. {phase.name}
|
|
53
53
|
</span>
|
|
54
|
-
<span className="shrink-0 font-mono text-[
|
|
54
|
+
<span className="shrink-0 font-mono text-[10px] text-ink/40">
|
|
55
55
|
{closed}/{phase.tasks.length}
|
|
56
56
|
</span>
|
|
57
57
|
</button>
|
|
@@ -74,7 +74,7 @@ export function TodoPanel({ className = '', active = true }: TodoPanelProps) {
|
|
|
74
74
|
if (!sessionId) {
|
|
75
75
|
return (
|
|
76
76
|
<div className={`flex h-full flex-col items-center justify-center bg-paper text-ink/40 ${className}`}>
|
|
77
|
-
<span className="text-xs font-mono">No session selected</span>
|
|
77
|
+
<span className="text-xs font-mono text-muted">No session selected</span>
|
|
78
78
|
</div>
|
|
79
79
|
);
|
|
80
80
|
}
|
|
@@ -122,7 +122,7 @@ export function TodoPanel({ className = '', active = true }: TodoPanelProps) {
|
|
|
122
122
|
{stale && (
|
|
123
123
|
<div className="flex items-start gap-2 rounded-lg border border-ink/15 bg-ink/5 px-3 py-2 text-[11px] text-ink/60">
|
|
124
124
|
<AlertCircle size={13} className="mt-[1px] shrink-0" />
|
|
125
|
-
<span className="min-w-0 break-words">Reconnecting
|
|
125
|
+
<span className="min-w-0 break-words">Reconnecting: this list may be out of date.</span>
|
|
126
126
|
</div>
|
|
127
127
|
)}
|
|
128
128
|
|
|
@@ -79,13 +79,13 @@ export function UserBrowserAddressBar({
|
|
|
79
79
|
|
|
80
80
|
const navControls = (
|
|
81
81
|
<div className="flex items-center bg-canvas border border-ink/10 rounded-md p-0.5 space-x-0.5 flex-shrink-0">
|
|
82
|
-
<button type="button" onClick={onBack} disabled={!canGoBack} aria-label="
|
|
82
|
+
<button type="button" onClick={onBack} disabled={!canGoBack} aria-label="Back" title="Back" className={NAV_BUTTON}>
|
|
83
83
|
<ArrowLeft size={12} />
|
|
84
84
|
</button>
|
|
85
85
|
<button type="button" onClick={onForward} disabled={!canGoForward} aria-label="Maju" title="Maju" className={NAV_BUTTON}>
|
|
86
86
|
<ArrowRight size={12} />
|
|
87
87
|
</button>
|
|
88
|
-
<button type="button" onClick={onReload} disabled={!url} aria-label="
|
|
88
|
+
<button type="button" onClick={onReload} disabled={!url} aria-label="Reload" title="Reload" className={NAV_BUTTON}>
|
|
89
89
|
<RefreshCw size={12} className={loading ? 'animate-spin' : undefined} />
|
|
90
90
|
</button>
|
|
91
91
|
</div>
|
|
@@ -123,13 +123,13 @@ export function UserBrowserAddressBar({
|
|
|
123
123
|
type="text"
|
|
124
124
|
value={input}
|
|
125
125
|
onChange={(event) => onInputChange(event.currentTarget.value)}
|
|
126
|
-
placeholder="
|
|
127
|
-
aria-label="
|
|
126
|
+
placeholder="Type an address (e.g. localhost:5173) and press Enter…"
|
|
127
|
+
aria-label="Browser address"
|
|
128
128
|
aria-invalid={error !== undefined && error !== null}
|
|
129
129
|
title={error ?? undefined}
|
|
130
130
|
spellcheck={false}
|
|
131
131
|
autoComplete="off"
|
|
132
|
-
className={`w-full min-w-0 bg-transparent outline-none font-mono text-[11px] placeholder:text-ink/
|
|
132
|
+
className={`w-full min-w-0 bg-transparent outline-none font-mono text-[11px] placeholder:text-ink/35 ${error ? 'text-error' : 'text-ink/90'}`}
|
|
133
133
|
/>
|
|
134
134
|
</form>
|
|
135
135
|
</div>
|
|
@@ -103,7 +103,7 @@ afterEach(() => {
|
|
|
103
103
|
describe('label chips', () => {
|
|
104
104
|
test('the offered vocabulary is rendered as chips', () => {
|
|
105
105
|
const root = mount();
|
|
106
|
-
for (const name of ['header', 'form', '
|
|
106
|
+
for (const name of ['header', 'form', 'table', 'modal']) {
|
|
107
107
|
expect(byText(root, name)).toBeDefined();
|
|
108
108
|
}
|
|
109
109
|
});
|
|
@@ -121,20 +121,20 @@ describe('label chips', () => {
|
|
|
121
121
|
});
|
|
122
122
|
|
|
123
123
|
test('the chip matching the mark is the pressed one', () => {
|
|
124
|
-
const root = mount({ shapes: [mark({ label: '
|
|
125
|
-
expect(byText(root, '
|
|
124
|
+
const root = mount({ shapes: [mark({ label: 'table' })] });
|
|
125
|
+
expect(byText(root, 'table')?.getAttribute('aria-pressed')).toBe('true');
|
|
126
126
|
expect(byText(root, 'form')?.getAttribute('aria-pressed')).toBe('false');
|
|
127
127
|
});
|
|
128
128
|
|
|
129
129
|
test('the free-text field carries the mark’s own label', () => {
|
|
130
130
|
const root = mount({ shapes: [mark({ label: 'Ringkasan pesanan' })] });
|
|
131
|
-
const input = root.querySelector<HTMLInputElement>('input[aria-label="
|
|
131
|
+
const input = root.querySelector<HTMLInputElement>('input[aria-label="Name of the marked part"]');
|
|
132
132
|
expect(input?.value).toBe('Ringkasan pesanan');
|
|
133
133
|
});
|
|
134
134
|
|
|
135
135
|
test('typing in the field names the mark directly', () => {
|
|
136
136
|
const root = mount();
|
|
137
|
-
const input = root.querySelector<HTMLInputElement>('input[aria-label="
|
|
137
|
+
const input = root.querySelector<HTMLInputElement>('input[aria-label="Name of the marked part"]')!;
|
|
138
138
|
act(() => {
|
|
139
139
|
input.value = 'keranjang';
|
|
140
140
|
input.dispatchEvent(new window.Event('input', { bubbles: true }));
|
|
@@ -144,7 +144,7 @@ describe('label chips', () => {
|
|
|
144
144
|
|
|
145
145
|
test('the note field is separate from the label', () => {
|
|
146
146
|
const root = mount();
|
|
147
|
-
const note = root.querySelector<HTMLTextAreaElement>('textarea[aria-label="
|
|
147
|
+
const note = root.querySelector<HTMLTextAreaElement>('textarea[aria-label="Annotation note"]')!;
|
|
148
148
|
act(() => {
|
|
149
149
|
note.value = 'tombol mati';
|
|
150
150
|
note.dispatchEvent(new window.Event('input', { bubbles: true }));
|
|
@@ -166,14 +166,14 @@ describe('element readout', () => {
|
|
|
166
166
|
|
|
167
167
|
test('a cross-origin page says why there is no element, in words', () => {
|
|
168
168
|
const root = mount({ readability: { ok: false, reason: 'cross-origin' } });
|
|
169
|
-
expect(root.textContent).toContain('
|
|
170
|
-
expect(root.textContent).toContain('
|
|
169
|
+
expect(root.textContent).toContain('cross-origin');
|
|
170
|
+
expect(root.textContent).toContain('Name the part');
|
|
171
171
|
});
|
|
172
172
|
|
|
173
173
|
test('empty space is a different message from an unreadable page', () => {
|
|
174
174
|
const root = mount({ readability: { ok: false, reason: 'no-element' } });
|
|
175
|
-
expect(root.textContent).toContain('
|
|
176
|
-
expect(root.textContent).not.toContain('
|
|
175
|
+
expect(root.textContent).toContain('no element');
|
|
176
|
+
expect(root.textContent).not.toContain('cross-origin');
|
|
177
177
|
});
|
|
178
178
|
|
|
179
179
|
test('a successful lookup prints no reason line at all', () => {
|
|
@@ -181,8 +181,8 @@ describe('element readout', () => {
|
|
|
181
181
|
shapes: [mark({ element: { path: 'body > button', tag: 'button' } })],
|
|
182
182
|
readability: { ok: true, element: { path: 'body > button', tag: 'button' } },
|
|
183
183
|
});
|
|
184
|
-
expect(root.textContent).not.toContain('
|
|
185
|
-
expect(root.textContent).not.toContain('
|
|
184
|
+
expect(root.textContent).not.toContain('cross-origin');
|
|
185
|
+
expect(root.textContent).not.toContain('no element');
|
|
186
186
|
});
|
|
187
187
|
});
|
|
188
188
|
|
|
@@ -196,6 +196,6 @@ describe('missingElementReason', () => {
|
|
|
196
196
|
});
|
|
197
197
|
|
|
198
198
|
test('a frame that is not loaded yet is its own reason', () => {
|
|
199
|
-
expect(missingElementReason({ ok: false, reason: 'no-frame' })).toContain('
|
|
199
|
+
expect(missingElementReason({ ok: false, reason: 'no-frame' })).toContain('has not loaded');
|
|
200
200
|
});
|
|
201
201
|
});
|
|
@@ -73,10 +73,10 @@ export function AnnotateBar({
|
|
|
73
73
|
</button>
|
|
74
74
|
))}
|
|
75
75
|
<span className="text-[11px] font-mono text-ink/45 ml-1">
|
|
76
|
-
{shapes.length > 0 ? `${shapes.length}
|
|
76
|
+
{shapes.length > 0 ? `${shapes.length} mark${shapes.length === 1 ? '' : 's'}` : 'drag on the page to mark a part'}
|
|
77
77
|
</span>
|
|
78
78
|
<div className="flex-1" />
|
|
79
|
-
<button type="button" onClick={onReset} disabled={!usable} className={ACTION_BUTTON} title="
|
|
79
|
+
<button type="button" onClick={onReset} disabled={!usable} className={ACTION_BUTTON} title="Clear all marks">
|
|
80
80
|
<Trash2 size={12} /> Bersihkan
|
|
81
81
|
</button>
|
|
82
82
|
<button type="button" onClick={onSend} disabled={!usable} className={ACTION_BUTTON} title="Kirim anotasi ke draft chat">
|
|
@@ -98,13 +98,13 @@ export function AnnotateBar({
|
|
|
98
98
|
onNote={(note) => onNote(selected.id, note)}
|
|
99
99
|
/>
|
|
100
100
|
</div>
|
|
101
|
-
<button type="button" onClick={() => onRemove(selected.id)} className={ACTION_BUTTON} title="
|
|
101
|
+
<button type="button" onClick={() => onRemove(selected.id)} className={ACTION_BUTTON} title="Remove this mark">
|
|
102
102
|
<Trash2 size={12} />
|
|
103
103
|
</button>
|
|
104
104
|
</div>
|
|
105
105
|
) : (
|
|
106
106
|
<p className="text-[11px] text-ink/45">
|
|
107
|
-
|
|
107
|
+
This page cannot be screenshotted, so what gets sent is the area, the part name and your note.
|
|
108
108
|
</p>
|
|
109
109
|
)}
|
|
110
110
|
</div>
|
|
@@ -143,7 +143,7 @@ export function AnnotateLayer({ shapes, tool, selectedId, onMeasure, onAdd, onSe
|
|
|
143
143
|
className="absolute inset-0 w-full h-full"
|
|
144
144
|
viewBox={`0 0 ${Math.max(1, box.width)} ${Math.max(1, box.height)}`}
|
|
145
145
|
preserveAspectRatio="none"
|
|
146
|
-
aria-label="
|
|
146
|
+
aria-label="Page annotation area"
|
|
147
147
|
>
|
|
148
148
|
{painted.map((shape, index) => (
|
|
149
149
|
<ShapeMark
|
|
@@ -33,9 +33,9 @@ const FIELD =
|
|
|
33
33
|
/** Why the marked spot carries no element, in words the user can act on. */
|
|
34
34
|
export function missingElementReason(readability: ElementAtResult | null): string | null {
|
|
35
35
|
if (!readability || readability.ok) return null;
|
|
36
|
-
if (readability.reason === 'cross-origin') return '
|
|
37
|
-
if (readability.reason === 'no-frame') return '
|
|
38
|
-
return '
|
|
36
|
+
if (readability.reason === 'cross-origin') return 'This page is cross-origin, so its elements cannot be read. Name the part and add a note instead.';
|
|
37
|
+
if (readability.reason === 'no-frame') return 'The page has not loaded, so its elements cannot be read yet.';
|
|
38
|
+
return 'There is no element at this point (empty space). Name the part instead.';
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
export function AnnotateTarget({ shape, index, readability, onLabel, onNote }: AnnotateTargetProps) {
|
|
@@ -70,8 +70,8 @@ export function AnnotateTarget({ shape, index, readability, onLabel, onNote }: A
|
|
|
70
70
|
<input
|
|
71
71
|
value={shape.label}
|
|
72
72
|
onInput={(event) => onLabel(event.currentTarget.value)}
|
|
73
|
-
placeholder="
|
|
74
|
-
aria-label="
|
|
73
|
+
placeholder="or type your own…"
|
|
74
|
+
aria-label="Name of the marked part"
|
|
75
75
|
spellcheck={false}
|
|
76
76
|
className={`${FIELD} flex-1 min-w-[110px]`}
|
|
77
77
|
/>
|
|
@@ -80,9 +80,9 @@ export function AnnotateTarget({ shape, index, readability, onLabel, onNote }: A
|
|
|
80
80
|
<textarea
|
|
81
81
|
value={shape.note}
|
|
82
82
|
onInput={(event) => onNote(event.currentTarget.value)}
|
|
83
|
-
placeholder="
|
|
83
|
+
placeholder="What is wrong with this part? (e.g. the Pay button looks disabled)"
|
|
84
84
|
rows={2}
|
|
85
|
-
aria-label="
|
|
85
|
+
aria-label="Annotation note"
|
|
86
86
|
className={`${FIELD} resize-y`}
|
|
87
87
|
/>
|
|
88
88
|
|
|
@@ -54,7 +54,7 @@ export function UserBrowserFrame({
|
|
|
54
54
|
</div>
|
|
55
55
|
<h3 className="text-sm font-semibold text-ink mb-1">Browser Anda</h3>
|
|
56
56
|
<p className="text-xs text-ink/60 max-w-sm">
|
|
57
|
-
|
|
57
|
+
Type an address above and press Enter. The page loads inside this panel.
|
|
58
58
|
</p>
|
|
59
59
|
<p className="text-[11px] text-ink/45 max-w-sm mt-2">
|
|
60
60
|
Sebagian situs (Google, GitHub) menolak ditampilkan dalam iframe — pakai tombol buka di tab baru.
|
|
@@ -77,7 +77,7 @@ export function WikiNav({ sections, selected, onSelect }: WikiNavProps) {
|
|
|
77
77
|
filtered.map((section, index) => (
|
|
78
78
|
<div key={`${section.title ?? 'links'}-${index}`} className="py-0.5">
|
|
79
79
|
{section.title && (
|
|
80
|
-
<div className="px-2.5 py-1 text-[
|
|
80
|
+
<div className="px-2.5 py-1 text-[10px] font-semibold uppercase tracking-wider text-ink/40">
|
|
81
81
|
{section.title}
|
|
82
82
|
</div>
|
|
83
83
|
)}
|
|
@@ -150,7 +150,7 @@ export function WikiPanel({
|
|
|
150
150
|
if (!enabled) {
|
|
151
151
|
return (
|
|
152
152
|
<div className={`flex h-full flex-col items-center justify-center bg-paper text-ink/40 ${className}`}>
|
|
153
|
-
<span className="text-xs font-mono">No session selected</span>
|
|
153
|
+
<span className="text-xs font-mono text-muted">No session selected</span>
|
|
154
154
|
</div>
|
|
155
155
|
);
|
|
156
156
|
}
|
|
@@ -169,7 +169,7 @@ export function WikiPanel({
|
|
|
169
169
|
/>
|
|
170
170
|
{repo && (
|
|
171
171
|
<span
|
|
172
|
-
className="flex-shrink-0 rounded border border-ink/15 bg-ink/5 px-1.5 py-0.5 font-mono text-[
|
|
172
|
+
className="flex-shrink-0 rounded border border-ink/15 bg-ink/5 px-1.5 py-0.5 font-mono text-[10px] uppercase tracking-wider text-ink/60"
|
|
173
173
|
title={`${repo.host}/${repo.slug} · ${repo.revision.slice(0, 8)}`}
|
|
174
174
|
>
|
|
175
175
|
{repo.provider}
|