@devries-cameron20 / t3code-1 / commits / c3888da8b4
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

feat(web): New design brings back color where it means something (#25251)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Theo Browne committed Oct 25, 2026 at 20:49 UTC c3888da8b4fa39b5edd3d0aa69479068647413cf
55 files changed +573 -255
apps/web/src/components/CommandPalette.logic.ts
+2 -2
@@ -809,8 +809,8 @@ export function buildPaletteRemoteSourceReadiness(
809 : {
810 ...entry,
811 hint: entry.hint.replace(
812 - "Open Source Control settings",
813 - "Open Settings -> Source Control",
812 + "Open source control settings",
813 + "Open Settings -> Source control",
814 ),
815 };
816 };
apps/web/src/components/CommandPalette.tsx
+1 -1
@@ -1081,7 +1081,7 @@ function OpenCommandPaletteDialog(props: {
1081 }
1082 />
1083 <TooltipPopup align="end" side="left">
1084 - {disabledHint ?? "Open Settings -> Source Control to configure this provider."}
1084 + {disabledHint ?? "Open Settings -> Source control to configure this provider."}
1085 </TooltipPopup>
1086 </Tooltip>
1087 </span>
apps/web/src/components/DiffPanel.tsx
+20 -4
@@ -175,7 +175,9 @@ function DiffFileHeaderSuffix({
175 }) {
176 return (
177 <>
178 - <DiffFilePathCopyButton filePath={filePath} />
178 + <span data-diff-copy-path className="inline-flex">
179 + <DiffFilePathCopyButton filePath={filePath} />
180 + </span>
181 {hasStat ? (
182 <DiffFileStatus error={error} truncated={truncated} retry={() => onRetry(filePath)} />
183 ) : null}
@@ -661,7 +663,7 @@ export default function DiffPanel({
663
664 const headerRow = (
665 <>
664 - <div className="flex min-w-0 flex-1 items-center gap-3 [-webkit-app-region:no-drag]">
666 + <div className="@container/diff-refs flex min-w-0 flex-1 items-center gap-3 [-webkit-app-region:no-drag]">
667 <DropdownMenu>
668 <DropdownMenuTrigger
669 render={<Button size="xs" variant="secondary" />}
@@ -717,7 +719,9 @@ export default function DiffPanel({
719 <Tooltip>
720 <TooltipTrigger
721 render={
720 - <span className="flex min-w-[min(3rem,calc(100%-2.75rem))] items-center gap-2 overflow-hidden" />
722 + // Too narrow for both refs, the New design keeps the target readable and drops
723 + // the head, which is the thread's own branch.
724 + <span className="flex min-w-[min(3rem,calc(100%-2.75rem))] items-center gap-2 overflow-hidden redesign:@max-[20rem]/diff-refs:hidden" />
725 }
726 >
727 <span className="min-w-0 max-w-48 truncate">
@@ -729,6 +733,18 @@ export default function DiffPanel({
733 {`${selectedGitSource.headRef ?? "HEAD"} → ${selectedGitSource.baseRef}`}
734 </TooltipPopup>
735 </Tooltip>
736 + <Tooltip>
737 + <TooltipTrigger
738 + render={
739 + <span aria-hidden className="hidden redesign:@max-[20rem]/diff-refs:inline" />
740 + }
741 + >
742 + vs
743 + </TooltipTrigger>
744 + <TooltipPopup side="top">
745 + {`${selectedGitSource.headRef ?? "HEAD"} → ${selectedGitSource.baseRef}`}
746 + </TooltipPopup>
747 + </Tooltip>
748 <Combobox
749 items={baseRefItems}
750 filteredItems={filteredBaseRefItems}
@@ -743,7 +759,7 @@ export default function DiffPanel({
759 >
760 <ComboboxTrigger
761 render={<Button variant="ghost-muted" size="xs" />}
746 - className="min-w-9 max-w-48 shrink"
762 + className="min-w-9 max-w-48 shrink redesign:shrink-0"
763 aria-label={`Change comparison target. Currently ${selectedGitSource.baseRef}`}
764 >
765 <span className="min-w-0 truncate">{selectedGitSource.baseRef}</span>
apps/web/src/components/DiffWorkerPoolProvider.tsx
+8 -2
@@ -3,13 +3,14 @@ import { WorkerPoolManager } from "@pierre/diffs/worker";
3 import DiffsWorker from "@pierre/diffs/worker/worker.js?worker";
4 import * as Schema from "effect/Schema";
5 import { useEffect, useState, useSyncExternalStore, type ReactNode } from "react";
6 +import { subscribeClientSettings } from "../hooks/useSettings";
7 import { getRenderedAppearance, subscribeRenderedAppearance } from "../hooks/useTheme";
8 import { resolveDiffThemeName } from "../lib/diffRendering";
9 import { PREFERRED_HIGHLIGHTER } from "../lib/syntaxHighlighting";
10
11 export class DiffWorkerError extends Schema.TaggedError<DiffWorkerError>()("DiffWorkerError", {
12 operation: Schema.Literals(["create-worker", "get-render-options", "set-render-options"]),
12 - themeName: Schema.Literals(["pierre-light", "pierre-dark"]),
13 + themeName: Schema.Literals(["pierre-light", "pierre-dark", "t3-light"]),
14 cause: Schema.Defect(),
15 }) {
16 override get message(): string {
@@ -72,7 +73,12 @@ function createDiffWorkerPool(poolSize: number) {
73 );
74 return {
75 pool,
75 - unsubscribeTheme: subscribeRenderedAppearance(() => applyDiffWorkerTheme(pool)),
76 + unsubscribeTheme: (() => {
77 + const apply = () => applyDiffWorkerTheme(pool);
78 + // The New design picks the light syntax palette, so a settings change can switch it too.
79 + const unsubscribes = [subscribeRenderedAppearance(apply), subscribeClientSettings(apply)];
80 + return () => unsubscribes.forEach((unsubscribe) => unsubscribe());
81 + })(),
82 consumers: 0,
83 idleTimer: undefined,
84 };
apps/web/src/components/GitActionsControl.tsx
+5 -5
@@ -205,7 +205,7 @@ function getPublishProviderReadiness(input: {
205 if (!discovered) {
206 return {
207 ready: false,
208 - hint: "Provider status unavailable. Open Settings -> Source Control and rescan.",
208 + hint: "Provider status unavailable. Open Settings -> Source control and rescan.",
209 };
210 }
211 if (discovered.status !== "available") {
@@ -216,7 +216,7 @@ function getPublishProviderReadiness(input: {
216 ready: false,
217 hint:
218 Option.getOrNull(discovered.auth.detail) ??
219 - `${discovered.label} is not authenticated. Open Settings -> Source Control for setup guidance.`,
219 + `${discovered.label} is not authenticated. Open Settings -> Source control for setup guidance.`,
220 };
221 }
222 return { ready: true, hint: null };
@@ -673,7 +673,7 @@ function PublishRepositoryDialog(props: PublishRepositoryDialogProps) {
673 />
674 <TooltipPopup side="top" align="end">
675 {readiness.hint ??
676 - "Open Settings -> Source Control to configure this provider."}
676 + "Open Settings -> Source control to configure this provider."}
677 </TooltipPopup>
678 </Tooltip>
679 </div>
@@ -1153,11 +1153,11 @@ export default function GitActionsControl({
1153 : null;
1154 const gitActionProgress = resolveGitActionProgressPresentation(vcsActionState);
1155 const redesign = useClientSettings((s) => s.redesignEnabled);
1156 - // A fresh draft with nothing to commit, push, or diff hides those rows until there is work.
1156 + // A fresh draft or a thread with no turns hides commit, push, and diff rows until there is work.
1157 const quietEmptyDraft =
1158 redesign &&
1159 isPanel &&
1160 - draftId !== undefined &&
1160 + (draftId !== undefined || activeServerThreadShell?.latestRun === null) &&
1161 gitActionProgress === null &&
1162 !gitStatusError &&
1163 quickAction.disabled &&
apps/web/src/components/Sidebar.tsx
+8 -3
@@ -59,7 +59,7 @@ import {
59 } from "@t3tools/contracts";
60 import type { OlderSettledScope } from "@t3tools/client-runtime/state/threads";
61
62 -import { FolderIcon, ListFilterIcon, PlusIcon, SettingsIcon } from "lucide-react";
62 +import { ChevronDownIcon, FolderIcon, ListFilterIcon, PlusIcon, SettingsIcon } from "lucide-react";
63 import {
64 useEffect,
65 useLayoutEffect,
@@ -3210,9 +3210,14 @@ export default function Sidebar({ routeReveal }: { routeReveal: SidebarRouteReve
3210 olderSettledShelf.retry();
3211 showMoreSettled();
3212 }}
3213 - 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"
3213 + 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"
3214 >
3215 - <PlusIcon aria-hidden className="size-4 shrink-0" />
3215 + {/* The New design keeps plus for "add" and uses a chevron to reveal more. */}
3216 + <PlusIcon aria-hidden className="size-4 shrink-0 redesign:hidden" />
3217 + <ChevronDownIcon
3218 + aria-hidden
3219 + className="hidden size-4 shrink-0 redesign:block"
3220 + />
3221 {olderSettledShelf.loading
3222 ? "Loading"
3223 : olderSettledShelf.failed
apps/web/src/components/chat/ChatCanvas.tsx
+3
@@ -3,6 +3,7 @@ import { ChatCanvasContext } from "./ChatCanvasContext";
3 import { resolveChatCanvasLayout, type ChatCanvasPreview } from "./chatCanvasLayout";
4 import type { PreviewMiniPlayerObstacles } from "../preview/previewMiniPlayerLayout";
5 import { observeResize } from "../../lib/observeResize";
6 +import { useClientSettings } from "~/hooks/useSettings";
7
8 export function ChatCanvas({
9 composerOverlayElement,
@@ -93,6 +94,7 @@ export function ChatCanvas({
94 if (timelineElement) observed.push(timelineElement);
95 return observeResize(observed, measure);
96 }, [composerOverlayElement, timelineElement, detailsCardTopInset]);
97 + const redesign = useClientSettings((s) => s.redesignEnabled);
98 const container = { width: measurements.width, height: measurements.height };
99 const findBar =
100 detailsCardTopInset > 0
@@ -111,6 +113,7 @@ export function ChatCanvas({
113 preview,
114 detailsCard,
115 findBar,
116 + centerBesideDetails: redesign,
117 }),
118 previewKey: preview?.key ?? null,
119 reportPreview,
apps/web/src/components/chat/ModelListRow.tsx
+11 -5
@@ -61,7 +61,7 @@ export const ModelListRow = memo(function ModelListRow(props: {
61 >
62 <div className="min-w-0 flex-1 text-left">
63 <div className="flex min-w-0 items-center gap-2">
64 - <div className="min-w-0 truncate text-xs font-medium leading-snug">
64 + <div className="min-w-0 truncate text-xs font-medium leading-snug redesign:text-sm redesign:font-normal">
65 {props.useTriggerLabel
66 ? getTriggerDisplayModelLabel(model)
67 : getDisplayModelName(
@@ -101,9 +101,6 @@ export const ModelListRow = memo(function ModelListRow(props: {
101 </div>
102
103 <div className="flex shrink-0 items-center gap-1.5">
104 - {props.showSelection && props.isSelected ? (
105 - <CheckIcon className="size-3.5" aria-hidden="true" />
106 - ) : null}
104 {props.jumpLabel ? <Kbd>{props.jumpLabel}</Kbd> : null}
105 <Tooltip>
106 <TooltipTrigger
@@ -125,7 +122,9 @@ export const ModelListRow = memo(function ModelListRow(props: {
122 <StarIcon
123 className={cn(
124 "size-3.5 sm:size-3",
128 - props.isFavorite && "fill-current text-warning",
125 + props.isFavorite
126 + ? "fill-current text-warning"
127 + : "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",
128 )}
129 />
130 </Button>
@@ -135,6 +134,13 @@ export const ModelListRow = memo(function ModelListRow(props: {
134 {props.isFavorite ? "Remove from favorites" : "Add to favorites"}
135 </TooltipPopup>
136 </Tooltip>
137 + {/* Last, and always reserved, so stars and the check keep fixed columns. */}
138 + {props.showSelection ? (
139 + <CheckIcon
140 + className={cn("size-3.5", !props.isSelected && "invisible")}
141 + aria-hidden="true"
142 + />
143 + ) : null}
144 </div>
145 </ComboboxItem>
146 );
apps/web/src/components/chat/ModelPickerContent.tsx
+18 -5
@@ -49,6 +49,7 @@ import {
49 shortcutLabelForCommand,
50 } from "../../keybindings";
51 import {
52 + useClientSettings,
53 useEnvironmentModelPreferences,
54 useToggleEnvironmentModelFavorite,
55 } from "~/hooks/useSettings";
@@ -190,10 +191,12 @@ function modelJumpLabelsByKey(
191 function ModelPickerProviderNotices({
192 setupEntries,
193 updateRequiredNotices,
194 + emptyLabel,
195 onRequestClose,
196 onOpenProviderSetup,
197 }: {
198 setupEntries: ReadonlyArray<ProviderInstanceEntry>;
199 + emptyLabel: string;
200 updateRequiredNotices: ReadonlyArray<{ instanceId: ProviderInstanceId; notice: string }>;
201 onRequestClose: (() => void) | undefined;
202 onOpenProviderSetup: ((instanceId: ProviderInstanceId) => void) | undefined;
@@ -221,7 +224,7 @@ function ModelPickerProviderNotices({
224 ))}
225 </div>
226 ) : (
224 - <ComboboxEmpty className="empty:h-0">No models found</ComboboxEmpty>
227 + <ComboboxEmpty className="empty:h-0">{emptyLabel}</ComboboxEmpty>
228 )}
229 {updateRequiredNotices.map(({ instanceId, notice }) => (
230 <p
@@ -572,6 +575,9 @@ export const ModelPickerContent = memo(function ModelPickerContent(props: {
575
576 const isLocked = lockedProvider !== null;
577 const isSearching = searchQuery.trim().length > 0;
578 + // Inside one provider's tab the provider line repeats the selected rail icon on every row.
579 + const redesign = useClientSettings((s) => s.redesignEnabled);
580 + const rowsMixProviders = !redesign || isSearching || selectedInstanceId === "favorites";
581 const lockedDisabledInstanceIds = (() => {
582 if (!isLocked) {
583 return undefined;
@@ -937,8 +943,10 @@ export const ModelPickerContent = memo(function ModelPickerContent(props: {
943 className="group w-full cursor-pointer"
944 >
945 <div className="min-w-0 flex-1 text-left">
940 - <div className="text-xs font-medium leading-snug">Legacy models</div>
941 - <div className="mt-1 text-xs font-normal leading-snug text-muted-foreground/70">
946 + <div className="text-xs font-medium leading-snug redesign:text-sm redesign:font-normal">
947 + Legacy models
948 + </div>
949 + <div className="mt-1 text-xs font-normal leading-snug text-muted-foreground/70 redesign:text-muted-foreground">
950 {legacySection.legacyModels.length} models
951 </div>
952 </div>
@@ -977,8 +985,8 @@ export const ModelPickerContent = memo(function ModelPickerContent(props: {
985 ? selectedModelKeySet.has(modelKey)
986 : modelKey === activeModelKey
987 }
980 - showSelection={selectedModelKeys !== undefined}
981 - showProvider
988 + showSelection={selectedModelKeys !== undefined || redesign}
989 + showProvider={rowsMixProviders || Boolean(model.subProvider)}
990 preferShortName={!isLocked}
991 useTriggerLabel={false}
992 showNewBadge={model.badge === "new"}
@@ -993,6 +1001,11 @@ export const ModelPickerContent = memo(function ModelPickerContent(props: {
1001 <ModelPickerProviderNotices
1002 setupEntries={providerSetupEntries}
1003 updateRequiredNotices={updateRequiredNotices}
1004 + emptyLabel={
1005 + selectedInstanceId === "favorites" && !isSearching
1006 + ? "No favorites yet"
1007 + : "No models found"
1008 + }
1009 onRequestClose={onRequestClose}
1010 onOpenProviderSetup={onOpenProviderSetup}
1011 />
apps/web/src/components/chat/ModelPickerSidebar.tsx
+1 -1
@@ -26,7 +26,7 @@ function describeUnavailableInstance(entry: ProviderInstanceEntry): string {
26 }
27
28 const SELECTED_INDICATOR_CLASS =
29 - "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";
29 + "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";
30 const BADGE_BASE_CLASS =
31 "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 ";
32 const NEW_BADGE_CLASS = `${BADGE_BASE_CLASS} text-update-foreground `;
apps/web/src/components/chat/OpenInPicker.tsx
-3
@@ -410,9 +410,6 @@ export const OpenInPicker = memo(function OpenInPicker({
410 className={cn(
411 isPanel ? THREAD_DETAILS_PANEL_ICON_CLASS : "size-3.5",
412 getOpenInIconClass(primaryOption.kind),
413 - // Full-color app icons outshout the panel's line icons until the row is in use.
414 - isPanel &&
415 - "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",
413 // A hairline keeps pale app icons from dissolving into the card.
414 isPanel &&
415 primaryOption.kind === "brand" &&
apps/web/src/components/chat/ThreadDetailsControl.tsx
+14 -2
@@ -53,10 +53,22 @@ export function ThreadDetailsControl({
53 "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",
54 parts[part],
55 multiline && "h-auto min-h-8 py-0.75 disabled:opacity-100 sm:h-auto",
56 - tone === "muted" && "text-muted-foreground/70 hover:text-foreground/80",
57 - tone === "primary" && "text-primary hover:text-primary",
56 + tone === "muted" &&
57 + "text-muted-foreground/70 hover:text-foreground/80 redesign:text-muted-foreground",
58 + tone === "primary" &&
59 + // The row surface forces a faint hover fill with !important; the solid pill keeps its own.
60 + "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",
61 tone === "destructive" &&
62 "text-destructive hover:text-destructive data-pressed:text-destructive",
63 + // PR row actions share one 20px pill with a 1px inset focus ring that stays clear of the
64 + // label. The solid pill draws it in the canvas color so it shows against the fill.
65 + part === "meta" &&
66 + (tone === "primary" || tone === "destructive") &&
67 + "redesign:h-5 redesign:focus-visible:ring-offset-0 redesign:focus-visible:ring-1",
68 + part === "meta" && tone === "primary" && "redesign:focus-visible:ring-background",
69 + part === "meta" &&
70 + tone === "destructive" &&
71 + "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",
72 className,
73 ),
74 },
apps/web/src/components/chat/ThreadDetailsPrRow.tsx
+1 -1
@@ -439,7 +439,7 @@ export function ThreadDetailsPrRow({
439 {detail !== null && (showChecks || trailingAction !== null || watching) ? (
440 <div className="pb-1.5">
441 {openRow(detail.title, "row", true)}
442 - <div className="flex h-5 min-w-0 items-center gap-0.5 ps-9 pe-1 text-xs text-muted-foreground">
442 + <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">
443 <span className="me-1 shrink-0 tabular-nums">#{number}</span>
444 {showChecks && checksRollup !== null ? (
445 <PullRequestChecksPopover
apps/web/src/components/chat/ThreadDetailsPrRows.tsx
+9 -2
@@ -6,7 +6,7 @@ import {
6 threadPullRequestKeyOf,
7 visibleThreadPullRequests,
8 } from "@t3tools/client-runtime/thread-pull-requests";
9 -import { Minus, Plus } from "lucide";
9 +import { ChevronDown, ChevronUp, Minus, Plus } from "lucide";
10 import { useState, type ComponentProps, type MouseEvent as ReactMouseEvent } from "react";
11
12 import { sourceControlClients } from "@t3tools/client-runtime/source-control-clients";
@@ -17,6 +17,7 @@ import { threadEnvironment } from "~/state/threads";
17 import { useAtomCommand } from "~/state/use-atom-command";
18
19 import { MorphIcon } from "~/components/MorphIcon";
20 +import { useClientSettings } from "~/hooks/useSettings";
21 import { linkedPullRequestSnapshotStatus, prStatusIndicator } from "../ThreadStatusIndicators";
22
23 import { ThreadDetailsPrRow } from "./ThreadDetailsPrRow";
@@ -75,6 +76,8 @@ export function ThreadDetailsPrRows({
76 onOpenLink: (event: ReactMouseEvent<HTMLElement>, url: string) => void;
77 }) {
78 const [expanded, setExpanded] = useState(false);
79 + // The plus already means "add" in this card (Add project script).
80 + const redesign = useClientSettings((s) => s.redesignEnabled);
81 const watch = useAtomCommand(threadEnvironment.watchPullRequest, { reportFailure: true });
82 const stopWatching = (link: ThreadPullRequestLink | null) =>
83 link?.watch === undefined
@@ -124,7 +127,11 @@ export function ThreadDetailsPrRows({
127 tone="muted"
128 className="w-full active:scale-100"
129 >
127 - <MorphIcon aria-hidden className="size-4 shrink-0" icon={expanded ? Minus : Plus} />
130 + <MorphIcon
131 + aria-hidden
132 + className="size-4 shrink-0"
133 + icon={expanded ? (redesign ? ChevronUp : Minus) : redesign ? ChevronDown : Plus}
134 + />
135 {expanded ? "Show less" : `Show ${rest.length} more`}
136 </ThreadDetailsControl>
137 </>
apps/web/src/components/chat/ThreadStatusLine.tsx
+8 -1
@@ -1,5 +1,6 @@
1 import type { ReactNode } from "react";
2
3 +import { useClientSettings } from "~/hooks/useSettings";
4 import { InlineButton } from "../ui/button";
5
6 export function ThreadStatusLine(props: {
@@ -11,6 +12,8 @@ export function ThreadStatusLine(props: {
12 // Set for clock-dependent labels to trigger updates.
13 readonly clockMinute?: string;
14 }) {
15 + // Muted, the action blends into the status text; the New design gives it full color.
16 + const redesign = useClientSettings((s) => s.redesignEnabled);
17 return (
18 <div
19 data-chat-thread-status-line="true"
@@ -19,7 +22,11 @@ export function ThreadStatusLine(props: {
22 {props.icon}
23 <span className="min-w-0 truncate">{props.label}</span>
24 <span aria-hidden="true">·</span>
22 - <InlineButton tone="muted" disabled={props.actionDisabled} onClick={props.onAction}>
25 + <InlineButton
26 + tone={redesign ? "default" : "muted"}
27 + disabled={props.actionDisabled}
28 + onClick={props.onAction}
29 + >
30 {props.actionLabel}
31 </InlineButton>
32 </div>
apps/web/src/components/chat/chatCanvasLayout.test.ts
+37
@@ -104,6 +104,43 @@ describe("chat canvas layout", () => {
104 expect(result.overlapsDetailsCard).toBe(false);
105 expect(result.chat).toEqual({ left: 424, width: 736, insetStart: 0, insetEnd: 0 });
106 });
107 + it("centers the chat beside a details card it would crowd, when asked", () => {
108 + const layout = (centerBesideDetails: boolean) =>
109 + resolveChatCanvasLayout({
110 + container: { width: 1344, height: 988 },
111 + maxChatWidth: 736,
112 + detailsCard: { left: 1052, right: 1332, bottom: 339 },
113 + preview: null,
114 + centerBesideDetails,
115 + }).chat;
116 + // Pushed left just enough to clear the card.
117 + expect(layout(false).left).toBe(1052 - 32 - 736);
118 + // Equal space on both sides of the chat.
119 + expect(layout(true)).toMatchObject({ left: (1052 - 736) / 2, width: 736 });
120 + });
121 + it("keeps the chat canvas-centered when it clears the details card", () => {
122 + const result = resolveChatCanvasLayout({
123 + container: { width: 2200, height: 988 },
124 + maxChatWidth: 736,
125 + detailsCard: { left: 1876, right: 2188, bottom: 339 },
126 + preview: null,
127 + centerBesideDetails: true,
128 + });
129 + expect(result.chat.left).toBe((2200 - 736) / 2);
130 + });
131 + it("moves the chat smoothly as a window with a details card grows", () => {
132 + const leftAt = (width: number) =>
133 + resolveChatCanvasLayout({
134 + container: { width, height: 988 },
135 + maxChatWidth: 736,
136 + detailsCard: { left: width - 292, right: width - 12, bottom: 339 },
137 + preview: null,
138 + centerBesideDetails: true,
139 + }).chat.left;
140 + for (let width = 1300; width < 1800; width += 1) {
141 + expect(Math.abs(leftAt(width + 1) - leftAt(width))).toBeLessThanOrEqual(1);
142 + }
143 + });
144 it("keeps a dragged or resized preview below the open find bar", () => {
145 const findBar = { left: 1292, right: 1572, bottom: 48 };
146 const layout = (lastInteraction: "drag" | "resize") =>
apps/web/src/components/chat/chatCanvasLayout.ts
+18 -1
@@ -30,6 +30,7 @@ export function resolveChatCanvasLayout({
30 composerHeight = 0,
31 detailsCard = null,
32 findBar = null,
33 + centerBesideDetails = false,
34 }: {
35 container: PreviewMiniPlayerSize;
36 preview: ChatCanvasPreview | null;
@@ -39,15 +40,31 @@ export function resolveChatCanvasLayout({
40 composerHeight?: number;
41 detailsCard?: PreviewMiniPlayerObstacles["detailsCard"];
42 findBar?: PreviewMiniPlayerObstacles["detailsCard"];
43 + /** Center the chat in the space left of the details card when it would otherwise crowd it. */
44 + centerBesideDetails?: boolean;
45 }) {
46 const centeredWidth = Math.max(0, Math.min(maxChatWidth, container.width - padding * 2));
47 const laneRight = detailsCard
48 ? detailsCard.left - DETAILS_CARD_CLEARANCE
49 : container.width - padding;
50 const normalWidth = Math.max(0, Math.min(centeredWidth, laneRight - padding));
51 + const canvasCenterLeft = (container.width - normalWidth) / 2;
52 + // Beside a card it would crowd, the chat centers between the card and the canvas edge. The shift
53 + // eases to zero as clearance grows, so very wide windows keep the chat still and a resize
54 + // never jumps it.
55 + const besideShift =
56 + detailsCard && centerBesideDetails
57 + ? Math.min(
58 + (container.width - detailsCard.left) / 2,
59 + Math.max(
60 + 0,
61 + (container.width - detailsCard.left) / 2 - (laneRight - canvasCenterLeft - normalWidth),
62 + ),
63 + )
64 + : 0;
65 const normalLeft = Math.max(
66 padding,
50 - Math.min((container.width - normalWidth) / 2, laneRight - normalWidth),
67 + Math.min(canvasCenterLeft - besideShift, laneRight - normalWidth),
68 );
69 let chat = {
70 left: normalLeft,
apps/web/src/components/chat/useThreadLifecycle.tsx
+11 -3
@@ -22,7 +22,11 @@ import {
22 ProviderInteractionMode,
23 RuntimeMode,
24 } from "@t3tools/contracts";
25 -import { effectiveSnoozed, threadWokeAt } from "@t3tools/client-runtime/state/thread-settled";
25 +import {
26 + effectiveSnoozed,
27 + snoozeWakeLabel,
28 + threadWokeAt,
29 +} from "@t3tools/client-runtime/state/thread-settled";
30 import { useAcknowledgeThreadWoke, useThreadActions } from "../../hooks/useThreadActions";
31 import { settleAndAdvance } from "../../settleAndAdvance";
32 import type { ChatShortcutCommands } from "./useChatShortcuts";
@@ -48,7 +52,7 @@ import { vcsEnvironment } from "../../state/vcs";
52 import { useChildThreadInputs, readThreadShell, waitForThreadShell } from "../../state/entities";
53 import { environmentShell } from "../../state/shell";
54 import { ThreadStatusLine } from "./ThreadStatusLine";
51 -import { formatRelativeTimeLabel, formatRelativeTimeUntilLabel } from "../../timestampFormat";
55 +import { formatRelativeTimeLabel } from "../../timestampFormat";
56 import { appAtomRegistry } from "../../rpc/atomRegistry";
57 import { readEnvironmentScope } from "../../state/session";
58 import { useAtomCommand } from "../../state/use-atom-command";
@@ -538,10 +542,14 @@ export function useThreadLifecycle(input: ThreadLifecycleInput) {
542 // The relative times read the clock; nowMinute re-renders them on the minute.
543 const snoozedUntil = activeThreadShell?.snoozedUntil ?? null;
544 const settledAt = activeThreadShell?.settledAt ?? null;
545 + // Same rounding as the sidebar's snoozed shelf, so both read the same hour.
546 + const snoozeWake = snoozedUntil
547 + ? snoozeWakeLabel(snoozedUntil, { now: `${nowMinute}:00.000Z` })
548 + : null;
549 const threadStatusLine = activeThreadSnoozed ? (
550 <ThreadStatusLine
551 icon={<AlarmClockIcon />}
544 - label={snoozedUntil ? `Snoozed, ${formatRelativeTimeUntilLabel(snoozedUntil)}` : "Snoozed"}
552 + label={snoozeWake && snoozeWake !== "now" ? `Snoozed, ${snoozeWake} left` : "Snoozed"}
553 clockMinute={nowMinute}
554 actionLabel={isUnsnoozing ? "Waking..." : "Wake now"}
555 actionDisabled={!canOperateThread || isUnsnoozing}
apps/web/src/components/pullRequest/PullRequestGhosts.tsx
+22 -21
@@ -51,30 +51,31 @@ const DEFAULT_DETAIL_TABS = [
51
52 export function PullRequestListGhost({ rows = 7, caption }: { rows?: number; caption?: string }) {
53 return (
54 - <div
55 - role="status"
56 - aria-label={caption ?? "Loading pull requests"}
57 - className="motion-safe:animate-skeleton space-y-0.5"
58 - >
54 + <div role="status" aria-label={caption ?? "Loading pull requests"} className="space-y-0.5">
55 + {/* Outside the pulse so the explanation stays readable. */}
56 {caption ? (
60 - <p className="px-3 pb-1 text-xs font-medium text-muted-foreground/70">{caption}</p>
57 + <p className="px-3 pb-1 text-xs font-medium text-muted-foreground/70 redesign:text-muted-foreground">
58 + {caption}
59 + </p>
60 ) : null}
62 - {Array.from({ length: rows }, (_, index) => (
63 - <div
64 - key={index}
65 - className="grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-2 rounded-md px-3 py-2.5"
66 - >
67 - <GhostBar className="size-4 rounded-full" />
68 - <div className="min-w-0 space-y-1.5">
69 - <GhostBar className={cn("h-4", TITLE_WIDTHS[index % TITLE_WIDTHS.length])} />
70 - <GhostBar className={cn("h-3.5", META_WIDTHS[index % META_WIDTHS.length])} />
71 - </div>
72 - <div className="flex flex-col items-end gap-1.5">
73 - <GhostBar className="w-12" />
74 - <GhostBar className="w-16" />
61 + <div className="motion-safe:animate-skeleton space-y-0.5">
62 + {Array.from({ length: rows }, (_, index) => (
63 + <div
64 + key={index}
65 + className="grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-2 rounded-md px-3 py-2.5"
66 + >
67 + <GhostBar className="size-4 rounded-full" />
68 + <div className="min-w-0 space-y-1.5">
69 + <GhostBar className={cn("h-4", TITLE_WIDTHS[index % TITLE_WIDTHS.length])} />
70 + <GhostBar className={cn("h-3.5", META_WIDTHS[index % META_WIDTHS.length])} />
71 + </div>
72 + <div className="flex flex-col items-end gap-1.5">
73 + <GhostBar className="w-12" />
74 + <GhostBar className="w-16" />
75 + </div>
76 </div>
76 - </div>
77 - ))}
77 + ))}
78 + </div>
79 </div>
80 );
81 }
apps/web/src/components/pullRequest/PullRequestsColumn.tsx
+2 -2
@@ -181,7 +181,7 @@ export function PullRequestsColumn({
181 {condensed ? (
182 <WorkspaceBreadcrumb ariaLabel="Pull request scope" className="overflow-hidden">
183 <WorkspaceBreadcrumbItem current className={cn(searchExpanded && "sr-only")}>
184 - <h1 className="truncate">Pull Requests</h1>
184 + <h1 className="truncate">Pull requests</h1>
185 </WorkspaceBreadcrumbItem>
186 {searchExpanded ? null : <WorkspaceBreadcrumbSeparator />}
187 <WorkspaceBreadcrumbItem className="shrink gap-1.5">
@@ -211,7 +211,7 @@ export function PullRequestsColumn({
211 ) : (
212 <WorkspaceBreadcrumb ariaLabel="Pull requests breadcrumb">
213 <WorkspaceBreadcrumbItem current>
214 - <h1 className="truncate">Pull Requests</h1>
214 + <h1 className="truncate">Pull requests</h1>
215 </WorkspaceBreadcrumbItem>
216 </WorkspaceBreadcrumb>
217 )}
apps/web/src/components/pullRequest/PullRequestsPage.tsx
+2 -2
@@ -1147,14 +1147,14 @@ export function PullRequestsPage() {
1147 const listBody = (
1148 <>
1149 {!capabilityKnown ? (
1150 - <PullRequestListGhost rows={7} />
1150 + <PullRequestListGhost rows={7} caption="Loading pull requests…" />
1151 ) : !pullRequestsSupported ? (
1152 <PullRequestsUnavailableState
1153 title="Pull requests unavailable"
1154 error="Update your T3 Code servers to browse pull requests."
1155 />
1156 ) : firstLoad ? (
1157 - <PullRequestListGhost rows={7} />
1157 + <PullRequestListGhost rows={7} caption="Loading pull requests…" />
1158 ) : listQuery.error && shownCount === 0 ? (
1159 <PullRequestsUnavailableState
1160 error={listQuery.error}
apps/web/src/components/pullRequest/guide/useReviewGuideWriter.ts
+1 -1
@@ -60,7 +60,7 @@ export function useReviewGuideWriter({
60 title: "Could not start a review guide",
61 description: readableFailure(
62 squashAtomCommandFailure(result),
63 - "Check the review guide model in Settings → Source Control.",
63 + "Check the review guide model in Settings → Source control.",
64 ),
65 });
66 }
apps/web/src/components/settings/AppearanceSettingsPanel.tsx
-29
@@ -351,35 +351,6 @@ export function AppearanceSettingsPanel() {
351 </div>
352 }
353 />
354 - {/* Only the new design grays project icons, so the option only exists there. */}
355 - {settings.redesignEnabled ? (
356 - <SettingsRow
357 - {...searchableSetting("sidebar-project-icon-colors")}
358 - description="Show project icons in the sidebar in full color instead of gray."
359 - resetAction={
360 - settings.sidebarProjectIconColors !==
361 - DEFAULT_UNIFIED_SETTINGS.sidebarProjectIconColors ? (
362 - <SettingResetButton
363 - label="colored project icons"
364 - onClick={() =>
365 - updateSettings({
366 - sidebarProjectIconColors: DEFAULT_UNIFIED_SETTINGS.sidebarProjectIconColors,
367 - })
368 - }
369 - />
370 - ) : null
371 - }
372 - control={
373 - <Switch
374 - checked={settings.sidebarProjectIconColors}
375 - onCheckedChange={(checked) =>
376 - updateSettings({ sidebarProjectIconColors: Boolean(checked) })
377 - }
378 - aria-label="Colored project icons"
379 - />
380 - }
381 - />
382 - ) : null}
354 <SettingsRow
355 {...searchableSetting("math-rendering")}
356 description="Typeset LaTeX math, such as $x^2$ or \[x^2\], in messages and Markdown previews. The composer keeps TeX source editable."
apps/web/src/components/settings/BetaSettingsPanel.tsx
+1 -1
@@ -25,7 +25,7 @@ export function BetaSettingsPanel() {
25 <SettingsSection id="beta" title="Beta">
26 <SettingsRow
27 {...searchableSetting("new-design")}
28 - description="Try the quieter design: gray sidebar icons, dimmer read threads, and simpler composer controls."
28 + description="Try the new design: a true black dark mode, dimmer read threads, and simpler composer controls."
29 resetAction={
30 settings.redesignEnabled !== DEFAULT_UNIFIED_SETTINGS.redesignEnabled ? (
31 <SettingResetButton
apps/web/src/components/settings/ProviderInstanceCard.tsx
+44 -37
@@ -37,6 +37,7 @@ import {
37 } from "@t3tools/shared/model";
38 import { cn } from "../../lib/utils";
39 import { useCopyToClipboard } from "../../hooks/useCopyToClipboard";
40 +import { useClientSettings } from "../../hooks/useSettings";
41 import { useStableCallback } from "../../hooks/useStableCallback";
42 import { normalizeProviderAccentColor } from "../../providerInstances";
43 import { Badge } from "../ui/badge";
@@ -676,6 +677,7 @@ export function ProviderInstanceCard({
677 const displayName =
678 instance.displayName?.trim() || driverOption?.label || String(instance.driver);
679 const accentColor = normalizeProviderAccentColor(instance.accentColor);
680 + const redesign = useClientSettings((settings) => settings.redesignEnabled);
681 const { copyToClipboard } = useCopyToClipboard<{ providerName: string }>({
682 onCopy: ({ providerName }) => {
683 toastManager.add({
@@ -968,7 +970,7 @@ export function ProviderInstanceCard({
970 data-slot="settings-row"
971 className={cn(
972 "group flex min-h-18 items-center gap-3 px-3 py-3 transition-colors sm:px-4",
971 - selected ? "bg-muted/45" : "hover:bg-muted/25",
973 + selected ? "bg-muted/45 redesign:bg-foreground/[0.06]" : "hover:bg-muted/25",
974 )}
975 >
976 <div
@@ -1056,7 +1058,8 @@ export function ProviderInstanceCard({
1058 <span
1059 inert={readOnly}
1060 aria-disabled={readOnly || undefined}
1059 - className={cn("inline-flex items-center gap-1", readOnly && "opacity-50")}
1061 + // Empty, it would still add a flex gap and pull the version off the column edge.
1062 + className={cn("inline-flex items-center gap-1 empty:hidden", readOnly && "opacity-50")}
1063 >
1064 {titleTailNode}
1065 {onDelete ? (
@@ -1075,6 +1078,43 @@ export function ProviderInstanceCard({
1078 </div>
1079 );
1080
1081 + // The New design gives provider status its own row instead of hanging it under the name field.
1082 + const statusContent = (
1083 + <>
1084 + <ProviderStatusDiagnostic detail={statusDiagnostic}>
1085 + <div
1086 + tabIndex={statusDiagnostic ? 0 : undefined}
1087 + className="flex min-w-0 flex-wrap items-baseline gap-x-1.5"
1088 + >
1089 + {editorStatusNode}
1090 + </div>
1091 + </ProviderStatusDiagnostic>
1092 + {urlAuthAction && onAcceptUrlAuth ? (
1093 + <div className="grid max-w-xl gap-1.5 pt-1 text-xs">
1094 + <p>{urlAuthAction.message}</p>
1095 + <code className="break-all text-2xs">{urlAuthAction.url}</code>
1096 + <Button
1097 + render={
1098 + <a
1099 + href={urlAuthAction.url}
1100 + target="_blank"
1101 + rel="noopener noreferrer"
1102 + onClick={() => onAcceptUrlAuth(urlAuthAction)}
1103 + />
1104 + }
1105 + size="xs"
1106 + variant="outline"
1107 + className="w-fit"
1108 + disabled={readOnly}
1109 + >
1110 + <ExternalLinkIcon />
1111 + Continue authentication
1112 + </Button>
1113 + </div>
1114 + ) : null}
1115 + </>
1116 + );
1117 +
1118 const runtimeFields = driverOption ? (
1119 <ProviderSettingsForm
1120 definition={driverOption}
@@ -1098,43 +1138,10 @@ export function ProviderInstanceCard({
1138 return (
1139 <>
1140 <SettingsSection title={displayName} icon={titleIconNode} headerAction={editorHeaderAction}>
1141 + {redesign ? <SettingsRow title="Status" status={statusContent} /> : null}
1142 <SettingsRow
1143 title="Display name"
1103 - status={
1104 - <>
1105 - <ProviderStatusDiagnostic detail={statusDiagnostic}>
1106 - <div
1107 - tabIndex={statusDiagnostic ? 0 : undefined}
1108 - className="flex min-w-0 flex-wrap items-baseline gap-x-1.5"
1109 - >
1110 - {editorStatusNode}
1111 - </div>
1112 - </ProviderStatusDiagnostic>
1113 - {urlAuthAction && onAcceptUrlAuth ? (
1114 - <div className="grid max-w-xl gap-1.5 pt-1 text-xs">
1115 - <p>{urlAuthAction.message}</p>
1116 - <code className="break-all text-2xs">{urlAuthAction.url}</code>
1117 - <Button
1118 - render={
1119 - <a
1120 - href={urlAuthAction.url}
1121 - target="_blank"
1122 - rel="noopener noreferrer"
1123 - onClick={() => onAcceptUrlAuth(urlAuthAction)}
1124 - />
1125 - }
1126 - size="xs"
1127 - variant="outline"
1128 - className="w-fit"
1129 - disabled={readOnly}
1130 - >
1131 - <ExternalLinkIcon />
1132 - Continue authentication
1133 - </Button>
1134 - </div>
1135 - ) : null}
1136 - </>
1137 - }
1144 + {...(redesign ? {} : { status: statusContent })}
1145 control={
1146 <div
1147 inert={readOnly}
apps/web/src/components/settings/ProviderModelsSection.tsx
+2 -1
@@ -333,7 +333,8 @@ export function ProviderModelsSection({
333 type="button"
334 size="xs"
335 variant="ghost-muted"
336 - className="ml-auto"
336 + // The ghost padding would inset the label from the column edge the toggles align to.
337 + className="ml-auto redesign:-me-2"
338 onClick={() => setIsAdding(true)}
339 >
340 <PlusIcon className="size-3" />
apps/web/src/components/settings/ProviderSettingsPanel.tsx
+7 -3
@@ -1000,7 +1000,8 @@ export function EnvironmentProviderSettings({
1000 ) : null
1001 }
1002 headerAction={
1003 - <div className="flex min-w-0 items-center gap-2">
1003 + // The ghost button's padding would inset its label; the New design aligns the text to the card edge.
1004 + <div className="flex min-w-0 items-center gap-2 redesign:-me-2">
1005 <ProviderUpdatesAction />
1006 <Tooltip>
1007 <TooltipTrigger
@@ -1069,10 +1070,13 @@ export function EnvironmentProviderSettings({
1070 </ScrollArea>
1071 </div>
1072
1072 - <div className="min-w-0 @min-[48rem]/providers:min-h-0">
1073 + <div data-provider-detail className="min-w-0 @min-[48rem]/providers:min-h-0">
1074 {selectedRow ? (
1075 <ScrollArea scrollFade chainVerticalScroll className="@min-[48rem]/providers:h-full">
1075 - <div className="space-y-6 p-4">{renderProviderInstance(selectedRow, "editor")}</div>
1076 + {/* Flat sections run dividers edge to edge and inset text like the list beside them. */}
1077 + <div className="space-y-6 p-4 redesign:px-0">
1078 + {renderProviderInstance(selectedRow, "editor")}
1079 + </div>
1080 </ScrollArea>
1081 ) : (
1082 <div className="p-6 text-sm text-muted-foreground">
apps/web/src/components/settings/SettingsGroup.tsx
+1
@@ -13,6 +13,7 @@ export function SettingsGroup({
13 }) {
14 return (
15 <div
16 + data-slot="settings-group"
17 {...props}
18 className={cn(
19 "relative overflow-visible text-foreground",
apps/web/src/components/settings/SettingsPanels.tsx
-4
@@ -409,9 +409,6 @@ export function useSettingsRestore(onRestored?: () => void) {
409 ...(settings.mathRenderingEnabled !== DEFAULT_UNIFIED_SETTINGS.mathRenderingEnabled
410 ? ["Render math"]
411 : []),
412 - ...(settings.sidebarProjectIconColors !== DEFAULT_UNIFIED_SETTINGS.sidebarProjectIconColors
413 - ? ["Colored project icons"]
414 - : []),
412 ...(settings.redesignEnabled !== DEFAULT_UNIFIED_SETTINGS.redesignEnabled
413 ? ["New design"]
414 : []),
@@ -588,7 +585,6 @@ export function useSettingsRestore(onRestored?: () => void) {
585 diffColorScheme: DEFAULT_UNIFIED_SETTINGS.diffColorScheme,
586 chatWidth: DEFAULT_UNIFIED_SETTINGS.chatWidth,
587 mathRenderingEnabled: DEFAULT_UNIFIED_SETTINGS.mathRenderingEnabled,
591 - sidebarProjectIconColors: DEFAULT_UNIFIED_SETTINGS.sidebarProjectIconColors,
588 redesignEnabled: DEFAULT_UNIFIED_SETTINGS.redesignEnabled,
589 timestampFormat: DEFAULT_UNIFIED_SETTINGS.timestampFormat,
590 notificationMode: DEFAULT_UNIFIED_SETTINGS.notificationMode,
apps/web/src/components/settings/SourceControlSettings.tsx
+3 -3
@@ -598,7 +598,7 @@ export function SourceControlSettingsPanel() {
598 title={`Version Control${environmentSuffix}`}
599 headerAction={scanButton}
600 />
601 - <SourceControlSectionSkeleton title="Source Control Providers" />
601 + <SourceControlSectionSkeleton title="Source control providers" />
602 </>
603 ) : hasDiscoveryItems ? (
604 <>
@@ -621,8 +621,8 @@ export function SourceControlSettingsPanel() {
621 id={hasVersionControlSystems ? undefined : searchableSetting("source-control").id}
622 title={
623 hasVersionControlSystems
624 - ? "Source Control Providers"
625 - : `Source Control Providers${environmentSuffix}`
624 + ? "Source control providers"
625 + : `Source control providers${environmentSuffix}`
626 }
627 headerAction={hasVersionControlSystems ? null : scanButton}
628 >
apps/web/src/components/settings/ThemePreviewCircles.tsx
+1 -1
@@ -172,7 +172,7 @@ export function ThemePreviewCircles({
172 aria-label={`Use ${label} ${mode} mode`}
173 aria-pressed={isPicked}
174 className={cn(
175 - "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",
175 + "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",
176 isPicked && "hover:scale-100",
177 )}
178 onClick={(event) => {
apps/web/src/components/settings/ThemeSettings.tsx
+7 -7
@@ -191,7 +191,7 @@ function ThemeLibraryCard({
191 : `Use ${mode} variant, currently ${selected.option.label}`
192 }
193 aria-pressed={isActive}
194 - 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"
194 + 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"
195 style={{
196 transform: `translateX(calc(-50% + ${rootOffsetX}px))`,
197 }}
@@ -677,13 +677,13 @@ export function ThemeLibrary({
677 aria-label={mode === "system" ? "Follow the system appearance" : `Use ${mode} mode`}
678 aria-pressed={isActive}
679 className={cn(
680 - "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",
680 + // The accent ring marks the picked tile; focus is a neutral ring set inside it with a gap.
681 + "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",
682 isActive
682 - ? "border-transparent bg-accent/30"
683 + ? "border-transparent bg-accent/30 ring-1 ring-inset ring-ring redesign:ring-2"
684 : "border-border/70 bg-card/60 hover:bg-accent/10",
685 )}
686 key={mode}
686 - style={isActive ? { boxShadow: "inset 0 0 0 1px var(--ring)" } : undefined}
687 onClick={() => setMode(mode)}
688 type="button"
689 >
@@ -827,12 +827,12 @@ export function ThemeLibrary({
827
828 return (
829 <div className="space-y-3">
830 - <h3 className="px-3 text-sm font-normal text-foreground/70 sm:px-4">
830 + <h3 className="px-3 text-sm font-normal text-foreground/70 sm:px-4 redesign:text-base redesign:font-semibold redesign:text-foreground">
831 {searchableSetting("color-scheme").title}
832 </h3>
833 {renderModeTiles()}
834 - <div className="flex min-h-8 flex-wrap items-center justify-between gap-3 px-3 pt-2 sm:px-4">
835 - <h3 className="text-sm font-normal text-foreground/70">
834 + <div className="flex min-h-8 flex-wrap items-center justify-between gap-3 px-3 pt-2 sm:px-4 redesign:pt-5">
835 + <h3 className="text-sm font-normal text-foreground/70 redesign:text-base redesign:font-semibold redesign:text-foreground">
836 {searchableSetting("theme").title}
837 </h3>
838 <div className="flex flex-wrap items-center justify-end gap-2">
apps/web/src/components/settings/settingsSearch.test.ts
-1
@@ -121,7 +121,6 @@ describe("searchSettings", () => {
121 "auto-settle-inactive-threads",
122 "auto-settle-merged-threads",
123 "days-before-auto-settle",
124 - "sidebar-project-icon-colors",
124 ]);
125 expect(available.map((item) => item.id).filter((id) => gatedIds.has(id))).toEqual([]);
126 });
apps/web/src/components/settings/settingsSearch.ts
+4 -14
@@ -59,7 +59,6 @@ export interface SettingsSearchItem {
59 readonly localEnvironmentOnly?: boolean;
60 readonly wslAvailableOnly?: boolean;
61 readonly managedTunnelOnly?: boolean;
62 - readonly redesignOnly?: boolean;
62 readonly secondary?: boolean;
63 readonly requiresThreadAutoSettlement?: boolean;
64 }
@@ -74,7 +73,6 @@ export interface SettingsSearchAvailability {
73 readonly isWslSettingsRowVisible: boolean;
74 readonly hasThreadAutoSettlement: boolean;
75 readonly managedTunnelActive?: boolean;
77 - readonly redesignEnabled?: boolean;
76 }
77
78 export const SETTINGS_SECTION_LABELS: Readonly<Record<SettingsPath, string>> = {
@@ -86,8 +84,8 @@ export const SETTINGS_SECTION_LABELS: Readonly<Record<SettingsPath, string>> = {
84 "/settings/snap-shot": "SnapShots",
85 "/settings/providers": "Providers",
86 "/settings/integrations": "Integrations",
89 - "/settings/scheduled-tasks": "Scheduled Tasks",
90 - "/settings/source-control": "Source Control",
87 + "/settings/scheduled-tasks": "Scheduled tasks",
88 + "/settings/source-control": "Source control",
89 "/settings/storage": "Storage",
90 "/settings/connections": "Connections",
91 "/settings/beta": "Beta",
@@ -265,13 +263,6 @@ export const SETTINGS_SEARCH_ITEMS = [
263 to: "/settings/appearance",
264 searchTerms: ["wide full width column layout messages composer monitor"],
265 },
268 - {
269 - id: "sidebar-project-icon-colors",
270 - title: "Colored project icons",
271 - to: "/settings/appearance",
272 - searchTerms: ["sidebar favicon logo grayscale gray color"],
273 - redesignOnly: true,
274 - },
266 {
267 id: "math-rendering",
268 title: "Render math",
@@ -360,7 +351,7 @@ export const SETTINGS_SEARCH_ITEMS = [
351 id: "new-design",
352 title: "New design",
353 to: "/settings/beta",
363 - searchTerms: ["beta redesign look style sidebar composer gray quieter classic"],
354 + searchTerms: ["beta redesign look style sidebar composer black quieter classic"],
355 },
356 {
357 id: "working-shelf",
@@ -1183,8 +1174,7 @@ export function filterAvailableSettingsSearchItems(
1174 (!item.localEnvironmentOnly || !availability.localEnvironmentDisabled) &&
1175 (!item.wslAvailableOnly || availability.isWslSettingsRowVisible) &&
1176 (!item.requiresThreadAutoSettlement || availability.hasThreadAutoSettlement) &&
1186 - (!item.managedTunnelOnly || availability.managedTunnelActive === true) &&
1187 - (!item.redesignOnly || availability.redesignEnabled === true),
1177 + (!item.managedTunnelOnly || availability.managedTunnelActive === true),
1178 );
1179 }
1180
apps/web/src/components/settings/useAvailableSettingsSearchItems.ts
-3
@@ -3,7 +3,6 @@ import { AuthEnvironmentMaintainScope } from "@t3tools/contracts";
3 import { usePrimaryCloudLinkState } from "~/cloud/primaryCloudLinkState";
4 import { hasCloudPublicConfig } from "~/cloud/publicConfig";
5 import { isElectron } from "~/env";
6 -import { useClientSettings } from "~/hooks/useSettings";
6 import { isLocalEnvironmentDisabled } from "~/localEnvironment";
7 import { desktopWslStateAtom } from "~/state/desktopWslState";
8 import { useEnvironments, usePrimaryEnvironmentId } from "~/state/environments";
@@ -54,7 +53,6 @@ export function useAvailableSettingsSearchItems(scopeSearch: SettingsScopeSearch
53 isElectron && canManageLocalBackend ? desktopWslStateAtom : null,
54 );
55 const cloudPublicConfig = hasCloudPublicConfig() === true;
57 - const redesignEnabled = useClientSettings((settings) => settings.redesignEnabled);
56 const wslSettingsRowVisible =
57 isWslSettingsRowVisible({ state: desktopWsl.data, error: desktopWsl.error }) === true;
58
@@ -68,6 +66,5 @@ export function useAvailableSettingsSearchItems(scopeSearch: SettingsScopeSearch
66 isWslSettingsRowVisible: wslSettingsRowVisible,
67 hasThreadAutoSettlement,
68 managedTunnelActive,
71 - redesignEnabled,
69 });
70 }
apps/web/src/components/sidebar/SidebarChrome.tsx
+1 -1
@@ -212,7 +212,7 @@ const SidebarUtilityMenu = memo(function SidebarUtilityMenu() {
212 {pullRequestsSupported ? (
213 <SidebarUtilityItem
214 icon={<PullRequestGlyph.pullRequest />}
215 - label="Pull Requests"
215 + label="Pull requests"
216 onClick={handlePullRequestsClick}
217 />
218 ) : null}
apps/web/src/components/sidebar/SidebarListMarkers.tsx
+4 -3
@@ -103,7 +103,7 @@ export function SidebarDragBoundary(props: {
103 export function SidebarSectionHeader(props: {
104 marker: "working-header" | "snoozed-header" | "settled-header";
105 label: string;
106 - /** Shown as a muted trailing count while the shelf is collapsed. */
106 + /** A muted trailing count; classic shows it only while the shelf is collapsed. */
107 count: number;
108 className?: string;
109 dragging?: boolean;
@@ -118,6 +118,7 @@ export function SidebarSectionHeader(props: {
118 : "settled";
119 const redesign = useClientSettings((s) => s.redesignEnabled);
120 const collapsedCount = props.toggle.expanded ? null : props.count;
121 + const count = redesign ? props.count : collapsedCount;
122 return (
123 <SortableSidebarMarker
124 marker={props.marker}
@@ -130,8 +131,8 @@ export function SidebarSectionHeader(props: {
131 tone={props.isDropTarget ? "accent" : props.dragging ? "emphasized" : "muted"}
132 data-testid={`sidebar-${shelf}-shelf-toggle`}
133 accessory={
133 - redesign && collapsedCount !== null ? (
134 - <span className="font-normal tabular-nums">{collapsedCount}</span>
134 + redesign && count !== null ? (
135 + <span className="font-normal tabular-nums">{count}</span>
136 ) : null
137 }
138 >
apps/web/src/components/sidebar/SidebarThreadHeader.tsx
+1 -1
@@ -62,7 +62,7 @@ export function SidebarThreadHeader({
62 <div className="flex items-center gap-1">
63 <div
64 ref={searchFieldRef}
65 - 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"
65 + 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"
66 >
67 <SearchIcon className="size-4 shrink-0 text-(--sidebar-icon-color)" />
68 <SidebarInput
apps/web/src/components/sidebar/SidebarThreadRow.tsx
+40 -21
@@ -111,7 +111,6 @@ import { Menu, MenuItem, MenuPopup, MenuSeparator, MenuShortcut, MenuTrigger } f
111 import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
112 import { MiddleTruncate } from "../ui/middle-truncate";
113 import { useThreadHasUnsentDraft } from "../../composerDraftStore";
114 -import { useClientSettings } from "../../hooks/useSettings";
114
115 // The fields thread rows show. Provider status pushes refresh `checkedAt`,
116 // status and auth on every provider; leaving those out keeps each
@@ -198,7 +197,7 @@ function SidebarProviderStack(props: {
197 acpRegistryIconUrl={currentEntry.acpRegistryIconUrl}
198 showBadge={showInstanceBadge}
199 size="compact"
201 - iconClassName="opacity-60 redesign:opacity-50 redesign:grayscale"
200 + iconClassName="opacity-60"
201 />
202 );
203 if (stack.length === 1) {
@@ -643,7 +642,6 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
642 wokeAtDate !== null &&
643 (lastVisitedDate === null || lastVisitedDate < wokeAtDate) &&
644 thread.settledOverride !== "settled";
646 - const projectIconColors = useClientSettings((s) => s.sidebarProjectIconColors);
645 const shouldRecede = shouldRecedeSidebarThread({
646 status,
647 isUnread,
@@ -896,9 +894,9 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
894 "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",
895 variantAction === "unsettle" &&
896 !props.isActive &&
899 - "[&:not(:hover):not(:focus-within)_*]:text-secondary-label/70",
897 + "[&:not(:hover):not(:focus-within)_*]:text-secondary-label/70 redesign:[&:not(:hover):not(:focus-within)_*]:text-secondary-label",
898 props.isActive
901 - ? "bg-sidebar-row-active text-sidebar-foreground light:shadow-xs light:ring-1 light:ring-inset light:ring-sidebar-border/70"
899 + ? "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"
900 : isSelected || props.sweepAction !== null
901 ? "bg-sidebar-row-selected text-sidebar-foreground light:ring-1 light:ring-inset light:ring-sidebar-border/70"
902 : hasUnsentDraft
@@ -988,7 +986,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
986 : cn(
987 "truncate group-focus-within/sidebar-row:text-foreground group-hover/sidebar-row:text-foreground",
988 shouldRecede
991 - ? "text-secondary-label/70"
989 + ? "text-secondary-label/70 redesign:text-secondary-label"
990 : props.isActive || isWoke || status === "input" || status === "request"
991 ? "text-foreground"
992 : isUnread
@@ -1132,7 +1130,8 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
1130 Regenerating title
1131 </span>
1132 ) : null}
1135 - {prBadge}
1133 + {/* Shelf rows are one line; the New design gives the title the room a PR number takes. */}
1134 + {prBadge ? <span className="contents redesign:hidden">{prBadge}</span> : null}
1135 {sortable?.isDragging ? (
1136 dragDestination
1137 ) : (
@@ -1149,7 +1148,9 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
1148 )}
1149 >
1150 {variantAction === "unsnooze" && props.snoozeWakeLabelText !== null ? (
1152 - <span className="text-xs text-info-foreground tabular-nums">
1151 + <span className="inline-flex items-center gap-1 text-xs text-info-foreground tabular-nums">
1152 + {/* The clock tells a wake time from an age at a glance. */}
1153 + <AlarmClockIcon aria-hidden className="hidden size-3 redesign:block" />
1154 {props.snoozeWakeLabelText}
1155 </span>
1156 ) : isWoke ? (
@@ -1242,6 +1243,14 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
1243 }
1244
1245 const diff = latestRunDiff(thread);
1246 + // Only the provider icon would remain; the New design drops the line instead of leaving it blank.
1247 + const metaLineEmpty =
1248 + !thread.branch &&
1249 + !showsScratchMachine &&
1250 + prBadge === null &&
1251 + diff === null &&
1252 + !isRemote &&
1253 + runningTerminalIds.length === 0;
1254
1255 return (
1256 <li
@@ -1250,6 +1259,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
1259 {...(fileDropHandlers ?? {})}
1260 className={cn(
1261 "list-none py-0.5 [content-visibility:auto] [contain-intrinsic-size:auto_78px]",
1262 + metaLineEmpty && "redesign:[contain-intrinsic-size:auto_58px]",
1263 sortable?.isDragging && "relative z-20",
1264 )}
1265 >
@@ -1273,20 +1283,16 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
1283 }
1284 >
1285 {accessibleTitle}
1276 - <div className="relative z-10 h-[4.875rem] px-(--sidebar-row-content-inset) py-(--sidebar-content-inset)">
1286 + <div
1287 + className={cn(
1288 + "relative z-10 h-[4.875rem] px-(--sidebar-row-content-inset) py-(--sidebar-content-inset)",
1289 + metaLineEmpty && "redesign:h-auto",
1290 + )}
1291 + >
1292 <div className="flex h-5 min-w-0 items-center gap-1.5">
1293 {draftIndicator}
1294 {props.project ? (
1280 - <ProjectFavicon
1281 - project={props.project}
1282 - className={cn(
1283 - "size-4 shrink-0",
1284 - // Repeated brand colors outshout titles; color returns on the row in focus.
1285 - !props.isActive &&
1286 - !projectIconColors &&
1287 - "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",
1288 - )}
1289 - />
1295 + <ProjectFavicon project={props.project} className="size-4 shrink-0" />
1296 ) : null}
1297 {/* Left of the status slot, the pin would slide when hover swaps the
1298 label for the wider row controls. */}
@@ -1442,15 +1448,28 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
1448 )}
1449 {props.sweepAction !== null ? dragDestination : null}
1450 </div>
1445 - <div className="mt-1 flex min-w-0">
1451 + <div className="mt-1 flex min-w-0 items-center gap-1.5">
1452 {title}
1453 {isRegeneratingTitle ? (
1454 <span role="status" className="sr-only">
1455 Regenerating title
1456 </span>
1457 ) : null}
1458 + {metaLineEmpty ? (
1459 + <span aria-hidden className="hidden shrink-0 redesign:inline-flex">
1460 + <SidebarProviderStack
1461 + thread={thread}
1462 + providerEntryByInstanceId={props.providerEntryByInstanceId}
1463 + />
1464 + </span>
1465 + ) : null}
1466 </div>
1453 - <div className="mt-0.5 flex min-w-0 items-center gap-1.5 text-secondary-label text-xs">
1467 + <div
1468 + className={cn(
1469 + "mt-0.5 flex min-w-0 items-center gap-1.5 text-secondary-label text-xs",
1470 + metaLineEmpty && "redesign:hidden",
1471 + )}
1472 + >
1473 {thread.branch ? (
1474 <>
1475 <ThreadWorktreeIndicator thread={thread} />
apps/web/src/components/ui/collapsible-section-header.tsx
+3 -2
@@ -35,11 +35,12 @@ export function CollapsibleSectionHeader({
35 <span className="shrink-0">{children}</span>
36 <span
37 aria-hidden
38 - // A collapsed header with a trailing count drops its rule so it doesn't read as a leader.
38 + // A header with a trailing count drops its rule so it doesn't read as a leader. The New
39 + // design drops it in both states so a shelf header looks the same open or closed.
40 className={cn(
41 "h-px min-w-2 flex-1",
42 tones[tone].line,
42 - !expanded && accessory && "invisible",
43 + accessory && (expanded ? "redesign:invisible" : "invisible"),
44 )}
45 />
46 {accessory}
apps/web/src/components/ui/combobox.tsx
+1 -1
@@ -192,7 +192,7 @@ function ComboboxItem({
192 return (
193 <ComboboxPrimitive.Item
194 className={cn(
195 - "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",
195 + "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",
196 className,
197 )}
198 data-slot="combobox-item"
apps/web/src/components/ui/command.tsx
+1 -1
@@ -213,7 +213,7 @@ function CommandFooter({ className, ...props }: React.ComponentProps<"div">) {
213 return (
214 <div
215 className={cn(
216 - "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",
216 + "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",
217 className,
218 )}
219 data-slot="command-footer"
apps/web/src/components/ui/kbd.tsx
+1 -1
@@ -6,7 +6,7 @@ function Kbd({ className, ...props }: React.ComponentProps<"kbd">) {
6 return (
7 <kbd
8 className={cn(
9 - "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",
9 + "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",
10 className,
11 )}
12 data-slot="kbd"
apps/web/src/components/usage/UsageLimitsPooled.tsx
+9 -1
@@ -402,7 +402,15 @@ function SegmentTriggers({
402 className="min-w-0 truncate font-medium text-foreground"
403 />
404 ) : null}
405 - <span className="shrink-0 font-semibold text-foreground tabular-nums">{remaining}%</span>
405 + <span
406 + className={cn(
407 + "shrink-0 font-semibold text-foreground tabular-nums",
408 + // A single-account bar repeats the headline percentage.
409 + !showAccountName && "redesign:hidden",
410 + )}
411 + >
412 + {remaining}%
413 + </span>
414 {resetsIn || credits ? (
415 <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">
416 {resetsIn?.replace("resets in ", "↻ ") ?? ""}
apps/web/src/components/usage/UsagePage.tsx
+5 -3
@@ -411,6 +411,8 @@ export function UsagePage() {
411 variant="segmented"
412 value={[String(windowDays)]}
413 disabled={showingLimits}
414 + // Limits are always current; the New design hides the period instead of greying it.
415 + className={showingLimits ? "redesign:hidden" : undefined}
416 onValueChange={(next) => {
417 const value = next[0];
418 if (value) selectWindow(Number(value));
@@ -467,7 +469,7 @@ export function UsagePage() {
469 aria-label="Usage period"
470 size="compact"
471 variant="ghost"
470 - className="w-auto min-w-0"
472 + className={cn("w-auto min-w-0", showingLimits && "redesign:hidden")}
473 >
474 <SelectValue>
475 {WINDOW_OPTIONS.find((option) => option.days === windowDays)?.label}
@@ -1335,7 +1337,7 @@ function UsageEnvironmentFilter({
1337 />
1338 ) : (
1339 <ChevronDownIcon
1338 - 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"
1340 + 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"
1341 aria-hidden
1342 />
1343 )}
@@ -1448,7 +1450,7 @@ function UsageProviderFilter({
1450 <MenuTrigger render={<InlineButton />} className="group/usage-provider min-w-0 max-w-full">
1451 <span className="min-w-0 truncate">{label}</span>
1452 <ChevronDownIcon
1451 - 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"
1453 + 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"
1454 aria-hidden
1455 />
1456 </MenuTrigger>
apps/web/src/index.css
+55
@@ -1283,6 +1283,52 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
1283 }
1284 }
1285
1286 +/* New design: modified files get a muted blue so added and deleted files lead. Built from the
1287 + info token, which themes do not override, so it stays blue in every theme. */
1288 +html[data-redesign] {
1289 + --diff-modified-icon: color-mix(in srgb, var(--info-foreground) 50%, var(--muted-foreground));
1290 +}
1291 +
1292 +html.dark[data-redesign] {
1293 + /* On black a gray mix stays as bright as the blue, so dim with transparency instead. */
1294 + --diff-modified-icon: color-mix(in srgb, var(--info-foreground) 65%, transparent);
1295 + --diff-added-icon: var(--success-foreground);
1296 +}
1297 +
1298 +/* Blue-orange already spends blue on additions. */
1299 +html[data-redesign][data-diff-color-scheme="blue-orange"] {
1300 + --diff-modified-icon: var(--muted-foreground);
1301 + --diff-added-icon: initial;
1302 +}
1303 +
1304 +html.dark[data-redesign][data-diff-color-scheme="blue-orange"] {
1305 + --diff-modified-icon: color-mix(in srgb, var(--muted-foreground) 65%, transparent);
1306 +}
1307 +
1308 +/* New design: sections in the provider detail pane sit flat in its card instead of nesting
1309 + cards inside it. Headings and row dividers still separate them. */
1310 +[data-redesign] [data-provider-detail] [data-slot="settings-group"] {
1311 + border-color: transparent;
1312 + background: transparent;
1313 + box-shadow: none;
1314 +}
1315 +
1316 +/* New design: a diff header's copy button shows on file hover or focus. */
1317 +@media (hover: hover) {
1318 + [data-redesign] diffs-container:not(:hover) [data-diff-copy-path]:not(:focus-within) {
1319 + opacity: 0;
1320 + }
1321 +}
1322 +
1323 +/* New design: the default dark canvas is true black, matching the sidebar. Raised surfaces
1324 + keep the tone they had over neutral-950 so cards, popovers, and the composer still lift. */
1325 +html.dark[data-redesign]:not([data-theme-id]) {
1326 + --background: #000;
1327 + --surface-raised: color-mix(in srgb, var(--color-neutral-950) 97%, var(--color-white));
1328 + --card: color-mix(in srgb, var(--color-neutral-950) 97%, var(--color-white));
1329 + --popover: color-mix(in srgb, var(--color-neutral-950) 97%, var(--color-white));
1330 +}
1331 +
1332 /* Theme files are expressed in app color roles and mapped to the existing
1333 semantic surface tokens here. Keep this block after the sidebar-version
1334 compatibility overrides so both navigation implementations receive the
@@ -2183,6 +2229,15 @@ code {
2229 font-size: 0.75rem;
2230 }
2231
2232 +/* New design: tables sit one step under 15px prose instead of three. */
2233 +[data-redesign] .chat-markdown table {
2234 + font-size: 0.875rem;
2235 +}
2236 +
2237 +[data-redesign] .chat-markdown :is(td, th) {
2238 + text-wrap: pretty;
2239 +}
2240 +
2241 /* Top-aligned so wrapped rows share a first line, and the outer columns sit
2242 flush with the surrounding prose. */
2243 .chat-markdown th,
apps/web/src/lib/diffRendering.ts
+31 -5
@@ -1,16 +1,22 @@
1 import { parsePatchFiles } from "@pierre/diffs/utils/parsePatchFiles";
2 import { parseDiffFromFile } from "@pierre/diffs";
3 import type { FileDiffMetadata } from "@pierre/diffs/types";
4 +import { READABLE_LIGHT_THEME_NAME } from "./readableSyntaxTheme";
5
5 -const DIFF_THEME_NAMES = {
6 +export const DIFF_THEME_NAMES = {
7 light: "pierre-light",
8 dark: "pierre-dark",
9 + readableLight: READABLE_LIGHT_THEME_NAME,
10 } as const;
11
12 export type DiffThemeName = (typeof DIFF_THEME_NAMES)[keyof typeof DIFF_THEME_NAMES];
13
14 export function resolveDiffThemeName(theme: "light" | "dark"): DiffThemeName {
13 - return theme === "dark" ? DIFF_THEME_NAMES.dark : DIFF_THEME_NAMES.light;
15 + if (theme === "dark") return DIFF_THEME_NAMES.dark;
16 + // The New design (data-redesign on <html>) keeps light syntax readable on every code surface.
17 + return typeof document !== "undefined" && document.documentElement.hasAttribute("data-redesign")
18 + ? DIFF_THEME_NAMES.readableLight
19 + : DIFF_THEME_NAMES.light;
20 }
21
22 const FNV_OFFSET_BASIS_32 = 0x811c9dc5;
@@ -275,13 +281,13 @@ export function buildFileDiffContentVersion(fileDiff: FileDiffMetadata): number
281 export function getDiffCollapseIconClassName(fileDiff: FileDiffMetadata): string {
282 switch (fileDiff.type) {
283 case "new":
278 - return "text-[var(--diffs-addition-base)]";
284 + return "text-[var(--diffs-addition-base)] redesign:text-muted-foreground/80";
285 case "deleted":
280 - return "text-[var(--diffs-deletion-base)]";
286 + return "text-[var(--diffs-deletion-base)] redesign:text-muted-foreground/80";
287 case "change":
288 case "rename-pure":
289 case "rename-changed":
284 - return "text-[var(--diffs-modified-base)]";
290 + return "text-[var(--diffs-modified-base)] redesign:text-muted-foreground/80";
291 default:
292 return "text-muted-foreground/80";
293 }
@@ -350,4 +356,24 @@ export const DIFF_SURFACE_THEME_UNSAFE_CSS = `
356 background-color: var(--diffs-bg) !important;
357 color: var(--code-foreground) !important;
358 }
359 +
360 +/* The library's change-icon colors are tuned for dark canvases; light mode takes the app's darker tokens. */
361 +[data-change-icon="new"] {
362 + color: var(
363 + --diff-added-icon,
364 + light-dark(var(--diff-addition-foreground), var(--diffs-addition-base))
365 + ) !important;
366 +}
367 +[data-change-icon="deleted"] {
368 + color: light-dark(var(--diff-deletion-foreground), var(--diffs-deletion-base)) !important;
369 +}
370 +/* The page sets --diff-modified-icon under the New design: a muted T3 blue, so the common case stays quiet. */
371 +[data-change-icon="change"],
372 +[data-change-icon="rename-pure"],
373 +[data-change-icon="rename-changed"] {
374 + color: var(
375 + --diff-modified-icon,
376 + light-dark(var(--info-foreground), var(--diffs-modified-base))
377 + ) !important;
378 +}
379 `;
apps/web/src/lib/readableSyntaxTheme.test.ts new
+53
@@ -0,0 +1,53 @@
1 +import { describe, expect, it } from "vite-plus/test";
2 +
3 +import { readableOnLightCode, readableSyntaxColor } from "./readableSyntaxTheme";
4 +
5 +function luminance(hex: string): number {
6 + const [r, g, b] = [1, 3, 5].map((start) => {
7 + const value = Number.parseInt(hex.slice(start, start + 2), 16) / 255;
8 + return value <= 0.03928 ? value / 12.92 : ((value + 0.055) / 1.055) ** 2.4;
9 + }) as [number, number, number];
10 + return 0.2126 * r + 0.7152 * g + 0.0722 * b;
11 +}
12 +
13 +function contrast(foreground: string, background: string): number {
14 + return (luminance(background) + 0.05) / (luminance(foreground) + 0.05);
15 +}
16 +
17 +// pierre-light's faintest syntax colors: yellow, cyan, orange, teal, green, pink.
18 +const PIERRE_LIGHT_FAINT = ["#d5a910", "#08c0ef", "#d5901c", "#1ca1c7", "#199f43", "#d32a61"];
19 +// Light code surfaces: the code background, added and deleted lines, and changed words on each.
20 +const LIGHT_CODE_SURFACES = ["#fcfcfc", "#ecf9f4", "#fef0f0", "#ccecdf", "#f8d3d4"];
21 +
22 +describe("readableOnLightCode", () => {
23 + it("brings pierre-light's faint colors to 4.5:1 on every light code surface", () => {
24 + for (const color of PIERRE_LIGHT_FAINT) {
25 + for (const surface of LIGHT_CODE_SURFACES) {
26 + expect(contrast(readableOnLightCode(color), surface)).toBeGreaterThanOrEqual(4.5);
27 + }
28 + }
29 + });
30 +
31 + it("keeps tokens that differed only in lightness apart, in pierre-light's order", () => {
32 + // [lighter, darker] in pierre-light: comment/punctuation, operator/number, property/decorator.
33 + for (const [lighter, darker] of [
34 + ["#737373", "#636363"],
35 + ["#08c0ef", "#1ca1c7"],
36 + ["#009fff", "#1a85d4"],
37 + ] as const) {
38 + expect(luminance(readableSyntaxColor(lighter))).toBeGreaterThan(
39 + luminance(readableSyntaxColor(darker)) + 0.02,
40 + );
41 + }
42 + });
43 +
44 + it("leaves colors that already read unchanged", () => {
45 + expect(readableOnLightCode("#693acf")).toBe("#693acf");
46 + expect(readableOnLightCode("#0a0a0a")).toBe("#0a0a0a");
47 + });
48 +
49 + it("keeps an alpha suffix and ignores non-hex values", () => {
50 + expect(readableOnLightCode("#d5a91080")).toMatch(/80$/);
51 + expect(readableOnLightCode("var(--x)")).toBe("var(--x)");
52 + });
53 +});
apps/web/src/lib/readableSyntaxTheme.ts new
+76
@@ -0,0 +1,76 @@
1 +import { getResolvedOrResolveTheme, registerCustomTheme, type DiffsTheme } from "@pierre/diffs";
2 +
3 +/** pierre-light with every syntax color darkened until it reads on every light code surface. */
4 +export const READABLE_LIGHT_THEME_NAME = "t3-light";
5 +
6 +const MIN_CONTRAST = 4.5;
7 +// The darkest light code surface is a changed word on a deleted line (#f8d3d4, luminance
8 +// 0.71), rounded down for margin.
9 +const DARKEST_SURFACE_LUMINANCE = 0.69;
10 +
11 +function channelLuminance(channel: number): number {
12 + const value = channel / 255;
13 + return value <= 0.03928 ? value / 12.92 : ((value + 0.055) / 1.055) ** 2.4;
14 +}
15 +
16 +function contrastOnLightCode(rgb: readonly [number, number, number]): number {
17 + const [r, g, b] = rgb.map(channelLuminance) as [number, number, number];
18 + return (DARKEST_SURFACE_LUMINANCE + 0.05) / (0.2126 * r + 0.7152 * g + 0.0722 * b + 0.05);
19 +}
20 +
21 +/** Darkens a #rrggbb(aa) color in steps that keep its hue until it reads on light code. */
22 +export function readableOnLightCode(color: string, minContrast = MIN_CONTRAST): string {
23 + const match = /^#([0-9a-f]{6})([0-9a-f]{2})?$/i.exec(color);
24 + if (!match) return color;
25 + let rgb = [0, 2, 4].map((start) => Number.parseInt(match[1]!.slice(start, start + 2), 16)) as [
26 + number,
27 + number,
28 + number,
29 + ];
30 + if (contrastOnLightCode(rgb) >= minContrast) return color;
31 + while (contrastOnLightCode(rgb) < minContrast) {
32 + rgb = rgb.map((channel) => Math.floor(channel * 0.96)) as [number, number, number];
33 + }
34 + return `#${rgb.map((channel) => channel.toString(16).padStart(2, "0")).join("")}${match[2] ?? ""}`;
35 +}
36 +
37 +type ZedTheme = NonNullable<DiffsTheme["zed"]>;
38 +
39 +// Pairs that differ only in lightness would merge at one floor. The darker color of each pair
40 +// goes further, keeping pierre-light's order: numbers stay darker than operators, punctuation
41 +// darker than comments, and decorators darker than property names.
42 +const FURTHER_COLORS = new Set(["#1ca1c7", "#636363", "#1a85d4"]);
43 +const FURTHER_MIN_CONTRAST = 6;
44 +
45 +/** The t3-light color for a pierre-light syntax color. */
46 +export function readableSyntaxColor(color: string): string {
47 + return readableOnLightCode(
48 + color,
49 + FURTHER_COLORS.has(color.toLowerCase()) ? FURTHER_MIN_CONTRAST : MIN_CONTRAST,
50 + );
51 +}
52 +
53 +function withReadableSyntax(theme: ZedTheme): ZedTheme {
54 + const syntax = Object.fromEntries(
55 + Object.entries(theme.style.syntax ?? {}).map(([scope, style]) => [
56 + scope,
57 + typeof style === "string"
58 + ? readableSyntaxColor(style)
59 + : style.color
60 + ? { ...style, color: readableSyntaxColor(style.color) }
61 + : style,
62 + ]),
63 + );
64 + return { ...theme, name: READABLE_LIGHT_THEME_NAME, style: { ...theme.style, syntax } };
65 +}
66 +
67 +// Themes resolve on the main thread and reach the diff workers already resolved.
68 +registerCustomTheme(
69 + READABLE_LIGHT_THEME_NAME,
70 + async () => {
71 + const base = await getResolvedOrResolveTheme("pierre-light", "highlights");
72 + if (!base.zed) throw new Error("pierre-light has no Highlights palette");
73 + return withReadableSyntax(base.zed);
74 + },
75 + "zed",
76 +);
apps/web/src/lib/syntaxHighlighting.ts
+3 -2
@@ -5,7 +5,7 @@ import {
5 type SupportedLanguages,
6 } from "@pierre/diffs";
7
8 -import { resolveDiffThemeName } from "./diffRendering";
8 +import { DIFF_THEME_NAMES } from "./diffRendering";
9
10 /**
11 * Highlights' hand-written WASM lexers tokenize large files 10-40x faster than
@@ -21,7 +21,8 @@ export function getSyntaxHighlighterPromise(language: string): Promise<DiffsHigh
21 if (cached) return cached;
22
23 const promise = getSharedHighlighter({
24 - themes: [resolveDiffThemeName("dark"), resolveDiffThemeName("light")],
24 + // Every palette, so toggling the New design never needs a new highlighter.
25 + themes: Object.values(DIFF_THEME_NAMES),
26 langs: [language as SupportedLanguages],
27 preferredHighlighter: PREFERRED_HIGHLIGHTER,
28 }).catch((error) => {
apps/web/src/timestampFormat.ts
-22
@@ -273,28 +273,6 @@ export function formatElapsedDurationLabel(isoDate: string, nowMs: number = Date
273 return `${days}d`;
274 }
275
276 -function formatRelativeTimeUntil(isoDate: string): RelativeTimeParts | null {
277 - const date = parseTimestampDate(isoDate);
278 - if (!date) return null;
279 - const diffMs = date.getTime() - Date.now();
280 - if (diffMs <= 0) return { value: "Expired", suffix: null };
281 - const seconds = Math.floor(diffMs / 1000);
282 - if (seconds < 5) return { value: "Soon", suffix: null };
283 - if (seconds < 60) return { value: `${seconds}s`, suffix: "left" };
284 - const minutes = Math.floor(seconds / 60);
285 - if (minutes < 60) return { value: `${minutes}m`, suffix: "left" };
286 - const hours = Math.floor(minutes / 60);
287 - if (hours < 24) return { value: `${hours}h`, suffix: "left" };
288 - const days = Math.floor(hours / 24);
289 - return { value: `${days}d`, suffix: "left" };
290 -}
291 -
292 -export function formatRelativeTimeUntilLabel(isoDate: string): string {
293 - const relative = formatRelativeTimeUntil(isoDate);
294 - if (!relative) return "";
295 - return relative.suffix ? `${relative.value} ${relative.suffix}` : relative.value;
296 -}
297 -
276 /** Pass nowMs to match a parent-driven render tick. */
277 export function formatExpiresInLabel(isoDate: string, nowMs: number = Date.now()): string {
278 const date = parseTimestampDate(isoDate);
docs/user/keybindings.md
+1 -1
@@ -46,7 +46,7 @@ in Settings.
46
47 ## Copy pull request references
48
49 -With a PR open in the right panel or on the Pull Requests page, use `mod+shift+c`
49 +With a PR open in the right panel or on the Pull requests page, use `mod+shift+c`
50 to copy its URL and `mod+shift+k` to copy its number with a `#` prefix.
51 Both shortcuts can be changed in Settings. Search for “Copy Link or Thread ID”
52 or “Copy Number”. They copy the selected PR and leave terminal input alone.
docs/user/project-settings.md
+3 -3
@@ -48,7 +48,7 @@ and other phone-only settings ignore the filter.
48
49 ## Worktree branch names
50
51 -In **Settings → Source Control → Worktree branch naming**, choose a static prefix,
51 +In **Settings → Source control → Worktree branch naming**, choose a static prefix,
52 a model-selected semantic prefix such as `feat/` or `fix/`, or custom instructions
53 for the complete name. The static prefix defaults to `t3/`; a trailing slash is
54 optional, and an empty prefix adds nothing. Invalid characters in a static prefix
@@ -147,7 +147,7 @@ than** on the task.
147 ## Defaults and inheritance
148
149 General contains the model and workspace for new threads. Integrations controls agent browser
150 -access. Source Control contains automatic pull, the default pull request merge method and text
150 +access. Source control contains automatic pull, the default pull request merge method and text
151 generation. The same rows edit environment defaults or project overrides depending on the
152 project crumb.
153
@@ -224,7 +224,7 @@ from the icon palette, derived from the saved project name. For example, `Nebula
224
225 ## Keep the default branch current
226
227 -In Source Control, enable **Automatically pull** to keep the default-branch checkout up to date
227 +In Source control, enable **Automatically pull** to keep the default-branch checkout up to date
228 with its configured upstream. Choose an environment to set the default or a project to override it.
229 On mobile, use **Settings → Source control** to change selected environment defaults or project overrides.
230
docs/user/source-control.md
+13 -13
@@ -13,7 +13,7 @@ against your base branch. Restore still returns the complete saved workspace.
13 ## Connect an account
14
15 Install Git and configure authentication on the machine running your T3 Code server. For a remote
16 -environment, do this on the remote machine. After signing in, open **Settings → Source Control**
16 +environment, do this on the remote machine. After signing in, open **Settings → Source control**
17 and choose **Rescan**.
18
19 ### GitHub
@@ -21,7 +21,7 @@ and choose **Rescan**.
21 T3 Code talks to GitHub's API directly and only needs a token. Any of these works, in this
22 order of precedence:
23
24 -1. A token saved in **Settings → Source Control → GitHub**. It is kept in the server's secret
24 +1. A token saved in **Settings → Source control → GitHub**. It is kept in the server's secret
25 store, and works without the GitHub CLI.
26 2. `GH_TOKEN` (`GH_ENTERPRISE_TOKEN` with `GH_HOST` for GitHub Enterprise Server) in the
27 server's environment.
@@ -64,7 +64,7 @@ glab auth login
64
65 ### Bitbucket
66
67 -Open **Settings → Source Control**, expand **Bitbucket**, and enter one of:
67 +Open **Settings → Source control**, expand **Bitbucket**, and enter one of:
68
69 - **Access token**: a token created for one repository, project, or workspace. It can only reach
70 what it was created for.
@@ -110,7 +110,7 @@ bun install -g @gitcafe/cli
110 cafe auth login --host https://git.cafe/api
111 ```
112
113 -Alternatively, open **Settings → Source Control**, expand **GitCafe**, and enter a token. It is
113 +Alternatively, open **Settings → Source control**, expand **GitCafe**, and enter a token. It is
114 kept in the server's secret store, applies right away, and is used before `CAFE_TOKEN` and the
115 `cafe` login. Or set `CAFE_TOKEN` in the server's environment and restart it. Both tokens are only
116 sent 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 sett
152 If its badge is missing because several remotes hold that branch, set the branch's upstream to
153 the intended remote with `git branch --set-upstream-to=<remote>/<branch>`.
154
155 -Choose the writing style and model in **Settings → Source Control**. **Repository conventions**
155 +Choose the writing style and model in **Settings → Source control**. **Repository conventions**
156 uses the project's instructions and recent commit subjects.
157
158 ## Review and merge
@@ -170,7 +170,7 @@ Previously loaded lists, review details, guides, and diff pages remain readable
170 without a connection, including after restarting the app. Saved content refreshes when the
171 environment reconnects; submitting changes requires a connection.
172
173 -Enable **Remove agent credits when merging** in Settings → Source Control to remove recognized
173 +Enable **Remove agent credits when merging** in Settings → Source control to remove recognized
174 agent co-author and generated-by lines from GitHub merge and squash commit messages. Human
175 co-authors stay credited. The setting is off by default and projects can override it. It also
176 applies to auto-merge, but not merge queues or native stack merges. Original commits keep their
@@ -205,7 +205,7 @@ declined pull request.
205
206 ### Review guides
207
208 -Review guides are in beta. Turn on **Review guides** in Settings → Source Control to add the
208 +Review guides are in beta. Turn on **Review guides** in Settings → Source control to add the
209 **Guide** tab to pull requests on that server. On mobile, move between stops with **Next**
210 and the back button; a stale guide offers a rewrite and hides excerpts that no longer match
211 the current change.
@@ -217,7 +217,7 @@ snapshots are grouped at the end, and every changed file appears somewhere on th
217 Conversations already resolved in review are left out. For a pull request in a stack, the guide
218 covers that layer only, and may point out what a lower layer introduced or what a higher one uses.
219
220 -Choose **Write guide** to have the review guide model from Settings → Source Control read the
220 +Choose **Write guide** to have the review guide model from Settings → Source control read the
221 change in a temporary checkout; without one set, the source control writer model is used. Nothing
222 in the checkout is changed, and a large pull request takes a few minutes; you can go elsewhere in
223 the 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 you
233 Agents can write guides too: ask one to prepare guides for a set of pull requests, and it starts
234 them for you. Each is read through the project whose checkout has that repository.
235
236 -To shape guides to your taste, write **Review guide instructions** in Settings → Source Control,
236 +To shape guides to your taste, write **Review guide instructions** in Settings → Source control,
237 such as what to show first or what to skip; projects can override them. They change emphasis and
238 ordering, not the guide's layout or which files it covers.
239
@@ -254,9 +254,9 @@ and their marks follow the same rules as on web and desktop.
254 ## Troubleshooting
255
256 - **Not authenticated:** run the provider's login command on the server, then rescan. For Bitbucket,
257 - check the credentials saved in Settings → Source Control, or confirm the running server received
257 + check the credentials saved in Settings → Source control, or confirm the running server received
258 the environment variables.
259 -- **GitHub sign-in cannot be verified:** update GitHub CLI to at least 2.81.0, or save a token in Settings → Source Control.
259 +- **GitHub sign-in cannot be verified:** update GitHub CLI to at least 2.81.0, or save a token in Settings → Source control.
260 - **Push fails despite a connected account:** check the Git remote's credentials. SSH and HTTPS
261 remotes can require separate setup from the hosting provider's API access.
262 - **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`. Agent
271 pull requests with the `link_pull_request` tool.
272
273 Use **Link this PR** in a branch-detected badge's tooltip to keep it with the thread. From a review
274 -on the Pull Requests page, **Link to thread** lets you search for an active thread. The review header
274 +on the Pull requests page, **Link to thread** lets you search for an active thread. The review header
275 also lists the threads that link to it, including archived threads, so you can return to their context.
276
277 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.
307
308 ## GitHub stacks
309
310 -The Pull Requests page shows each PR's position in its GitHub stack. Open the stack badge in a
310 +The Pull requests page shows each PR's position in its GitHub stack. Open the stack badge in a
311 review to navigate its layers. **Merge stack** submits the selected pull request and every unmerged
312 layer below it to GitHub together, respecting branch rules and merge queues. The confirmation shows
313 the scope and merge strategy. GitHub rebases the remaining stack after merging.
packages/contracts/src/settings.ts
-3
@@ -473,8 +473,6 @@ export const ClientSettingsSchema = Schema.Struct({
473 // Opt-in TeX typesetting in rendered Markdown. Off keeps math parsing and
474 // KaTeX out of the render path entirely.
475 mathRenderingEnabled: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(false))),
476 - // Sidebar project icons rest in grayscale so titles lead; this keeps their colors.
477 - sidebarProjectIconColors: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(false))),
476 // Beta: the quieter sidebar, composer and panel design. Off keeps the current look.
477 redesignEnabled: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(false))),
478 });
@@ -1682,7 +1680,6 @@ export const ClientSettingsPatch = Schema.Struct({
1680 snapShotAnimations: Schema.optionalKey(Schema.Boolean),
1681 wordWrap: Schema.optionalKey(Schema.Boolean),
1682 mathRenderingEnabled: Schema.optionalKey(Schema.Boolean),
1685 - sidebarProjectIconColors: Schema.optionalKey(Schema.Boolean),
1683 redesignEnabled: Schema.optionalKey(Schema.Boolean),
1684 });
1685 export type ClientSettingsPatch = typeof ClientSettingsPatch.Type;