TypeScript
feat(web): New design brings back color where it means something (#25251)
Theo Brownec3888da8b4fa
diff --git a/apps/web/src/components/CommandPalette.logic.ts b/apps/web/src/components/CommandPalette.logic.tsindex 7ac1410b2c8..55ed4af28aa 100644--- a/apps/web/src/components/CommandPalette.logic.ts+++ b/apps/web/src/components/CommandPalette.logic.ts@@ -809,8 +809,8 @@ export function buildPaletteRemoteSourceReadiness(: {...entry,hint: entry.hint.replace(- "Open Source Control settings",- "Open Settings -> Source Control",+ "Open source control settings",+ "Open Settings -> Source control",),};};diff --git a/apps/web/src/components/CommandPalette.tsx b/apps/web/src/components/CommandPalette.tsxindex 21883a49f12..8c8e170d923 100644--- a/apps/web/src/components/CommandPalette.tsx+++ b/apps/web/src/components/CommandPalette.tsx@@ -1081,7 +1081,7 @@ function OpenCommandPaletteDialog(props: {}/><TooltipPopup align="end" side="left">- {disabledHint ?? "Open Settings -> Source Control to configure this provider."}+ {disabledHint ?? "Open Settings -> Source control to configure this provider."}</TooltipPopup></Tooltip></span>diff --git a/apps/web/src/components/DiffPanel.tsx b/apps/web/src/components/DiffPanel.tsxindex 2d53ff14a28..5d7deeebeab 100644--- a/apps/web/src/components/DiffPanel.tsx+++ b/apps/web/src/components/DiffPanel.tsx@@ -175,7 +175,9 @@ function DiffFileHeaderSuffix({}) {return (<>- <DiffFilePathCopyButton filePath={filePath} />+ <span data-diff-copy-path className="inline-flex">+ <DiffFilePathCopyButton filePath={filePath} />+ </span>{hasStat ? (<DiffFileStatus error={error} truncated={truncated} retry={() => onRetry(filePath)} />) : null}@@ -661,7 +663,7 @@ export default function DiffPanel({const headerRow = (<>- <div className="flex min-w-0 flex-1 items-center gap-3 [-webkit-app-region:no-drag]">+ <div className="@container/diff-refs flex min-w-0 flex-1 items-center gap-3 [-webkit-app-region:no-drag]"><DropdownMenu><DropdownMenuTriggerrender={<Button size="xs" variant="secondary" />}@@ -717,7 +719,9 @@ export default function DiffPanel({<Tooltip><TooltipTriggerrender={- <span className="flex min-w-[min(3rem,calc(100%-2.75rem))] items-center gap-2 overflow-hidden" />+ // 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" />}><span className="min-w-0 max-w-48 truncate">@@ -729,6 +733,18 @@ export default function DiffPanel({{`${selectedGitSource.headRef ?? "HEAD"} → ${selectedGitSource.baseRef}`}</TooltipPopup></Tooltip>+ <Tooltip>+ <TooltipTrigger+ render={+ <span aria-hidden className="hidden redesign:@max-[20rem]/diff-refs:inline" />+ }+ >+ vs+ </TooltipTrigger>+ <TooltipPopup side="top">+ {`${selectedGitSource.headRef ?? "HEAD"} → ${selectedGitSource.baseRef}`}+ </TooltipPopup>+ </Tooltip><Comboboxitems={baseRefItems}filteredItems={filteredBaseRefItems}@@ -743,7 +759,7 @@ export default function DiffPanel({><ComboboxTriggerrender={<Button variant="ghost-muted" size="xs" />}- className="min-w-9 max-w-48 shrink"+ className="min-w-9 max-w-48 shrink redesign:shrink-0"aria-label={`Change comparison target. Currently ${selectedGitSource.baseRef}`}><span className="min-w-0 truncate">{selectedGitSource.baseRef}</span>diff --git a/apps/web/src/components/DiffWorkerPoolProvider.tsx b/apps/web/src/components/DiffWorkerPoolProvider.tsxindex e311886086b..a9e89b62d15 100644--- a/apps/web/src/components/DiffWorkerPoolProvider.tsx+++ b/apps/web/src/components/DiffWorkerPoolProvider.tsx@@ -3,13 +3,14 @@ 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"]),+ themeName: Schema.Literals(["pierre-light", "pierre-dark", "t3-light"]),cause: Schema.Defect(),}) {override get message(): string {@@ -72,7 +73,12 @@ function createDiffWorkerPool(poolSize: number) {);return {pool,- unsubscribeTheme: subscribeRenderedAppearance(() => applyDiffWorkerTheme(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());+ })(),consumers: 0,idleTimer: undefined,};diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsxindex d0da7171644..92d2a6f4a0f 100644--- a/apps/web/src/components/GitActionsControl.tsx+++ b/apps/web/src/components/GitActionsControl.tsx@@ -205,7 +205,7 @@ function getPublishProviderReadiness(input: {if (!discovered) {return {ready: false,- hint: "Provider status unavailable. Open Settings -> Source Control and rescan.",+ hint: "Provider status unavailable. Open Settings -> Source control and rescan.",};}if (discovered.status !== "available") {@@ -216,7 +216,7 @@ function getPublishProviderReadiness(input: {ready: false,hint:Option.getOrNull(discovered.auth.detail) ??- `${discovered.label} is not authenticated. Open Settings -> Source Control for setup guidance.`,+ `${discovered.label} is not authenticated. Open Settings -> Source control for setup guidance.`,};}return { ready: true, hint: null };@@ -673,7 +673,7 @@ function PublishRepositoryDialog(props: PublishRepositoryDialogProps) {/><TooltipPopup side="top" align="end">{readiness.hint ??- "Open Settings -> Source Control to configure this provider."}+ "Open Settings -> Source control to configure this provider."}</TooltipPopup></Tooltip></div>@@ -1153,11 +1153,11 @@ export default function GitActionsControl({: null;const gitActionProgress = resolveGitActionProgressPresentation(vcsActionState);const redesign = useClientSettings((s) => s.redesignEnabled);- // A fresh draft with nothing to commit, push, or diff hides those rows until there is work.+ // 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 &&+ (draftId !== undefined || activeServerThreadShell?.latestRun === null) &&gitActionProgress === null &&!gitStatusError &&quickAction.disabled &&diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsxindex ca767d2c889..ff27e688768 100644--- a/apps/web/src/components/Sidebar.tsx+++ b/apps/web/src/components/Sidebar.tsx@@ -59,7 +59,7 @@ import {} from "@t3tools/contracts";import type { OlderSettledScope } from "@t3tools/client-runtime/state/threads";-import { FolderIcon, ListFilterIcon, PlusIcon, SettingsIcon } from "lucide-react";+import { ChevronDownIcon, FolderIcon, ListFilterIcon, PlusIcon, SettingsIcon } from "lucide-react";import {useEffect,useLayoutEffect,@@ -3210,9 +3210,14 @@ 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"+ 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">- <PlusIcon aria-hidden className="size-4 shrink-0" />+ {/* 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"+ />{olderSettledShelf.loading? "Loading": olderSettledShelf.faileddiff --git a/apps/web/src/components/chat/ChatCanvas.tsx b/apps/web/src/components/chat/ChatCanvas.tsxindex 783d86a8ee2..365d78d0d68 100644--- a/apps/web/src/components/chat/ChatCanvas.tsx+++ b/apps/web/src/components/chat/ChatCanvas.tsx@@ -3,6 +3,7 @@ import { ChatCanvasContext } from "./ChatCanvasContext";import { resolveChatCanvasLayout, type ChatCanvasPreview } from "./chatCanvasLayout";import type { PreviewMiniPlayerObstacles } from "../preview/previewMiniPlayerLayout";import { observeResize } from "../../lib/observeResize";+import { useClientSettings } from "~/hooks/useSettings";export function ChatCanvas({composerOverlayElement,@@ -93,6 +94,7 @@ export function ChatCanvas({if (timelineElement) observed.push(timelineElement);return observeResize(observed, measure);}, [composerOverlayElement, timelineElement, detailsCardTopInset]);+ const redesign = useClientSettings((s) => s.redesignEnabled);const container = { width: measurements.width, height: measurements.height };const findBar =detailsCardTopInset > 0@@ -111,6 +113,7 @@ export function ChatCanvas({preview,detailsCard,findBar,+ centerBesideDetails: redesign,}),previewKey: preview?.key ?? null,reportPreview,diff --git a/apps/web/src/components/chat/ModelListRow.tsx b/apps/web/src/components/chat/ModelListRow.tsxindex c37a9bf6db6..ec72827c3ca 100644--- a/apps/web/src/components/chat/ModelListRow.tsx+++ b/apps/web/src/components/chat/ModelListRow.tsx@@ -61,7 +61,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">+ <div className="min-w-0 truncate text-xs font-medium leading-snug redesign:text-sm redesign:font-normal">{props.useTriggerLabel? getTriggerDisplayModelLabel(model): getDisplayModelName(@@ -101,9 +101,6 @@ export const ModelListRow = memo(function ModelListRow(props: {</div><div className="flex shrink-0 items-center gap-1.5">- {props.showSelection && props.isSelected ? (- <CheckIcon className="size-3.5" aria-hidden="true" />- ) : null}{props.jumpLabel ? <Kbd>{props.jumpLabel}</Kbd> : null}<Tooltip><TooltipTrigger@@ -125,7 +122,9 @@ export const ModelListRow = memo(function ModelListRow(props: {<StarIconclassName={cn("size-3.5 sm:size-3",- props.isFavorite && "fill-current text-warning",+ 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",)}/></Button>@@ -135,6 +134,13 @@ export const ModelListRow = memo(function ModelListRow(props: {{props.isFavorite ? "Remove from favorites" : "Add to favorites"}</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}</div></ComboboxItem>);diff --git a/apps/web/src/components/chat/ModelPickerContent.tsx b/apps/web/src/components/chat/ModelPickerContent.tsxindex 6802afeb39b..73fc2c94b1e 100644--- a/apps/web/src/components/chat/ModelPickerContent.tsx+++ b/apps/web/src/components/chat/ModelPickerContent.tsx@@ -49,6 +49,7 @@ import {shortcutLabelForCommand,} from "../../keybindings";import {+ useClientSettings,useEnvironmentModelPreferences,useToggleEnvironmentModelFavorite,} from "~/hooks/useSettings";@@ -190,10 +191,12 @@ function modelJumpLabelsByKey(function ModelPickerProviderNotices({setupEntries,updateRequiredNotices,+ emptyLabel,onRequestClose,onOpenProviderSetup,}: {setupEntries: ReadonlyArray<ProviderInstanceEntry>;+ emptyLabel: string;updateRequiredNotices: ReadonlyArray<{ instanceId: ProviderInstanceId; notice: string }>;onRequestClose: (() => void) | undefined;onOpenProviderSetup: ((instanceId: ProviderInstanceId) => void) | undefined;@@ -221,7 +224,7 @@ function ModelPickerProviderNotices({))}</div>) : (- <ComboboxEmpty className="empty:h-0">No models found</ComboboxEmpty>+ <ComboboxEmpty className="empty:h-0">{emptyLabel}</ComboboxEmpty>)}{updateRequiredNotices.map(({ instanceId, notice }) => (<p@@ -572,6 +575,9 @@ 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 lockedDisabledInstanceIds = (() => {if (!isLocked) {return undefined;@@ -937,8 +943,10 @@ 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">Legacy models</div>- <div className="mt-1 text-xs font-normal leading-snug text-muted-foreground/70">+ <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">{legacySection.legacyModels.length} models</div></div>@@ -977,8 +985,8 @@ export const ModelPickerContent = memo(function ModelPickerContent(props: {? selectedModelKeySet.has(modelKey): modelKey === activeModelKey}- showSelection={selectedModelKeys !== undefined}- showProvider+ showSelection={selectedModelKeys !== undefined || redesign}+ showProvider={rowsMixProviders || Boolean(model.subProvider)}preferShortName={!isLocked}useTriggerLabel={false}showNewBadge={model.badge === "new"}@@ -993,6 +1001,11 @@ export const ModelPickerContent = memo(function ModelPickerContent(props: {<ModelPickerProviderNoticessetupEntries={providerSetupEntries}updateRequiredNotices={updateRequiredNotices}+ emptyLabel={+ selectedInstanceId === "favorites" && !isSearching+ ? "No favorites yet"+ : "No models found"+ }onRequestClose={onRequestClose}onOpenProviderSetup={onOpenProviderSetup}/>diff --git a/apps/web/src/components/chat/ModelPickerSidebar.tsx b/apps/web/src/components/chat/ModelPickerSidebar.tsxindex ee9592b5f22..7e4b1b82c3d 100644--- a/apps/web/src/components/chat/ModelPickerSidebar.tsx+++ b/apps/web/src/components/chat/ModelPickerSidebar.tsx@@ -26,7 +26,7 @@ function describeUnavailableInstance(entry: ProviderInstanceEntry): string {}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";+ "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 `;diff --git a/apps/web/src/components/chat/OpenInPicker.tsx b/apps/web/src/components/chat/OpenInPicker.tsxindex 7717434ec3a..d82e588acc6 100644--- a/apps/web/src/components/chat/OpenInPicker.tsx+++ b/apps/web/src/components/chat/OpenInPicker.tsx@@ -410,9 +410,6 @@ export const OpenInPicker = memo(function OpenInPicker({className={cn(isPanel ? THREAD_DETAILS_PANEL_ICON_CLASS : "size-3.5",getOpenInIconClass(primaryOption.kind),- // Full-color app icons outshout the panel's line icons until the row is in use.- isPanel &&- "redesign:grayscale redesign:dark:opacity-70 redesign:group-hover/details-split:grayscale-0 redesign:dark:group-hover/details-split:opacity-100 redesign:group-has-[[data-popup-open]]/details-split:grayscale-0 redesign:dark:group-has-[[data-popup-open]]/details-split:opacity-100",// A hairline keeps pale app icons from dissolving into the card.isPanel &&primaryOption.kind === "brand" &&diff --git a/apps/web/src/components/chat/ThreadDetailsControl.tsx b/apps/web/src/components/chat/ThreadDetailsControl.tsxindex 37f491dfee0..cdfe3ea684b 100644--- a/apps/web/src/components/chat/ThreadDetailsControl.tsx+++ b/apps/web/src/components/chat/ThreadDetailsControl.tsx@@ -53,10 +53,22 @@ 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",- tone === "primary" && "text-primary hover:text-primary",+ tone === "muted" &&+ "text-muted-foreground/70 hover:text-foreground/80 redesign:text-muted-foreground",+ 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",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",+ 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",className,),},diff --git a/apps/web/src/components/chat/ThreadDetailsPrRow.tsx b/apps/web/src/components/chat/ThreadDetailsPrRow.tsxindex 0854906ce2d..8fbf3a6cf71 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">+ <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"><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 c7b30050892..da9ae531fe0 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 { Minus, Plus } from "lucide";+import { ChevronDown, ChevronUp, Minus, Plus } from "lucide";import { useState, type ComponentProps, type MouseEvent as ReactMouseEvent } from "react";import { sourceControlClients } from "@t3tools/client-runtime/source-control-clients";@@ -17,6 +17,7 @@ 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";@@ -75,6 +76,8 @@ 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@@ -124,7 +127,11 @@ export function ThreadDetailsPrRows({tone="muted"className="w-full active:scale-100">- <MorphIcon aria-hidden className="size-4 shrink-0" icon={expanded ? Minus : Plus} />+ <MorphIcon+ aria-hidden+ className="size-4 shrink-0"+ icon={expanded ? (redesign ? ChevronUp : Minus) : redesign ? ChevronDown : Plus}+ />{expanded ? "Show less" : `Show ${rest.length} more`}</ThreadDetailsControl></>diff --git a/apps/web/src/components/chat/ThreadStatusLine.tsx b/apps/web/src/components/chat/ThreadStatusLine.tsxindex d22a4ef75c8..74a81f1bb62 100644--- a/apps/web/src/components/chat/ThreadStatusLine.tsx+++ b/apps/web/src/components/chat/ThreadStatusLine.tsx@@ -1,5 +1,6 @@import type { ReactNode } from "react";+import { useClientSettings } from "~/hooks/useSettings";import { InlineButton } from "../ui/button";export function ThreadStatusLine(props: {@@ -11,6 +12,8 @@ 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"@@ -19,7 +22,11 @@ export function ThreadStatusLine(props: {{props.icon}<span className="min-w-0 truncate">{props.label}</span><span aria-hidden="true">·</span>- <InlineButton tone="muted" disabled={props.actionDisabled} onClick={props.onAction}>+ <InlineButton+ tone={redesign ? "default" : "muted"}+ disabled={props.actionDisabled}+ onClick={props.onAction}+ >{props.actionLabel}</InlineButton></div>diff --git a/apps/web/src/components/chat/chatCanvasLayout.test.ts b/apps/web/src/components/chat/chatCanvasLayout.test.tsindex 1a39fc04baa..f5d7ae5681b 100644--- a/apps/web/src/components/chat/chatCanvasLayout.test.ts+++ b/apps/web/src/components/chat/chatCanvasLayout.test.ts@@ -104,6 +104,43 @@ describe("chat canvas layout", () => {expect(result.overlapsDetailsCard).toBe(false);expect(result.chat).toEqual({ left: 424, width: 736, insetStart: 0, insetEnd: 0 });});+ 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);+ // Equal space on both sides of the chat.+ expect(layout(true)).toMatchObject({ left: (1052 - 736) / 2, width: 736 });+ });+ it("keeps the chat canvas-centered when it clears the details card", () => {+ const result = resolveChatCanvasLayout({+ container: { width: 2200, height: 988 },+ maxChatWidth: 736,+ detailsCard: { left: 1876, right: 2188, bottom: 339 },+ preview: null,+ centerBesideDetails: true,+ });+ expect(result.chat.left).toBe((2200 - 736) / 2);+ });+ it("moves the chat smoothly as a window with a details card grows", () => {+ const leftAt = (width: number) =>+ resolveChatCanvasLayout({+ container: { width, height: 988 },+ 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);+ }+ });it("keeps a dragged or resized preview below the open find bar", () => {const findBar = { left: 1292, right: 1572, bottom: 48 };const layout = (lastInteraction: "drag" | "resize") =>diff --git a/apps/web/src/components/chat/chatCanvasLayout.ts b/apps/web/src/components/chat/chatCanvasLayout.tsindex 126319cb133..73b2176ef90 100644--- a/apps/web/src/components/chat/chatCanvasLayout.ts+++ b/apps/web/src/components/chat/chatCanvasLayout.ts@@ -30,6 +30,7 @@ export function resolveChatCanvasLayout({composerHeight = 0,detailsCard = null,findBar = null,+ centerBesideDetails = false,}: {container: PreviewMiniPlayerSize;preview: ChatCanvasPreview | null;@@ -39,15 +40,31 @@ 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? detailsCard.left - DETAILS_CARD_CLEARANCE: container.width - padding;const normalWidth = Math.max(0, Math.min(centeredWidth, laneRight - padding));+ const canvasCenterLeft = (container.width - normalWidth) / 2;+ // 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 normalLeft = Math.max(padding,- Math.min((container.width - normalWidth) / 2, laneRight - normalWidth),+ Math.min(canvasCenterLeft - besideShift, laneRight - normalWidth),);let chat = {left: normalLeft,diff --git a/apps/web/src/components/chat/useThreadLifecycle.tsx b/apps/web/src/components/chat/useThreadLifecycle.tsxindex 8e9af1b2d89..77a47eeb482 100644--- a/apps/web/src/components/chat/useThreadLifecycle.tsx+++ b/apps/web/src/components/chat/useThreadLifecycle.tsx@@ -22,7 +22,11 @@ import {ProviderInteractionMode,RuntimeMode,} from "@t3tools/contracts";-import { effectiveSnoozed, threadWokeAt } from "@t3tools/client-runtime/state/thread-settled";+import {+ effectiveSnoozed,+ snoozeWakeLabel,+ threadWokeAt,+} from "@t3tools/client-runtime/state/thread-settled";import { useAcknowledgeThreadWoke, useThreadActions } from "../../hooks/useThreadActions";import { settleAndAdvance } from "../../settleAndAdvance";import type { ChatShortcutCommands } from "./useChatShortcuts";@@ -48,7 +52,7 @@ import { vcsEnvironment } from "../../state/vcs";import { useChildThreadInputs, readThreadShell, waitForThreadShell } from "../../state/entities";import { environmentShell } from "../../state/shell";import { ThreadStatusLine } from "./ThreadStatusLine";-import { formatRelativeTimeLabel, formatRelativeTimeUntilLabel } from "../../timestampFormat";+import { formatRelativeTimeLabel } from "../../timestampFormat";import { appAtomRegistry } from "../../rpc/atomRegistry";import { readEnvironmentScope } from "../../state/session";import { useAtomCommand } from "../../state/use-atom-command";@@ -538,10 +542,14 @@ export function useThreadLifecycle(input: ThreadLifecycleInput) {// The relative times read the clock; nowMinute re-renders them on the minute.const snoozedUntil = activeThreadShell?.snoozedUntil ?? null;const settledAt = activeThreadShell?.settledAt ?? null;+ // Same rounding as the sidebar's snoozed shelf, so both read the same hour.+ const snoozeWake = snoozedUntil+ ? snoozeWakeLabel(snoozedUntil, { now: `${nowMinute}:00.000Z` })+ : null;const threadStatusLine = activeThreadSnoozed ? (<ThreadStatusLineicon={<AlarmClockIcon />}- label={snoozedUntil ? `Snoozed, ${formatRelativeTimeUntilLabel(snoozedUntil)}` : "Snoozed"}+ label={snoozeWake && snoozeWake !== "now" ? `Snoozed, ${snoozeWake} left` : "Snoozed"}clockMinute={nowMinute}actionLabel={isUnsnoozing ? "Waking..." : "Wake now"}actionDisabled={!canOperateThread || isUnsnoozing}diff --git a/apps/web/src/components/pullRequest/PullRequestGhosts.tsx b/apps/web/src/components/pullRequest/PullRequestGhosts.tsxindex e1a7db537f7..b9192068294 100644--- a/apps/web/src/components/pullRequest/PullRequestGhosts.tsx+++ b/apps/web/src/components/pullRequest/PullRequestGhosts.tsx@@ -51,30 +51,31 @@ const DEFAULT_DETAIL_TABS = [export function PullRequestListGhost({ rows = 7, caption }: { rows?: number; caption?: string }) {return (- <div- role="status"- aria-label={caption ?? "Loading pull requests"}- className="motion-safe:animate-skeleton space-y-0.5"- >+ <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">{caption}</p>+ <p className="px-3 pb-1 text-xs font-medium text-muted-foreground/70 redesign:text-muted-foreground">+ {caption}+ </p>) : null}- {Array.from({ length: rows }, (_, index) => (- <div- key={index}- className="grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-2 rounded-md px-3 py-2.5"- >- <GhostBar className="size-4 rounded-full" />- <div className="min-w-0 space-y-1.5">- <GhostBar className={cn("h-4", TITLE_WIDTHS[index % TITLE_WIDTHS.length])} />- <GhostBar className={cn("h-3.5", META_WIDTHS[index % META_WIDTHS.length])} />- </div>- <div className="flex flex-col items-end gap-1.5">- <GhostBar className="w-12" />- <GhostBar className="w-16" />+ <div className="motion-safe:animate-skeleton space-y-0.5">+ {Array.from({ length: rows }, (_, index) => (+ <div+ key={index}+ className="grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-2 rounded-md px-3 py-2.5"+ >+ <GhostBar className="size-4 rounded-full" />+ <div className="min-w-0 space-y-1.5">+ <GhostBar className={cn("h-4", TITLE_WIDTHS[index % TITLE_WIDTHS.length])} />+ <GhostBar className={cn("h-3.5", META_WIDTHS[index % META_WIDTHS.length])} />+ </div>+ <div className="flex flex-col items-end gap-1.5">+ <GhostBar className="w-12" />+ <GhostBar className="w-16" />+ </div></div>- </div>- ))}+ ))}+ </div></div>);}diff --git a/apps/web/src/components/pullRequest/PullRequestsColumn.tsx b/apps/web/src/components/pullRequest/PullRequestsColumn.tsxindex 9ac06baa428..9f8b4b95a69 100644--- a/apps/web/src/components/pullRequest/PullRequestsColumn.tsx+++ b/apps/web/src/components/pullRequest/PullRequestsColumn.tsx@@ -181,7 +181,7 @@ export function PullRequestsColumn({{condensed ? (<WorkspaceBreadcrumb ariaLabel="Pull request scope" className="overflow-hidden"><WorkspaceBreadcrumbItem current className={cn(searchExpanded && "sr-only")}>- <h1 className="truncate">Pull Requests</h1>+ <h1 className="truncate">Pull requests</h1></WorkspaceBreadcrumbItem>{searchExpanded ? null : <WorkspaceBreadcrumbSeparator />}<WorkspaceBreadcrumbItem className="shrink gap-1.5">@@ -211,7 +211,7 @@ export function PullRequestsColumn({) : (<WorkspaceBreadcrumb ariaLabel="Pull requests breadcrumb"><WorkspaceBreadcrumbItem current>- <h1 className="truncate">Pull Requests</h1>+ <h1 className="truncate">Pull requests</h1></WorkspaceBreadcrumbItem></WorkspaceBreadcrumb>)}diff --git a/apps/web/src/components/pullRequest/PullRequestsPage.tsx b/apps/web/src/components/pullRequest/PullRequestsPage.tsxindex 65765be00d0..b2574b31ba7 100644--- a/apps/web/src/components/pullRequest/PullRequestsPage.tsx+++ b/apps/web/src/components/pullRequest/PullRequestsPage.tsx@@ -1147,14 +1147,14 @@ export function PullRequestsPage() {const listBody = (<>{!capabilityKnown ? (- <PullRequestListGhost rows={7} />+ <PullRequestListGhost rows={7} caption="Loading pull requests…" />) : !pullRequestsSupported ? (<PullRequestsUnavailableStatetitle="Pull requests unavailable"error="Update your T3 Code servers to browse pull requests."/>) : firstLoad ? (- <PullRequestListGhost rows={7} />+ <PullRequestListGhost rows={7} caption="Loading pull requests…" />) : listQuery.error && shownCount === 0 ? (<PullRequestsUnavailableStateerror={listQuery.error}diff --git a/apps/web/src/components/pullRequest/guide/useReviewGuideWriter.ts b/apps/web/src/components/pullRequest/guide/useReviewGuideWriter.tsindex f48a3209f7f..a56de1f1f3d 100644--- a/apps/web/src/components/pullRequest/guide/useReviewGuideWriter.ts+++ b/apps/web/src/components/pullRequest/guide/useReviewGuideWriter.ts@@ -60,7 +60,7 @@ export function useReviewGuideWriter({title: "Could not start a review guide",description: readableFailure(squashAtomCommandFailure(result),- "Check the review guide model in Settings → Source Control.",+ "Check the review guide model in Settings → Source control.",),});}diff --git a/apps/web/src/components/settings/AppearanceSettingsPanel.tsx b/apps/web/src/components/settings/AppearanceSettingsPanel.tsxindex 437061ccfdd..a13bc93bb9c 100644--- a/apps/web/src/components/settings/AppearanceSettingsPanel.tsx+++ b/apps/web/src/components/settings/AppearanceSettingsPanel.tsx@@ -351,35 +351,6 @@ export function AppearanceSettingsPanel() {</div>}/>- {/* Only the new design grays project icons, so the option only exists there. */}- {settings.redesignEnabled ? (- <SettingsRow- {...searchableSetting("sidebar-project-icon-colors")}- description="Show project icons in the sidebar in full color instead of gray."- resetAction={- settings.sidebarProjectIconColors !==- DEFAULT_UNIFIED_SETTINGS.sidebarProjectIconColors ? (- <SettingResetButton- label="colored project icons"- onClick={() =>- updateSettings({- sidebarProjectIconColors: DEFAULT_UNIFIED_SETTINGS.sidebarProjectIconColors,- })- }- />- ) : null- }- control={- <Switch- checked={settings.sidebarProjectIconColors}- onCheckedChange={(checked) =>- updateSettings({ sidebarProjectIconColors: Boolean(checked) })- }- aria-label="Colored project icons"- />- }- />- ) : null}<SettingsRow{...searchableSetting("math-rendering")}description="Typeset LaTeX math, such as $x^2$ or \[x^2\], in messages and Markdown previews. The composer keeps TeX source editable."diff --git a/apps/web/src/components/settings/BetaSettingsPanel.tsx b/apps/web/src/components/settings/BetaSettingsPanel.tsxindex a92ce9d6956..2614072c1d3 100644--- a/apps/web/src/components/settings/BetaSettingsPanel.tsx+++ b/apps/web/src/components/settings/BetaSettingsPanel.tsx@@ -25,7 +25,7 @@ export function BetaSettingsPanel() {<SettingsSection id="beta" title="Beta"><SettingsRow{...searchableSetting("new-design")}- description="Try the quieter design: gray sidebar icons, dimmer read threads, and simpler composer controls."+ description="Try the new design: a true black dark mode, dimmer read threads, and simpler composer controls."resetAction={settings.redesignEnabled !== DEFAULT_UNIFIED_SETTINGS.redesignEnabled ? (<SettingResetButtondiff --git a/apps/web/src/components/settings/ProviderInstanceCard.tsx b/apps/web/src/components/settings/ProviderInstanceCard.tsxindex a7772be5647..ab825090e73 100644--- a/apps/web/src/components/settings/ProviderInstanceCard.tsx+++ b/apps/web/src/components/settings/ProviderInstanceCard.tsx@@ -37,6 +37,7 @@ 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";@@ -676,6 +677,7 @@ 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 +970,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" : "hover:bg-muted/25",+ selected ? "bg-muted/45 redesign:bg-foreground/[0.06]" : "hover:bg-muted/25",)}><div@@ -1056,7 +1058,8 @@ export function ProviderInstanceCard({<spaninert={readOnly}aria-disabled={readOnly || undefined}- className={cn("inline-flex items-center gap-1", readOnly && "opacity-50")}+ // Empty, it would still add a flex gap and pull the version off the column edge.+ className={cn("inline-flex items-center gap-1 empty:hidden", readOnly && "opacity-50")}>{titleTailNode}{onDelete ? (@@ -1075,6 +1078,43 @@ export function ProviderInstanceCard({</div>);+ // The New design gives provider status its own row instead of hanging it under the name field.+ const statusContent = (+ <>+ <ProviderStatusDiagnostic detail={statusDiagnostic}>+ <div+ tabIndex={statusDiagnostic ? 0 : undefined}+ className="flex min-w-0 flex-wrap items-baseline gap-x-1.5"+ >+ {editorStatusNode}+ </div>+ </ProviderStatusDiagnostic>+ {urlAuthAction && onAcceptUrlAuth ? (+ <div className="grid max-w-xl gap-1.5 pt-1 text-xs">+ <p>{urlAuthAction.message}</p>+ <code className="break-all text-2xs">{urlAuthAction.url}</code>+ <Button+ render={+ <a+ href={urlAuthAction.url}+ target="_blank"+ rel="noopener noreferrer"+ onClick={() => onAcceptUrlAuth(urlAuthAction)}+ />+ }+ size="xs"+ variant="outline"+ className="w-fit"+ disabled={readOnly}+ >+ <ExternalLinkIcon />+ Continue authentication+ </Button>+ </div>+ ) : null}+ </>+ );+const runtimeFields = driverOption ? (<ProviderSettingsFormdefinition={driverOption}@@ -1098,43 +1138,10 @@ export function ProviderInstanceCard({return (<><SettingsSection title={displayName} icon={titleIconNode} headerAction={editorHeaderAction}>+ {redesign ? <SettingsRow title="Status" status={statusContent} /> : null}<SettingsRowtitle="Display name"- status={- <>- <ProviderStatusDiagnostic detail={statusDiagnostic}>- <div- tabIndex={statusDiagnostic ? 0 : undefined}- className="flex min-w-0 flex-wrap items-baseline gap-x-1.5"- >- {editorStatusNode}- </div>- </ProviderStatusDiagnostic>- {urlAuthAction && onAcceptUrlAuth ? (- <div className="grid max-w-xl gap-1.5 pt-1 text-xs">- <p>{urlAuthAction.message}</p>- <code className="break-all text-2xs">{urlAuthAction.url}</code>- <Button- render={- <a- href={urlAuthAction.url}- target="_blank"- rel="noopener noreferrer"- onClick={() => onAcceptUrlAuth(urlAuthAction)}- />- }- size="xs"- variant="outline"- className="w-fit"- disabled={readOnly}- >- <ExternalLinkIcon />- Continue authentication- </Button>- </div>- ) : null}- </>- }+ {...(redesign ? {} : { status: statusContent })}control={<divinert={readOnly}diff --git a/apps/web/src/components/settings/ProviderModelsSection.tsx b/apps/web/src/components/settings/ProviderModelsSection.tsxindex a39a97d5166..8d9dde255c7 100644--- a/apps/web/src/components/settings/ProviderModelsSection.tsx+++ b/apps/web/src/components/settings/ProviderModelsSection.tsx@@ -333,7 +333,8 @@ export function ProviderModelsSection({type="button"size="xs"variant="ghost-muted"- className="ml-auto"+ // The ghost padding would inset the label from the column edge the toggles align to.+ className="ml-auto redesign:-me-2"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 6a03fe4ad6e..326dfb4742e 100644--- a/apps/web/src/components/settings/ProviderSettingsPanel.tsx+++ b/apps/web/src/components/settings/ProviderSettingsPanel.tsx@@ -1000,7 +1000,8 @@ export function EnvironmentProviderSettings({) : null}headerAction={- <div className="flex min-w-0 items-center gap-2">+ // 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"><ProviderUpdatesAction /><Tooltip><TooltipTrigger@@ -1069,10 +1070,13 @@ export function EnvironmentProviderSettings({</ScrollArea></div>- <div className="min-w-0 @min-[48rem]/providers:min-h-0">+ <div data-provider-detail className="min-w-0 @min-[48rem]/providers:min-h-0">{selectedRow ? (<ScrollArea scrollFade chainVerticalScroll className="@min-[48rem]/providers:h-full">- <div className="space-y-6 p-4">{renderProviderInstance(selectedRow, "editor")}</div>+ {/* 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">+ {renderProviderInstance(selectedRow, "editor")}+ </div></ScrollArea>) : (<div className="p-6 text-sm text-muted-foreground">diff --git a/apps/web/src/components/settings/SettingsGroup.tsx b/apps/web/src/components/settings/SettingsGroup.tsxindex 6fb6b0bd43f..60f17f98a4f 100644--- a/apps/web/src/components/settings/SettingsGroup.tsx+++ b/apps/web/src/components/settings/SettingsGroup.tsx@@ -13,6 +13,7 @@ export function SettingsGroup({}) {return (<div+ data-slot="settings-group"{...props}className={cn("relative overflow-visible text-foreground",diff --git a/apps/web/src/components/settings/SettingsPanels.tsx b/apps/web/src/components/settings/SettingsPanels.tsxindex 739185b090a..246df2723a7 100644--- a/apps/web/src/components/settings/SettingsPanels.tsx+++ b/apps/web/src/components/settings/SettingsPanels.tsx@@ -409,9 +409,6 @@ export function useSettingsRestore(onRestored?: () => void) {...(settings.mathRenderingEnabled !== DEFAULT_UNIFIED_SETTINGS.mathRenderingEnabled? ["Render math"]: []),- ...(settings.sidebarProjectIconColors !== DEFAULT_UNIFIED_SETTINGS.sidebarProjectIconColors- ? ["Colored project icons"]- : []),...(settings.redesignEnabled !== DEFAULT_UNIFIED_SETTINGS.redesignEnabled? ["New design"]: []),@@ -588,7 +585,6 @@ export function useSettingsRestore(onRestored?: () => void) {diffColorScheme: DEFAULT_UNIFIED_SETTINGS.diffColorScheme,chatWidth: DEFAULT_UNIFIED_SETTINGS.chatWidth,mathRenderingEnabled: DEFAULT_UNIFIED_SETTINGS.mathRenderingEnabled,- sidebarProjectIconColors: DEFAULT_UNIFIED_SETTINGS.sidebarProjectIconColors,redesignEnabled: DEFAULT_UNIFIED_SETTINGS.redesignEnabled,timestampFormat: DEFAULT_UNIFIED_SETTINGS.timestampFormat,notificationMode: DEFAULT_UNIFIED_SETTINGS.notificationMode,diff --git a/apps/web/src/components/settings/SourceControlSettings.tsx b/apps/web/src/components/settings/SourceControlSettings.tsxindex 84fbad00730..e2ab00396a0 100644--- a/apps/web/src/components/settings/SourceControlSettings.tsx+++ b/apps/web/src/components/settings/SourceControlSettings.tsx@@ -598,7 +598,7 @@ export function SourceControlSettingsPanel() {title={`Version Control${environmentSuffix}`}headerAction={scanButton}/>- <SourceControlSectionSkeleton title="Source Control Providers" />+ <SourceControlSectionSkeleton title="Source control providers" /></>) : hasDiscoveryItems ? (<>@@ -621,8 +621,8 @@ export function SourceControlSettingsPanel() {id={hasVersionControlSystems ? undefined : searchableSetting("source-control").id}title={hasVersionControlSystems- ? "Source Control Providers"- : `Source Control Providers${environmentSuffix}`+ ? "Source control providers"+ : `Source control providers${environmentSuffix}`}headerAction={hasVersionControlSystems ? null : scanButton}>diff --git a/apps/web/src/components/settings/ThemePreviewCircles.tsx b/apps/web/src/components/settings/ThemePreviewCircles.tsxindex 79c673d4850..54f96c35b76 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 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",+ "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",isPicked && "hover:scale-100",)}onClick={(event) => {diff --git a/apps/web/src/components/settings/ThemeSettings.tsx b/apps/web/src/components/settings/ThemeSettings.tsxindex 559368dc1d3..504e7eb3eee 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"+ 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"style={{transform: `translateX(calc(-50% + ${rootOffsetX}px))`,}}@@ -677,13 +677,13 @@ export function ThemeLibrary({aria-label={mode === "system" ? "Follow the system appearance" : `Use ${mode} mode`}aria-pressed={isActive}className={cn(- "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",+ // 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",isActive- ? "border-transparent bg-accent/30"+ ? "border-transparent bg-accent/30 ring-1 ring-inset ring-ring redesign:ring-2": "border-border/70 bg-card/60 hover:bg-accent/10",)}key={mode}- style={isActive ? { boxShadow: "inset 0 0 0 1px var(--ring)" } : undefined}onClick={() => setMode(mode)}type="button">@@ -827,12 +827,12 @@ export function ThemeLibrary({return (<div className="space-y-3">- <h3 className="px-3 text-sm font-normal text-foreground/70 sm:px-4">+ <h3 className="px-3 text-sm font-normal text-foreground/70 sm:px-4 redesign:text-base redesign:font-semibold redesign:text-foreground">{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">- <h3 className="text-sm font-normal text-foreground/70">+ <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">{searchableSetting("theme").title}</h3><div className="flex flex-wrap items-center justify-end gap-2">diff --git a/apps/web/src/components/settings/settingsSearch.test.ts b/apps/web/src/components/settings/settingsSearch.test.tsindex c51ae357d8c..1584bbe719a 100644--- a/apps/web/src/components/settings/settingsSearch.test.ts+++ b/apps/web/src/components/settings/settingsSearch.test.ts@@ -121,7 +121,6 @@ describe("searchSettings", () => {"auto-settle-inactive-threads","auto-settle-merged-threads","days-before-auto-settle",- "sidebar-project-icon-colors",]);expect(available.map((item) => item.id).filter((id) => gatedIds.has(id))).toEqual([]);});diff --git a/apps/web/src/components/settings/settingsSearch.ts b/apps/web/src/components/settings/settingsSearch.tsindex 908feed1b9d..05a066406ef 100644--- a/apps/web/src/components/settings/settingsSearch.ts+++ b/apps/web/src/components/settings/settingsSearch.ts@@ -59,7 +59,6 @@ export interface SettingsSearchItem {readonly localEnvironmentOnly?: boolean;readonly wslAvailableOnly?: boolean;readonly managedTunnelOnly?: boolean;- readonly redesignOnly?: boolean;readonly secondary?: boolean;readonly requiresThreadAutoSettlement?: boolean;}@@ -74,7 +73,6 @@ export interface SettingsSearchAvailability {readonly isWslSettingsRowVisible: boolean;readonly hasThreadAutoSettlement: boolean;readonly managedTunnelActive?: boolean;- readonly redesignEnabled?: boolean;}export const SETTINGS_SECTION_LABELS: Readonly<Record<SettingsPath, string>> = {@@ -86,8 +84,8 @@ export const SETTINGS_SECTION_LABELS: Readonly<Record<SettingsPath, string>> = {"/settings/snap-shot": "SnapShots","/settings/providers": "Providers","/settings/integrations": "Integrations",- "/settings/scheduled-tasks": "Scheduled Tasks",- "/settings/source-control": "Source Control",+ "/settings/scheduled-tasks": "Scheduled tasks",+ "/settings/source-control": "Source control","/settings/storage": "Storage","/settings/connections": "Connections","/settings/beta": "Beta",@@ -265,13 +263,6 @@ export const SETTINGS_SEARCH_ITEMS = [to: "/settings/appearance",searchTerms: ["wide full width column layout messages composer monitor"],},- {- id: "sidebar-project-icon-colors",- title: "Colored project icons",- to: "/settings/appearance",- searchTerms: ["sidebar favicon logo grayscale gray color"],- redesignOnly: true,- },{id: "math-rendering",title: "Render math",@@ -360,7 +351,7 @@ export const SETTINGS_SEARCH_ITEMS = [id: "new-design",title: "New design",to: "/settings/beta",- searchTerms: ["beta redesign look style sidebar composer gray quieter classic"],+ searchTerms: ["beta redesign look style sidebar composer black quieter classic"],},{id: "working-shelf",@@ -1183,8 +1174,7 @@ export function filterAvailableSettingsSearchItems((!item.localEnvironmentOnly || !availability.localEnvironmentDisabled) &&(!item.wslAvailableOnly || availability.isWslSettingsRowVisible) &&(!item.requiresThreadAutoSettlement || availability.hasThreadAutoSettlement) &&- (!item.managedTunnelOnly || availability.managedTunnelActive === true) &&- (!item.redesignOnly || availability.redesignEnabled === true),+ (!item.managedTunnelOnly || availability.managedTunnelActive === true),);}diff --git a/apps/web/src/components/settings/useAvailableSettingsSearchItems.ts b/apps/web/src/components/settings/useAvailableSettingsSearchItems.tsindex aa9ce105de5..20c5703d342 100644--- a/apps/web/src/components/settings/useAvailableSettingsSearchItems.ts+++ b/apps/web/src/components/settings/useAvailableSettingsSearchItems.ts@@ -3,7 +3,6 @@ import { AuthEnvironmentMaintainScope } from "@t3tools/contracts";import { usePrimaryCloudLinkState } from "~/cloud/primaryCloudLinkState";import { hasCloudPublicConfig } from "~/cloud/publicConfig";import { isElectron } from "~/env";-import { useClientSettings } from "~/hooks/useSettings";import { isLocalEnvironmentDisabled } from "~/localEnvironment";import { desktopWslStateAtom } from "~/state/desktopWslState";import { useEnvironments, usePrimaryEnvironmentId } from "~/state/environments";@@ -54,7 +53,6 @@ export function useAvailableSettingsSearchItems(scopeSearch: SettingsScopeSearchisElectron && canManageLocalBackend ? desktopWslStateAtom : null,);const cloudPublicConfig = hasCloudPublicConfig() === true;- const redesignEnabled = useClientSettings((settings) => settings.redesignEnabled);const wslSettingsRowVisible =isWslSettingsRowVisible({ state: desktopWsl.data, error: desktopWsl.error }) === true;@@ -68,6 +66,5 @@ export function useAvailableSettingsSearchItems(scopeSearch: SettingsScopeSearchisWslSettingsRowVisible: wslSettingsRowVisible,hasThreadAutoSettlement,managedTunnelActive,- redesignEnabled,});}diff --git a/apps/web/src/components/sidebar/SidebarChrome.tsx b/apps/web/src/components/sidebar/SidebarChrome.tsxindex 811848e2421..d507689a03f 100644--- a/apps/web/src/components/sidebar/SidebarChrome.tsx+++ b/apps/web/src/components/sidebar/SidebarChrome.tsx@@ -212,7 +212,7 @@ const SidebarUtilityMenu = memo(function SidebarUtilityMenu() {{pullRequestsSupported ? (<SidebarUtilityItemicon={<PullRequestGlyph.pullRequest />}- label="Pull Requests"+ label="Pull requests"onClick={handlePullRequestsClick}/>) : null}diff --git a/apps/web/src/components/sidebar/SidebarListMarkers.tsx b/apps/web/src/components/sidebar/SidebarListMarkers.tsxindex 611219b16e6..5cefee4452e 100644--- a/apps/web/src/components/sidebar/SidebarListMarkers.tsx+++ b/apps/web/src/components/sidebar/SidebarListMarkers.tsx@@ -103,7 +103,7 @@ export function SidebarDragBoundary(props: {export function SidebarSectionHeader(props: {marker: "working-header" | "snoozed-header" | "settled-header";label: string;- /** Shown as a muted trailing count while the shelf is collapsed. */+ /** A muted trailing count; classic shows it only while the shelf is collapsed. */count: number;className?: string;dragging?: boolean;@@ -118,6 +118,7 @@ export function SidebarSectionHeader(props: {: "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}@@ -130,8 +131,8 @@ export function SidebarSectionHeader(props: {tone={props.isDropTarget ? "accent" : props.dragging ? "emphasized" : "muted"}data-testid={`sidebar-${shelf}-shelf-toggle`}accessory={- redesign && collapsedCount !== null ? (- <span className="font-normal tabular-nums">{collapsedCount}</span>+ redesign && count !== null ? (+ <span className="font-normal tabular-nums">{count}</span>) : null}>diff --git a/apps/web/src/components/sidebar/SidebarThreadHeader.tsx b/apps/web/src/components/sidebar/SidebarThreadHeader.tsxindex 5574ce4bf20..1958277baa0 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"+ 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"><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 c2393f3fe9b..efd23bfe265 100644--- a/apps/web/src/components/sidebar/SidebarThreadRow.tsx+++ b/apps/web/src/components/sidebar/SidebarThreadRow.tsx@@ -111,7 +111,6 @@ import { Menu, MenuItem, MenuPopup, MenuSeparator, MenuShortcut, MenuTrigger } fimport { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";import { MiddleTruncate } from "../ui/middle-truncate";import { useThreadHasUnsentDraft } from "../../composerDraftStore";-import { useClientSettings } from "../../hooks/useSettings";// The fields thread rows show. Provider status pushes refresh `checkedAt`,// status and auth on every provider; leaving those out keeps each@@ -198,7 +197,7 @@ function SidebarProviderStack(props: {acpRegistryIconUrl={currentEntry.acpRegistryIconUrl}showBadge={showInstanceBadge}size="compact"- iconClassName="opacity-60 redesign:opacity-50 redesign:grayscale"+ iconClassName="opacity-60"/>);if (stack.length === 1) {@@ -643,7 +642,6 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowPwokeAtDate !== null &&(lastVisitedDate === null || lastVisitedDate < wokeAtDate) &&thread.settledOverride !== "settled";- const projectIconColors = useClientSettings((s) => s.sidebarProjectIconColors);const shouldRecede = shouldRecedeSidebarThread({status,isUnread,@@ -896,9 +894,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",+ "[&:not(:hover):not(:focus-within)_*]:text-secondary-label/70 redesign:[&: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"+ ? "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": isSelected || props.sweepAction !== null? "bg-sidebar-row-selected text-sidebar-foreground light:ring-1 light:ring-inset light:ring-sidebar-border/70": hasUnsentDraft@@ -988,7 +986,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP: cn("truncate group-focus-within/sidebar-row:text-foreground group-hover/sidebar-row:text-foreground",shouldRecede- ? "text-secondary-label/70"+ ? "text-secondary-label/70 redesign:text-secondary-label": props.isActive || isWoke || status === "input" || status === "request"? "text-foreground": isUnread@@ -1132,7 +1130,8 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowPRegenerating title</span>) : null}- {prBadge}+ {/* 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) : (@@ -1149,7 +1148,9 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP)}>{variantAction === "unsnooze" && props.snoozeWakeLabelText !== null ? (- <span className="text-xs text-info-foreground tabular-nums">+ <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" />{props.snoozeWakeLabelText}</span>) : isWoke ? (@@ -1242,6 +1243,14 @@ 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.+ const metaLineEmpty =+ !thread.branch &&+ !showsScratchMachine &&+ prBadge === null &&+ diff === null &&+ !isRemote &&+ runningTerminalIds.length === 0;return (<li@@ -1250,6 +1259,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]",sortable?.isDragging && "relative z-20",)}>@@ -1273,20 +1283,16 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP}>{accessibleTitle}- <div className="relative z-10 h-[4.875rem] px-(--sidebar-row-content-inset) py-(--sidebar-content-inset)">+ <div+ className={cn(+ "relative z-10 h-[4.875rem] px-(--sidebar-row-content-inset) py-(--sidebar-content-inset)",+ metaLineEmpty && "redesign:h-auto",+ )}+ ><div className="flex h-5 min-w-0 items-center gap-1.5">{draftIndicator}{props.project ? (- <ProjectFavicon- project={props.project}- className={cn(- "size-4 shrink-0",- // Repeated brand colors outshout titles; color returns on the row in focus.- !props.isActive &&- !projectIconColors &&- "redesign:opacity-60 redesign:grayscale redesign:group-focus-visible/sidebar-row:opacity-100 redesign:group-focus-visible/sidebar-row:grayscale-0 redesign:group-any-hover/sidebar-row:opacity-100 redesign:group-any-hover/sidebar-row:grayscale-0",- )}- />+ <ProjectFavicon project={props.project} className="size-4 shrink-0" />) : null}{/* Left of the status slot, the pin would slide when hover swaps thelabel for the wider row controls. */}@@ -1442,15 +1448,28 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP)}{props.sweepAction !== null ? dragDestination : null}</div>- <div className="mt-1 flex min-w-0">+ <div className="mt-1 flex min-w-0 items-center gap-1.5">{title}{isRegeneratingTitle ? (<span role="status" className="sr-only">Regenerating title</span>) : null}+ {metaLineEmpty ? (+ <span aria-hidden className="hidden shrink-0 redesign:inline-flex">+ <SidebarProviderStack+ thread={thread}+ providerEntryByInstanceId={props.providerEntryByInstanceId}+ />+ </span>+ ) : null}</div>- <div className="mt-0.5 flex min-w-0 items-center gap-1.5 text-secondary-label text-xs">+ <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} />diff --git a/apps/web/src/components/ui/collapsible-section-header.tsx b/apps/web/src/components/ui/collapsible-section-header.tsxindex b35acd53381..fc16fde42cf 100644--- a/apps/web/src/components/ui/collapsible-section-header.tsx+++ b/apps/web/src/components/ui/collapsible-section-header.tsx@@ -35,11 +35,12 @@ export function CollapsibleSectionHeader({<span className="shrink-0">{children}</span><spanaria-hidden- // A collapsed header with a trailing count drops its rule so it doesn't read as a leader.+ // 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,- !expanded && accessory && "invisible",+ accessory && (expanded ? "redesign:invisible" : "invisible"),)}/>{accessory}diff --git a/apps/web/src/components/ui/combobox.tsx b/apps/web/src/components/ui/combobox.tsxindex 4acd120b277..ef3ce43eb40 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 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-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",className,)}data-slot="combobox-item"diff --git a/apps/web/src/components/ui/command.tsx b/apps/web/src/components/ui/command.tsxindex 1da53296364..650b875fd49 100644--- a/apps/web/src/components/ui/command.tsx+++ b/apps/web/src/components/ui/command.tsx@@ -213,7 +213,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] 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)] 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",className,)}data-slot="command-footer"diff --git a/apps/web/src/components/ui/kbd.tsx b/apps/web/src/components/ui/kbd.tsxindex 04a23f2b6cb..849d7cf18b8 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 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-muted px-1 redesign:bg-foreground/[0.07] 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 76be2555ff8..0305b551edc 100644--- a/apps/web/src/components/usage/UsageLimitsPooled.tsx+++ b/apps/web/src/components/usage/UsageLimitsPooled.tsx@@ -402,7 +402,15 @@ function SegmentTriggers({className="min-w-0 truncate font-medium text-foreground"/>) : null}- <span className="shrink-0 font-semibold text-foreground tabular-nums">{remaining}%</span>+ <span+ className={cn(+ "shrink-0 font-semibold text-foreground tabular-nums",+ // A single-account bar repeats the headline percentage.+ !showAccountName && "redesign:hidden",+ )}+ >+ {remaining}%+ </span>{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 0061c4de19f..e7e36a6963e 100644--- a/apps/web/src/components/usage/UsagePage.tsx+++ b/apps/web/src/components/usage/UsagePage.tsx@@ -411,6 +411,8 @@ export function UsagePage() {variant="segmented"value={[String(windowDays)]}disabled={showingLimits}+ // Limits are always current; the New design hides the period instead of greying it.+ className={showingLimits ? "redesign:hidden" : undefined}onValueChange={(next) => {const value = next[0];if (value) selectWindow(Number(value));@@ -467,7 +469,7 @@ export function UsagePage() {aria-label="Usage period"size="compact"variant="ghost"- className="w-auto min-w-0"+ className={cn("w-auto min-w-0", showingLimits && "redesign:hidden")}><SelectValue>{WINDOW_OPTIONS.find((option) => option.days === windowDays)?.label}@@ -1335,7 +1337,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"+ 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"aria-hidden/>)}@@ -1448,7 +1450,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"+ 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"aria-hidden/></MenuTrigger>diff --git a/apps/web/src/index.css b/apps/web/src/index.cssindex f720507b31b..1a590a40f55 100644--- a/apps/web/src/index.css+++ b/apps/web/src/index.css@@ -1283,6 +1283,52 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil}}+/* 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] {+ --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);+}++/* Blue-orange already spends blue on additions. */+html[data-redesign][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);+}++/* 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"] {+ border-color: transparent;+ background: transparent;+ box-shadow: none;+}++/* New design: 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) {+ 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));+}+/* 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@@ -2183,6 +2229,15 @@ code {font-size: 0.75rem;}+/* New design: tables sit one step under 15px prose instead of three. */+[data-redesign] .chat-markdown table {+ 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,diff --git a/apps/web/src/lib/diffRendering.ts b/apps/web/src/lib/diffRendering.tsindex 8cc9163e1b0..cad51902486 100644--- a/apps/web/src/lib/diffRendering.ts+++ b/apps/web/src/lib/diffRendering.ts@@ -1,16 +1,22 @@import { parsePatchFiles } from "@pierre/diffs/utils/parsePatchFiles";import { parseDiffFromFile } from "@pierre/diffs";import type { FileDiffMetadata } from "@pierre/diffs/types";+import { READABLE_LIGHT_THEME_NAME } from "./readableSyntaxTheme";-const DIFF_THEME_NAMES = {+export const DIFF_THEME_NAMES = {light: "pierre-light",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 {- return theme === "dark" ? DIFF_THEME_NAMES.dark : DIFF_THEME_NAMES.light;+ 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;}const FNV_OFFSET_BASIS_32 = 0x811c9dc5;@@ -275,13 +281,13 @@ export function buildFileDiffContentVersion(fileDiff: FileDiffMetadata): numberexport function getDiffCollapseIconClassName(fileDiff: FileDiffMetadata): string {switch (fileDiff.type) {case "new":- return "text-[var(--diffs-addition-base)]";+ return "text-[var(--diffs-addition-base)] redesign:text-muted-foreground/80";case "deleted":- return "text-[var(--diffs-deletion-base)]";+ 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)]";+ return "text-[var(--diffs-modified-base)] redesign:text-muted-foreground/80";default:return "text-muted-foreground/80";}@@ -350,4 +356,24 @@ export const DIFF_SURFACE_THEME_UNSAFE_CSS = `background-color: var(--diffs-bg) !important;color: var(--code-foreground) !important;}++/* The library's change-icon colors are tuned for dark canvases; light mode takes the app's darker tokens. */+[data-change-icon="new"] {+ color: var(+ --diff-added-icon,+ light-dark(var(--diff-addition-foreground), var(--diffs-addition-base))+ ) !important;+}+[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. */+[data-change-icon="change"],+[data-change-icon="rename-pure"],+[data-change-icon="rename-changed"] {+ color: var(+ --diff-modified-icon,+ light-dark(var(--info-foreground), var(--diffs-modified-base))+ ) !important;+}`;diff --git a/apps/web/src/lib/readableSyntaxTheme.test.ts b/apps/web/src/lib/readableSyntaxTheme.test.tsnew file mode 100644index 00000000000..227d4b411bb--- /dev/null+++ b/apps/web/src/lib/readableSyntaxTheme.test.ts@@ -0,0 +1,53 @@+import { describe, expect, it } from "vite-plus/test";++import { readableOnLightCode, readableSyntaxColor } from "./readableSyntaxTheme";++function luminance(hex: string): number {+ const [r, g, b] = [1, 3, 5].map((start) => {+ const value = Number.parseInt(hex.slice(start, start + 2), 16) / 255;+ return value <= 0.03928 ? value / 12.92 : ((value + 0.055) / 1.055) ** 2.4;+ }) as [number, number, number];+ return 0.2126 * r + 0.7152 * g + 0.0722 * b;+}++function contrast(foreground: string, background: string): number {+ return (luminance(background) + 0.05) / (luminance(foreground) + 0.05);+}++// pierre-light's faintest syntax colors: yellow, cyan, orange, teal, green, pink.+const PIERRE_LIGHT_FAINT = ["#d5a910", "#08c0ef", "#d5901c", "#1ca1c7", "#199f43", "#d32a61"];+// Light code surfaces: the code background, added and deleted lines, and changed words on each.+const LIGHT_CODE_SURFACES = ["#fcfcfc", "#ecf9f4", "#fef0f0", "#ccecdf", "#f8d3d4"];++describe("readableOnLightCode", () => {+ it("brings pierre-light's faint colors to 4.5:1 on every light code surface", () => {+ for (const color of PIERRE_LIGHT_FAINT) {+ for (const surface of LIGHT_CODE_SURFACES) {+ expect(contrast(readableOnLightCode(color), surface)).toBeGreaterThanOrEqual(4.5);+ }+ }+ });++ it("keeps tokens that differed only in lightness apart, in pierre-light's order", () => {+ // [lighter, darker] in pierre-light: comment/punctuation, operator/number, property/decorator.+ for (const [lighter, darker] of [+ ["#737373", "#636363"],+ ["#08c0ef", "#1ca1c7"],+ ["#009fff", "#1a85d4"],+ ] as const) {+ expect(luminance(readableSyntaxColor(lighter))).toBeGreaterThan(+ luminance(readableSyntaxColor(darker)) + 0.02,+ );+ }+ });++ it("leaves colors that already read unchanged", () => {+ expect(readableOnLightCode("#693acf")).toBe("#693acf");+ expect(readableOnLightCode("#0a0a0a")).toBe("#0a0a0a");+ });++ it("keeps an alpha suffix and ignores non-hex values", () => {+ expect(readableOnLightCode("#d5a91080")).toMatch(/80$/);+ expect(readableOnLightCode("var(--x)")).toBe("var(--x)");+ });+});diff --git a/apps/web/src/lib/readableSyntaxTheme.ts b/apps/web/src/lib/readableSyntaxTheme.tsnew file mode 100644index 00000000000..7f4c9e5056a--- /dev/null+++ b/apps/web/src/lib/readableSyntaxTheme.ts@@ -0,0 +1,76 @@+import { getResolvedOrResolveTheme, registerCustomTheme, type DiffsTheme } from "@pierre/diffs";++/** pierre-light with every syntax color darkened until it reads on every light code surface. */+export const READABLE_LIGHT_THEME_NAME = "t3-light";++const MIN_CONTRAST = 4.5;+// The darkest light code surface is a changed word on a deleted line (#f8d3d4, luminance+// 0.71), rounded down for margin.+const DARKEST_SURFACE_LUMINANCE = 0.69;++function channelLuminance(channel: number): number {+ const value = channel / 255;+ return value <= 0.03928 ? value / 12.92 : ((value + 0.055) / 1.055) ** 2.4;+}++function contrastOnLightCode(rgb: readonly [number, number, number]): number {+ const [r, g, b] = rgb.map(channelLuminance) as [number, number, number];+ return (DARKEST_SURFACE_LUMINANCE + 0.05) / (0.2126 * r + 0.7152 * g + 0.0722 * b + 0.05);+}++/** Darkens a #rrggbb(aa) color in steps that keep its hue until it reads on light code. */+export function readableOnLightCode(color: string, minContrast = MIN_CONTRAST): string {+ const match = /^#([0-9a-f]{6})([0-9a-f]{2})?$/i.exec(color);+ if (!match) return color;+ let rgb = [0, 2, 4].map((start) => Number.parseInt(match[1]!.slice(start, start + 2), 16)) as [+ number,+ number,+ number,+ ];+ if (contrastOnLightCode(rgb) >= minContrast) return color;+ while (contrastOnLightCode(rgb) < minContrast) {+ rgb = rgb.map((channel) => Math.floor(channel * 0.96)) as [number, number, number];+ }+ return `#${rgb.map((channel) => channel.toString(16).padStart(2, "0")).join("")}${match[2] ?? ""}`;+}++type ZedTheme = NonNullable<DiffsTheme["zed"]>;++// Pairs that differ only in lightness would merge at one floor. The darker color of each pair+// goes further, keeping pierre-light's order: numbers stay darker than operators, punctuation+// darker than comments, and decorators darker than property names.+const FURTHER_COLORS = new Set(["#1ca1c7", "#636363", "#1a85d4"]);+const FURTHER_MIN_CONTRAST = 6;++/** The t3-light color for a pierre-light syntax color. */+export function readableSyntaxColor(color: string): string {+ return readableOnLightCode(+ color,+ FURTHER_COLORS.has(color.toLowerCase()) ? FURTHER_MIN_CONTRAST : MIN_CONTRAST,+ );+}++function withReadableSyntax(theme: ZedTheme): ZedTheme {+ const syntax = Object.fromEntries(+ Object.entries(theme.style.syntax ?? {}).map(([scope, style]) => [+ scope,+ typeof style === "string"+ ? readableSyntaxColor(style)+ : style.color+ ? { ...style, color: readableSyntaxColor(style.color) }+ : style,+ ]),+ );+ return { ...theme, name: READABLE_LIGHT_THEME_NAME, style: { ...theme.style, syntax } };+}++// Themes resolve on the main thread and reach the diff workers already resolved.+registerCustomTheme(+ READABLE_LIGHT_THEME_NAME,+ async () => {+ const base = await getResolvedOrResolveTheme("pierre-light", "highlights");+ if (!base.zed) throw new Error("pierre-light has no Highlights palette");+ return withReadableSyntax(base.zed);+ },+ "zed",+);diff --git a/apps/web/src/lib/syntaxHighlighting.ts b/apps/web/src/lib/syntaxHighlighting.tsindex d85f0923c16..a7e3833d166 100644--- a/apps/web/src/lib/syntaxHighlighting.ts+++ b/apps/web/src/lib/syntaxHighlighting.ts@@ -5,7 +5,7 @@ import {type SupportedLanguages,} from "@pierre/diffs";-import { resolveDiffThemeName } from "./diffRendering";+import { DIFF_THEME_NAMES } from "./diffRendering";/*** Highlights' hand-written WASM lexers tokenize large files 10-40x faster than@@ -21,7 +21,8 @@ export function getSyntaxHighlighterPromise(language: string): Promise<DiffsHighif (cached) return cached;const promise = getSharedHighlighter({- themes: [resolveDiffThemeName("dark"), resolveDiffThemeName("light")],+ // Every palette, so toggling the New design never needs a new highlighter.+ themes: Object.values(DIFF_THEME_NAMES),langs: [language as SupportedLanguages],preferredHighlighter: PREFERRED_HIGHLIGHTER,}).catch((error) => {diff --git a/apps/web/src/timestampFormat.ts b/apps/web/src/timestampFormat.tsindex a8c4192ee52..8701a10c2f7 100644--- a/apps/web/src/timestampFormat.ts+++ b/apps/web/src/timestampFormat.ts@@ -273,28 +273,6 @@ export function formatElapsedDurationLabel(isoDate: string, nowMs: number = Datereturn `${days}d`;}-function formatRelativeTimeUntil(isoDate: string): RelativeTimeParts | null {- const date = parseTimestampDate(isoDate);- if (!date) return null;- const diffMs = date.getTime() - Date.now();- if (diffMs <= 0) return { value: "Expired", suffix: null };- const seconds = Math.floor(diffMs / 1000);- if (seconds < 5) return { value: "Soon", suffix: null };- if (seconds < 60) return { value: `${seconds}s`, suffix: "left" };- const minutes = Math.floor(seconds / 60);- if (minutes < 60) return { value: `${minutes}m`, suffix: "left" };- const hours = Math.floor(minutes / 60);- if (hours < 24) return { value: `${hours}h`, suffix: "left" };- const days = Math.floor(hours / 24);- return { value: `${days}d`, suffix: "left" };-}--export function formatRelativeTimeUntilLabel(isoDate: string): string {- const relative = formatRelativeTimeUntil(isoDate);- if (!relative) return "";- return relative.suffix ? `${relative.value} ${relative.suffix}` : relative.value;-}-/** Pass nowMs to match a parent-driven render tick. */export function formatExpiresInLabel(isoDate: string, nowMs: number = Date.now()): string {const date = parseTimestampDate(isoDate);diff --git a/docs/user/keybindings.md b/docs/user/keybindings.mdindex 085dee90af3..75b7a855047 100644--- a/docs/user/keybindings.md+++ b/docs/user/keybindings.md@@ -46,7 +46,7 @@ in Settings.## Copy pull request references-With a PR open in the right panel or on the Pull Requests page, use `mod+shift+c`+With a PR open in the right panel or on the Pull requests page, use `mod+shift+c`to copy its URL and `mod+shift+k` to copy its number with a `#` prefix.Both shortcuts can be changed in Settings. Search for “Copy Link or Thread ID”or “Copy Number”. They copy the selected PR and leave terminal input alone.diff --git a/docs/user/project-settings.md b/docs/user/project-settings.mdindex db994a7fe8d..905b323320a 100644--- a/docs/user/project-settings.md+++ b/docs/user/project-settings.md@@ -48,7 +48,7 @@ and other phone-only settings ignore the filter.## Worktree branch names-In **Settings → Source Control → Worktree branch naming**, choose a static prefix,+In **Settings → Source control → Worktree branch naming**, choose a static prefix,a model-selected semantic prefix such as `feat/` or `fix/`, or custom instructionsfor the complete name. The static prefix defaults to `t3/`; a trailing slash isoptional, and an empty prefix adds nothing. Invalid characters in a static prefix@@ -147,7 +147,7 @@ than** on the task.## Defaults and inheritanceGeneral contains the model and workspace for new threads. Integrations controls agent browser-access. Source Control contains automatic pull, the default pull request merge method and text+access. Source control contains automatic pull, the default pull request merge method and textgeneration. The same rows edit environment defaults or project overrides depending on theproject crumb.@@ -224,7 +224,7 @@ from the icon palette, derived from the saved project name. For example, `Nebula## Keep the default branch current-In Source Control, enable **Automatically pull** to keep the default-branch checkout up to date+In Source control, enable **Automatically pull** to keep the default-branch checkout up to datewith its configured upstream. Choose an environment to set the default or a project to override it.On mobile, use **Settings → Source control** to change selected environment defaults or project overrides.diff --git a/docs/user/source-control.md b/docs/user/source-control.mdindex 57d512dcb3b..a0ea63b57c9 100644--- a/docs/user/source-control.md+++ b/docs/user/source-control.md@@ -13,7 +13,7 @@ against your base branch. Restore still returns the complete saved workspace.## Connect an accountInstall Git and configure authentication on the machine running your T3 Code server. For a remote-environment, do this on the remote machine. After signing in, open **Settings → Source Control**+environment, do this on the remote machine. After signing in, open **Settings → Source control**and choose **Rescan**.### GitHub@@ -21,7 +21,7 @@ and choose **Rescan**.T3 Code talks to GitHub's API directly and only needs a token. Any of these works, in thisorder of precedence:-1. A token saved in **Settings → Source Control → GitHub**. It is kept in the server's secret+1. A token saved in **Settings → Source control → GitHub**. It is kept in the server's secretstore, and works without the GitHub CLI.2. `GH_TOKEN` (`GH_ENTERPRISE_TOKEN` with `GH_HOST` for GitHub Enterprise Server) in theserver's environment.@@ -64,7 +64,7 @@ glab auth login### Bitbucket-Open **Settings → Source Control**, expand **Bitbucket**, and enter one of:+Open **Settings → Source control**, expand **Bitbucket**, and enter one of:- **Access token**: a token created for one repository, project, or workspace. It can only reachwhat it was created for.@@ -110,7 +110,7 @@ bun install -g @gitcafe/clicafe auth login --host https://git.cafe/api```-Alternatively, open **Settings → Source Control**, expand **GitCafe**, and enter a token. It is+Alternatively, open **Settings → Source control**, expand **GitCafe**, and enter a token. It iskept in the server's secret store, applies right away, and is used before `CAFE_TOKEN` and the`cafe` login. Or set `CAFE_TOKEN` in the server's environment and restart it. Both tokens are onlysent to `git.cafe`; `CAFE_TOKEN` follows `CAFE_HOST` if you set it. Repositories on@@ -152,7 +152,7 @@ An existing fork PR can appear beside the branch even if you pushed without settIf its badge is missing because several remotes hold that branch, set the branch's upstream tothe intended remote with `git branch --set-upstream-to=<remote>/<branch>`.-Choose the writing style and model in **Settings → Source Control**. **Repository conventions**+Choose the writing style and model in **Settings → Source control**. **Repository conventions**uses the project's instructions and recent commit subjects.## Review and merge@@ -170,7 +170,7 @@ Previously loaded lists, review details, guides, and diff pages remain readablewithout a connection, including after restarting the app. Saved content refreshes when theenvironment reconnects; submitting changes requires a connection.-Enable **Remove agent credits when merging** in Settings → Source Control to remove recognized+Enable **Remove agent credits when merging** in Settings → Source control to remove recognizedagent co-author and generated-by lines from GitHub merge and squash commit messages. Humanco-authors stay credited. The setting is off by default and projects can override it. It alsoapplies to auto-merge, but not merge queues or native stack merges. Original commits keep their@@ -205,7 +205,7 @@ declined pull request.### Review guides-Review guides are in beta. Turn on **Review guides** in Settings → Source Control to add the+Review guides are in beta. Turn on **Review guides** in Settings → Source control to add the**Guide** tab to pull requests on that server. On mobile, move between stops with **Next**and the back button; a stale guide offers a rewrite and hides excerpts that no longer matchthe current change.@@ -217,7 +217,7 @@ snapshots are grouped at the end, and every changed file appears somewhere on thConversations already resolved in review are left out. For a pull request in a stack, the guidecovers that layer only, and may point out what a lower layer introduced or what a higher one uses.-Choose **Write guide** to have the review guide model from Settings → Source Control read the+Choose **Write guide** to have the review guide model from Settings → Source control read thechange in a temporary checkout; without one set, the source control writer model is used. Nothingin the checkout is changed, and a large pull request takes a few minutes; you can go elsewhere inthe app. On web, you are told when the guide is ready; on mobile, return to the guide to check@@ -233,7 +233,7 @@ are on. **Finish review** on the last stop opens the review with everything youAgents can write guides too: ask one to prepare guides for a set of pull requests, and it startsthem for you. Each is read through the project whose checkout has that repository.-To shape guides to your taste, write **Review guide instructions** in Settings → Source Control,+To shape guides to your taste, write **Review guide instructions** in Settings → Source control,such as what to show first or what to skip; projects can override them. They change emphasis andordering, not the guide's layout or which files it covers.@@ -254,9 +254,9 @@ and their marks follow the same rules as on web and desktop.## Troubleshooting- **Not authenticated:** run the provider's login command on the server, then rescan. For Bitbucket,- check the credentials saved in Settings → Source Control, or confirm the running server received+ check the credentials saved in Settings → Source control, or confirm the running server receivedthe environment variables.-- **GitHub sign-in cannot be verified:** update GitHub CLI to at least 2.81.0, or save a token in Settings → Source Control.+- **GitHub sign-in cannot be verified:** update GitHub CLI to at least 2.81.0, or save a token in Settings → Source control.- **Push fails despite a connected account:** check the Git remote's credentials. SSH and HTTPSremotes can require separate setup from the hosting provider's API access.- **A review cannot load:** open it on the host website while resolving connectivity, permissions,@@ -271,7 +271,7 @@ and so does an agent creating one with `gh pr create` or `glab mr create`. Agentpull requests with the `link_pull_request` tool.Use **Link this PR** in a branch-detected badge's tooltip to keep it with the thread. From a review-on the Pull Requests page, **Link to thread** lets you search for an active thread. The review header+on the Pull requests page, **Link to thread** lets you search for an active thread. The review headeralso lists the threads that link to it, including archived threads, so you can return to their context.Thread badges show a stack's layer count or the current review number with a count of additional@@ -307,7 +307,7 @@ out from the matching organization and repository.## GitHub stacks-The Pull Requests page shows each PR's position in its GitHub stack. Open the stack badge in a+The Pull requests page shows each PR's position in its GitHub stack. Open the stack badge in areview to navigate its layers. **Merge stack** submits the selected pull request and every unmergedlayer below it to GitHub together, respecting branch rules and merge queues. The confirmation showsthe scope and merge strategy. GitHub rebases the remaining stack after merging.diff --git a/packages/contracts/src/settings.ts b/packages/contracts/src/settings.tsindex c2071af3236..f2ec54ba7d5 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))),- // Sidebar project icons rest in grayscale so titles lead; this keeps their colors.- sidebarProjectIconColors: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(false))),// Beta: the quieter sidebar, composer and panel design. Off keeps the current look.redesignEnabled: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(false))),});@@ -1682,7 +1680,6 @@ export const ClientSettingsPatch = Schema.Struct({snapShotAnimations: Schema.optionalKey(Schema.Boolean),wordWrap: Schema.optionalKey(Schema.Boolean),mathRenderingEnabled: Schema.optionalKey(Schema.Boolean),- sidebarProjectIconColors: Schema.optionalKey(Schema.Boolean),redesignEnabled: Schema.optionalKey(Schema.Boolean),});export type ClientSettingsPatch = typeof ClientSettingsPatch.Type;