Skip to content
This repository was archived by the owner on Oct 10, 2026. It is now read-only.

Commit e51538b

Browse files
Restore light-mode surfaces and refine dialog styling
- Restore light-mode glass, dialog, dropdown, and composer colors - Refine provider wizard, changed-file cards, sidebar controls, and buttons - Update wizard step tests for the new list structure
1 parent 1c9a6de commit e51538b

18 files changed

Lines changed: 212 additions & 225 deletions

‎apps/web/src/components/ChatView.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5592,7 +5592,7 @@ function ChatViewContent(props: ChatViewProps) {
55925592
: undefined
55935593
}
55945594
>
5595-
<div className="chat-composer-glass-host mx-auto w-full max-w-3xl overflow-hidden rounded-[22px]">
5595+
<div className="chat-composer-glass-host mx-auto w-full max-w-3xl rounded-[22px]">
55965596
<div ref={attachDraftHeroComposerAnchorRef} className="relative z-10 isolate">
55975597
<ChatComposer
55985598
composerRef={composerRef}

‎apps/web/src/components/GitActionsControl.tsx‎

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -544,10 +544,7 @@ function PublishRepositoryDialog(props: PublishRepositoryDialogProps) {
544544

545545
return (
546546
<Dialog open={props.open} onOpenChange={handleOpenChange}>
547-
<DialogPopup
548-
backdropClassName="bg-black/40 backdrop-blur-none"
549-
className="workflow-dialog-surface max-w-xl overflow-hidden before:hidden"
550-
>
547+
<DialogPopup className="max-w-xl overflow-hidden">
551548
<div className="flex min-h-0 flex-col overflow-hidden border-foreground/10 bg-transparent">
552549
<DialogHeader className="border-b border-border/70 bg-foreground/[0.025] dark:border-transparent dark:bg-transparent">
553550
<DialogTitle>Publish repository</DialogTitle>
@@ -1828,26 +1825,21 @@ export default function GitActionsControl({
18281825
}
18291826
}}
18301827
>
1831-
<DialogPopup
1832-
backdropClassName="bg-black/40 backdrop-blur-none"
1833-
className="command-palette-dialog-surface workflow-dialog-surface before:hidden"
1834-
>
1828+
<DialogPopup>
18351829
<DialogHeader>
18361830
<DialogTitle>{COMMIT_DIALOG_TITLE}</DialogTitle>
18371831
<DialogDescription>{COMMIT_DIALOG_DESCRIPTION}</DialogDescription>
18381832
</DialogHeader>
18391833
<DialogPanel className="space-y-4">
1840-
<div className="space-y-3 rounded-lg border border-input bg-muted/40 p-3 text-xs dark:border-transparent dark:bg-white/[0.035]">
1834+
<div className="space-y-3 rounded-xl bg-zinc-25 p-3 text-sm ring-1 ring-black/5 dark:bg-white/[0.035] dark:ring-white/5">
18411835
<div className="grid grid-cols-[auto_1fr] items-center gap-x-2 gap-y-1">
18421836
<span className="text-muted-foreground">Branch</span>
18431837
<span className="flex items-center justify-between gap-2">
18441838
<span className="font-medium">
18451839
{gitStatusForActions?.refName ?? "(detached HEAD)"}
18461840
</span>
18471841
{isDefaultRef && (
1848-
<span className="text-right text-warning text-xs">
1849-
Warning: default refName
1850-
</span>
1842+
<span className="text-right text-warning">Warning: default refName</span>
18511843
)}
18521844
</span>
18531845
</div>
@@ -1886,14 +1878,14 @@ export default function GitActionsControl({
18861878
<p className="font-medium">none</p>
18871879
) : (
18881880
<div className="space-y-2">
1889-
<ScrollArea className="h-44 rounded-md border border-input bg-background dark:border-transparent dark:bg-white/[0.025]">
1881+
<ScrollArea className="h-44 rounded-lg bg-card ring-1 ring-black/5 dark:bg-white/[0.025] dark:ring-white/5">
18901882
<div className="space-y-1 p-1">
18911883
{allFiles.map((file) => {
18921884
const isExcluded = excludedFiles.has(file.path);
18931885
return (
18941886
<div
18951887
key={file.path}
1896-
className="flex w-full items-center gap-2 rounded-md px-2 py-1 font-mono text-xs transition-colors hover:bg-accent/50"
1888+
className="flex w-full items-center gap-2 rounded-md px-2 py-1 font-mono hover:bg-accent/50"
18971889
>
18981890
{isEditingFiles && (
18991891
<Checkbox
@@ -1952,7 +1944,7 @@ export default function GitActionsControl({
19521944
</div>
19531945
</div>
19541946
<div className="space-y-1">
1955-
<p className="text-xs font-medium">Commit message (optional)</p>
1947+
<p className="text-sm font-medium">Commit message (optional)</p>
19561948
<Textarea
19571949
value={dialogCommitMessage}
19581950
onChange={(event) => setDialogCommitMessage(event.target.value)}
@@ -1961,7 +1953,7 @@ export default function GitActionsControl({
19611953
/>
19621954
</div>
19631955
</DialogPanel>
1964-
<DialogFooter className="dark:border-transparent dark:bg-transparent">
1956+
<DialogFooter variant="bare">
19651957
<Button
19661958
variant="outline"
19671959
size="sm"
@@ -2004,10 +1996,7 @@ export default function GitActionsControl({
20041996
}
20051997
}}
20061998
>
2007-
<DialogPopup
2008-
backdropClassName="bg-black/40 backdrop-blur-none"
2009-
className="workflow-dialog-surface max-w-xl before:hidden"
2010-
>
1999+
<DialogPopup className="max-w-xl">
20112000
<DialogHeader>
20122001
<DialogTitle>
20132002
{pendingDefaultBranchActionCopy?.title ?? "Run action on default refName?"}

‎apps/web/src/components/ProjectScriptsControl.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ export default function ProjectScriptsControl({
461461
}}
462462
open={dialogOpen}
463463
>
464-
<DialogPopup className="before:hidden">
464+
<DialogPopup>
465465
<DialogHeader>
466466
<DialogTitle>{isEditing ? "Edit Action" : "Add Action"}</DialogTitle>
467467
<DialogDescription>

‎apps/web/src/components/SidebarV2.tsx‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -677,21 +677,21 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
677677
<span className="text-red-600 dark:text-red-400">−{diff.deletions}</span>
678678
</span>
679679
) : null}
680-
<span className="ml-auto inline-flex shrink-0 items-center gap-1">
680+
<span
681+
aria-hidden
682+
className="pointer-events-none ml-auto inline-flex shrink-0 items-center gap-1"
683+
>
681684
{isRemote ? (
682-
<span
683-
aria-label={props.environmentLabel ?? "Remote environment"}
684-
className="inline-flex shrink-0 items-center text-sidebar-muted-foreground/70"
685-
>
686-
<ServerIcon aria-hidden className="size-4" />
685+
<span className="inline-flex shrink-0 items-center text-sidebar-muted-foreground/70">
686+
<ServerIcon aria-hidden className="size-3.5" />
687687
</span>
688688
) : null}
689689
{driverKind ? (
690690
<span className="inline-flex shrink-0 items-center opacity-60">
691691
<ProviderInstanceIcon
692692
driverKind={driverKind}
693693
displayName={thread.session?.providerName ?? modelInstanceId}
694-
iconClassName="size-4"
694+
iconClassName="size-3.5"
695695
/>
696696
</span>
697697
) : null}

‎apps/web/src/components/chat/ChangedFilesTree.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ export const ChangedFilesCard = memo(function ChangedFilesCard(props: {
4141
const summaryStat = useMemo(() => summarizeTurnDiffStats(files), [files]);
4242

4343
return (
44-
<div className="mt-4 rounded-2xl bg-background p-2 pt-4 shadow-xs/5 not-dark:bg-clip-padding dark:bg-input/32">
45-
<div className="sticky top-0 z-10 mb-3 flex items-center justify-between gap-2 bg-background px-2 before:absolute before:inset-x-0 before:-top-4 before:h-4 before:bg-background before:content-[''] dark:bg-[color-mix(in_srgb,var(--foreground)_2.5%,var(--background))] dark:before:bg-[color-mix(in_srgb,var(--foreground)_2.5%,var(--background))]">
44+
<div className="mt-4 rounded-2xl border border-border/70 bg-secondary p-2 pt-4 dark:border-transparent dark:bg-input/32">
45+
<div className="sticky top-0 z-10 mb-3 flex items-center justify-between gap-2 bg-secondary px-2 before:absolute before:inset-x-0 before:-top-4 before:h-4 before:bg-secondary before:content-[''] dark:bg-[color-mix(in_srgb,var(--foreground)_2.5%,var(--background))] dark:before:bg-[color-mix(in_srgb,var(--foreground)_2.5%,var(--background))]">
4646
<p className="flex items-center gap-1 whitespace-nowrap font-medium text-foreground text-xs leading-4">
4747
<span>
4848
{files.length} changed file{files.length === 1 ? "" : "s"}

‎apps/web/src/components/chat/ComposerCommandMenu.tsx‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,7 @@ export const ComposerCommandMenu = memo(function ComposerCommandMenu(props: {
139139
);
140140
}}
141141
>
142-
<div
143-
ref={listRef}
144-
className="relative w-full overflow-hidden rounded-[20px] border border-border/80 bg-popover/96 shadow-lg/8 backdrop-blur-xs"
145-
>
142+
<div ref={listRef} className="dropdown-glass relative w-full overflow-hidden rounded-[20px]">
146143
{props.items.length > 0 ? (
147144
<CommandList className="max-h-72">
148145
{groups.map((group, groupIndex) => (

‎apps/web/src/components/chat/MessagesTimeline.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,8 +1285,8 @@ function AssistantChangedFilesSectionInner({
12851285
const summaryStat = summarizeTurnDiffStats(checkpointFiles);
12861286

12871287
return (
1288-
<div className="mt-4 rounded-2xl bg-background p-2 pt-4 shadow-xs/5 not-dark:bg-clip-padding dark:bg-input/32">
1289-
<div className="sticky top-2 z-10 mb-3 flex items-center justify-between gap-2 bg-background px-2 before:absolute before:inset-x-0 before:-top-4 before:h-4 before:bg-background before:content-[''] dark:bg-[color-mix(in_srgb,var(--foreground)_2.5%,var(--background))] dark:before:bg-[color-mix(in_srgb,var(--foreground)_2.5%,var(--background))]">
1288+
<div className="mt-4 rounded-2xl border border-border/70 bg-secondary p-2 pt-4 dark:border-transparent dark:bg-input/32">
1289+
<div className="sticky top-2 z-10 mb-3 flex items-center justify-between gap-2 bg-secondary px-2 before:absolute before:inset-x-0 before:-top-4 before:h-4 before:bg-secondary before:content-[''] dark:bg-[color-mix(in_srgb,var(--foreground)_2.5%,var(--background))] dark:before:bg-[color-mix(in_srgb,var(--foreground)_2.5%,var(--background))]">
12901290
<p className="flex items-center gap-1 whitespace-nowrap font-medium text-foreground text-xs leading-4">
12911291
<span>
12921292
{checkpointFiles.length} changed file{checkpointFiles.length === 1 ? "" : "s"}

‎apps/web/src/components/clerk/T3ConnectSidebarSignIn.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ function ConfiguredT3ConnectSidebarSignIn() {
5555
<SidebarMenuItem>
5656
<SidebarMenuButton
5757
size="sm"
58-
className="gap-2 px-2 py-2 text-xs text-muted-foreground hover:bg-accent hover:text-foreground"
58+
className="h-8 items-center gap-2 rounded-md px-2 py-1.5 text-sm font-medium text-sidebar-muted-foreground/80 hover:bg-sidebar-row-hover hover:text-sidebar-foreground"
5959
onClick={openAuthPrompt}
6060
>
61-
<LogInIcon className="size-4" />
61+
<LogInIcon className="size-4 shrink-0" />
6262
<span>Sign in to T3 Connect</span>
6363
</SidebarMenuButton>
6464
</SidebarMenuItem>

‎apps/web/src/components/settings/AddProviderInstanceDialog.tsx‎

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"use client";
22

33
import { Radio as RadioPrimitive } from "@base-ui/react/radio";
4+
import { CheckIcon } from "lucide-react";
45
import { useMemo, useState } from "react";
56
import {
67
ProviderInstanceId,
@@ -223,7 +224,7 @@ export function AddProviderInstanceDialog({ open, onOpenChange }: AddProviderIns
223224
<Dialog open={open} onOpenChange={onOpenChange}>
224225
<DialogPopup className="max-w-xl overflow-hidden">
225226
<div className="flex min-h-0 flex-col overflow-hidden">
226-
<DialogHeader className="border-b border-border/70">
227+
<DialogHeader>
227228
<DialogTitle>Add provider instance</DialogTitle>
228229
<DialogDescription>
229230
Configure an additional provider instance — for example, a second Codex install
@@ -239,41 +240,37 @@ export function AddProviderInstanceDialog({ open, onOpenChange }: AddProviderIns
239240

240241
<div
241242
data-slot="dialog-panel"
242-
className="space-y-4 border-b border-border/70 bg-foreground/[0.025] px-6 py-5"
243+
className="space-y-4 bg-zinc-25/80 px-6 py-5 ring-1 ring-black/5 dark:bg-white/2 dark:ring-white/5"
243244
>
244245
<AnimatedHeight>
245246
<div className={cn("grid gap-2", wizardStep !== 0 && "hidden")}>
246-
<span
247-
id="add-instance-driver-label"
248-
className="text-xs font-medium text-foreground"
249-
>
247+
<div id="add-instance-driver-label" className="text-sm font-medium text-foreground">
250248
Driver
251-
</span>
249+
</div>
252250
<RadioGroup
253251
value={driver}
254252
onValueChange={(value) => setDriver(ProviderDriverKind.make(value))}
255253
aria-labelledby="add-instance-driver-label"
256-
className="grid grid-cols-2 gap-2.5"
254+
className="grid grid-cols-1 gap-2 sm:grid-cols-2"
257255
>
258256
{DRIVER_OPTIONS.map((option) => {
259257
const IconComponent = option.icon;
260-
const isSelected = option.value === driver;
261258
return (
262259
<RadioPrimitive.Root
263260
key={option.value}
264261
value={option.value}
265-
className={cn(
266-
"relative flex cursor-pointer items-center gap-3 rounded-lg border px-3 py-3 text-left outline-none transition-[background-color,border-color,box-shadow]",
267-
"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background",
268-
isSelected
269-
? "border-primary bg-background shadow-sm ring-2 ring-primary/35"
270-
: "border-border bg-background hover:border-foreground/20 hover:bg-muted/50",
271-
)}
262+
className="relative flex cursor-pointer items-center gap-3 rounded-lg bg-card px-3 py-3 text-left text-muted-foreground outline-none ring-1 ring-black/5 hover:bg-zinc-50 focus-visible:ring-2 focus-visible:ring-ring data-checked:bg-primary/8 data-checked:text-foreground data-checked:ring-2 data-checked:ring-primary data-checked:hover:bg-primary/8 dark:bg-white/3 dark:ring-white/5 dark:hover:bg-white/5 dark:data-checked:bg-primary/15 dark:data-checked:ring-primary dark:data-checked:hover:bg-primary/15"
272263
>
273-
<IconComponent className="size-5 shrink-0" aria-hidden />
264+
<IconComponent className="size-4 shrink-0" aria-hidden />
274265
<span className="min-w-0 flex-1 truncate text-sm font-medium text-foreground">
275266
{option.label}
276267
</span>
268+
<RadioPrimitive.Indicator
269+
className="grid size-5 shrink-0 place-items-center rounded-full bg-primary text-primary-foreground"
270+
aria-hidden
271+
>
272+
<CheckIcon className="size-3.5 shrink-0" />
273+
</RadioPrimitive.Indicator>
277274
{option.badgeLabel ? (
278275
<Badge variant="warning" size="sm">
279276
{option.badgeLabel}
@@ -290,11 +287,11 @@ export function AddProviderInstanceDialog({ open, onOpenChange }: AddProviderIns
290287
value={option.value}
291288
disabled
292289
className={cn(
293-
"relative flex cursor-not-allowed items-center gap-3 rounded-lg border border-border bg-background px-3 py-3 text-left opacity-55 outline-none",
290+
"relative flex cursor-not-allowed items-center gap-3 rounded-lg bg-card/60 px-3 py-3 text-left opacity-55 outline-none ring-1 ring-black/5 dark:bg-white/2 dark:ring-white/5",
294291
)}
295292
>
296293
<IconComponent
297-
className="size-5 shrink-0 text-muted-foreground"
294+
className="size-4 shrink-0 text-muted-foreground"
298295
aria-hidden
299296
/>
300297
<span className="min-w-0 flex-1 truncate text-sm font-medium text-foreground">
@@ -409,7 +406,7 @@ export function AddProviderInstanceDialog({ open, onOpenChange }: AddProviderIns
409406
</AnimatedHeight>
410407
</div>
411408

412-
<DialogFooter className="border-t bg-transparent">
409+
<DialogFooter variant="bare">
413410
<Button
414411
variant="outline"
415412
size="sm"

‎apps/web/src/components/settings/AddProviderInstanceWizardSteps.test.tsx‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ interface StepButtonProps {
99
readonly onClick: () => void;
1010
}
1111

12+
interface StepListItemProps {
13+
readonly children: ReactElement<StepButtonProps>;
14+
}
15+
1216
function renderStepButtons(
1317
currentStep: number,
1418
instanceIdError: string | null,
@@ -21,9 +25,9 @@ function renderStepButtons(
2125
onNavigation,
2226
});
2327

24-
return Children.toArray(header.props.children).filter(
25-
(child): child is ReactElement<StepButtonProps> => isValidElement(child),
26-
);
28+
return Children.toArray(header.props.children)
29+
.filter((child): child is ReactElement<StepListItemProps> => isValidElement(child))
30+
.map((item) => item.props.children);
2731
}
2832

2933
describe("AddProviderInstanceWizardSteps", () => {

0 commit comments

Comments
 (0)