:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(desktop): stop split tile header clipping task actions (#103367)
Shy Alteref00a10bbb8f
diff --git a/products/desktop/packages/ui/src/features/tab-tiling/TabTile.tsx b/products/desktop/packages/ui/src/features/tab-tiling/TabTile.tsxindex 2c87af315d7a..32bfe3b11348 100644--- a/products/desktop/packages/ui/src/features/tab-tiling/TabTile.tsx+++ b/products/desktop/packages/ui/src/features/tab-tiling/TabTile.tsx@@ -93,7 +93,6 @@ function TileHeader({className={isActive ? "bg-background" : "bg-muted"}actions={<>- {task && <TaskHeaderActions task={task} />}{isActive && activitySelection?.kind === "task" && (<ActivityDetailCloseButton />)}@@ -108,7 +107,10 @@ function TileHeader({</>}>- <TilePill tab={tab} isActive={isActive} onActivate={onActivate} />+ <div className="flex min-w-0 flex-1 items-center">+ <TilePill tab={tab} isActive={isActive} onActivate={onActivate} />+ </div>+ {task && <TaskHeaderActions task={task} />}</ChromeBar>);}diff --git a/products/desktop/packages/ui/src/features/task-detail/components/TaskAnalysisButton.tsx b/products/desktop/packages/ui/src/features/task-detail/components/TaskAnalysisButton.tsxindex 75d610c17918..0133f7ba389e 100644--- a/products/desktop/packages/ui/src/features/task-detail/components/TaskAnalysisButton.tsx+++ b/products/desktop/packages/ui/src/features/task-detail/components/TaskAnalysisButton.tsx@@ -1,4 +1,3 @@-import { Button } from "@posthog/quill";import {ANALYTICS_EVENTS,isTerminalStatus,@@ -6,7 +5,6 @@ import {} from "@posthog/shared";import type { Task } from "@posthog/shared/domain-types";import { toastError } from "@posthog/ui/features/notifications/errorDetails";-import type { ReactElement } from "react";import { useAuthenticatedMutation } from "../../../hooks/useAuthenticatedMutation";import { track } from "../../../shell/analytics";import { useFeatureFlag } from "../../feature-flags/useFeatureFlag";@@ -54,25 +52,3 @@ export function useTaskAnalysis(task: Task): TaskAnalysisControls {run: () => mutation.mutate(),};}--export function TaskAnalysisButton({- task,-}: {- task: Task;-}): ReactElement | null {- const { canAnalyze, isPending, run } = useTaskAnalysis(task);-- if (!canAnalyze) return null;-- return (- <Button- size="sm"- variant="outline"- onClick={run}- loading={isPending}- disabled={isPending}- >- Run analysis- </Button>- );-}diff --git a/products/desktop/packages/ui/src/features/task-detail/components/TaskHeaderActions.test.tsx b/products/desktop/packages/ui/src/features/task-detail/components/TaskHeaderActions.test.tsxindex 9d06ca33d7d5..2ed592e2772f 100644--- a/products/desktop/packages/ui/src/features/task-detail/components/TaskHeaderActions.test.tsx+++ b/products/desktop/packages/ui/src/features/task-detail/components/TaskHeaderActions.test.tsx@@ -58,10 +58,6 @@ vi.mock("./TaskOverflowMenu", () => ({vi.mock("@posthog/ui/features/diff-stats/DiffStatsBadge", () => ({DiffStatsBadge: () => null,}));-// Needs an authenticated client, so a TRPC provider these renders don't set up.-vi.mock("./TaskAnalysisButton", () => ({- TaskAnalysisButton: () => null,-}));// Reads the route, which these renders don't provide. The Code scene's answer// is false, and that is the row this test covers.vi.mock("@posthog/ui/features/navigation/useReviewInRightPanel", () => ({diff --git a/products/desktop/packages/ui/src/features/task-detail/components/TaskHeaderActions.tsx b/products/desktop/packages/ui/src/features/task-detail/components/TaskHeaderActions.tsxindex a5083a4ee806..1c67646f7d27 100644--- a/products/desktop/packages/ui/src/features/task-detail/components/TaskHeaderActions.tsx+++ b/products/desktop/packages/ui/src/features/task-detail/components/TaskHeaderActions.tsx@@ -15,7 +15,6 @@ import {useWorkspaceLoaded,} from "@posthog/ui/features/workspace/useWorkspace";import { Tooltip } from "@posthog/ui/primitives/Tooltip";-import { TaskAnalysisButton } from "./TaskAnalysisButton";import { TaskOverflowMenu } from "./TaskOverflowMenu";function TaskDiffStatsBadge({ task }: { task: Task }) {@@ -51,9 +50,6 @@ export function TaskHeaderActions({ task }: { task: Task }) {<div className="no-drag flex"><AutoresearchHeaderButton taskId={task.id} /></div>- <div className="no-drag flex">- <TaskAnalysisButton task={task} />- </div>{workspace && (workspace.branchName || workspace.baseBranch) && (<div className="no-drag flex h-full min-w-0 items-center"><BranchSelector