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

Commit c5ff51e

Browse files
committed
feat(web): refresh application surfaces
1 parent 2d31cb0 commit c5ff51e

40 files changed

Lines changed: 605 additions & 441 deletions

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export function AppSidebarLayout({ children }: { children: ReactNode }) {
106106
const pathname = useLocation({ select: (location) => location.pathname });
107107
const isOnSettings = pathname === "/settings" || pathname.startsWith("/settings/");
108108
const useSidebarV2 = sidebarV2Enabled && !isOnSettings;
109+
const useSidebarV2Theme = useSidebarV2 || isOnSettings;
109110
const isMacosDesktop = isElectron && isMacPlatform(navigator.platform);
110111
const [sidebarWidth, setSidebarWidth] = useState(readInitialThreadSidebarWidth);
111112
const sidebarMaximumWidth = resolveThreadSidebarMaximumWidth(window.innerWidth);
@@ -165,7 +166,7 @@ export function AppSidebarLayout({ children }: { children: ReactNode }) {
165166
side="left"
166167
collapsible="offcanvas"
167168
data-app-sidebar=""
168-
data-sidebar-version={useSidebarV2 ? "v2" : "v1"}
169+
data-sidebar-version={useSidebarV2Theme ? "v2" : "v1"}
169170
className="border-r border-sidebar-border bg-sidebar text-sidebar-foreground"
170171
resizable={{
171172
maxWidth: sidebarMaximumWidth,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export const BranchToolbar = memo(function BranchToolbar({
248248
if (!hasActiveThread || !activeProject) return null;
249249

250250
return (
251-
<div className="mx-auto flex w-full max-w-3xl items-center gap-2 px-2.5 pb-3 pt-1 sm:px-3">
251+
<div className="chat-composer-context-strip -mt-2 mx-auto flex w-[calc(100%-1.5rem)] max-w-[calc(48rem-1.5rem)] items-center gap-2 pt-3 pe-2 pb-1 ps-2">
252252
{isMobile ? (
253253
<MobileRunContextSelector
254254
envLocked={envLocked}

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

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2320,6 +2320,11 @@ function ChatViewContent(props: ChatViewProps) {
23202320
const defaultInstanceId = defaultInstanceIdForDriver(selectedProvider);
23212321
return providerStatuses.find((status) => status.instanceId === defaultInstanceId) ?? null;
23222322
}, [activeProviderInstanceId, providerStatuses, selectedProvider]);
2323+
const hasTimelineTopBanner =
2324+
Boolean(threadError) ||
2325+
(activeProviderStatus !== null &&
2326+
activeProviderStatus.status !== "ready" &&
2327+
activeProviderStatus.status !== "disabled");
23232328
const activeProjectCwd = activeProject?.workspaceRoot ?? null;
23242329
const activeThreadWorktreePath = activeThread?.worktreePath ?? null;
23252330
const activeWorkspaceRoot = activeThreadWorktreePath ?? activeProjectCwd ?? undefined;
@@ -5412,7 +5417,7 @@ function ChatViewContent(props: ChatViewProps) {
54125417
<header
54135418
data-chat-header
54145419
className={cn(
5415-
"border-b border-border transition-[padding-left] duration-200 ease-linear motion-reduce:transition-none",
5420+
"bg-background transition-[padding-left] duration-200 ease-linear motion-reduce:transition-none",
54165421
isElectron
54175422
? cn(
54185423
"workspace-topbar drag-region relative px-3 sm:px-5",
@@ -5448,8 +5453,6 @@ function ChatViewContent(props: ChatViewProps) {
54485453
/>
54495454
</header>
54505455

5451-
{/* Error banner */}
5452-
<ProviderStatusBanner status={activeProviderStatus} />
54535456
<ThreadErrorBanner
54545457
error={threadError}
54555458
onDismiss={() => setThreadError(activeThread.id, null)}
@@ -5458,6 +5461,10 @@ function ChatViewContent(props: ChatViewProps) {
54585461
<div className="flex min-h-0 min-w-0 flex-1">
54595462
{/* Chat column */}
54605463
<div className="relative flex min-h-0 min-w-0 flex-1 flex-col">
5464+
{/* Provider status overlays the timeline without changing its content height. */}
5465+
<div className="pointer-events-none absolute inset-x-0 top-0 z-20">
5466+
<ProviderStatusBanner status={activeProviderStatus} />
5467+
</div>
54615468
{/* Messages Wrapper */}
54625469
<div className="relative flex min-h-0 flex-1 flex-col">
54635470
{/* Messages — LegendList handles virtualization and scrolling internally */}
@@ -5494,6 +5501,7 @@ function ChatViewContent(props: ChatViewProps) {
54945501
onIsAtEndChange={onIsAtEndChange}
54955502
onManualNavigation={cancelTimelineLiveFollowForUserNavigation}
54965503
hideEmptyPlaceholder={isDraftHeroState}
5504+
topFadeEnabled={!hasTimelineTopBanner}
54975505
/>
54985506

54995507
{/* scroll to end pill — shown when user has scrolled away from the live edge */}
@@ -5526,17 +5534,6 @@ function ChatViewContent(props: ChatViewProps) {
55265534
: "pointer-events-none absolute inset-x-0 bottom-0 z-20 pt-1.5 sm:pt-2"
55275535
}
55285536
>
5529-
{!isDraftHeroState ? (
5530-
<div
5531-
key="docked-composer-blur"
5532-
aria-hidden="true"
5533-
className="chat-composer-horizontal-inset pointer-events-none absolute inset-x-0 top-1.5 bottom-0 z-0 sm:top-2"
5534-
>
5535-
<div className="relative mx-auto h-full w-full max-w-3xl overflow-clip rounded-t-[20px]">
5536-
<div className="chat-composer-shared-blur absolute -inset-8" />
5537-
</div>
5538-
</div>
5539-
) : null}
55405537
<div
55415538
ref={attachDraftHeroTransitionGroupRef}
55425539
className="chat-composer-horizontal-inset w-full"
@@ -5574,7 +5571,7 @@ function ChatViewContent(props: ChatViewProps) {
55745571
>
55755572
<div
55765573
ref={attachDraftHeroComposerAnchorRef}
5577-
className="relative z-10 mx-auto w-full max-w-3xl"
5574+
className="relative z-10 isolate mx-auto w-full max-w-3xl before:pointer-events-none before:absolute before:inset-x-0 before:bottom-0 before:-z-10 before:h-2 before:rounded-b-[22px] before:bg-background"
55785575
>
55795576
<ChatComposer
55805577
composerRef={composerRef}
@@ -5658,12 +5655,7 @@ function ChatViewContent(props: ChatViewProps) {
56585655
>
56595656
<div
56605657
data-terminal-open={terminalUiState.terminalOpen ? "true" : undefined}
5661-
className={cn(
5662-
"chat-composer-lower-chrome relative z-10",
5663-
isGitRepo
5664-
? "pb-[calc(env(safe-area-inset-bottom)+0.25rem)]"
5665-
: "pb-[calc(env(safe-area-inset-bottom)+0.75rem)] sm:pb-[calc(env(safe-area-inset-bottom)+1rem)]",
5666-
)}
5658+
className="chat-composer-lower-chrome relative z-0 pb-[calc(env(safe-area-inset-bottom)+1rem)] sm:pb-[calc(env(safe-area-inset-bottom)+1.25rem)]"
56675659
>
56685660
{isGitRepo && (
56695661
<div className="pointer-events-auto">

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1948,7 +1948,7 @@ function OpenCommandPaletteDialog(props: {
19481948
<Button
19491949
variant="ghost"
19501950
size="xs"
1951-
className="h-auto px-2 text-zinc-700 text-xs hover:bg-transparent hover:text-foreground dark:text-zinc-300"
1951+
className="h-auto px-2 text-muted-foreground text-xs hover:bg-transparent hover:text-foreground"
19521952
disabled={isPickingProjectFolder}
19531953
onClick={() => {
19541954
void handleOpenProjectFromFileManager();

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

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -521,27 +521,37 @@ export default function DiffPanel({
521521
<ChevronDownIcon className="size-3.5 shrink-0 text-muted-foreground" />
522522
</DropdownMenuTrigger>
523523
<DropdownMenuContent align="start" className="w-60">
524-
<DropdownMenuItem onClick={() => selectGitScope("unstaged")}>
524+
<DropdownMenuItem
525+
className={
526+
selectedTurnId === null && selectedGitScope === "unstaged"
527+
? "bg-foreground/[0.08]"
528+
: undefined
529+
}
530+
onClick={() => selectGitScope("unstaged")}
531+
>
525532
<span>Working tree</span>
526-
{selectedTurnId === null && selectedGitScope === "unstaged" && (
527-
<CheckIcon className="ml-auto" />
528-
)}
529533
</DropdownMenuItem>
530-
<DropdownMenuItem onClick={() => selectGitScope("branch")}>
534+
<DropdownMenuItem
535+
className={
536+
selectedTurnId === null && selectedGitScope === "branch"
537+
? "bg-foreground/[0.08]"
538+
: undefined
539+
}
540+
onClick={() => selectGitScope("branch")}
541+
>
531542
<span>Branch changes</span>
532-
{selectedTurnId === null && selectedGitScope === "branch" && (
533-
<CheckIcon className="ml-auto" />
534-
)}
535543
</DropdownMenuItem>
536544
<DropdownMenuItem
545+
className={
546+
selectedTurnId !== null && selectedTurn?.turnId === latestTurn?.turnId
547+
? "bg-foreground/[0.08]"
548+
: undefined
549+
}
537550
onClick={() => {
538551
if (latestTurn) selectTurn(latestTurn.turnId);
539552
}}
540553
>
541554
<span>Latest turn</span>
542-
{selectedTurnId !== null && selectedTurn?.turnId === latestTurn?.turnId && (
543-
<CheckIcon className="ml-auto" />
544-
)}
545555
</DropdownMenuItem>
546556
<DropdownMenuSub>
547557
<DropdownMenuSubTrigger>Turn</DropdownMenuSubTrigger>
@@ -554,13 +564,15 @@ export default function DiffPanel({
554564
return (
555565
<DropdownMenuItem
556566
key={summary.turnId}
567+
className={
568+
summary.turnId === selectedTurn?.turnId ? "bg-foreground/[0.08]" : undefined
569+
}
557570
onClick={() => selectTurn(summary.turnId)}
558571
>
559572
<span>Turn {turnCount}</span>
560573
<span className="ml-auto text-xs tabular-nums text-muted-foreground">
561574
{formatShortTimestamp(summary.completedAt, settings.timestampFormat)}
562575
</span>
563-
{summary.turnId === selectedTurn?.turnId && <CheckIcon className="ml-1" />}
564576
</DropdownMenuItem>
565577
);
566578
})}

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

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

545545
return (
546546
<Dialog open={props.open} onOpenChange={handleOpenChange}>
547-
<DialogPopup className="max-w-xl overflow-hidden">
548-
<div className="flex min-h-0 flex-col overflow-hidden border-foreground/10 bg-background shadow-2xl">
549-
<DialogHeader className="border-b border-border/70 bg-background">
547+
<DialogPopup className="workflow-dialog-surface max-w-xl overflow-hidden before:hidden">
548+
<div className="flex min-h-0 flex-col overflow-hidden border-foreground/10 bg-transparent">
549+
<DialogHeader className="border-b border-border/70 bg-foreground/[0.025]">
550550
<DialogTitle>Publish repository</DialogTitle>
551551
<DialogDescription>
552552
Pick where to host it, then point us at a repo to push to.
@@ -913,7 +913,7 @@ function PublishRepositoryDialog(props: PublishRepositoryDialogProps) {
913913
</AnimatedHeight>
914914
</DialogPanel>
915915

916-
<DialogFooter>
916+
<DialogFooter className="dark:border-white/5 dark:bg-white/[0.025]">
917917
{publishWizardStep === 2 ? (
918918
<Button size="sm" onClick={() => handleOpenChange(false)}>
919919
Done
@@ -1736,7 +1736,7 @@ export default function GitActionsControl({
17361736
>
17371737
<ChevronDownIcon aria-hidden="true" className="size-4" />
17381738
</MenuTrigger>
1739-
<MenuPopup align="end" className="w-full">
1739+
<MenuPopup align="end" className="command-menu-surface w-full">
17401740
{gitActionMenuItems.map((item) => {
17411741
const disabledReason = getMenuActionDisabledReason({
17421742
item,
@@ -1825,7 +1825,7 @@ export default function GitActionsControl({
18251825
}
18261826
}}
18271827
>
1828-
<DialogPopup>
1828+
<DialogPopup className="workflow-dialog-surface before:hidden">
18291829
<DialogHeader>
18301830
<DialogTitle>{COMMIT_DIALOG_TITLE}</DialogTitle>
18311831
<DialogDescription>{COMMIT_DIALOG_DESCRIPTION}</DialogDescription>
@@ -1955,7 +1955,7 @@ export default function GitActionsControl({
19551955
/>
19561956
</div>
19571957
</DialogPanel>
1958-
<DialogFooter>
1958+
<DialogFooter className="dark:border-white/5 dark:bg-white/[0.025]">
19591959
<Button
19601960
variant="outline"
19611961
size="sm"
@@ -1998,14 +1998,14 @@ export default function GitActionsControl({
19981998
}
19991999
}}
20002000
>
2001-
<DialogPopup className="max-w-xl">
2001+
<DialogPopup className="workflow-dialog-surface max-w-xl before:hidden">
20022002
<DialogHeader>
20032003
<DialogTitle>
20042004
{pendingDefaultBranchActionCopy?.title ?? "Run action on default refName?"}
20052005
</DialogTitle>
20062006
<DialogDescription>{pendingDefaultBranchActionCopy?.description}</DialogDescription>
20072007
</DialogHeader>
2008-
<DialogFooter className="sm:flex-wrap sm:items-center">
2008+
<DialogFooter className="dark:border-white/5 dark:bg-white/[0.025] sm:flex-wrap sm:items-center">
20092009
<Button
20102010
className="w-full sm:mr-auto sm:w-auto"
20112011
variant="outline"

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ export default function ProjectScriptsControl({
276276
>
277277
<ChevronDownIcon className="size-4" />
278278
</MenuTrigger>
279-
<MenuPopup align="end">
279+
<MenuPopup align="end" className="command-menu-surface">
280280
{scripts.map((script) => {
281281
const shortcutLabel = shortcutLabelForCommand(
282282
keybindings,
@@ -364,7 +364,7 @@ export default function ProjectScriptsControl({
364364
}}
365365
open={dialogOpen}
366366
>
367-
<DialogPopup>
367+
<DialogPopup className="workflow-dialog-surface before:hidden">
368368
<DialogHeader>
369369
<DialogTitle>{isEditing ? "Edit Action" : "Add Action"}</DialogTitle>
370370
<DialogDescription>
@@ -389,7 +389,7 @@ export default function ProjectScriptsControl({
389389
>
390390
<ScriptIcon icon={icon} className="size-4.5" />
391391
</PopoverTrigger>
392-
<PopoverPopup align="start">
392+
<PopoverPopup align="start" className="command-menu-surface">
393393
<div className="grid grid-cols-3 gap-2">
394394
{SCRIPT_ICONS.map((entry) => {
395395
const isSelected = entry.id === icon;
@@ -480,7 +480,7 @@ export default function ProjectScriptsControl({
480480
{validationError && <p className="text-sm text-destructive">{validationError}</p>}
481481
</form>
482482
</DialogPanel>
483-
<DialogFooter>
483+
<DialogFooter className="dark:border-white/5 dark:bg-white/[0.025]">
484484
{isEditing && (
485485
<Button
486486
type="button"

‎apps/web/src/components/Sidebar.logic.test.ts‎

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -834,26 +834,24 @@ describe("resolveThreadStatusPill", () => {
834834
});
835835

836836
describe("resolveThreadRowClassName", () => {
837-
it("uses the darker selected palette when a thread is both selected and active", () => {
837+
it("uses the active sidebar surface when a thread is both selected and active", () => {
838838
const className = resolveThreadRowClassName({ isActive: true, isSelected: true });
839-
expect(className).toContain("bg-primary/22");
840-
expect(className).toContain("hover:bg-primary/26");
841-
expect(className).toContain("dark:bg-primary/30");
842-
expect(className).not.toContain("bg-accent/85");
839+
expect(className).toContain("bg-sidebar-row-active");
840+
expect(className).toContain("text-sidebar-foreground");
841+
expect(className).not.toContain("bg-primary");
843842
});
844843

845844
it("uses selected hover colors for selected threads", () => {
846845
const className = resolveThreadRowClassName({ isActive: false, isSelected: true });
847-
expect(className).toContain("bg-primary/15");
848-
expect(className).toContain("hover:bg-primary/19");
849-
expect(className).toContain("dark:bg-primary/22");
850-
expect(className).not.toContain("hover:bg-accent");
846+
expect(className).toContain("bg-sidebar-row-selected");
847+
expect(className).toContain("hover:bg-sidebar-row-active");
848+
expect(className).not.toContain("bg-primary");
851849
});
852850

853-
it("keeps the accent palette for active-only threads", () => {
851+
it("uses the active sidebar surface for active-only threads", () => {
854852
const className = resolveThreadRowClassName({ isActive: true, isSelected: false });
855-
expect(className).toContain("bg-accent/85");
856-
expect(className).toContain("hover:bg-accent");
853+
expect(className).toContain("bg-sidebar-row-active");
854+
expect(className).toContain("hover:bg-sidebar-row-active");
857855
});
858856
});
859857

‎apps/web/src/components/Sidebar.logic.ts‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -391,30 +391,33 @@ export function resolveThreadRowClassName(input: {
391391
isSelected: boolean;
392392
}): string {
393393
const baseClassName =
394-
"h-6 w-full translate-x-0 cursor-pointer justify-start px-2 text-left select-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring sm:h-7";
394+
"h-8 w-full translate-x-0 cursor-pointer justify-start rounded-md px-2 text-left text-sm select-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring";
395395

396396
if (input.isSelected && input.isActive) {
397397
return cn(
398398
baseClassName,
399-
"bg-primary/22 text-foreground font-medium hover:bg-primary/26 hover:text-foreground dark:bg-primary/30 dark:hover:bg-primary/36",
399+
"bg-sidebar-row-active text-sidebar-foreground font-medium hover:bg-sidebar-row-active hover:text-sidebar-foreground",
400400
);
401401
}
402402

403403
if (input.isSelected) {
404404
return cn(
405405
baseClassName,
406-
"bg-primary/15 text-foreground hover:bg-primary/19 hover:text-foreground dark:bg-primary/22 dark:hover:bg-primary/28",
406+
"bg-sidebar-row-selected text-sidebar-foreground hover:bg-sidebar-row-active hover:text-sidebar-foreground",
407407
);
408408
}
409409

410410
if (input.isActive) {
411411
return cn(
412412
baseClassName,
413-
"bg-accent/85 text-foreground font-medium hover:bg-accent hover:text-foreground dark:bg-accent/55 dark:hover:bg-accent/70",
413+
"bg-sidebar-row-active text-sidebar-foreground font-medium hover:bg-sidebar-row-active hover:text-sidebar-foreground",
414414
);
415415
}
416416

417-
return cn(baseClassName, "text-muted-foreground hover:bg-accent hover:text-foreground");
417+
return cn(
418+
baseClassName,
419+
"text-sidebar-muted-foreground/80 hover:bg-sidebar-row-hover hover:text-sidebar-foreground",
420+
);
418421
}
419422

420423
// ── Sidebar v2 status model ─────────────────────────────────────────

0 commit comments

Comments
 (0)