TypeScript
refactor(web): the new design is the only design, with no toggle (#25778)
Theo Browne96fc7b955196
diff --git a/apps/desktop/src/window/DesktopWindow.ts b/apps/desktop/src/window/DesktopWindow.tsindex 6270f80a4a7..20b43f91e63 100644--- a/apps/desktop/src/window/DesktopWindow.ts+++ b/apps/desktop/src/window/DesktopWindow.ts@@ -131,7 +131,7 @@ function getIconOption(}function getInitialWindowBackgroundColor(shouldUseDarkColors: boolean): string {- return shouldUseDarkColors ? "#0a0a0a" : "#ffffff";+ return shouldUseDarkColors ? "#000000" : "#ffffff";}type DisplayBounds = Pick<Electron.Rectangle, "x" | "y" | "width" | "height">;diff --git a/apps/web/index.html b/apps/web/index.htmlindex 13518deb6e5..a7a5e7450b3 100644--- a/apps/web/index.html+++ b/apps/web/index.html@@ -6,14 +6,14 @@name="viewport"content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content"/>- <meta name="theme-color" content="#0a0a0a" />+ <meta name="theme-color" content="#000000" /><link rel="icon" href="/favicon.ico" sizes="48x48" /><link rel="apple-touch-icon" href="/apple-touch-icon.png" /><link rel="manifest" href="/manifest.webmanifest" /><script>(() => {const LIGHT_BACKGROUND = "#ffffff";- const DARK_BACKGROUND = "#0a0a0a";+ const DARK_BACKGROUND = "#000000";const CUSTOM_THEMES_STORAGE_KEY = "t3code:themes:v1";const THEME_FOLLOW_SYSTEM_STORAGE_KEY = "t3code:theme-follow-system";const THEME_APPEARANCE_MODE_STORAGE_KEY = "t3code:theme-appearance-mode";@@ -25,7 +25,7 @@accent: "#4f46e5",},dark: {- background: "#0a0a0a",+ background: "#000000",foreground: "#f5f5f5",accent: "#818cf8",},@@ -403,7 +403,7 @@}html.dark body {- background: #0a0a0a;+ background: #000000;color: #f5f5f5;}@@ -462,7 +462,7 @@html.dark #boot-error {--boot-error-fg: #f5f5f5;- --boot-error-bg: #0a0a0a;+ --boot-error-bg: #000000;}html[data-theme-selected="true"] #boot-error {diff --git a/apps/web/src/appInit.tsx b/apps/web/src/appInit.tsxindex e33b11c55f4..0d1855882df 100644--- a/apps/web/src/appInit.tsx+++ b/apps/web/src/appInit.tsx@@ -62,9 +62,6 @@ function startClientAppearance(): void {if (previous?.chatWidth !== settings.chatWidth) {root.dataset.chatWidth = settings.chatWidth;}- if (previous?.redesignEnabled !== settings.redesignEnabled) {- root.toggleAttribute("data-redesign", settings.redesignEnabled);- }if (previous?.appearanceContrast !== settings.appearanceContrast) {applyAppearanceContrast(root, settings.appearanceContrast);}diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsxindex 6486137a171..75160d214e6 100644--- a/apps/web/src/components/ChatView.tsx+++ b/apps/web/src/components/ChatView.tsx@@ -1835,7 +1835,6 @@ export default function ChatView(props: ChatViewProps) {const threadPanelInlineOpen = useRightPanelStore((state) =>selectThreadPanelOpen(state.threadPanelVisibilityByThreadKey, activeThreadRef, "inline"),);- const centerChatBesideDetails = useClientSettings((s) => s.redesignEnabled);// Selects only the mode, so canvas resizes rerender the chat view only when the// card switches presentation.const threadPanelPresentation = useStore(@@ -1847,7 +1846,6 @@ export default function ChatView(props: ChatViewProps) {threadRef: activeThreadRef,preview: canvasPreview,detailsCardInlineOpen: threadPanelInlineOpen,- centerBesideDetails: centerChatBesideDetails,}).detailsCardMode,);const threadPanelOpen = useRightPanelStore((state) =>diff --git a/apps/web/src/components/ComposerPromptEditorTiptap.tsx b/apps/web/src/components/ComposerPromptEditorTiptap.tsxindex f0a23d2ab43..ba5b4625259 100644--- a/apps/web/src/components/ComposerPromptEditorTiptap.tsx+++ b/apps/web/src/components/ComposerPromptEditorTiptap.tsx@@ -1077,7 +1077,7 @@ function ComposerPromptEditorTiptapInner(const editorAttributes = {class: cn(- "composer-tiptap -m-1 block max-h-52 min-h-19.5 redesign:min-h-12 overflow-y-auto p-1 whitespace-pre-wrap wrap-break-word bg-transparent leading-relaxed text-foreground focus:outline-none",+ "composer-tiptap -m-1 block max-h-52 min-h-12 overflow-y-auto p-1 whitespace-pre-wrap wrap-break-word bg-transparent leading-relaxed text-foreground focus:outline-none",className,),"data-testid": "composer-editor",diff --git a/apps/web/src/components/DiffPanel.tsx b/apps/web/src/components/DiffPanel.tsxindex a5034b798ef..9ade0b59c2b 100644--- a/apps/web/src/components/DiffPanel.tsx+++ b/apps/web/src/components/DiffPanel.tsx@@ -40,7 +40,6 @@ import { useStableCallback } from "../hooks/useStableCallback";import {buildFileDiffContentVersion,buildFileDiffIdentityKey,- getDiffCollapseIconClassName,getDiffLineStat,getRenderablePatch,resolveDiffThemeName,@@ -122,14 +121,12 @@ function DiffFileCollapseToggle({fileKey,collapsed,unavailable,- iconClassName,onToggle,}: {filePath: string;fileKey: string;collapsed: boolean;unavailable: boolean;- iconClassName: string;onToggle: (fileKey: string) => void;}) {return (@@ -151,7 +148,7 @@ function DiffFileCollapseToggle({}><MorphIcon- className={cn("size-4", iconClassName)}+ className="size-4 text-muted-foreground/80"icon={collapsed ? ChevronRight : ChevronDown}/></TooltipTrigger>@@ -706,9 +703,9 @@ export default function DiffPanel({<Tooltip><TooltipTriggerrender={- // Too narrow for both refs, the New design keeps the target readable and drops- // the head, which is the thread's own branch.- <span className="flex min-w-[min(3rem,calc(100%-2.75rem))] items-center gap-2 overflow-hidden redesign:@max-[20rem]/diff-refs:hidden" />+ // Too narrow for both refs, keep the target readable and drop the head, which+ // is the thread's own branch.+ <span className="flex min-w-[min(3rem,calc(100%-2.75rem))] items-center gap-2 overflow-hidden @max-[20rem]/diff-refs:hidden" />}><span className="min-w-0 max-w-48 truncate">@@ -722,9 +719,7 @@ export default function DiffPanel({</Tooltip><Tooltip><TooltipTrigger- render={- <span aria-hidden className="hidden redesign:@max-[20rem]/diff-refs:inline" />- }+ render={<span aria-hidden className="hidden @max-[20rem]/diff-refs:inline" />}>vs</TooltipTrigger>@@ -746,7 +741,7 @@ export default function DiffPanel({><ComboboxTriggerrender={<Button variant="ghost-muted" size="xs" />}- className="min-w-9 max-w-48 shrink redesign:shrink-0"+ className="min-w-9 max-w-48 shrink-0"aria-label={`Change comparison target. Currently ${selectedGitSource.baseRef}`}><span className="min-w-0 truncate">{selectedGitSource.baseRef}</span>@@ -1126,7 +1121,6 @@ export default function DiffPanel({fileKey={fileKey}collapsed={unavailable || collapsedDiffFileKeys.has(fileKey)}unavailable={unavailable}- iconClassName={getDiffCollapseIconClassName(fileDiff)}onToggle={toggleDiffFileCollapsed}/>);diff --git a/apps/web/src/components/DiffWorkerPoolProvider.tsx b/apps/web/src/components/DiffWorkerPoolProvider.tsxindex a9e89b62d15..e2384aaab95 100644--- a/apps/web/src/components/DiffWorkerPoolProvider.tsx+++ b/apps/web/src/components/DiffWorkerPoolProvider.tsx@@ -3,14 +3,13 @@ import { WorkerPoolManager } from "@pierre/diffs/worker";import DiffsWorker from "@pierre/diffs/worker/worker.js?worker";import * as Schema from "effect/Schema";import { useEffect, useState, useSyncExternalStore, type ReactNode } from "react";-import { subscribeClientSettings } from "../hooks/useSettings";import { getRenderedAppearance, subscribeRenderedAppearance } from "../hooks/useTheme";import { resolveDiffThemeName } from "../lib/diffRendering";import { PREFERRED_HIGHLIGHTER } from "../lib/syntaxHighlighting";export class DiffWorkerError extends Schema.TaggedError<DiffWorkerError>()("DiffWorkerError", {operation: Schema.Literals(["create-worker", "get-render-options", "set-render-options"]),- themeName: Schema.Literals(["pierre-light", "pierre-dark", "t3-light"]),+ themeName: Schema.Literals(["pierre-dark", "t3-light"]),cause: Schema.Defect(),}) {override get message(): string {@@ -73,12 +72,7 @@ function createDiffWorkerPool(poolSize: number) {);return {pool,- unsubscribeTheme: (() => {- const apply = () => applyDiffWorkerTheme(pool);- // The New design picks the light syntax palette, so a settings change can switch it too.- const unsubscribes = [subscribeRenderedAppearance(apply), subscribeClientSettings(apply)];- return () => unsubscribes.forEach((unsubscribe) => unsubscribe());- })(),+ unsubscribeTheme: subscribeRenderedAppearance(() => applyDiffWorkerTheme(pool)),consumers: 0,idleTimer: undefined,};diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsxindex 9f6dcc42626..61ff760c45b 100644--- a/apps/web/src/components/GitActionsControl.tsx+++ b/apps/web/src/components/GitActionsControl.tsx@@ -122,7 +122,6 @@ import { getSourceControlPresentation, sourceControlIcon } from "~/sourceControlimport { sourceControlClients } from "@t3tools/client-runtime/source-control-clients";import { formatDiffCount } from "@t3tools/client-runtime/diff-count";import { useOpenLink } from "~/browser/useOpenLink";-import { useClientSettings } from "~/hooks/useSettings";interface GitActionsControlProps {presentation?: "toolbar" | "menu";@@ -1149,10 +1148,8 @@ export default function GitActionsControl({? (quickAction.hint ?? "This action is currently unavailable."): null;const gitActionProgress = resolveGitActionProgressPresentation(vcsActionState);- const redesign = useClientSettings((s) => s.redesignEnabled);// A fresh draft or a thread with no turns hides commit, push, and diff rows until there is work.const quietEmptyDraft =- redesign &&isPanel &&(draftId !== undefined || activeServerThreadShell?.latestRun === null) &&gitActionProgress === null &&diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsxindex 72f90e27a8e..99f42874066 100644--- a/apps/web/src/components/Sidebar.tsx+++ b/apps/web/src/components/Sidebar.tsx@@ -3201,14 +3201,10 @@ export default function Sidebar({ routeReveal }: { routeReveal: SidebarRouteReveolderSettledShelf.retry();showMoreSettled();}}- className="flex h-9 w-full cursor-pointer items-center gap-2.5 rounded-md px-2.5 text-left text-sm text-sidebar-muted-foreground/55 hover:bg-sidebar-row-hover hover:text-sidebar-foreground disabled:cursor-default redesign:text-sidebar-muted-foreground"+ className="flex h-9 w-full cursor-pointer items-center gap-2.5 rounded-md px-2.5 text-left text-sm text-sidebar-muted-foreground hover:bg-sidebar-row-hover hover:text-sidebar-foreground disabled:cursor-default">- {/* The New design keeps plus for "add" and uses a chevron to reveal more. */}- <PlusIcon aria-hidden className="size-4 shrink-0 redesign:hidden" />- <ChevronDownIcon- aria-hidden- className="hidden size-4 shrink-0 redesign:block"- />+ {/* Plus means "add", so revealing more uses a chevron. */}+ <ChevronDownIcon aria-hidden className="size-4 shrink-0" />{olderSettledShelf.loading? "Loading": olderSettledShelf.faileddiff --git a/apps/web/src/components/ThreadStatusIndicators.tsx b/apps/web/src/components/ThreadStatusIndicators.tsxindex 15fe062a960..78b2a247ba5 100644--- a/apps/web/src/components/ThreadStatusIndicators.tsx+++ b/apps/web/src/components/ThreadStatusIndicators.tsx@@ -287,7 +287,7 @@ function PullRequestBadge({className={cn("contents font-normal text-xs tabular-nums", presentation.toneClassName)}><presentation.Icon aria-hidden className="size-3 shrink-0" />- <span className="redesign:text-secondary-label">{presentation.text}</span>+ <span className="text-secondary-label">{presentation.text}</span></span></TooltipTrigger><TooltipPopupdiff --git a/apps/web/src/components/chat/ChatCanvas.tsx b/apps/web/src/components/chat/ChatCanvas.tsxindex a0be0a3b676..bdcff99e6c2 100644--- a/apps/web/src/components/chat/ChatCanvas.tsx+++ b/apps/web/src/components/chat/ChatCanvas.tsx@@ -6,7 +6,6 @@ import { resolveChatCanvasModel, type ChatCanvasStore } from "./canvasStore";import { selectThreadPanelOpen, useRightPanelStore } from "../../rightPanelStore";import { observeResize } from "../../lib/observeResize";import type { ScopedThreadRef } from "@t3tools/contracts";-import { useClientSettings } from "~/hooks/useSettings";export function ChatCanvas({store,@@ -72,14 +71,12 @@ export function ChatCanvas({? false: selectThreadPanelOpen(state.threadPanelVisibilityByThreadKey, threadRef, "inline"),);- const centerBesideDetails = useClientSettings((s) => s.redesignEnabled);const model = resolveChatCanvasModel({measurements,detailsCardMeasurement,threadRef,preview,detailsCardInlineOpen,- centerBesideDetails,});const context = {container: model.container,diff --git a/apps/web/src/components/chat/ChatComposer.tsx b/apps/web/src/components/chat/ChatComposer.tsxindex d7b46eea0ab..bf43aaa5b18 100644--- a/apps/web/src/components/chat/ChatComposer.tsx+++ b/apps/web/src/components/chat/ChatComposer.tsx@@ -3658,7 +3658,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)className={cn(showMobilePendingAnswerActions && "max-sm:pb-12",isComposerResting &&- "my-0 max-h-8 min-h-8 redesign:min-h-8 overflow-hidden py-0 whitespace-pre! leading-8",+ "my-0 max-h-8 min-h-8 overflow-hidden py-0 whitespace-pre! leading-8",)}placeholderClassName={cn(isComposerResting &&diff --git a/apps/web/src/components/chat/ComposerPrimaryActions.tsx b/apps/web/src/components/chat/ComposerPrimaryActions.tsxindex 51c233807d1..e2c2a95747c 100644--- a/apps/web/src/components/chat/ComposerPrimaryActions.tsx+++ b/apps/web/src/components/chat/ComposerPrimaryActions.tsx@@ -2,7 +2,7 @@ import { memo, type MouseEventHandler, type PointerEventHandler } from "react";import { CheckIcon, ChevronDownIcon, ChevronLeftIcon, Minimize2Icon, PlayIcon } from "lucide-react";import { CornerUpRight, ListPlus } from "lucide";import { MorphIcon } from "~/components/MorphIcon";-import { useClientSettings, useEnvironmentIdentificationMode } from "~/hooks/useSettings";+import { useEnvironmentIdentificationMode } from "~/hooks/useSettings";import { formatContextWindowTokens } from "~/lib/contextWindow";import { cn } from "~/lib/utils";import { useShortcutModifierState } from "../../shortcutModifierState";@@ -113,7 +113,6 @@ export const ComposerPrimaryActions = memo(function ComposerPrimaryActions({? { onPointerDown: preventPointerFocus }: undefined;const environmentIdentificationMode = useEnvironmentIdentificationMode();- const redesign = useClientSettings((s) => s.redesignEnabled);const shortcutModifiers = useShortcutModifierState();const isQueuing =!isEditingQueuedMessage &&@@ -369,16 +368,7 @@ export const ComposerPrimaryActions = memo(function ComposerPrimaryActions({render={<buttontype="button"- className={- redesign- ? "flex h-7 shrink-0 cursor-pointer items-center gap-1.5 rounded-(--control-radius) px-2 font-medium text-base text-foreground/80 tabular-nums outline-none hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-64 sm:text-sm aria-pressed:bg-accent/60 aria-pressed:text-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:text-muted-foreground"- : cn(- "flex h-9 shrink-0 cursor-pointer items-center gap-1.5 rounded-full border px-2.5 text-xs tabular-nums outline-none transition-colors focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-64 sm:h-8 [&_svg]:pointer-events-none [&_svg]:size-3.5",- keepFullHistory- ? "border-border text-muted-foreground hover:text-foreground"- : "border-warning/40 text-warning hover:bg-warning/8",- )- }+ className="flex h-7 shrink-0 cursor-pointer items-center gap-1.5 rounded-(--control-radius) px-2 font-medium text-base text-foreground/80 tabular-nums outline-none hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-64 sm:text-sm aria-pressed:bg-accent/60 aria-pressed:text-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:text-muted-foreground"{...pointerFocusProps}aria-pressed={!keepFullHistory}aria-label={`Compact ${compactTokens} tokens of history before sending`}@@ -388,19 +378,8 @@ export const ComposerPrimaryActions = memo(function ComposerPrimaryActions({}><Minimize2Icon aria-hidden="true" />- {/* The new design keeps the token count in the tooltip so the permission label keeps its room. */}- {redesign ? (- keepFullHistory ? (- "Keep full"- ) : (- "Compact next"- )- ) : (- <>- {keepFullHistory ? "Full" : "Compact"}- <span>{compactTokens}</span>- </>- )}+ {/* The token count lives in the tooltip so the permission label keeps its room. */}+ {keepFullHistory ? "Keep full" : "Compact next"}</TooltipTrigger><TooltipPopup><div>diff --git a/apps/web/src/components/chat/ModelListRow.tsx b/apps/web/src/components/chat/ModelListRow.tsxindex ec72827c3ca..5c35d78e388 100644--- a/apps/web/src/components/chat/ModelListRow.tsx+++ b/apps/web/src/components/chat/ModelListRow.tsx@@ -29,7 +29,6 @@ export const ModelListRow = memo(function ModelListRow(props: {acpRegistryIconUrl?: string | undefined;isFavorite: boolean;isSelected: boolean;- showSelection?: boolean;showProvider: boolean;preferShortName?: boolean;useTriggerLabel?: boolean;@@ -61,7 +60,7 @@ export const ModelListRow = memo(function ModelListRow(props: {><div className="min-w-0 flex-1 text-left"><div className="flex min-w-0 items-center gap-2">- <div className="min-w-0 truncate text-xs font-medium leading-snug redesign:text-sm redesign:font-normal">+ <div className="min-w-0 truncate text-sm font-normal leading-snug">{props.useTriggerLabel? getTriggerDisplayModelLabel(model): getDisplayModelName(@@ -124,7 +123,7 @@ export const ModelListRow = memo(function ModelListRow(props: {"size-3.5 sm:size-3",props.isFavorite? "fill-current text-warning"- : "redesign:opacity-0 redesign:group-hover:opacity-100 redesign:group-data-highlighted:opacity-100 redesign:in-focus-visible:opacity-100 redesign:pointer-coarse:opacity-100",+ : "opacity-0 group-hover:opacity-100 group-data-highlighted:opacity-100 in-focus-visible:opacity-100 pointer-coarse:opacity-100",)}/></Button>@@ -135,12 +134,10 @@ export const ModelListRow = memo(function ModelListRow(props: {</TooltipPopup></Tooltip>{/* Last, and always reserved, so stars and the check keep fixed columns. */}- {props.showSelection ? (- <CheckIcon- className={cn("size-3.5", !props.isSelected && "invisible")}- aria-hidden="true"- />- ) : null}+ <CheckIcon+ className={cn("size-3.5", !props.isSelected && "invisible")}+ aria-hidden="true"+ /></div></ComboboxItem>);diff --git a/apps/web/src/components/chat/ModelPickerContent.tsx b/apps/web/src/components/chat/ModelPickerContent.tsxindex efeacbd4b3c..6d622556508 100644--- a/apps/web/src/components/chat/ModelPickerContent.tsx+++ b/apps/web/src/components/chat/ModelPickerContent.tsx@@ -49,7 +49,6 @@ import {shortcutLabelForCommand,} from "../../keybindings";import {- useClientSettings,useEnvironmentModelPreferences,useToggleEnvironmentModelFavorite,} from "~/hooks/useSettings";@@ -165,7 +164,7 @@ const EMPTY_MODEL_JUMP_LABELS = new Map<string, string>();const MODEL_LIST_ESTIMATED_ITEM_SIZE = 52;// Rendered heights in `--spacing` units. Chrome is the search box and list padding, plus a 1px border.const ONE_LINE_ROW_UNITS = 8;-const TWO_LINE_ROW_UNITS = { classic: 11.25, redesign: 12 };+const TWO_LINE_ROW_UNITS = 12;const ROW_SEPARATOR_UNITS = 0.5;const LIST_CHROME_UNITS = 15.5;@@ -577,15 +576,12 @@ export const ModelPickerContent = memo(function ModelPickerContent(props: {const isLocked = lockedProvider !== null;const isSearching = searchQuery.trim().length > 0;// Inside one provider's tab the provider line repeats the selected rail icon on every row.- const redesign = useClientSettings((s) => s.redesignEnabled);- const rowsMixProviders = !redesign || isSearching || selectedInstanceId === "favorites";+ const rowsMixProviders = isSearching || selectedInstanceId === "favorites";// Fit the tallest tab so switching tabs never resizes the popup and moves the rail under the cursor.const tallestTabUnits = (() => {const unitsByTab = new Map<ProviderInstanceId | "favorites", number>();const addRow = (tab: ProviderInstanceId | "favorites", twoLine: boolean) => {- const rowUnits = twoLine- ? TWO_LINE_ROW_UNITS[redesign ? "redesign" : "classic"]- : ONE_LINE_ROW_UNITS;+ const rowUnits = twoLine ? TWO_LINE_ROW_UNITS : ONE_LINE_ROW_UNITS;const previous = unitsByTab.get(tab);unitsByTab.set(tab,@@ -600,7 +596,7 @@ export const ModelPickerContent = memo(function ModelPickerContent(props: {if (model.isLegacy && !isFavorite) {tabsWithLegacyRow.add(model.instanceId);} else {- addRow(model.instanceId, !redesign || Boolean(model.subProvider));+ addRow(model.instanceId, Boolean(model.subProvider));}}for (const instanceId of tabsWithLegacyRow) addRow(instanceId, true);@@ -977,10 +973,8 @@ export const ModelPickerContent = memo(function ModelPickerContent(props: {className="group w-full cursor-pointer"><div className="min-w-0 flex-1 text-left">- <div className="text-xs font-medium leading-snug redesign:text-sm redesign:font-normal">- Legacy models- </div>- <div className="mt-1 text-xs font-normal leading-snug text-muted-foreground/70 redesign:text-muted-foreground">+ <div className="text-sm font-normal leading-snug">Legacy models</div>+ <div className="mt-1 text-xs font-normal leading-snug text-muted-foreground">{legacySection.legacyModels.length} models</div></div>@@ -1019,7 +1013,6 @@ export const ModelPickerContent = memo(function ModelPickerContent(props: {? selectedModelKeySet.has(modelKey): modelKey === activeModelKey}- showSelection={selectedModelKeys !== undefined || redesign}showProvider={rowsMixProviders || Boolean(model.subProvider)}preferShortName={!isLocked}useTriggerLabel={false}diff --git a/apps/web/src/components/chat/ModelPickerSidebar.tsx b/apps/web/src/components/chat/ModelPickerSidebar.tsxindex 7e4b1b82c3d..0dca95cf02b 100644--- a/apps/web/src/components/chat/ModelPickerSidebar.tsx+++ b/apps/web/src/components/chat/ModelPickerSidebar.tsx@@ -25,8 +25,6 @@ function describeUnavailableInstance(entry: ProviderInstanceEntry): string {return msg ? `${label}: ${kind}. ${msg}` : `${label}: ${kind}.`;}-const SELECTED_INDICATOR_CLASS =- "pointer-events-none absolute -right-1 top-1/2 z-10 h-5 w-0.75 -translate-y-1/2 rounded-l-full bg-primary redesign:right-1 redesign:rounded-full";const BADGE_BASE_CLASS ="pointer-events-none absolute -right-0.5 top-0.5 z-10 flex size-3.5 items-center justify-center rounded-full bg-transparent shadow-sm ";const NEW_BADGE_CLASS = `${BADGE_BASE_CLASS} text-update-foreground `;@@ -92,10 +90,7 @@ export const ModelPickerSidebar = memo(function ModelPickerSidebar(props: {{selectedIndicatorTop !== null ? (<divdata-model-picker-selected-indicator="true"- className={cn(- SELECTED_INDICATOR_CLASS,- "right-0 translate-y-0 transition-[top] duration-200 ease-out",- )}+ className="pointer-events-none absolute right-1 z-10 h-5 w-0.75 rounded-full bg-primary transition-[top] duration-200 ease-out"style={{ top: selectedIndicatorTop }}/>) : null}diff --git a/apps/web/src/components/chat/ThreadDetailsControl.tsx b/apps/web/src/components/chat/ThreadDetailsControl.tsxindex cdfe3ea684b..e72e1cd7c46 100644--- a/apps/web/src/components/chat/ThreadDetailsControl.tsx+++ b/apps/web/src/components/chat/ThreadDetailsControl.tsx@@ -53,22 +53,21 @@ export function ThreadDetailsControl({"relative inline-flex shrink-0 cursor-pointer items-center whitespace-nowrap border outline-none transition-[box-shadow,scale] [&:not([aria-haspopup]):not(:disabled):not([aria-disabled=true])]:will-change-[scale] [&:active:not([aria-haspopup])]:scale-[0.97] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 disabled:pointer-events-none disabled:opacity-64 aria-disabled:cursor-not-allowed aria-disabled:opacity-64 [&_svg]:shrink-0",parts[part],multiline && "h-auto min-h-8 py-0.75 disabled:opacity-100 sm:h-auto",- tone === "muted" &&- "text-muted-foreground/70 hover:text-foreground/80 redesign:text-muted-foreground",+ tone === "muted" && "text-muted-foreground hover:text-foreground/80",tone === "primary" &&// The row surface forces a faint hover fill with !important; the solid pill keeps its own.- "text-primary hover:text-primary redesign:bg-primary redesign:text-primary-foreground redesign:hover:text-primary-foreground redesign:hover:!bg-primary/85 redesign:data-pressed:!bg-primary/85 redesign:dark:hover:!bg-primary/85 redesign:dark:data-pressed:!bg-primary/85",+ "bg-primary text-primary-foreground hover:text-primary-foreground hover:!bg-primary/85 data-pressed:!bg-primary/85 dark:hover:!bg-primary/85 dark:data-pressed:!bg-primary/85",tone === "destructive" &&"text-destructive hover:text-destructive data-pressed:text-destructive",// PR row actions share one 20px pill with a 1px inset focus ring that stays clear of the// label. The solid pill draws it in the canvas color so it shows against the fill.part === "meta" &&(tone === "primary" || tone === "destructive") &&- "redesign:h-5 redesign:focus-visible:ring-offset-0 redesign:focus-visible:ring-1",- part === "meta" && tone === "primary" && "redesign:focus-visible:ring-background",+ "h-5 focus-visible:ring-1 focus-visible:ring-offset-0",+ part === "meta" && tone === "primary" && "focus-visible:ring-background",part === "meta" &&tone === "destructive" &&- "redesign:bg-destructive/10 redesign:hover:!bg-destructive/16 redesign:data-pressed:!bg-destructive/16 redesign:dark:hover:!bg-destructive/16 redesign:dark:data-pressed:!bg-destructive/16",+ "bg-destructive/10 hover:!bg-destructive/16 data-pressed:!bg-destructive/16 dark:hover:!bg-destructive/16 dark:data-pressed:!bg-destructive/16",className,),},diff --git a/apps/web/src/components/chat/ThreadDetailsPrRow.tsx b/apps/web/src/components/chat/ThreadDetailsPrRow.tsxindex 8fbf3a6cf71..4014ee9d700 100644--- a/apps/web/src/components/chat/ThreadDetailsPrRow.tsx+++ b/apps/web/src/components/chat/ThreadDetailsPrRow.tsx@@ -439,7 +439,7 @@ export function ThreadDetailsPrRow({{detail !== null && (showChecks || trailingAction !== null || watching) ? (<div className="pb-1.5">{openRow(detail.title, "row", true)}- <div className="flex h-5 min-w-0 items-center gap-0.5 ps-9 pe-1 text-xs text-muted-foreground redesign:pe-2.5">+ <div className="flex h-5 min-w-0 items-center gap-0.5 ps-9 pe-2.5 text-xs text-muted-foreground"><span className="me-1 shrink-0 tabular-nums">#{number}</span>{showChecks && checksRollup !== null ? (<PullRequestChecksPopoverdiff --git a/apps/web/src/components/chat/ThreadDetailsPrRows.tsx b/apps/web/src/components/chat/ThreadDetailsPrRows.tsxindex da9ae531fe0..f954d275ac6 100644--- a/apps/web/src/components/chat/ThreadDetailsPrRows.tsx+++ b/apps/web/src/components/chat/ThreadDetailsPrRows.tsx@@ -6,7 +6,7 @@ import {threadPullRequestKeyOf,visibleThreadPullRequests,} from "@t3tools/client-runtime/thread-pull-requests";-import { ChevronDown, ChevronUp, Minus, Plus } from "lucide";+import { ChevronDown, ChevronUp } from "lucide";import { useState, type ComponentProps, type MouseEvent as ReactMouseEvent } from "react";import { sourceControlClients } from "@t3tools/client-runtime/source-control-clients";@@ -17,7 +17,6 @@ import { threadEnvironment } from "~/state/threads";import { useAtomCommand } from "~/state/use-atom-command";import { MorphIcon } from "~/components/MorphIcon";-import { useClientSettings } from "~/hooks/useSettings";import { linkedPullRequestSnapshotStatus, prStatusIndicator } from "../ThreadStatusIndicators";import { ThreadDetailsPrRow } from "./ThreadDetailsPrRow";@@ -76,8 +75,6 @@ export function ThreadDetailsPrRows({onOpenLink: (event: ReactMouseEvent<HTMLElement>, url: string) => void;}) {const [expanded, setExpanded] = useState(false);- // The plus already means "add" in this card (Add project script).- const redesign = useClientSettings((s) => s.redesignEnabled);const watch = useAtomCommand(threadEnvironment.watchPullRequest, { reportFailure: true });const stopWatching = (link: ThreadPullRequestLink | null) =>link?.watch === undefined@@ -130,7 +127,8 @@ export function ThreadDetailsPrRows({<MorphIconaria-hiddenclassName="size-4 shrink-0"- icon={expanded ? (redesign ? ChevronUp : Minus) : redesign ? ChevronDown : Plus}+ // Chevrons, not plus and minus: the plus already means "add" in this card.+ icon={expanded ? ChevronUp : ChevronDown}/>{expanded ? "Show less" : `Show ${rest.length} more`}</ThreadDetailsControl>diff --git a/apps/web/src/components/chat/ThreadRelationshipsControl.tsx b/apps/web/src/components/chat/ThreadRelationshipsControl.tsxindex ff63be60d48..66fc6b6f21e 100644--- a/apps/web/src/components/chat/ThreadRelationshipsControl.tsx+++ b/apps/web/src/components/chat/ThreadRelationshipsControl.tsx@@ -153,7 +153,7 @@ function ThreadLineageGroup(props: {className={cn(THREAD_DETAILS_PANEL_CHEVRON_CLASS,"transition-transform",- !expanded && "rotate-180 redesign:-rotate-90",+ !expanded && "-rotate-90",)}/></ThreadDetailsControl>diff --git a/apps/web/src/components/chat/ThreadStatusLine.tsx b/apps/web/src/components/chat/ThreadStatusLine.tsxindex 74a81f1bb62..51ff851eb69 100644--- a/apps/web/src/components/chat/ThreadStatusLine.tsx+++ b/apps/web/src/components/chat/ThreadStatusLine.tsx@@ -1,6 +1,5 @@import type { ReactNode } from "react";-import { useClientSettings } from "~/hooks/useSettings";import { InlineButton } from "../ui/button";export function ThreadStatusLine(props: {@@ -12,8 +11,6 @@ export function ThreadStatusLine(props: {// Set for clock-dependent labels to trigger updates.readonly clockMinute?: string;}) {- // Muted, the action blends into the status text; the New design gives it full color.- const redesign = useClientSettings((s) => s.redesignEnabled);return (<divdata-chat-thread-status-line="true"@@ -22,11 +19,7 @@ export function ThreadStatusLine(props: {{props.icon}<span className="min-w-0 truncate">{props.label}</span><span aria-hidden="true">·</span>- <InlineButton- tone={redesign ? "default" : "muted"}- disabled={props.actionDisabled}- onClick={props.onAction}- >+ <InlineButton disabled={props.actionDisabled} onClick={props.onAction}>{props.actionLabel}</InlineButton></div>diff --git a/apps/web/src/components/chat/TraitsPicker.tsx b/apps/web/src/components/chat/TraitsPicker.tsxindex f6d099dfbb0..68580c39a1e 100644--- a/apps/web/src/components/chat/TraitsPicker.tsx+++ b/apps/web/src/components/chat/TraitsPicker.tsx@@ -24,7 +24,7 @@ import {normalizeModelSlug,} from "@t3tools/shared/model";import { memo } from "react";-import { BrainIcon, GaugeIcon } from "lucide-react";+import { GaugeIcon } from "lucide-react";import {Menu,MenuGroup,@@ -600,8 +600,7 @@ export const TraitsPicker = memo(function TraitsPicker({size === "xs" ? "gap-1" : "gap-1.5",)}>- <ComposerControlIcon icon={BrainIcon} size={size} className="redesign:hidden" />- <ComposerControlIcon icon={GaugeIcon} size={size} className="hidden redesign:block" />+ <ComposerControlIcon icon={GaugeIcon} size={size} /><span data-composer-control-label className="min-w-0 truncate">{triggerLabel}</span>@@ -609,8 +608,7 @@ export const TraitsPicker = memo(function TraitsPicker({</span>) : (<>- <ComposerControlIcon icon={BrainIcon} size={size} className="redesign:hidden" />- <ComposerControlIcon icon={GaugeIcon} size={size} className="hidden redesign:block" />+ <ComposerControlIcon icon={GaugeIcon} size={size} /><span data-composer-control-label>{triggerLabel}</span><ComposerControlChevron size={size} /></>diff --git a/apps/web/src/components/chat/canvasStore.test.ts b/apps/web/src/components/chat/canvasStore.test.tsindex 07222bc70a3..ad2fe38b044 100644--- a/apps/web/src/components/chat/canvasStore.test.ts+++ b/apps/web/src/components/chat/canvasStore.test.ts@@ -38,7 +38,6 @@ describe("chat canvas model", () => {threadRef,preview: null,detailsCardInlineOpen: true,- centerBesideDetails: false,}).detailsCardMode;expect(resolve(1400)).toBe("inline");expect(resolve(900)).toBe("popover");@@ -52,7 +51,6 @@ describe("chat canvas model", () => {threadRef,preview: { ...preview, position: { x: 760, y: 150 }, lastInteraction: "drag" },detailsCardInlineOpen: true,- centerBesideDetails: false,});const model = resolve(400);expect(model.layout.overlapsDetailsCard).toBe(true);@@ -66,7 +64,6 @@ describe("chat canvas model", () => {threadRef,preview: { ...preview, position: { x: 760, y: 150 }, lastInteraction: "drag" },detailsCardInlineOpen: true,- centerBesideDetails: false,});expect(model.layout.overlapsDetailsCard).toBe(false);expect(model.detailsCardMode).toBe("inline");diff --git a/apps/web/src/components/chat/canvasStore.ts b/apps/web/src/components/chat/canvasStore.tsindex 763b992f3d1..76fb540dc5d 100644--- a/apps/web/src/components/chat/canvasStore.ts+++ b/apps/web/src/components/chat/canvasStore.ts@@ -85,7 +85,6 @@ export function resolveChatCanvasModel({threadRef,preview,detailsCardInlineOpen,- centerBesideDetails,}: {measurements: ChatCanvasMeasurements;detailsCardMeasurement: DetailsCardMeasurement | null;@@ -93,7 +92,6 @@ export function resolveChatCanvasModel({threadRef: ScopedThreadRef | null;preview: ChatCanvasPreview | null;detailsCardInlineOpen: boolean;- centerBesideDetails: boolean;}) {const container = { width: measurements.width, height: measurements.height };const { findBar } = measurements;@@ -138,7 +136,6 @@ export function resolveChatCanvasModel({composerHeight: measurements.composerHeight,detailsCard,findBar,- centerBesideDetails,});const detailsCardPlacement = resolveThreadDetailsCardLayout({container,diff --git a/apps/web/src/components/chat/chatCanvasLayout.test.ts b/apps/web/src/components/chat/chatCanvasLayout.test.tsindex f5d7ae5681b..10c0652f901 100644--- a/apps/web/src/components/chat/chatCanvasLayout.test.ts+++ b/apps/web/src/components/chat/chatCanvasLayout.test.ts@@ -102,21 +102,17 @@ describe("chat canvas layout", () => {});expect(result.frame).toEqual({ x: 1260, y: 351, width: 240, height: 365 });expect(result.overlapsDetailsCard).toBe(false);- expect(result.chat).toEqual({ left: 424, width: 736, insetStart: 0, insetEnd: 0 });+ expect(result.chat).toEqual({ left: 330, width: 736, insetStart: 0, insetEnd: 188 });});- it("centers the chat beside a details card it would crowd, when asked", () => {- const layout = (centerBesideDetails: boolean) =>- resolveChatCanvasLayout({- container: { width: 1344, height: 988 },- maxChatWidth: 736,- detailsCard: { left: 1052, right: 1332, bottom: 339 },- preview: null,- centerBesideDetails,- }).chat;- // Pushed left just enough to clear the card.- expect(layout(false).left).toBe(1052 - 32 - 736);+ it("centers the chat beside a details card it would crowd", () => {+ const { chat } = resolveChatCanvasLayout({+ container: { width: 1344, height: 988 },+ maxChatWidth: 736,+ detailsCard: { left: 1052, right: 1332, bottom: 339 },+ preview: null,+ });// Equal space on both sides of the chat.- expect(layout(true)).toMatchObject({ left: (1052 - 736) / 2, width: 736 });+ expect(chat).toMatchObject({ left: (1052 - 736) / 2, width: 736 });});it("keeps the chat canvas-centered when it clears the details card", () => {const result = resolveChatCanvasLayout({@@ -124,7 +120,6 @@ describe("chat canvas layout", () => {maxChatWidth: 736,detailsCard: { left: 1876, right: 2188, bottom: 339 },preview: null,- centerBesideDetails: true,});expect(result.chat.left).toBe((2200 - 736) / 2);});@@ -135,7 +130,6 @@ describe("chat canvas layout", () => {maxChatWidth: 736,detailsCard: { left: width - 292, right: width - 12, bottom: 339 },preview: null,- centerBesideDetails: true,}).chat.left;for (let width = 1300; width < 1800; width += 1) {expect(Math.abs(leftAt(width + 1) - leftAt(width))).toBeLessThanOrEqual(1);@@ -261,7 +255,7 @@ describe("chat canvas layout", () => {const compact = layout(460);expect(compact.frame!.x + compact.frame!.width).toBe(1572);expect(compact.frame!.width).toBe(460);- expect(compact.chat.left).toBe(364);+ expect(compact.chat.left).toBe(330);expect(compact.overlapsDetailsCard).toBe(true);expect(density(compact)).toBe("compact");expectClear(compact);diff --git a/apps/web/src/components/chat/chatCanvasLayout.ts b/apps/web/src/components/chat/chatCanvasLayout.tsindex 73b2176ef90..115dace32df 100644--- a/apps/web/src/components/chat/chatCanvasLayout.ts+++ b/apps/web/src/components/chat/chatCanvasLayout.ts@@ -30,7 +30,6 @@ export function resolveChatCanvasLayout({composerHeight = 0,detailsCard = null,findBar = null,- centerBesideDetails = false,}: {container: PreviewMiniPlayerSize;preview: ChatCanvasPreview | null;@@ -40,8 +39,6 @@ export function resolveChatCanvasLayout({composerHeight?: number;detailsCard?: PreviewMiniPlayerObstacles["detailsCard"];findBar?: PreviewMiniPlayerObstacles["detailsCard"];- /** Center the chat in the space left of the details card when it would otherwise crowd it. */- centerBesideDetails?: boolean;}) {const centeredWidth = Math.max(0, Math.min(maxChatWidth, container.width - padding * 2));const laneRight = detailsCard@@ -52,16 +49,15 @@ export function resolveChatCanvasLayout({// Beside a card it would crowd, the chat centers between the card and the canvas edge. The shift// eases to zero as clearance grows, so very wide windows keep the chat still and a resize// never jumps it.- const besideShift =- detailsCard && centerBesideDetails- ? Math.min(- (container.width - detailsCard.left) / 2,- Math.max(- 0,- (container.width - detailsCard.left) / 2 - (laneRight - canvasCenterLeft - normalWidth),- ),- )- : 0;+ const besideShift = detailsCard+ ? Math.min(+ (container.width - detailsCard.left) / 2,+ Math.max(+ 0,+ (container.width - detailsCard.left) / 2 - (laneRight - canvasCenterLeft - normalWidth),+ ),+ )+ : 0;const normalLeft = Math.max(padding,Math.min(canvasCenterLeft - besideShift, laneRight - normalWidth),diff --git a/apps/web/src/components/pullRequest/PullRequestGhosts.tsx b/apps/web/src/components/pullRequest/PullRequestGhosts.tsxindex b9192068294..c0f7b1959d9 100644--- a/apps/web/src/components/pullRequest/PullRequestGhosts.tsx+++ b/apps/web/src/components/pullRequest/PullRequestGhosts.tsx@@ -54,9 +54,7 @@ export function PullRequestListGhost({ rows = 7, caption }: { rows?: number; cap<div role="status" aria-label={caption ?? "Loading pull requests"} className="space-y-0.5">{/* Outside the pulse so the explanation stays readable. */}{caption ? (- <p className="px-3 pb-1 text-xs font-medium text-muted-foreground/70 redesign:text-muted-foreground">- {caption}- </p>+ <p className="px-3 pb-1 text-xs font-medium text-muted-foreground">{caption}</p>) : null}<div className="motion-safe:animate-skeleton space-y-0.5">{Array.from({ length: rows }, (_, index) => (diff --git a/apps/web/src/components/settings/AppearanceSettingsPanel.tsx b/apps/web/src/components/settings/AppearanceSettingsPanel.tsxindex fce3885d425..e0877c8574a 100644--- a/apps/web/src/components/settings/AppearanceSettingsPanel.tsx+++ b/apps/web/src/components/settings/AppearanceSettingsPanel.tsx@@ -105,27 +105,6 @@ export function AppearanceSettingsPanel() {</SettingsSection><SettingsSection id="appearance-interface" title="Interface">- <SettingsRow- {...searchableSetting("new-design")}- description="A true black dark mode, dimmer read threads, and simpler composer controls. Turn it off for the classic look."- resetAction={- settings.redesignEnabled !== DEFAULT_UNIFIED_SETTINGS.redesignEnabled ? (- <SettingResetButton- label="new design"- onClick={() =>- updateSettings({ redesignEnabled: DEFAULT_UNIFIED_SETTINGS.redesignEnabled })- }- />- ) : null- }- control={- <Switch- checked={settings.redesignEnabled}- onCheckedChange={(checked) => updateSettings({ redesignEnabled: Boolean(checked) })}- aria-label="New design"- />- }- /><SettingsRow{...searchableSetting("setting-appearance-contrast")}description="Adjust the contrast of colors and borders across the interface."diff --git a/apps/web/src/components/settings/ProviderInstanceCard.tsx b/apps/web/src/components/settings/ProviderInstanceCard.tsxindex d190007399f..2fc3a6c2f5c 100644--- a/apps/web/src/components/settings/ProviderInstanceCard.tsx+++ b/apps/web/src/components/settings/ProviderInstanceCard.tsx@@ -37,7 +37,6 @@ import {} from "@t3tools/shared/model";import { cn } from "../../lib/utils";import { useCopyToClipboard } from "../../hooks/useCopyToClipboard";-import { useClientSettings } from "../../hooks/useSettings";import { useStableCallback } from "../../hooks/useStableCallback";import { normalizeProviderAccentColor } from "../../providerInstances";import { Badge } from "../ui/badge";@@ -675,7 +674,6 @@ export function ProviderInstanceCard({const displayName =instance.displayName?.trim() || driverOption?.label || String(instance.driver);const accentColor = normalizeProviderAccentColor(instance.accentColor);- const redesign = useClientSettings((settings) => settings.redesignEnabled);const { copyToClipboard } = useCopyToClipboard<{ providerName: string }>({onCopy: ({ providerName }) => {toastManager.add({@@ -968,7 +966,7 @@ export function ProviderInstanceCard({data-slot="settings-row"className={cn("group flex min-h-18 items-center gap-3 px-3 py-3 transition-colors sm:px-4",- selected ? "bg-muted/45 redesign:bg-foreground/[0.06]" : "hover:bg-muted/25",+ selected ? "bg-foreground/[0.06]" : "hover:bg-muted/25",)}><div@@ -1076,7 +1074,7 @@ export function ProviderInstanceCard({</div>);- // The New design gives provider status its own row instead of hanging it under the name field.+ // Provider status gets its own row instead of hanging under the name field.const statusContent = (<><ProviderStatusDiagnostic detail={statusDiagnostic}>@@ -1136,10 +1134,9 @@ export function ProviderInstanceCard({return (<><SettingsSection title={displayName} icon={titleIconNode} headerAction={editorHeaderAction}>- {redesign ? <SettingsRow title="Status" status={statusContent} /> : null}+ <SettingsRow title="Status" status={statusContent} /><SettingsRowtitle="Display name"- {...(redesign ? {} : { status: statusContent })}control={<divinert={readOnly}diff --git a/apps/web/src/components/settings/ProviderModelsSection.tsx b/apps/web/src/components/settings/ProviderModelsSection.tsxindex 8d9dde255c7..51d388913ef 100644--- a/apps/web/src/components/settings/ProviderModelsSection.tsx+++ b/apps/web/src/components/settings/ProviderModelsSection.tsx@@ -334,7 +334,7 @@ export function ProviderModelsSection({size="xs"variant="ghost-muted"// The ghost padding would inset the label from the column edge the toggles align to.- className="ml-auto redesign:-me-2"+ className="-me-2 ml-auto"onClick={() => setIsAdding(true)}><PlusIcon className="size-3" />diff --git a/apps/web/src/components/settings/ProviderSettingsPanel.tsx b/apps/web/src/components/settings/ProviderSettingsPanel.tsxindex 327e345fffa..d97ec725f54 100644--- a/apps/web/src/components/settings/ProviderSettingsPanel.tsx+++ b/apps/web/src/components/settings/ProviderSettingsPanel.tsx@@ -1001,8 +1001,8 @@ export function EnvironmentProviderSettings({) : null}headerAction={- // The ghost button's padding would inset its label; the New design aligns the text to the card edge.- <div className="flex min-w-0 items-center gap-2 redesign:-me-2">+ // The ghost button's padding would inset its label, so pull the text to the card edge.+ <div className="-me-2 flex min-w-0 items-center gap-2"><ProviderUpdatesAction /><Tooltip><TooltipTrigger@@ -1075,7 +1075,7 @@ export function EnvironmentProviderSettings({{selectedRow ? (<ScrollArea scrollFade chainVerticalScroll className="@min-[48rem]/providers:h-full">{/* Flat sections run dividers edge to edge and inset text like the list beside them. */}- <div className="space-y-6 p-4 redesign:px-0">+ <div className="space-y-6 py-4">{renderProviderInstance(selectedRow, "editor")}</div></ScrollArea>diff --git a/apps/web/src/components/settings/SettingsFontPreviews.tsx b/apps/web/src/components/settings/SettingsFontPreviews.tsxindex ceb5d15053d..17efc7f1d77 100644--- a/apps/web/src/components/settings/SettingsFontPreviews.tsx+++ b/apps/web/src/components/settings/SettingsFontPreviews.tsx@@ -43,7 +43,7 @@ export function PromptFontPreview() {skills={PREVIEW_SKILLS}disabled={false}placeholder={DEFAULT_COMPOSER_PLACEHOLDER}- className="max-h-42 min-h-14"+ className="max-h-42"onChange={onChange}onPaste={noop}/>diff --git a/apps/web/src/components/settings/SettingsPanels.tsx b/apps/web/src/components/settings/SettingsPanels.tsxindex f8bb4138492..a9594cb0894 100644--- a/apps/web/src/components/settings/SettingsPanels.tsx+++ b/apps/web/src/components/settings/SettingsPanels.tsx@@ -408,9 +408,6 @@ export function useSettingsRestore(onRestored?: () => void) {...(settings.mathRenderingEnabled !== DEFAULT_UNIFIED_SETTINGS.mathRenderingEnabled? ["Render math"]: []),- ...(settings.redesignEnabled !== DEFAULT_UNIFIED_SETTINGS.redesignEnabled- ? ["New design"]- : []),...(settings.panelAnimationDurationMs !== DEFAULT_UNIFIED_SETTINGS.panelAnimationDurationMs? ["Panel animations"]: []),@@ -584,7 +581,6 @@ export function useSettingsRestore(onRestored?: () => void) {diffColorScheme: DEFAULT_UNIFIED_SETTINGS.diffColorScheme,chatWidth: DEFAULT_UNIFIED_SETTINGS.chatWidth,mathRenderingEnabled: DEFAULT_UNIFIED_SETTINGS.mathRenderingEnabled,- redesignEnabled: DEFAULT_UNIFIED_SETTINGS.redesignEnabled,timestampFormat: DEFAULT_UNIFIED_SETTINGS.timestampFormat,notificationMode: DEFAULT_UNIFIED_SETTINGS.notificationMode,inAppNotificationsEnabled: DEFAULT_UNIFIED_SETTINGS.inAppNotificationsEnabled,diff --git a/apps/web/src/components/settings/ThemePreviewCircles.tsx b/apps/web/src/components/settings/ThemePreviewCircles.tsxindex 54f96c35b76..d8dab05079d 100644--- a/apps/web/src/components/settings/ThemePreviewCircles.tsx+++ b/apps/web/src/components/settings/ThemePreviewCircles.tsx@@ -172,7 +172,7 @@ export function ThemePreviewCircles({aria-label={`Use ${label} ${mode} mode`}aria-pressed={isPicked}className={cn(- "relative flex size-[68px] shrink-0 transform-gpu cursor-pointer items-center justify-center rounded-full p-1 outline-none redesign:p-1.5 transition-transform hover:scale-105 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-card redesign:focus-visible:ring-0 redesign:focus-visible:ring-offset-0 redesign:focus-visible:outline-2 redesign:focus-visible:outline-solid redesign:focus-visible:-outline-offset-5 redesign:focus-visible:outline-foreground/60",+ "relative flex size-[68px] shrink-0 transform-gpu cursor-pointer items-center justify-center rounded-full p-1.5 outline-none transition-transform hover:scale-105 focus-visible:outline-2 focus-visible:outline-solid focus-visible:-outline-offset-5 focus-visible:outline-foreground/60",isPicked && "hover:scale-100",)}onClick={(event) => {diff --git a/apps/web/src/components/settings/ThemeSettings.tsx b/apps/web/src/components/settings/ThemeSettings.tsxindex e52589bb5ef..17a6094b164 100644--- a/apps/web/src/components/settings/ThemeSettings.tsx+++ b/apps/web/src/components/settings/ThemeSettings.tsx@@ -191,7 +191,7 @@ function ThemeLibraryCard({: `Use ${mode} variant, currently ${selected.option.label}`}aria-pressed={isActive}- className="absolute left-1/2 top-2 z-20 flex size-14 items-center justify-center rounded-full outline-none focus-visible:outline-2 focus-visible:outline-solid focus-visible:-outline-offset-2 focus-visible:outline-ring redesign:focus-visible:-outline-offset-5 redesign:focus-visible:outline-foreground/60"+ className="absolute left-1/2 top-2 z-20 flex size-14 items-center justify-center rounded-full outline-none focus-visible:outline-2 focus-visible:outline-solid focus-visible:-outline-offset-5 focus-visible:outline-foreground/60"style={{transform: `translateX(calc(-50% + ${rootOffsetX}px))`,}}@@ -678,9 +678,9 @@ export function ThemeLibrary({aria-pressed={isActive}className={cn(// The accent ring marks the picked tile; focus is a neutral ring set inside it with a gap.- "flex cursor-pointer flex-col items-stretch gap-1.5 rounded-xl border p-2 outline-none transition-colors focus-visible:outline-2 focus-visible:outline-solid focus-visible:-outline-offset-2 focus-visible:outline-ring redesign:focus-visible:-outline-offset-7 redesign:focus-visible:outline-foreground/60",+ "flex cursor-pointer flex-col items-stretch gap-1.5 rounded-xl border p-2 outline-none transition-colors focus-visible:outline-2 focus-visible:outline-solid focus-visible:-outline-offset-7 focus-visible:outline-foreground/60",isActive- ? "border-transparent bg-accent/30 ring-1 ring-inset ring-ring redesign:ring-2"+ ? "border-transparent bg-accent/30 ring-2 ring-inset ring-ring": "border-border/70 bg-card/60 hover:bg-accent/10",)}key={mode}@@ -827,12 +827,12 @@ export function ThemeLibrary({return (<div className="space-y-3">- <h3 className="flex min-h-7 items-center px-3 text-sm font-normal text-foreground/70 sm:px-4 redesign:text-base redesign:font-semibold redesign:text-foreground">+ <h3 className="flex min-h-7 items-center px-3 text-base font-semibold text-foreground sm:px-4">{searchableSetting("color-scheme").title}</h3>{renderModeTiles()}- <div className="flex min-h-8 flex-wrap items-center justify-between gap-3 px-3 pt-2 sm:px-4 redesign:pt-5">- <h3 className="text-sm font-normal text-foreground/70 redesign:text-base redesign:font-semibold redesign:text-foreground">+ <div className="flex min-h-8 flex-wrap items-center justify-between gap-3 px-3 pt-5 sm:px-4">+ <h3 className="text-base font-semibold text-foreground">{searchableSetting("theme").title}</h3><div className="flex flex-wrap items-center justify-end gap-2">diff --git a/apps/web/src/components/settings/settingsSearch.ts b/apps/web/src/components/settings/settingsSearch.tsindex 1bd8f1bb08e..5840566dc1c 100644--- a/apps/web/src/components/settings/settingsSearch.ts+++ b/apps/web/src/components/settings/settingsSearch.ts@@ -403,12 +403,6 @@ export const SETTINGS_SEARCH_ITEMS = [to: "/settings/threads",searchTerms: ["usage quota rate limit reset recover continue"],},- {- id: "new-design",- title: "New design",- to: "/settings/appearance",- searchTerms: ["redesign look style sidebar composer black quieter classic"],- },{id: "working-shelf",title: "Working section",diff --git a/apps/web/src/components/sidebar/SidebarListMarkers.tsx b/apps/web/src/components/sidebar/SidebarListMarkers.tsxindex 4c45b5829fb..a8620a9ddf4 100644--- a/apps/web/src/components/sidebar/SidebarListMarkers.tsx+++ b/apps/web/src/components/sidebar/SidebarListMarkers.tsx@@ -3,7 +3,6 @@ import { useSortable } from "@dnd-kit/sortable";import { CSS } from "@dnd-kit/utilities";import { type ReactNode } from "react";import { cn } from "~/lib/utils";-import { useClientSettings } from "../../hooks/useSettings";import {animateSidebarLayoutChanges,sidebarMarkerId,@@ -104,7 +103,7 @@ export function SidebarDragBoundary(props: {export function SidebarSectionHeader(props: {marker: "working-header" | "snoozed-header" | "settled-header";label: string;- /** A muted trailing count; classic shows it only while the shelf is collapsed. */+ /** A muted trailing count. */count: number;className?: string;dragging?: boolean;@@ -119,9 +118,6 @@ export function SidebarSectionHeader(props: {: props.marker === "snoozed-header"? "snoozed": "settled";- const redesign = useClientSettings((s) => s.redesignEnabled);- const collapsedCount = props.toggle.expanded ? null : props.count;- const count = redesign ? props.count : collapsedCount;return (<SortableSidebarMarkermarker={props.marker}@@ -136,14 +132,9 @@ export function SidebarSectionHeader(props: {expanded={props.toggle.expanded}tone={props.isDropTarget ? "accent" : props.dragging ? "emphasized" : "muted"}data-testid={`sidebar-${shelf}-shelf-toggle`}- accessory={- redesign && count !== null ? (- <span className="font-normal tabular-nums">{count}</span>- ) : null- }+ accessory={<span className="font-normal tabular-nums">{props.count}</span>}>{props.label}- {!redesign && collapsedCount !== null ? ` (${collapsedCount})` : null}</CollapsibleSectionHeader></SortableSidebarMarker>);diff --git a/apps/web/src/components/sidebar/SidebarThreadHeader.tsx b/apps/web/src/components/sidebar/SidebarThreadHeader.tsxindex 1958277baa0..bccbd38f86a 100644--- a/apps/web/src/components/sidebar/SidebarThreadHeader.tsx+++ b/apps/web/src/components/sidebar/SidebarThreadHeader.tsx@@ -62,7 +62,7 @@ export function SidebarThreadHeader({<div className="flex items-center gap-1"><divref={searchFieldRef}- className="flex h-8 min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-1.5 text-sm font-medium text-sidebar-muted-foreground hover:bg-sidebar-row-hover hover:text-sidebar-foreground redesign:focus-within:bg-sidebar-row-hover redesign:focus-within:text-sidebar-foreground redesign:focus-within:ring-1 redesign:focus-within:ring-inset redesign:focus-within:ring-ring/70"+ className="flex h-8 min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-1.5 text-sm font-medium text-sidebar-muted-foreground hover:bg-sidebar-row-hover hover:text-sidebar-foreground focus-within:bg-sidebar-row-hover focus-within:text-sidebar-foreground focus-within:ring-1 focus-within:ring-inset focus-within:ring-ring/70"><SearchIcon className="size-4 shrink-0 text-(--sidebar-icon-color)" /><SidebarInputdiff --git a/apps/web/src/components/sidebar/SidebarThreadRow.tsx b/apps/web/src/components/sidebar/SidebarThreadRow.tsxindex 8837d47ae0e..449be6dff7a 100644--- a/apps/web/src/components/sidebar/SidebarThreadRow.tsx+++ b/apps/web/src/components/sidebar/SidebarThreadRow.tsx@@ -912,9 +912,9 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP"group/sidebar-row relative w-full cursor-pointer overflow-hidden rounded-md text-left outline-none select-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",variantAction === "unsettle" &&!props.isActive &&- "[&:not(:hover):not(:focus-within)_*]:text-secondary-label/70 redesign:[&:not(:hover):not(:focus-within)_*]:text-secondary-label",+ "[&:not(:hover):not(:focus-within)_*]:text-secondary-label",props.isActive- ? "bg-sidebar-row-active text-sidebar-foreground light:shadow-xs light:ring-1 light:ring-inset light:ring-sidebar-border/70 redesign:light:shadow-none"+ ? "bg-sidebar-row-active text-sidebar-foreground light:ring-1 light:ring-inset light:ring-sidebar-border/70": isSelected || props.sweepAction !== null? "bg-sidebar-row-selected text-sidebar-foreground light:ring-1 light:ring-inset light:ring-sidebar-border/70": hasUnsentDraft@@ -986,17 +986,15 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP? cn("truncate",shouldRecede- ? "text-secondary-label redesign:text-foreground/75 redesign:group-hover/sidebar-row:text-foreground redesign:group-focus-visible/sidebar-row:text-foreground"- : isUnread || isWoke || status === "input" || status === "request"- ? "text-foreground"- : status === "failed"- ? "text-foreground/95"- : "text-foreground/90 redesign:text-foreground",+ ? "text-foreground/75 group-hover/sidebar-row:text-foreground group-focus-visible/sidebar-row:text-foreground"+ : status === "failed" && !isUnread && !isWoke+ ? "text-foreground/95"+ : "text-foreground",): cn("truncate group-focus-within/sidebar-row:text-foreground group-hover/sidebar-row:text-foreground",shouldRecede- ? "text-secondary-label/70 redesign:text-secondary-label"+ ? "text-secondary-label": props.isActive || isWoke || status === "input" || status === "request"? "text-foreground": isUnread@@ -1140,8 +1138,6 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowPRegenerating title</span>) : null}- {/* Shelf rows are one line; the New design gives the title the room a PR number takes. */}- {prBadge ? <span className="contents redesign:hidden">{prBadge}</span> : null}{sortable?.isDragging ? (dragDestination) : (@@ -1160,7 +1156,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP{variantAction === "unsnooze" && props.snoozeWakeLabelText !== null ? (<span className="inline-flex items-center gap-1 text-xs text-info-foreground tabular-nums">{/* The clock tells a wake time from an age at a glance. */}- <AlarmClockIcon aria-hidden className="hidden size-3 redesign:block" />+ <AlarmClockIcon aria-hidden className="size-3" />{props.snoozeWakeLabelText}</span>) : isWoke ? (@@ -1253,7 +1249,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP}const diff = latestRunDiff(thread);- // Only the provider icon would remain; the New design drops the line instead of leaving it blank.+ // Only the provider icon would remain, so the row drops the line instead of leaving it blank.const metaLineEmpty =!thread.branch &&!showsScratchMachine &&@@ -1269,7 +1265,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP{...(fileDropHandlers ?? {})}className={cn("list-none py-0.5 [content-visibility:auto] [contain-intrinsic-size:auto_78px]",- metaLineEmpty && "redesign:[contain-intrinsic-size:auto_58px]",+ metaLineEmpty && "[contain-intrinsic-size:auto_58px]",sortable?.isDragging && "relative z-20",)}>@@ -1296,7 +1292,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP<divclassName={cn("relative z-10 h-[4.875rem] px-(--sidebar-row-content-inset) py-(--sidebar-content-inset)",- metaLineEmpty && "redesign:h-auto",+ metaLineEmpty && "h-auto",)}><div className="flex h-5 min-w-0 items-center gap-1.5">@@ -1309,10 +1305,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP{pinIndicator}{props.projectDisplayName ? (<span- className={cn(- "min-w-0 flex-1 truncate text-secondary-label text-xs",- shouldRecede ? "font-normal" : "font-medium redesign:font-normal",- )}+ className={cn("min-w-0 flex-1 truncate font-normal text-secondary-label text-xs")}>{props.projectDisplayName}</span>@@ -1466,7 +1459,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP</span>) : null}{metaLineEmpty ? (- <span aria-hidden className="hidden shrink-0 redesign:inline-flex">+ <span aria-hidden className="inline-flex shrink-0"><SidebarProviderStackthread={thread}providerEntryByInstanceId={props.providerEntryByInstanceId}@@ -1474,64 +1467,59 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP</span>) : null}</div>- <div- className={cn(- "mt-0.5 flex min-w-0 items-center gap-1.5 text-secondary-label text-xs",- metaLineEmpty && "redesign:hidden",- )}- >- {thread.branch ? (- <>- <ThreadWorktreeIndicator thread={thread} />- <span className="flex min-w-0 flex-1 text-muted-foreground/40 redesign:text-inherit">- <MiddleTruncate value={thread.branch} showTitle={false} />- </span>- </>- ) : showsScratchMachine ? (- <>- <EnvironmentMachineIcon- aria-hidden- kind={props.environmentMachine}- className="size-3 shrink-0 text-muted-foreground/40 redesign:text-inherit"- />- <span className="min-w-0 flex-1 truncate text-muted-foreground/40 redesign:text-inherit">- {props.scratchMachineLabel}- </span>- </>- ) : (- <span className="flex-1" />- )}- {terminalStatusIcon}- {prBadge}- {diff ? (- <span className="shrink-0 font-mono">- <span className="text-diff-addition-foreground">- +{formatDiffCount(diff.insertions)}- </span>{" "}- <span className="text-diff-deletion-foreground">- −{formatDiffCount(diff.deletions)}- </span>- </span>- ) : null}- <span- aria-hidden- className="pointer-events-none ml-auto inline-flex shrink-0 items-center gap-1"- >- {isRemote && !showsScratchMachine ? (- <span className="inline-flex shrink-0 items-center text-sidebar-muted-foreground/70">+ {metaLineEmpty ? null : (+ <div className="mt-0.5 flex min-w-0 items-center gap-1.5 text-secondary-label text-xs">+ {thread.branch ? (+ <>+ <ThreadWorktreeIndicator thread={thread} />+ <span className="flex min-w-0 flex-1">+ <MiddleTruncate value={thread.branch} showTitle={false} />+ </span>+ </>+ ) : showsScratchMachine ? (+ <><EnvironmentMachineIconaria-hiddenkind={props.environmentMachine}- className="size-3.5"+ className="size-3 shrink-0"/>+ <span className="min-w-0 flex-1 truncate">{props.scratchMachineLabel}</span>+ </>+ ) : (+ <span className="flex-1" />+ )}+ {terminalStatusIcon}+ {prBadge}+ {diff ? (+ <span className="shrink-0 font-mono">+ <span className="text-diff-addition-foreground">+ +{formatDiffCount(diff.insertions)}+ </span>{" "}+ <span className="text-diff-deletion-foreground">+ −{formatDiffCount(diff.deletions)}+ </span></span>) : null}- <SidebarProviderStack- thread={thread}- providerEntryByInstanceId={props.providerEntryByInstanceId}- />- </span>- </div>+ <span+ aria-hidden+ className="pointer-events-none ml-auto inline-flex shrink-0 items-center gap-1"+ >+ {isRemote && !showsScratchMachine ? (+ <span className="inline-flex shrink-0 items-center text-sidebar-muted-foreground/70">+ <EnvironmentMachineIcon+ aria-hidden+ kind={props.environmentMachine}+ className="size-3.5"+ />+ </span>+ ) : null}+ <SidebarProviderStack+ thread={thread}+ providerEntryByInstanceId={props.providerEntryByInstanceId}+ />+ </span>+ </div>+ )}</div>{props.jumpLabel ? <JumpHintBadge label={props.jumpLabel} /> : null}</TooltipTrigger>diff --git a/apps/web/src/components/ui/button.tsx b/apps/web/src/components/ui/button.tsxindex 5637baf28ab..4dea8acd73e 100644--- a/apps/web/src/components/ui/button.tsx+++ b/apps/web/src/components/ui/button.tsx@@ -106,7 +106,7 @@ const inlineButtonVariants = cva(muted: "text-muted-foreground hover:text-foreground",destructive: "text-destructive/80 hover:text-destructive",picker:- "gap-1 text-foreground underline decoration-foreground/30 decoration-dotted decoration-from-font underline-offset-4 hover:decoration-foreground hover:decoration-solid data-popup-open:decoration-foreground data-popup-open:decoration-solid redesign:no-underline redesign:hover:underline redesign:data-popup-open:underline",+ "gap-1 text-foreground decoration-from-font underline-offset-4 data-popup-open:underline",},},},diff --git a/apps/web/src/components/ui/collapsible-section-header.tsx b/apps/web/src/components/ui/collapsible-section-header.tsxindex fc16fde42cf..94323b0ad94 100644--- a/apps/web/src/components/ui/collapsible-section-header.tsx+++ b/apps/web/src/components/ui/collapsible-section-header.tsx@@ -35,21 +35,13 @@ export function CollapsibleSectionHeader({<span className="shrink-0">{children}</span><spanaria-hidden- // A header with a trailing count drops its rule so it doesn't read as a leader. The New- // design drops it in both states so a shelf header looks the same open or closed.- className={cn(- "h-px min-w-2 flex-1",- tones[tone].line,- accessory && (expanded ? "redesign:invisible" : "invisible"),- )}+ // A header with a trailing count drops its rule so it doesn't read as a leader.+ className={cn("h-px min-w-2 flex-1", tones[tone].line, accessory && "invisible")}/>{accessory}<ChevronDownIconaria-hidden- className={cn(- "size-3 shrink-0 transition-transform",- !expanded && "rotate-180 redesign:-rotate-90",- )}+ className={cn("size-3 shrink-0 transition-transform", !expanded && "-rotate-90")}/></button>);diff --git a/apps/web/src/components/ui/combobox.tsx b/apps/web/src/components/ui/combobox.tsxindex ef3ce43eb40..21f81368118 100644--- a/apps/web/src/components/ui/combobox.tsx+++ b/apps/web/src/components/ui/combobox.tsx@@ -192,7 +192,7 @@ function ComboboxItem({return (<ComboboxPrimitive.ItemclassName={cn(- "flex min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-pointer items-center rounded-sm px-2 py-1 text-base outline-none not-data-disabled:hover:bg-accent data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-selected:bg-foreground/[0.08] data-selected:text-foreground data-highlighted:bg-accent data-highlighted:text-accent-foreground [&[data-highlighted][data-selected]]:bg-accent [&[data-highlighted][data-selected]]:text-accent-foreground redesign:data-selected:bg-foreground/[0.06] redesign:data-highlighted:bg-foreground/[0.09] redesign:[&[data-highlighted][data-selected]]:bg-foreground/[0.09] redesign:not-data-disabled:hover:bg-foreground/[0.09] data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",+ "flex min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-pointer items-center rounded-sm px-2 py-1 text-base outline-none not-data-disabled:hover:bg-foreground/[0.09] data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-selected:bg-foreground/[0.06] data-selected:text-foreground data-highlighted:bg-foreground/[0.09] data-highlighted:text-accent-foreground [&[data-highlighted][data-selected]]:bg-foreground/[0.09] [&[data-highlighted][data-selected]]:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",className,)}data-slot="combobox-item"diff --git a/apps/web/src/components/ui/command.tsx b/apps/web/src/components/ui/command.tsxindex 60daa212dae..3beb9e266e7 100644--- a/apps/web/src/components/ui/command.tsx+++ b/apps/web/src/components/ui/command.tsx@@ -218,7 +218,7 @@ function CommandFooter({ className, ...props }: React.ComponentProps<"div">) {return (<divclassName={cn(- "relative flex items-center justify-between gap-2 rounded-b-[calc(var(--radius-2xl)-1px)] bg-foreground/[0.025] redesign:border-t redesign:border-foreground/[0.07] px-[var(--command-content-inset)] py-2.5 font-medium text-sm text-muted-foreground [&_[data-slot=kbd-group]]:font-sans [&_[data-slot=kbd]]:bg-foreground/[0.08] [&_[data-slot=kbd]]:text-foreground [&_[data-slot=kbd]]:ring-0",+ "relative flex items-center justify-between gap-2 rounded-b-[calc(var(--radius-2xl)-1px)] border-t border-foreground/[0.07] bg-foreground/[0.025] px-[var(--command-content-inset)] py-2.5 font-medium text-sm text-muted-foreground [&_[data-slot=kbd-group]]:font-sans [&_[data-slot=kbd]]:bg-foreground/[0.08] [&_[data-slot=kbd]]:text-foreground [&_[data-slot=kbd]]:ring-0",className,)}data-slot="command-footer"diff --git a/apps/web/src/components/ui/kbd.tsx b/apps/web/src/components/ui/kbd.tsxindex 849d7cf18b8..7975b4dd147 100644--- a/apps/web/src/components/ui/kbd.tsx+++ b/apps/web/src/components/ui/kbd.tsx@@ -6,7 +6,7 @@ function Kbd({ className, ...props }: React.ComponentProps<"kbd">) {return (<kbdclassName={cn(- "pointer-events-none inline-flex h-5 min-w-5 select-none items-center justify-center gap-1 rounded bg-muted px-1 redesign:bg-foreground/[0.07] font-medium font-sans text-muted-foreground text-xs [&_svg:not([class*='size-'])]:size-3",+ "pointer-events-none inline-flex h-5 min-w-5 select-none items-center justify-center gap-1 rounded bg-foreground/[0.07] px-1 font-medium font-sans text-muted-foreground text-xs [&_svg:not([class*='size-'])]:size-3",className,)}data-slot="kbd"diff --git a/apps/web/src/components/usage/UsageLimitsPooled.tsx b/apps/web/src/components/usage/UsageLimitsPooled.tsxindex 0305b551edc..f195a4290ee 100644--- a/apps/web/src/components/usage/UsageLimitsPooled.tsx+++ b/apps/web/src/components/usage/UsageLimitsPooled.tsx@@ -402,15 +402,12 @@ function SegmentTriggers({className="min-w-0 truncate font-medium text-foreground"/>) : null}- <span- className={cn(- "shrink-0 font-semibold text-foreground tabular-nums",- // A single-account bar repeats the headline percentage.- !showAccountName && "redesign:hidden",- )}- >- {remaining}%- </span>+ {/* A single-account bar repeats the headline percentage. */}+ {showAccountName ? (+ <span className="shrink-0 font-semibold text-foreground tabular-nums">+ {remaining}%+ </span>+ ) : null}{resetsIn || credits ? (<span className="ms-auto flex min-w-0 items-center gap-1.5 overflow-hidden rounded-sm bg-background/85 px-1.5 py-0.5 text-2xs whitespace-nowrap text-foreground tabular-nums">{resetsIn?.replace("resets in ", "↻ ") ?? ""}diff --git a/apps/web/src/components/usage/UsagePage.tsx b/apps/web/src/components/usage/UsagePage.tsxindex b5c12b148fe..a26daff1894 100644--- a/apps/web/src/components/usage/UsagePage.tsx+++ b/apps/web/src/components/usage/UsagePage.tsx@@ -391,25 +391,25 @@ export function UsagePage() {</span>) : null}<div className="ms-auto hidden shrink-0 items-center justify-end gap-2 @4xl/usage-header:flex">- <ToggleGroup- aria-label="Usage period"- variant="segmented"- value={[String(windowDays)]}- disabled={showingLimits}- // Limits are always current; the New design hides the period instead of greying it.- // It sits before the metric tabs so hiding it never moves them.- className={showingLimits ? "redesign:hidden" : undefined}- onValueChange={(next) => {- const value = next[0];- if (value) selectWindow(Number(value));- }}- >- {WINDOW_OPTIONS.map((option) => (- <Toggle key={option.days} value={String(option.days)} title={shortcutTitle(option)}>- {option.label}- </Toggle>- ))}- </ToggleGroup>+ {/* Limits are always current, so they have no period. The period sits before the metric+ tabs so dropping it never moves them. */}+ {showingLimits ? null : (+ <ToggleGroup+ aria-label="Usage period"+ variant="segmented"+ value={[String(windowDays)]}+ onValueChange={(next) => {+ const value = next[0];+ if (value) selectWindow(Number(value));+ }}+ >+ {WINDOW_OPTIONS.map((option) => (+ <Toggle key={option.days} value={String(option.days)} title={shortcutTitle(option)}>+ {option.label}+ </Toggle>+ ))}+ </ToggleGroup>+ )}<ToggleGrouparia-label="Usage metric"variant="segmented"@@ -437,33 +437,31 @@ export function UsagePage() {</Button></div><div className="ms-auto flex shrink-0 items-center justify-end gap-1 @4xl/usage-header:hidden">- <Select- value={String(windowDays)}- disabled={showingLimits}- onValueChange={(value) => selectWindow(Number(value))}- >- <SelectTrigger- aria-label="Usage period"- size="compact"- variant="ghost"- className={cn("w-auto min-w-0", showingLimits && "redesign:hidden")}- >- <SelectValue>- {WINDOW_OPTIONS.find((option) => option.days === windowDays)?.label}- </SelectValue>- </SelectTrigger>- <SelectPopup align="end" alignItemWithTrigger={false}>- {WINDOW_OPTIONS.map((option) => (- <SelectItem- key={option.days}- value={String(option.days)}- title={shortcutTitle(option)}- >- {option.label}- </SelectItem>- ))}- </SelectPopup>- </Select>+ {showingLimits ? null : (+ <Select value={String(windowDays)} onValueChange={(value) => selectWindow(Number(value))}>+ <SelectTrigger+ aria-label="Usage period"+ size="compact"+ variant="ghost"+ className="w-auto min-w-0"+ >+ <SelectValue>+ {WINDOW_OPTIONS.find((option) => option.days === windowDays)?.label}+ </SelectValue>+ </SelectTrigger>+ <SelectPopup align="end" alignItemWithTrigger={false}>+ {WINDOW_OPTIONS.map((option) => (+ <SelectItem+ key={option.days}+ value={String(option.days)}+ title={shortcutTitle(option)}+ >+ {option.label}+ </SelectItem>+ ))}+ </SelectPopup>+ </Select>+ )}<Selectvalue={metric}onValueChange={(value) => {@@ -1338,7 +1336,7 @@ function UsageEnvironmentFilter({/>) : (<ChevronDownIcon- className="size-3.5 opacity-0 transition-opacity group-hover/usage-environment:opacity-100 group-focus-visible/usage-environment:opacity-100 group-data-popup-open/usage-environment:opacity-100 redesign:opacity-60 redesign:group-hover/usage-environment:opacity-100 redesign:group-focus-visible/usage-environment:opacity-100 redesign:group-data-popup-open/usage-environment:opacity-100"+ className="size-3.5 opacity-60 transition-opacity group-hover/usage-environment:opacity-100 group-focus-visible/usage-environment:opacity-100 group-data-popup-open/usage-environment:opacity-100"aria-hidden/>)}@@ -1451,7 +1449,7 @@ function UsageProviderFilter({<MenuTrigger render={<InlineButton />} className="group/usage-provider min-w-0 max-w-full"><span className="min-w-0 truncate">{label}</span><ChevronDownIcon- className="size-3.5 shrink-0 text-muted-foreground opacity-0 transition-opacity group-hover/usage-provider:opacity-100 group-focus-visible/usage-provider:opacity-100 group-data-popup-open/usage-provider:opacity-100 redesign:opacity-60 redesign:group-hover/usage-provider:opacity-100 redesign:group-focus-visible/usage-provider:opacity-100 redesign:group-data-popup-open/usage-provider:opacity-100"+ className="size-3.5 shrink-0 text-muted-foreground opacity-60 transition-opacity group-hover/usage-provider:opacity-100 group-focus-visible/usage-provider:opacity-100 group-data-popup-open/usage-provider:opacity-100"aria-hidden/></MenuTrigger>diff --git a/apps/web/src/index.css b/apps/web/src/index.cssindex 30bc1c02689..80c16a1b431 100644--- a/apps/web/src/index.css+++ b/apps/web/src/index.css@@ -4,9 +4,6 @@@custom-variant light (&:not(.dark, .dark *));/* Window Controls Overlay: active when Electron exposes native titlebar control geometry. */@custom-variant wco (&:is(.wco, .wco *));-/* Beta "New design" (Settings -> Beta) sets data-redesign on <html>. The variant adds no- specificity, so it loses to dark:, hover: and other variants on the same property. */-@custom-variant redesign (&:where([data-redesign] *));/* Secondary hovering pointers reveal sidebar actions on touch-primary devices. */@custom-variant any-hover {@@ -1195,14 +1192,15 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil@variant dark {color-scheme: dark;- /* Keep controls and floating surfaces close to the neutral-black canvas.- Borders and hover states provide separation without milky gray fills. */- --background: var(--color-neutral-950);- --surface-raised: color-mix(in srgb, var(--background) 97%, var(--color-white));+ /* The canvas is true black, matching the sidebar. Raised surfaces keep the tone they had+ over neutral-950, so cards, popovers, and the composer still lift. Borders and hover+ states provide separation without milky gray fills. */+ --background: #000;+ --surface-raised: color-mix(in srgb, var(--color-neutral-950) 97%, var(--color-white));--foreground: var(--color-neutral-100);- --card: color-mix(in srgb, var(--background) 97%, var(--color-white));+ --card: color-mix(in srgb, var(--color-neutral-950) 97%, var(--color-white));--card-foreground: var(--color-neutral-100);- --popover: color-mix(in srgb, var(--background) 97%, var(--color-white));+ --popover: color-mix(in srgb, var(--color-neutral-950) 97%, var(--color-white));--popover-foreground: var(--color-neutral-100);--primary: oklch(0.571 0.21 264);--secondary: --alpha(var(--color-white) / 3%);@@ -1211,7 +1209,8 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil--muted-foreground: var(--color-neutral-400);--accent: --alpha(var(--color-white) / 4%);--accent-foreground: var(--color-neutral-100);- --message-surface: var(--accent);+ /* A user turn sits above the composer tone, level with the selected sidebar row. */+ --message-surface: color-mix(in srgb, var(--color-neutral-950) 92%, var(--color-white));--error: color-mix(in srgb, var(--color-red-500) 90%, var(--color-white));--error-foreground: var(--color-red-400);--tool-error-icon: #fca5a5;@@ -1280,57 +1279,49 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil--sidebar-row-selected: color-mix(in srgb, var(--contrast-foreground) 7%, transparent);--sidebar-border: var(--border);--sidebar-stage-fade: var(--card);+ /* Row metadata sits a step below read titles (75% white). */+ --secondary-label: #8f8f8f;}}-/* New design: modified files get a muted blue so added and deleted files lead. Built from the- info token, which themes do not override, so it stays blue in every theme. */-html[data-redesign] {+/* Modified files get a muted blue so added and deleted files lead. Built from the info token,+ which themes do not override, so it stays blue in every theme. */+:root {--diff-modified-icon: color-mix(in srgb, var(--info-foreground) 50%, var(--muted-foreground));-}-html.dark[data-redesign] {- /* On black a gray mix stays as bright as the blue, so dim with transparency instead. */- --diff-modified-icon: color-mix(in srgb, var(--info-foreground) 65%, transparent);- --diff-added-icon: var(--success-foreground);+ @variant dark {+ /* On black a gray mix stays as bright as the blue, so dim with transparency instead. */+ --diff-modified-icon: color-mix(in srgb, var(--info-foreground) 65%, transparent);+ --diff-added-icon: var(--success-foreground);+ }}-/* Blue-orange already spends blue on additions. */-html[data-redesign][data-diff-color-scheme="blue-orange"] {+/* Blue-orange already spends blue on additions. Same specificity as the dark block above and+ later, so it wins there too. */+:root[data-diff-color-scheme="blue-orange"] {--diff-modified-icon: var(--muted-foreground);--diff-added-icon: initial;-}-html.dark[data-redesign][data-diff-color-scheme="blue-orange"] {- --diff-modified-icon: color-mix(in srgb, var(--muted-foreground) 65%, transparent);+ @variant dark {+ --diff-modified-icon: color-mix(in srgb, var(--muted-foreground) 65%, transparent);+ }}-/* New design: sections in the provider detail pane sit flat in its card instead of nesting- cards inside it. Headings and row dividers still separate them. */-[data-redesign] [data-provider-detail] [data-slot="settings-group"] {+/* Sections in the provider detail pane sit flat in its card instead of nesting cards inside+ it. Headings and row dividers still separate them. */+[data-provider-detail] [data-slot="settings-group"] {border-color: transparent;background: transparent;box-shadow: none;}-/* New design: a diff header's copy button shows on file hover or focus. */+/* A diff header's copy button shows on file hover or focus. */@media (hover: hover) {- [data-redesign] diffs-container:not(:hover) [data-diff-copy-path]:not(:focus-within) {+ diffs-container:not(:hover) [data-diff-copy-path]:not(:focus-within) {opacity: 0;}}-/* New design: the default dark canvas is true black, matching the sidebar. Raised surfaces- keep the tone they had over neutral-950 so cards, popovers, and the composer still lift. */-html.dark[data-redesign]:not([data-theme-id]) {- --background: #000;- --surface-raised: color-mix(in srgb, var(--color-neutral-950) 97%, var(--color-white));- --card: color-mix(in srgb, var(--color-neutral-950) 97%, var(--color-white));- --popover: color-mix(in srgb, var(--color-neutral-950) 97%, var(--color-white));- /* A user turn sits above the composer tone, level with the selected sidebar row. */- --message-surface: color-mix(in srgb, var(--color-neutral-950) 92%, var(--color-white));-}-/* Theme files are expressed in app color roles and mapped to the existingsemantic surface tokens here. Keep this block after the sidebar-versioncompatibility overrides so both navigation implementations receive the@@ -1735,13 +1726,6 @@ body {padding: 0;}-/* New design: sidebar row metadata sits a step below read titles (75% white). */-[data-redesign] [data-app-sidebar] {- @variant dark {- --secondary-label: #8f8f8f;- }-}-/* Lighter default icon stroke. In the base layer so stroke-* utilities still win; anyCSS beats lucide's stroke-width="2" attribute. */@layer base {@@ -2228,23 +2212,16 @@ code {border-collapse: collapse;overflow-wrap: normal;word-break: normal;- font-size: 0.75rem;-}--/* New design: tables sit one step under 15px prose instead of three. */-[data-redesign] .chat-markdown table {+ /* One step under 15px prose. */font-size: 0.875rem;}-[data-redesign] .chat-markdown :is(td, th) {- text-wrap: pretty;-}-/* Top-aligned so wrapped rows share a first line, and the outer columns sitflush with the surrounding prose. */.chat-markdown th,.chat-markdown td {padding: 0.45rem 0.75rem;+ text-wrap: pretty;text-align: start;vertical-align: top;}diff --git a/apps/web/src/lib/diffRendering.ts b/apps/web/src/lib/diffRendering.tsindex cad51902486..aac9b1f3e63 100644--- a/apps/web/src/lib/diffRendering.ts+++ b/apps/web/src/lib/diffRendering.ts@@ -3,20 +3,16 @@ import { parseDiffFromFile } from "@pierre/diffs";import type { FileDiffMetadata } from "@pierre/diffs/types";import { READABLE_LIGHT_THEME_NAME } from "./readableSyntaxTheme";+// Light mode uses a darker pierre-light so syntax stays readable on every code surface.export const DIFF_THEME_NAMES = {- light: "pierre-light",+ light: READABLE_LIGHT_THEME_NAME,dark: "pierre-dark",- readableLight: READABLE_LIGHT_THEME_NAME,} as const;export type DiffThemeName = (typeof DIFF_THEME_NAMES)[keyof typeof DIFF_THEME_NAMES];export function resolveDiffThemeName(theme: "light" | "dark"): DiffThemeName {- if (theme === "dark") return DIFF_THEME_NAMES.dark;- // The New design (data-redesign on <html>) keeps light syntax readable on every code surface.- return typeof document !== "undefined" && document.documentElement.hasAttribute("data-redesign")- ? DIFF_THEME_NAMES.readableLight- : DIFF_THEME_NAMES.light;+ return DIFF_THEME_NAMES[theme];}const FNV_OFFSET_BASIS_32 = 0x811c9dc5;@@ -278,21 +274,6 @@ export function buildFileDiffContentVersion(fileDiff: FileDiffMetadata): numberreturn hash;}-export function getDiffCollapseIconClassName(fileDiff: FileDiffMetadata): string {- switch (fileDiff.type) {- case "new":- return "text-[var(--diffs-addition-base)] redesign:text-muted-foreground/80";- case "deleted":- return "text-[var(--diffs-deletion-base)] redesign:text-muted-foreground/80";- case "change":- case "rename-pure":- case "rename-changed":- return "text-[var(--diffs-modified-base)] redesign:text-muted-foreground/80";- default:- return "text-muted-foreground/80";- }-}-export const DIFF_SURFACE_THEME_UNSAFE_CSS = `[data-diffs-header],[data-diff],@@ -367,7 +348,7 @@ export const DIFF_SURFACE_THEME_UNSAFE_CSS = `[data-change-icon="deleted"] {color: light-dark(var(--diff-deletion-foreground), var(--diffs-deletion-base)) !important;}-/* The page sets --diff-modified-icon under the New design: a muted T3 blue, so the common case stays quiet. */+/* The page sets --diff-modified-icon to a muted T3 blue, so the common case stays quiet. */[data-change-icon="change"],[data-change-icon="rename-pure"],[data-change-icon="rename-changed"] {diff --git a/apps/web/src/lib/incrementalHighlighting.ts b/apps/web/src/lib/incrementalHighlighting.tsindex 6f10798dfea..b1df31cb6ad 100644--- a/apps/web/src/lib/incrementalHighlighting.ts+++ b/apps/web/src/lib/incrementalHighlighting.ts@@ -1,12 +1,11 @@import {renderTokenLines,type DiffsHighlighter,+ type DiffsThemeNames,type ThemedToken,type TokensResult,} from "@pierre/diffs";-import type { DiffThemeName } from "./diffRendering";-function highlightedDocument(result: TokensResult,lines = renderTokenLines(result.tokens, {}),@@ -50,7 +49,7 @@ export function highlightCodeToHast(highlighter: DiffsHighlighter,code: string,language: string,- theme: DiffThemeName,+ theme: DiffsThemeNames,) {return highlightedDocument(highlighter.codeToTokens(code, { lang: language, theme }));}@@ -58,7 +57,7 @@ export function highlightCodeToHast(export function createIncrementalHighlightedDocument(highlighter: DiffsHighlighter,language: string,- theme: DiffThemeName,+ theme: DiffsThemeNames,) {const options = { lang: language, theme };let shell: TokensResult | undefined;diff --git a/apps/web/src/lib/syntaxHighlighting.ts b/apps/web/src/lib/syntaxHighlighting.tsindex a7e3833d166..9d1c8841054 100644--- a/apps/web/src/lib/syntaxHighlighting.ts+++ b/apps/web/src/lib/syntaxHighlighting.ts@@ -21,7 +21,7 @@ export function getSyntaxHighlighterPromise(language: string): Promise<DiffsHighif (cached) return cached;const promise = getSharedHighlighter({- // Every palette, so toggling the New design never needs a new highlighter.+ // Both palettes, so switching appearance never needs a new highlighter.themes: Object.values(DIFF_THEME_NAMES),langs: [language as SupportedLanguages],preferredHighlighter: PREFERRED_HIGHLIGHTER,diff --git a/packages/contracts/src/settings.ts b/packages/contracts/src/settings.tsindex 74acdb2a8dd..649e0e0ab0e 100644--- a/packages/contracts/src/settings.ts+++ b/packages/contracts/src/settings.ts@@ -473,8 +473,6 @@ export const ClientSettingsSchema = Schema.Struct({// Opt-in TeX typesetting in rendered Markdown. Off keeps math parsing and// KaTeX out of the render path entirely.mathRenderingEnabled: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(false))),- // The quieter sidebar, composer and panel design. Off keeps the classic look.- redesignEnabled: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(true))),});export type ClientSettings = typeof ClientSettingsSchema.Type;@@ -1680,6 +1678,5 @@ export const ClientSettingsPatch = Schema.Struct({snapShotAnimations: Schema.optionalKey(Schema.Boolean),wordWrap: Schema.optionalKey(Schema.Boolean),mathRenderingEnabled: Schema.optionalKey(Schema.Boolean),- redesignEnabled: Schema.optionalKey(Schema.Boolean),});export type ClientSettingsPatch = typeof ClientSettingsPatch.Type;