Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

Prd 7153 (#2015)

sarah917e04bc8336
diff --git a/.changeset/create-suggestions-below-composer.md b/.changeset/create-suggestions-below-composer.md
new file mode 100644
index 000000000..f5f682ac0
--- /dev/null
+++ b/.changeset/create-suggestions-below-composer.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+The empty-state create composer's starter-brief suggestion chips now sit in a centered row **below** the input card instead of crowding the footer next to the Create button. The footer keeps only the Create split button (pinned right), giving the textarea and its primary action a cleaner, less cluttered layout. Clicking a chip still prefills the brief (no auto-create), unchanged.
diff --git a/.changeset/file-tree-density-roomier-rows.md b/.changeset/file-tree-density-roomier-rows.md
new file mode 100644
index 000000000..919ea11c6
--- /dev/null
+++ b/.changeset/file-tree-density-roomier-rows.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+Slightly roomier file-tree rows. Row height goes from 24px to 26px and the per-level and inter-row gaps are evened out (4px each), giving the sidebar a bit more breathing room while keeping the compact, VS Code-style density.
diff --git a/.changeset/open-with-ai-popover-polish.md b/.changeset/open-with-ai-popover-polish.md
new file mode 100644
index 000000000..d317a0aba
--- /dev/null
+++ b/.changeset/open-with-ai-popover-polish.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+Tightened the toolbar "Open with AI" popover styling. The popover now uses compact padding, the instruction field sits in its own padded header, and the Desktop/Terminal section labels and agent rows are restyled into a denser, more menu-like list. Behavior is unchanged.
diff --git a/packages/app/src/components/empty-state/CreatePromptComposer.tsx b/packages/app/src/components/empty-state/CreatePromptComposer.tsx
index a388de34a..ddedb27ad 100644
--- a/packages/app/src/components/empty-state/CreatePromptComposer.tsx
+++ b/packages/app/src/components/empty-state/CreatePromptComposer.tsx
@@ -155,148 +155,146 @@ export function CreatePromptComposer({ scenario, className }: CreatePromptCompos
const showTerminalSection = terminalLaunch !== null;
return (
- <div
- className={cn(
- 'flex w-full flex-col rounded-2xl border border-border/60 bg-card shadow-sm transition-colors focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50',
- className,
- )}
- >
- {/* The card owns the border + focus ring; the textarea drops its own
- (border-0 + ring-0) so the whole card lights up on focus instead of
- nesting a second outline. */}
- <Textarea
- ref={textareaRef}
- value={description}
- onChange={(event) => setDescription(event.target.value)}
- onKeyDown={handleKeyDown}
- rows={4}
- placeholder={t`A team knowledge base, a personal wiki, project docs...`}
- aria-label={t`Describe the project you want to create`}
- className="min-h-[112px] resize-none rounded-2xl border-0 bg-transparent dark:bg-transparent px-4 py-3.5 text-sm leading-relaxed shadow-none focus-visible:border-0 focus-visible:ring-0"
- />
- {/* Footer row: starter-brief chips (prefill the field, no auto-create) on
- the left, the Create split button pinned right. Chips wrap among
- themselves on narrow widths while the button stays put. */}
- <div className="flex flex-wrap items-center justify-between gap-2 px-3 pb-3">
- <div className="flex min-w-0 flex-wrap items-center gap-2">
- {suggestions.map((suggestion) => {
- const Icon = suggestion.icon;
- return (
- <Button
- key={suggestion.id}
- type="button"
- variant="outline"
- size="sm"
- onClick={() => applySuggestion(suggestion.prompt)}
- className="gap-1.5 rounded-md font-normal text-muted-foreground hover:text-foreground"
- data-testid={`create-suggestion-${suggestion.id}`}
- >
- <Icon className="size-3.5" aria-hidden="true" />
- {suggestion.label}
- </Button>
- );
- })}
- </div>
- {selectedAgentId === null ? (
- <Button
- type="button"
- variant="outline"
- disabled
- className="gap-1.5"
- data-testid="create-with-agent"
- >
- <Trans>Create</Trans>
- </Button>
- ) : (
- <ButtonGroup>
+ <div className={cn('flex w-full flex-col gap-3', className)}>
+ <div className="flex w-full flex-col rounded-2xl border border-border/60 bg-card shadow-sm transition-colors focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50">
+ {/* The card owns the border + focus ring; the textarea drops its own
+ (border-0 + ring-0) so the whole card lights up on focus instead of
+ nesting a second outline. */}
+ <Textarea
+ ref={textareaRef}
+ value={description}
+ onChange={(event) => setDescription(event.target.value)}
+ onKeyDown={handleKeyDown}
+ rows={4}
+ placeholder={t`A team knowledge base, a personal wiki, project docs...`}
+ aria-label={t`Describe the project you want to create`}
+ className="min-h-12 resize-none rounded-2xl border-0 bg-transparent dark:bg-transparent px-4 py-3.5 text-sm leading-relaxed shadow-none focus-visible:border-0 focus-visible:ring-0 max-h-96 subtle-scrollbar"
+ />
+ {/* Footer row: the Create split button, pinned right. */}
+ <div className="flex flex-wrap items-center justify-end gap-2 px-3 pb-3">
+ {selectedAgentId === null ? (
<Button
type="button"
- onClick={() => (cliSelected ? launchCli() : handleCreate(selectedAgentId))}
variant="outline"
+ disabled
className="gap-1.5"
data-testid="create-with-agent"
>
- {cliSelected ? (
- <>
- <SquareTerminal aria-hidden="true" className="size-3.5" />
- <Trans>Create with Claude CLI</Trans>
- </>
- ) : (
- <>
- <TargetIcon id={selectedAgentId} aria-hidden="true" className="size-3.5" />
- <Trans>Create with {getDisplayNameDefault(selectedAgentId)}</Trans>
- </>
- )}
+ <Trans>Create</Trans>
</Button>
- <DropdownMenu
- onOpenChange={(open) => {
- if (open) void refresh();
- }}
- >
- <DropdownMenuTrigger asChild>
- <Button
- type="button"
- aria-label={t`Choose agent`}
- size="icon"
- variant="outline"
- data-testid="create-with-agent-menu"
- >
- <ChevronDown aria-hidden="true" className="size-3.5" />
- </Button>
- </DropdownMenuTrigger>
- <DropdownMenuContent align="end" className="min-w-[200px]">
- {showDesktopSection ? (
- <DropdownMenuGroup aria-label={t`Desktop`}>
- <DropdownMenuLabel>
- <Trans>Desktop</Trans>
- </DropdownMenuLabel>
- {selectableTargets.map((target) => (
- <DropdownMenuItem
- key={target.id}
- onSelect={() => chooseAgent(target.id)}
- data-testid={`create-agent-option-${target.id}`}
- >
- <TargetIcon id={target.id} aria-hidden="true" className="size-4" />
- <span className="flex-1">{target.displayName}</span>
- {!cliSelected && target.id === selectedAgentId ? (
- <Check aria-hidden="true" className="size-4 text-muted-foreground" />
- ) : null}
- </DropdownMenuItem>
- ))}
- </DropdownMenuGroup>
- ) : null}
- {showTerminalSection ? (
+ ) : (
+ <ButtonGroup>
+ <Button
+ type="button"
+ onClick={() => (cliSelected ? launchCli() : handleCreate(selectedAgentId))}
+ variant="outline"
+ className="gap-1.5"
+ data-testid="create-with-agent"
+ >
+ {cliSelected ? (
<>
- {showDesktopSection ? <DropdownMenuSeparator /> : null}
- <DropdownMenuGroup aria-label={t`Terminal`}>
+ <SquareTerminal aria-hidden="true" className="size-3.5" />
+ <Trans>Create with Claude CLI</Trans>
+ </>
+ ) : (
+ <>
+ <TargetIcon id={selectedAgentId} aria-hidden="true" className="size-3.5" />
+ <Trans>Create with {getDisplayNameDefault(selectedAgentId)}</Trans>
+ </>
+ )}
+ </Button>
+ <DropdownMenu
+ onOpenChange={(open) => {
+ if (open) void refresh();
+ }}
+ >
+ <DropdownMenuTrigger asChild>
+ <Button
+ type="button"
+ aria-label={t`Choose agent`}
+ size="icon"
+ variant="outline"
+ data-testid="create-with-agent-menu"
+ >
+ <ChevronDown aria-hidden="true" className="size-3.5" />
+ </Button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end" className="min-w-[200px]">
+ {showDesktopSection ? (
+ <DropdownMenuGroup aria-label={t`Desktop`}>
<DropdownMenuLabel>
- <Trans>Terminal</Trans>
+ <Trans>Desktop</Trans>
</DropdownMenuLabel>
- {/* Selects the docked-terminal Claude CLI as the create target
+ {selectableTargets.map((target) => (
+ <DropdownMenuItem
+ key={target.id}
+ onSelect={() => chooseAgent(target.id)}
+ data-testid={`create-agent-option-${target.id}`}
+ >
+ <TargetIcon id={target.id} aria-hidden="true" className="size-4" />
+ <span className="flex-1">{target.displayName}</span>
+ {!cliSelected && target.id === selectedAgentId ? (
+ <Check aria-hidden="true" className="size-4 text-muted-foreground" />
+ ) : null}
+ </DropdownMenuItem>
+ ))}
+ </DropdownMenuGroup>
+ ) : null}
+ {showTerminalSection ? (
+ <>
+ {showDesktopSection ? <DropdownMenuSeparator /> : null}
+ <DropdownMenuGroup aria-label={t`Terminal`}>
+ <DropdownMenuLabel>
+ <Trans>Terminal</Trans>
+ </DropdownMenuLabel>
+ {/* Selects the docked-terminal Claude CLI as the create target
(the Create button performs the launch). Visible text is
"Claude" while the accessible name stays "Claude CLI" so AT
users can tell it apart from the Desktop "Claude" (WCAG
2.5.3 — the name contains the visible label). */}
- <DropdownMenuItem
- onSelect={() => chooseCli()}
- data-testid="create-with-claude-cli"
- aria-label={t`Claude CLI`}
- >
- <SquareTerminal className="size-4" aria-hidden="true" />
- <span className="flex-1">
- <Trans>Claude</Trans>
- </span>
- {cliSelected ? (
- <Check aria-hidden="true" className="size-4 text-muted-foreground" />
- ) : null}
- </DropdownMenuItem>
- </DropdownMenuGroup>
- </>
- ) : null}
- </DropdownMenuContent>
- </DropdownMenu>
- </ButtonGroup>
- )}
+ <DropdownMenuItem
+ onSelect={() => chooseCli()}
+ data-testid="create-with-claude-cli"
+ aria-label={t`Claude CLI`}
+ >
+ <SquareTerminal className="size-4" aria-hidden="true" />
+ <span className="flex-1">
+ <Trans>Claude</Trans>
+ </span>
+ {cliSelected ? (
+ <Check aria-hidden="true" className="size-4 text-muted-foreground" />
+ ) : null}
+ </DropdownMenuItem>
+ </DropdownMenuGroup>
+ </>
+ ) : null}
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </ButtonGroup>
+ )}
+ </div>
+ </div>
+ {/* Starter-brief chips — below the card, centered. Clicking one prefills
+ the field (no auto-create), so they read as suggestions rather than
+ card actions. Wraps on narrow widths. */}
+ <div className="flex flex-wrap items-center justify-center gap-2">
+ {suggestions.map((suggestion) => {
+ const Icon = suggestion.icon;
+ return (
+ <Button
+ key={suggestion.id}
+ type="button"
+ variant="outline"
+ size="sm"
+ onClick={() => applySuggestion(suggestion.prompt)}
+ className="gap-1.5 rounded-md font-normal text-muted-foreground hover:text-foreground"
+ data-testid={`create-suggestion-${suggestion.id}`}
+ >
+ <Icon className="size-3.5" aria-hidden="true" />
+ {suggestion.label}
+ </Button>
+ );
+ })}
</div>
</div>
);
diff --git a/packages/app/src/components/file-tree-density.test.ts b/packages/app/src/components/file-tree-density.test.ts
index 0e055c14e..2ed319eb4 100644
--- a/packages/app/src/components/file-tree-density.test.ts
+++ b/packages/app/src/components/file-tree-density.test.ts
@@ -18,9 +18,9 @@ describe('FileTree density configuration', () => {
test('overrides per-level and row-height vars in both themes', () => {
for (const theme of ['light', 'dark'] as const) {
const style = createFileTreeStyle(theme) as Record<string, string | number>;
- expect(style['--trees-level-gap-override']).toBe('3px');
- expect(style['--trees-item-row-gap-override']).toBe('2px');
- expect(style['--trees-item-height']).toBe('24px');
+ expect(style['--trees-level-gap-override']).toBe('4px');
+ expect(style['--trees-item-row-gap-override']).toBe('4px');
+ expect(style['--trees-item-height']).toBe('26px');
}
});
@@ -34,12 +34,12 @@ describe('FileTree density configuration', () => {
}
});
- test('row height clamp is at or below 24px to keep VS Code-style compactness', () => {
+ test('row height clamp is at or below 26px to keep VS Code-style compactness', () => {
const style = createFileTreeStyle('dark') as Record<string, string>;
const itemHeight = style['--trees-item-height'];
expect(itemHeight).toMatch(/^(\d+)px$/);
const px = Number.parseInt(itemHeight.slice(0, -2), 10);
- expect(px).toBeLessThanOrEqual(24);
+ expect(px).toBeLessThanOrEqual(26);
});
test('preserves existing typography + padding overrides alongside density', () => {
diff --git a/packages/app/src/components/file-tree-density.ts b/packages/app/src/components/file-tree-density.ts
index e3dc951da..24e559dfb 100644
--- a/packages/app/src/components/file-tree-density.ts
+++ b/packages/app/src/components/file-tree-density.ts
@@ -7,10 +7,10 @@ export const FILE_TREE_DENSITY_OPTIONS = {
} as const;
const FILE_TREE_DENSITY_STYLE = {
- '--trees-level-gap-override': '3px',
- '--trees-item-row-gap-override': '2px',
+ '--trees-level-gap-override': '4px',
+ '--trees-item-row-gap-override': '4px',
'--trees-icon-width-override': '14px',
- '--trees-item-height': '24px',
+ '--trees-item-height': '26px',
'--trees-indent-guide-bg-override': 'color-mix(in oklab, var(--trees-fg-muted) 30%, transparent)',
} as const;
diff --git a/packages/app/src/components/handoff/OpenInAgentMenu.tsx b/packages/app/src/components/handoff/OpenInAgentMenu.tsx
index 22b956b6a..4f23addac 100644
--- a/packages/app/src/components/handoff/OpenInAgentMenu.tsx
+++ b/packages/app/src/components/handoff/OpenInAgentMenu.tsx
@@ -56,20 +56,22 @@ function OpenWithAiPanel({
const hasRows = showDesktopSection || showTerminalSection;
return (
- <div className="flex flex-col gap-3">
- <Input
- value={instruction}
- onChange={(event) => setInstruction(event.target.value)}
- placeholder={t`What should the AI do? (optional)`}
- aria-label={t`Instruction for the AI`}
- data-testid="open-in-agent-instruction"
- />
+ <div className="flex flex-col gap-1">
+ <div className="px-2 pt-2 pb-1.5">
+ <Input
+ value={instruction}
+ onChange={(event) => setInstruction(event.target.value)}
+ placeholder={t`What should the AI do? (optional)`}
+ aria-label={t`Instruction for the AI`}
+ data-testid="open-in-agent-instruction"
+ />
+ </div>
{hasRows ? (
<div className="flex flex-col gap-0.5">
{showDesktopSection ? (
<fieldset className="m-0 flex min-w-0 flex-col gap-0.5 border-0 p-0">
<legend
- className="text-muted-foreground text-xs"
+ className="px-1.5 py-1 font-medium text-muted-foreground text-xs"
data-testid="open-in-agent-desktop-label"
>
<Trans>Desktop</Trans>
@@ -81,7 +83,7 @@ function OpenWithAiPanel({
key={target.id}
type="button"
variant="ghost"
- className="w-full justify-start gap-2"
+ className="h-auto w-full justify-start gap-1.5 rounded-md px-1.5 py-1 font-normal text-foreground"
disabled={disabled}
data-testid={`open-in-agent-item-${target.id}`}
aria-label={t`Open with AI ${displayName}`}
@@ -99,7 +101,7 @@ function OpenWithAiPanel({
{showDesktopSection ? <Separator className="my-1" /> : null}
<fieldset className="m-0 flex min-w-0 flex-col gap-0.5 border-0 p-0">
<legend
- className="text-muted-foreground text-xs"
+ className="px-1.5 py-1 font-medium text-muted-foreground text-xs"
data-testid="open-in-agent-terminal-label"
>
<Trans>Terminal</Trans>
@@ -107,7 +109,7 @@ function OpenWithAiPanel({
<Button
type="button"
variant="ghost"
- className="w-full justify-start gap-2"
+ className="h-auto w-full justify-start gap-1.5 rounded-md px-1.5 py-1 font-normal text-foreground"
disabled={disabled}
data-testid="open-in-agent-terminal"
aria-label={t`Claude CLI`}
@@ -220,7 +222,12 @@ export function OpenInAgentMenu({ input, open, onOpenChange }: OpenInAgentMenuPr
<Trans>Open with AI</Trans>
</Button>
</PopoverTrigger>
- <PopoverContent align="end" aria-label={t`Open with AI`} data-testid="open-in-agent-menu">
+ <PopoverContent
+ align="end"
+ className="p-1"
+ aria-label={t`Open with AI`}
+ data-testid="open-in-agent-menu"
+ >
<OpenWithAiPanel
installStates={states}
terminalLaunch={terminalLaunch}