Skip to content

Commit 9975b36

Browse files
committed
refactor(web): remove the empty pane header actions wrapper
1 parent 6fa32cf commit 9975b36

4 files changed

Lines changed: 0 additions & 53 deletions

File tree

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ import {
302302
ChatPaneHeaderControls,
303303
useHeaderControlsInset,
304304
} from "./chat/ChatPaneHeader";
305-
import { PaneHeaderActions } from "./chat/PaneHeaderActions";
306305
import GitActionsControl from "./GitActionsControl";
307306
import { useOpenFavoriteEditorShortcut } from "./chat/OpenInPickerShortcut";
308307
import { PanelLayoutControls, type PanelLayoutControlsProps } from "./chat/PanelLayoutControls";
@@ -3416,13 +3415,6 @@ export default function ChatView(props: ChatViewProps) {
34163415
);
34173416
const panelLayoutControls = (
34183417
<ChatPaneHeaderControls measureRef={measureHeaderControls}>
3419-
<PaneHeaderActions
3420-
environmentId={activeThread.environmentId}
3421-
threadId={activeThread.id}
3422-
{...(draftId ? { draftId } : {})}
3423-
activeProjectName={activeProject?.title}
3424-
projectId={activeProject?.id ?? null}
3425-
/>
34263418
{panelToggleControls}
34273419
</ChatPaneHeaderControls>
34283420
);

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

Lines changed: 0 additions & 26 deletions
This file was deleted.

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { useState } from "react";
66
import {
77
AuthOrchestrationOperateScope,
88
type EnvironmentId,
9-
type ProjectId,
109
type ScheduledTask,
1110
type ThreadId,
1211
} from "@t3tools/contracts";
@@ -237,11 +236,3 @@ export function ThreadAutomationsPanel(props: {
237236
</ThreadDetailsSection>
238237
);
239238
}
240-
241-
export function ProjectAutomationsHeaderControl(_props: {
242-
readonly environmentId: EnvironmentId;
243-
readonly projectId: ProjectId;
244-
readonly projectName: string;
245-
}) {
246-
return null;
247-
}

‎apps/web/src/layout/ChatPaneStandIn.tsx‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
ChatPaneHeaderControls,
88
useHeaderControlsInset,
99
} from "../components/chat/ChatPaneHeader";
10-
import { PaneHeaderActions } from "../components/chat/PaneHeaderActions";
1110
import { PanelLayoutControls } from "../components/chat/PanelLayoutControls";
1211
import { useComposerDraftStore } from "../composerDraftStore";
1312
import { shortcutLabelForCommand } from "../keybindings";
@@ -52,15 +51,6 @@ export function ChatPaneStandIn({ target }: { target: ThreadRouteTarget }) {
5251
<div className="flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden">
5352
<ChatPaneHeader reserveNativeControlsInset>
5453
<ChatPaneHeaderControls measureRef={measureControls}>
55-
{threadRef ? (
56-
<PaneHeaderActions
57-
environmentId={threadRef.environmentId}
58-
threadId={threadRef.threadId}
59-
{...(target.kind === "draft" ? { draftId: target.draftId } : {})}
60-
activeProjectName={project?.title}
61-
projectId={project?.id ?? null}
62-
/>
63-
) : null}
6454
<PanelLayoutControls
6555
threadPanelOpen={threadPanelOpen}
6656
threadPanelPresentation="inline"

0 commit comments

Comments
 (0)