diff --git a/packages/dashboard/app/components/Lane.tsx b/packages/dashboard/app/components/Lane.tsx index 4b912e1171..547af5cb74 100644 --- a/packages/dashboard/app/components/Lane.tsx +++ b/packages/dashboard/app/components/Lane.tsx @@ -1,7 +1,6 @@ import "./Lane.css"; import { memo, useCallback, useEffect, useMemo, useRef } from "react"; import { useTranslation } from "react-i18next"; -import { ChevronDown, ChevronRight } from "lucide-react"; import type { Task, TaskDetail, Column as ColumnType, TaskCreateInput, GithubIssueAction } from "@fusion/core"; import { Column } from "./Column"; import { sortTasksForDisplayColumn } from "./taskSorting"; @@ -153,9 +152,7 @@ function LaneComponent(props: LaneProps) { ? t("lane.expand", "Expand {{name}} lane", { name: workflow.name }) : t("lane.collapse", "Collapse {{name}} lane", { name: workflow.name })} data-testid={`lane-toggle-${workflow.id}`} - > - {collapsed ? : } - + />

{workflow.name}

{tasks.length} diff --git a/packages/dashboard/app/components/__tests__/Lane.test.tsx b/packages/dashboard/app/components/__tests__/Lane.test.tsx index 5706d662c6..8604b65933 100644 --- a/packages/dashboard/app/components/__tests__/Lane.test.tsx +++ b/packages/dashboard/app/components/__tests__/Lane.test.tsx @@ -24,9 +24,7 @@ vi.mock("../PluginSlot", () => ({ PluginSlot: () => null })); vi.mock("lucide-react", () => ({ Link: () => null, Clock: () => null, - ChevronDown: () => null, ChevronUp: () => null, - ChevronRight: () => null, Archive: () => null, MoreVertical: () => null, AlertTriangle: () => null, @@ -122,6 +120,11 @@ describe("Lane", () => { expect(props.onToggleCollapse).toHaveBeenCalledWith("builtin:coding"); }); + it("does not render a chevron icon in the lane toggle", () => { + render(); + expect(screen.getByTestId("lane-toggle-builtin:coding").querySelector("svg")).toBeNull(); + }); + it("shows the auto-merge toggle for human-review workflow columns", () => { render(); expect(screen.getByText("Auto-merge")).toBeDefined();