Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
6a5ef6b
ui: share the working directory row between chat and projects
allozaur Nov 9, 2026
d553cce
ui : projects (parked)
allozaur Oct 29, 2026
c5bdbfb
ui : list projects on a Projects page reached from the sidebar
allozaur Oct 30, 2026
b93cfbe
ui : show each project as a row inside sidebar sections
allozaur Oct 30, 2026
6d653e1
ui : pass project instructions to the system prompt as written
allozaur Oct 30, 2026
df54466
ui : mark pinned projects on the Projects page
allozaur Oct 30, 2026
91316f1
ui : archive projects, listed in their own tab on the Projects page
allozaur Oct 30, 2026
610e831
ui : add the project page
allozaur Oct 22, 2026
e7cb723
ui : open project chats in a project view
allozaur Oct 22, 2026
38bd541
ui : keep a project's actions, goal and details by its title
allozaur Oct 26, 2026
61470cc
ui : keep a project's open chats as tabs on its page
allozaur Oct 26, 2026
1cfd315
ui : always open a project's chats inside the project
allozaur Oct 26, 2026
6324198
ui : open the project page from its card and sidebar row (spike)
allozaur Oct 30, 2026
358dd41
ui: keep the Projects title clear of the status bar and the menu key …
allozaur Nov 1, 2026
48f405a
ui: give a phone page's main action a floating key, starting with New…
allozaur Nov 1, 2026
ce369f1
ui: line a phone's bottom corner action up with the chat form in the …
allozaur Nov 1, 2026
abbf276
ui: keep a phone's bottom corner action as far from the side as from …
allozaur Nov 1, 2026
c7461dc
ui: portal the floating key and slide it with the page, so it no long…
allozaur Nov 1, 2026
b1154d9
ui : open a new chat in a tab of its own, never in a chat's tab
allozaur Nov 2, 2026
66bf2eb
ui : keep a project's context to files until the picker lists MCP res…
allozaur Nov 2, 2026
3e89f34
ui: let project tools change only the chat's own project
allozaur Nov 9, 2026
2bc0539
ui: add GlassKey with master's styles and keep this layer on master's…
allozaur Nov 9, 2026
3409469
ui : move Models, MCP and Settings to a sidebar footer
allozaur Oct 31, 2026
d6b72e6
ui : group the sidebar footer in an inset surface
allozaur Oct 31, 2026
5cfeddf
ui : give the sidebar's logo button the add button's key look
allozaur Nov 1, 2026
71c22d9
ui : put search in a round key at the top of the phone sidebar
allozaur Nov 1, 2026
620aeae
ui : size the phone sidebar for a thumb and list its footer with the …
allozaur Nov 1, 2026
44dfcc9
ui : mark the selected sidebar row with a tinted inset surface
allozaur Nov 1, 2026
33f4cc7
ui: keep the phone sidebar's round keys white on the grey page
allozaur Nov 1, 2026
e902a03
ui : open Settings and MCP as pages on a phone, dialogs elsewhere
allozaur Nov 2, 2026
0370232
ui : open a phone sidebar's pages behind it, settled before they slid…
allozaur Nov 2, 2026
ae48380
ui: style the sidebar footer group and the selected row with master's…
allozaur Nov 9, 2026
c2bafd4
ui : add a prompt library store in IndexedDB
allozaur Oct 31, 2026
e6edf0b
ui : add a System message submenu to the chat add menu
allozaur Oct 31, 2026
37fbeb2
ui : show the prompt a system message came from
allozaur Oct 31, 2026
baa8afa
ui : add a system message to the prompt library
allozaur Oct 31, 2026
486e88d
ui : show system messages made from a prompt as prompt cards
allozaur Nov 1, 2026
8afbdc4
ui: keep master's styles in this layer until the design system lands
allozaur Nov 9, 2026
c06851b
ui : add a Library entry to the sidebar
allozaur Oct 22, 2026
b325c82
ui : turn the Library into Prompts and Media tabs
allozaur Oct 31, 2026
d4777e8
ui: keep the Library title clear of the status bar and the menu key o…
allozaur Nov 1, 2026
0b9fabd
ui: give New prompt the floating key on phones
allozaur Nov 1, 2026
ab950f1
ui : add the providers data layer
allozaur Sep 28, 2026
77edb4a
ui : route chat through the active provider
allozaur Sep 28, 2026
4bf3fb9
ui : add the manage providers view
allozaur Sep 28, 2026
c2f566a
ui : show every provider's models in the manager
allozaur Sep 28, 2026
3157c85
ui : resolve the layout probes through the providers api url
allozaur Oct 6, 2026
0c48463
test : seed the picker drawer through the providers data layer
allozaur Oct 8, 2026
f71cc06
ui : keep the selector list open on provider backends
allozaur Oct 8, 2026
860d3d4
ui : show the selected model of the compat backends
allozaur Oct 8, 2026
5fbf86d
ui : hide the chat template on the remote providers
allozaur Oct 8, 2026
cdc412a
ui : offer the compat providers a selection instead of a load
allozaur Oct 8, 2026
41897f2
ui : keep the table status working while a provider is active
allozaur Oct 8, 2026
6446cd2
ui : keep llama.cpp servers as the only providers
allozaur Oct 19, 2026
160b13a
ui : address remote providers through a tunnel
allozaur Oct 19, 2026
869b74c
ui : pair a provider by code or camera
allozaur Oct 19, 2026
20b7202
ui : cover the provider transport with tests
allozaur Oct 19, 2026
d25e187
ui : rename the provider layer to servers
allozaur Oct 20, 2026
549fc76
ui : rebuild the server card around what it reports
allozaur Oct 20, 2026
27ab3aa
ui : recover a dropped channel when the tab comes back
allozaur Oct 20, 2026
f5a064e
ui : show the access code as a QR code
allozaur Oct 20, 2026
e224a9b
ui : give servers a dialog of their own
allozaur Oct 20, 2026
a21e3b1
ui : add a server from a drawer on a phone
allozaur Oct 20, 2026
4b410dc
test : cover the servers surface
allozaur Oct 20, 2026
9213eef
ui : keep a server's API key when it is read back
allozaur Oct 20, 2026
e91ad6a
ui : refuse an endpoint that is not a llama.cpp server
allozaur Oct 20, 2026
ea9fa6f
ui : offer pairing where no server can answer
allozaur Oct 20, 2026
5b028ba
ui : read a remote router's status feed
allozaur Oct 20, 2026
a27714d
ui : adapt the servers work to the stack
allozaur Nov 2, 2026
63025d2
ui : open Servers as a page on a phone, a dialog elsewhere
allozaur Nov 2, 2026
6ac9e8d
ui: keep local-only requests on the local server, fix hidden models
allozaur Nov 9, 2026
3187ad3
ui: add plain Tabs and keep the servers layer on master's styles unti…
allozaur Nov 9, 2026
2362865
ui : put remote server pairing behind an experimental setting
allozaur Nov 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tools/ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tools/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"typescript-eslint": "8.60.1",
"unified": "11.0.5",
"unist-util-visit": "5.1.0",
"uqr": "0.1.3",
"uuid": "13.0.2",
"vaul-svelte": "1.0.0-next.7",
"vite": "7.3.7",
Expand Down
29 changes: 28 additions & 1 deletion tools/ui/src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
--safe-area-bottom: env(safe-area-inset-bottom, 0px);
/* where the phone's corner controls (menu toggle, context gauge, sidebar logo) sit */
--corner-control-top: calc(1rem + var(--safe-area-top));
/* where the phone's bottom corner actions (a page's floating key) sit: as far in from
the side as up from the bottom, which keeps a 56px key about concentric with an
iPhone's rounded screen corner */
--corner-control-side: 1.75rem;
--corner-control-bottom: calc(var(--corner-control-side) + var(--safe-area-bottom));
/* where a phone page's title starts: a row below the corner controls */
--page-top: calc(var(--corner-control-top) + 3.75rem);
/* expanded desktop sidebar width, overridden once the user drags its edge */
Expand Down Expand Up @@ -117,6 +122,9 @@
/* the installed app's status bar already sets them apart from the screen's edge */
:root {
--corner-control-top: calc(0.25rem + var(--safe-area-top));
/* the home indicator is a short bar in the middle, so the corners beside it are
free: a corner action ignores its inset and keeps the same gap as from the side */
--corner-control-bottom: var(--corner-control-side);
}

html {
Expand Down Expand Up @@ -420,11 +428,15 @@
}

/* While something is dragged, what it passes over takes no hover: only the
sections themselves stay targets, for the drop */
sections themselves, and the projects in them, stay targets, for the drop */
body[data-sidebar-dragging] [data-sidebar-section] * {
pointer-events: none;
}

body[data-sidebar-dragging] [data-sidebar-section] [data-sidebar-section] {
pointer-events: auto;
}

.sidebar-drag-overlay {
position: fixed;
z-index: 1000;
Expand Down Expand Up @@ -479,6 +491,21 @@
animation: none;
}
}

/* A page's entrance, for pages that remount on every navigation into them:
* the whole page fades in at once. A plain ease over 350ms spreads the
* fade evenly instead of front-loading it, so it reads as a calm arrival.
* Opacity only, so it runs on the compositor and stays for reduced motion
* too: a fade does not move anything. */
.page-enter {
animation: page-enter 350ms ease;
}

@keyframes page-enter {
from {
opacity: 0;
}
}
}

.mermaidTooltip {
Expand Down
2 changes: 2 additions & 0 deletions tools/ui/src/app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import type {
ApiChatCompletionStreamChunk,
ApiChatCompletionToolCall,
ApiChatCompletionToolCallDelta,
ApiChatCompletionUsage,
ApiChatMessageContentPart,
ApiChatMessageData,
ApiContextSizeError,
Expand Down Expand Up @@ -74,6 +75,7 @@ declare global {
ApiChatCompletionResponse,
ApiChatCompletionStreamChunk,
ApiChatCompletionToolCall,
ApiChatCompletionUsage,
ApiChatCompletionToolCallDelta,
ApiChatMessageData,
ApiChatMessageContentPart,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<script lang="ts">
import { Button } from '$lib/components/ui/button';
import { Portal } from 'bits-ui';
import type { Component } from 'svelte';

interface Props {
class?: string;
icon: Component;
/** What it does, read out in place of a visible label. */
label: string;
onclick?: () => void;
}

let { class: className = '', icon: Icon, label, onclick }: Props = $props();
</script>

<!-- a phone's main action of a page: a round key in the bottom-right corner, within reach of
the thumb (see --corner-control-bottom and --corner-control-side). It lives on the body,
pinned to the screen: inside the page, the page's slide aside for the sidebar would make
the page its box and move it. It slides with the page instead, by the same offset and
ease (see --sidebar-reveal-x in the root layout), and takes no taps while the page is aside -->
<Portal>
<Button
aria-label={label}
class="fixed right-(--corner-control-side) bottom-(--corner-control-bottom) z-20 size-14 translate-x-(--sidebar-reveal-x) rounded-full shadow-lg transition-[translate] duration-300 ease-[cubic-bezier(0.32,0.72,0,1)] md:hidden [:root[data-sidebar-reveal-dragging]_&]:transition-none [:root[data-sidebar-revealed]_&]:pointer-events-none {className}"
{onclick}
>
<Icon class="size-6" />
</Button>
</Portal>
67 changes: 67 additions & 0 deletions tools/ui/src/lib/components/app/actions/GlassKey.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<script lang="ts">
import * as Tooltip from '$lib/components/ui/tooltip';
import { deviceStore } from '$lib/stores';
import type { Component, Snippet } from 'svelte';
import type { HTMLButtonAttributes } from 'svelte/elements';

interface Props extends Omit<HTMLButtonAttributes, 'children'> {
children?: Snippet;
icon?: Component;
iconClass?: string;
/** What it does, read out in place of a visible label. */
label: string;
/** md (40px) for a phone's corner keys, sm (36px) for a key floating over the page. */
size?: 'md' | 'sm';
/** Shows the label as a tooltip where there is a pointer to hover with. */
tooltip?: boolean;
}

let {
children,
class: className = '',
icon: Icon,
iconClass = 'size-6',
label,
size = 'md',
tooltip = false,
...rest
}: Props = $props();
</script>

{#snippet key(props: Record<string, unknown> = {})}
<button
{...props}
{...rest}
aria-label={label}
class={[
'inline-flex shrink-0 cursor-pointer items-center justify-center rounded-full border border-border/20 bg-muted/60 text-accent-foreground shadow-sm backdrop-blur-sm transition-colors hover:bg-muted',
size === 'md' ? 'size-10' : 'size-9',
className
]}
type="button"
>
{#if Icon}
<Icon class={iconClass} />
{/if}

{@render children?.()}
</button>
{/snippet}

<!-- a round key over the page: the menu and context gauge keys at a phone's top corners, and the
key back to the bottom of a chat -->
{#if tooltip && !deviceStore.isMobile}
<Tooltip.Root>
<Tooltip.Trigger>
{#snippet child({ props })}
{@render key(props)}
{/snippet}
</Tooltip.Trigger>

<Tooltip.Content>
<p>{label}</p>
</Tooltip.Content>
</Tooltip.Root>
{:else}
{@render key()}
{/if}
6 changes: 6 additions & 0 deletions tools/ui/src/lib/components/app/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ export { default as ActionIcon } from './ActionIcon.svelte';

/** Copy-to-clipboard icon button with clipboard logic. */
export { default as ActionIconCopyToClipboard } from './ActionIconCopyToClipboard.svelte';

/** A round matte glass key: a phone's corner keys and the key back to a chat's bottom. */
export { default as GlassKey } from './GlassKey.svelte';

/** A page's main action on a phone: a round key pinned to the bottom-right corner. */
export { default as FloatingActionButton } from './FloatingActionButton.svelte';
71 changes: 55 additions & 16 deletions tools/ui/src/lib/components/app/chat/ChatForm/ChatForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
ChatFormInputFileInputInvisible,
ChatFormMcpResourcesList,
ChatFormPickers,
ChatFormProjectChip,
DialogMcpResourcesBrowser
} from '$lib/components/app';
import { hasMarkdownStructure } from '$lib/components/app/content/MarkdownEditor/markdown-structure';
Expand Down Expand Up @@ -41,6 +42,7 @@
deviceStore,
mcpStore,
modelsStore,
projectsStore,
serverStore,
settingsStore,
toolsStore,
Expand Down Expand Up @@ -97,6 +99,7 @@
onStop?: () => void;
onSubmit?: () => void;
onSystemPromptClick?: (draft: { message: string; files: ChatUploadedFile[] }) => void;
onSystemPromptWithContent?: (content: string, promptId: string, title: string) => void;
onUploadedFileRemove?: (fileId: string) => void;
onUploadedFilesChange?: (files: ChatUploadedFile[]) => void;
onValueChange?: (value: string) => void;
Expand All @@ -113,6 +116,7 @@
onStop,
onSubmit,
onSystemPromptClick,
onSystemPromptWithContent,
onUploadedFileRemove,
onUploadedFilesChange,
onValueChange,
Expand All @@ -128,8 +132,12 @@
let audioRecorder: AudioRecorder | undefined;
let chatFormActionsRef: ChatFormActions | undefined = $state(undefined);
let fileInputRef: ChatFormInputFileInputInvisible | undefined = $state(undefined);
let pickersRef: { handleKeydown: (event: KeyboardEvent) => boolean } | undefined =
$state(undefined);
let pickersRef:
| {
handleKeydown: (event: KeyboardEvent) => boolean;
openPromptArguments: (prompt: MCPPromptInfo) => void;
}
| undefined = $state(undefined);
let inputRef: ChatFormInput | undefined = $state(undefined);

// Audio Recording State
Expand All @@ -148,10 +156,19 @@
conversationsStore.activeConversation?.cwd ?? conversationsStore.preferences.pendingCwd
);

// the project the chat is in, or the one picked for the chat about to start
let project = $derived.by(() => {
const active = conversationsStore.activeConversation;
const projectId = active ? active.projectId : conversationsStore.preferences.pendingProjectId;

return projectId ? projectsStore.get(projectId) : undefined;
});

let showWorkingDirectory = $derived(conversationsStore.preferences.hasEnabledCwdTools());
// A phone has no chip for the working directory under the form: a chat shows it in its
// header (see ChatScreenMobileHeader), and a new chat, which has no header yet, offers it in
// the + menu
let showWorkingDirectoryChip = $derived(showWorkingDirectory && !deviceStore.isMobile);
let isWorkingDirectoryInAddMenu = $derived(
showWorkingDirectory && deviceStore.isMobile && !conversationsStore.activeConversation
);
Expand Down Expand Up @@ -788,6 +805,12 @@
}
}

async function handleMcpPromptArguments(prompt: MCPPromptInfo) {
pickers.openPromptPicker();
await tick();
pickersRef?.openPromptArguments(prompt);
}

function handlePromptLoadStart(
placeholderId: string,
promptInfo: MCPPromptInfo,
Expand Down Expand Up @@ -1111,10 +1134,12 @@
{isRecording}
micWarning={micUnavailableReason ?? micError}
onFileUpload={handleFileUpload}
onMcpPromptClick={handleMcpPromptArguments}
onMicClick={handleMicClick}
{onStop}
onSystemPromptClick={() =>
onSystemPromptClick?.({ files: uploadedFiles, message: value })}
{onSystemPromptWithContent}
onWorkingDirectoryClick={isWorkingDirectoryInAddMenu
? pickers.handleWorkingDirectoryOpen
: undefined}
Expand All @@ -1141,30 +1166,44 @@
></div>
{/if}

{#if showWorkingDirectory && !deviceStore.isMobile}
{#if project || showWorkingDirectoryChip}
<!-- the chat's context: its project and its working directory -->
<div
bind:this={cwdEl}
class={[
'relative self-start transition-[translate,opacity,margin] duration-400 ease-[cubic-bezier(0.3,1.12,0.5,1)] max-md:transition-none',
// on a phone the expanded sheet reaches the screen's bottom: the chip gives up
'relative mt-1.5 flex min-w-0 items-center self-start justify-self-start transition-[translate,opacity,margin] duration-400 ease-[cubic-bezier(0.3,1.12,0.5,1)] max-md:transition-none',
// on a phone the expanded sheet reaches the screen's bottom: the row gives up
// its room (its 1.5 top margin plus its 6 height) and waits below it, out of
// sight; it travels there and back with the sheet (see animateSheet)
isExpanded &&
'max-md:pointer-events-none max-md:-mb-7.5 max-md:translate-y-full max-md:opacity-0'
]}
>
<ChatFormCurrentWorkingDirectory
bind:query={pickers.workingDirectoryQuery}
customAnchor={mentionAnchor}
directory={cwd}
{disabled}
isOpen={pickers.isWorkingDirectoryPickerOpen}
onChange={handleWorkingDirectoryChange}
onClose={pickers.handleWorkingDirectoryClose}
onOpen={pickers.handleWorkingDirectoryOpen}
/>
{#if project}
<ChatFormProjectChip {disabled} {project} />
{/if}

{#if project && showWorkingDirectoryChip}
<span aria-hidden="true" class="text-xs text-muted-foreground">·</span>
{/if}

{#if showWorkingDirectoryChip}
<ChatFormCurrentWorkingDirectory
bind:query={pickers.workingDirectoryQuery}
class="!mt-0"
customAnchor={mentionAnchor}
directory={cwd}
{disabled}
isOpen={pickers.isWorkingDirectoryPickerOpen}
onChange={handleWorkingDirectoryChange}
onClose={pickers.handleWorkingDirectoryClose}
onOpen={pickers.handleWorkingDirectoryOpen}
/>
{/if}
</div>
{:else if showWorkingDirectory}
{/if}

{#if showWorkingDirectory && !showWorkingDirectoryChip}
<!-- a phone opens the picker from elsewhere (see isWorkingDirectoryInAddMenu): no chip here -->
<ChatFormCurrentWorkingDirectory
bind:query={pickers.workingDirectoryQuery}
Expand Down
Loading
Loading