Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/desktop/src/renderer/components/app/AppShell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,8 @@ export function AppShell({ children }: { children: React.ReactNode }) {
const laneId = aiFailure.laneId;
if (!laneId) return;
selectLane(laneId);
setLaneInspectorTab(laneId, "packs");
window.location.hash = `#/lanes?laneId=${encodeURIComponent(laneId)}&focus=single&inspectorTab=packs`;
setLaneInspectorTab(laneId, "context");
window.location.hash = `#/lanes?laneId=${encodeURIComponent(laneId)}&focus=single&inspectorTab=context`;
}}
title="Open lane packs"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,10 @@ export function HistoryPage() {
<Button
variant="outline"
size="sm"
onClick={() => navigate(`/lanes?laneId=${encodeURIComponent(selected.laneId!)}&inspectorTab=packs`)}
title="Open lane packs"
onClick={() => navigate(`/lanes?laneId=${encodeURIComponent(selected.laneId!)}&inspectorTab=context`)}
title="Open lane context"
>
Open packs
Open context
</Button>
</div>
) : null}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@ import { LanePrPanel } from "../prs/LanePrPanel";
import { LaneConflictsPanel } from "./LaneConflictsPanel";

const tabTrigger =
"px-2.5 py-1.5 text-xs font-semibold rounded-lg text-muted-fg transition-colors data-[state=active]:text-fg data-[state=active]:bg-accent/10";
"px-3 py-1.5 text-xs font-semibold rounded-md cursor-pointer select-none text-muted-fg border border-transparent transition-all hover:text-fg hover:bg-white/5 data-[state=active]:text-fg data-[state=active]:bg-accent/15 data-[state=active]:border-border/30 data-[state=active]:shadow-sm";

export function LaneInspectorPane({
laneId,
defaultTab
}: {
laneId: string | null;
defaultTab?: "packs" | "pr" | "conflicts";
defaultTab?: "context" | "pr" | "conflicts";
}) {
const [tab, setTab] = useState<"packs" | "pr" | "conflicts">(defaultTab ?? "packs");
const [tab, setTab] = useState<"context" | "pr" | "conflicts">(defaultTab ?? "context");

return (
<Tabs.Root
value={tab}
onValueChange={(v) => setTab(v as "packs" | "pr" | "conflicts")}
onValueChange={(v) => setTab(v as "context" | "pr" | "conflicts")}
className="flex h-full flex-col"
>
<Tabs.List className="flex gap-1 border-b border-border/10 px-2 shrink-0">
<Tabs.Trigger className={cn(tabTrigger)} value="packs">
Packs
<Tabs.Trigger className={cn(tabTrigger)} value="context">
Context
</Tabs.Trigger>
<Tabs.Trigger className={cn(tabTrigger)} value="pr">
PR
Expand All @@ -35,7 +35,7 @@ export function LaneInspectorPane({
</Tabs.Trigger>
</Tabs.List>
<div className="flex-1 min-h-0 p-2">
<Tabs.Content value="packs" className="h-full overflow-auto">
<Tabs.Content value="context" className="h-full overflow-auto">
<PackViewer laneId={laneId} />
</Tabs.Content>
<Tabs.Content value="pr" className="h-full overflow-auto">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ export function LaneTerminalsPanel({ overrideLaneId }: { overrideLaneId?: string

<Dialog.Root open={settingsOpen} onOpenChange={setSettingsOpen}>
<Dialog.Portal>
<Dialog.Overlay className="fixed inset-0 z-50 bg-black/40 backdrop-blur-sm" />
<Dialog.Overlay className="fixed inset-0 z-50 bg-black/5 backdrop-blur-md" />
<Dialog.Content className="fixed left-1/2 top-[12%] z-50 w-[min(880px,calc(100vw-24px))] -translate-x-1/2 rounded border border-border bg-card p-4 shadow-2xl focus:outline-none">
<div className="mb-3 flex items-center justify-between gap-3">
<Dialog.Title className="text-sm font-semibold">Terminal Settings</Dialog.Title>
Expand Down
215 changes: 97 additions & 118 deletions apps/desktop/src/renderer/components/lanes/LanesPage.tsx

Large diffs are not rendered by default.

Loading