From bcb7bae8d7b6d22ecc3da8a9b95332e0c40636c4 Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Tue, 24 Nov 2026 19:58:10 +0000 Subject: [PATCH 1/4] feat(ui): a neutral grey look with rounded panel cards The default light and dark themes become neutral greys with a blue accent (every text pair still AA), headings use the UI sans, and on desktop the sidebar, the chat and the docked file panel are rounded cards on a darker frame. The user bubble is bordered instead of accent-barred, the selected session is outlined, and idle Send is a round arrow button. --- AGENTS.md | 9 +- CHANGELOG.md | 1 + app/globals.css | 134 ++++++++++++++++++----------- components/AppShell.tsx | 3 +- components/ChatInput.tsx | 13 ++- components/MessageView.tsx | 9 +- components/RightPanel.tsx | 1 - components/SessionSidebar-rows.tsx | 17 +--- components/ui/field.tsx | 2 +- components/ui/primitives.tsx | 2 +- components/ui/toast.tsx | 2 +- hooks/useTheme.test.mjs | 10 +-- hooks/useTheme.ts | 4 +- lib/table-chart.ts | 2 +- 14 files changed, 114 insertions(+), 95 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index c4f0f455..bd803054 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -611,15 +611,16 @@ Location: `/sessions/-- button > svg, .composer-thinking-glyph[data-level] + .composer-thinking-label { @@ -5101,3 +5110,30 @@ html[data-touch-targets="accessible"] :is(.extension-choice, .extension-field) { .session-search-match:hover:not(:disabled) { background: var(--bg-hover); } + +/* Desktop workbench frame: the sidebar, the chat and the docked right panel are rounded cards + on a darker frame. Phones keep the full-bleed layout (the sidebar is a drawer there), and the + compact right panel is an overlay dialog, never a card. */ +.app-frame > .sidebar-container { border-right: 1px solid var(--border); } +.right-panel-container { border-left: 1px solid var(--border); } +@media (max-width: 640px) { + .app-frame > .sidebar-container { border-right: none; } +} +@media (min-width: 641px) { + .app-frame { + background: var(--bg-frame, var(--bg-panel)) !important; + padding: 6px; + } + .app-frame > .sidebar-container, + .app-frame > main, + .app-frame > .right-panel-container:not([role="dialog"]) { + border: 1px solid var(--border); + border-radius: var(--radius-card); + overflow: hidden; + } + .app-frame > main { background: var(--bg); } + .app-frame > .sidebar-container.sidebar-open { margin-right: 6px; } + .app-frame > .right-panel-container.right-panel-open:not([role="dialog"]) { margin-left: 6px; } + .app-frame > .sidebar-container.sidebar-closed, + .app-frame > .right-panel-container.right-panel-closed { border-width: 0; } +} diff --git a/components/AppShell.tsx b/components/AppShell.tsx index fa48cba9..71bcb778 100644 --- a/components/AppShell.tsx +++ b/components/AppShell.tsx @@ -2135,7 +2135,7 @@ export function AppShell({ appName }: { appName: string }) { `} {t("appShell.skipToContent")} -
+
{/* Left sidebar: hidden on full-page Settings */} {!settingsTab && ( <> @@ -2151,7 +2151,6 @@ export function AppShell({ appName }: { appName: string }) { inert={mobileSidebarReady && (!sidebarOpen || rightPanelIsModal) ? true : undefined} style={{ background: "var(--bg-panel)", - borderRight: isMobile ? "none" : "1px solid var(--border)", display: "flex", flexDirection: "column", flexShrink: 0, diff --git a/components/ChatInput.tsx b/components/ChatInput.tsx index 6185a93e..436a3a6f 100644 --- a/components/ChatInput.tsx +++ b/components/ChatInput.tsx @@ -2,7 +2,7 @@ import React, { useRef, useState, useCallback, useEffect, useLayoutEffect, useImperativeHandle, forwardRef, memo, KeyboardEvent } from "react"; import { createPortal } from "react-dom"; -import { ChevronDown, ClipboardPaste, CornerDownRight, ListChecks, Loader2, Maximize2, Mic, Paperclip, Plus, RotateCw, Shrink, Terminal, Wrench, X } from "lucide-react"; +import { ArrowUp, ChevronDown, ClipboardPaste, CornerDownRight, ListChecks, Loader2, Maximize2, Mic, Paperclip, Plus, RotateCw, Shrink, Terminal, Wrench, X } from "lucide-react"; import { getSubmitDuringRunBehavior } from "@/lib/composer-prefs"; import type { BuiltinSlashCommandResult, CompactResultInfo, PromptSendOptions, PromptSubmissionResult, QueuedMessages, SlashCommandInfo } from "@/hooks/useAgentSession"; import type { ActiveGoal, ActivePlan } from "@/lib/web-mode-state"; @@ -3660,7 +3660,8 @@ export const ChatInput = memo(forwardRef(function ChatIn ) : ( )}
diff --git a/components/MessageView.tsx b/components/MessageView.tsx index 7d63bc86..6dc72b3f 100644 --- a/components/MessageView.tsx +++ b/components/MessageView.tsx @@ -411,7 +411,7 @@ function UserMessageView({ message, cwd, onOpenFile, sessionId, entryId, onFork,
-
+
-
+
- {isSelected && ( -