diff --git a/ui/litellm-dashboard/src/components/lens/investigations/StepFeed.tsx b/ui/litellm-dashboard/src/components/lens/investigations/StepFeed.tsx deleted file mode 100644 index 1ccba20c03f..00000000000 --- a/ui/litellm-dashboard/src/components/lens/investigations/StepFeed.tsx +++ /dev/null @@ -1,72 +0,0 @@ -"use client"; - -import { ChevronDown } from "lucide-react"; -import { useState } from "react"; - -import { cn } from "@/lib/cva.config"; - -import { modelsUsed, stepLine, windowLabel } from "../model/inbox"; -import type { Job } from "../model/types"; - -const STEP_MARK = { model: "✓", stage: "▸", error: "!" } as const; -const STEP_TONE = { - model: "text-foreground", - stage: "text-[#0011b3] dark:text-[#8b9bff]", - error: "text-[#e5484d]", -} as const; - -export function StepFeed({ job }: { job: Job }) { - const [open, setOpen] = useState(true); - const steps = job.steps ?? []; - const models = modelsUsed(steps); - const calls = steps.filter((s) => s.kind === "model").length; - return ( -
- - {open && ( -
    - {steps.length === 0 &&
  1. Waiting for the worker to start…
  2. } - {[...steps].reverse().map((step, index) => ( -
  3. - - - {new Date(step.at).toLocaleTimeString(undefined, { hour12: false })} - - {stepLine(step)} - {step.model} -
  4. - ))} -
- )} -
- ); -} diff --git a/ui/litellm-dashboard/src/components/lens/investigations/detail/InvestigationDetail.tsx b/ui/litellm-dashboard/src/components/lens/investigations/detail/InvestigationDetail.tsx index 6b40b893a26..2c4f37fcf6f 100644 --- a/ui/litellm-dashboard/src/components/lens/investigations/detail/InvestigationDetail.tsx +++ b/ui/litellm-dashboard/src/components/lens/investigations/detail/InvestigationDetail.tsx @@ -6,7 +6,6 @@ import { Button } from "@/components/ui/button"; import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs"; import { RunsTab } from "./RunsTab"; import { InvestigationProgress } from "../InvestigationProgress"; -import { StepFeed } from "../StepFeed"; import { LiveRun } from "../live/LiveRun"; import { liveJob } from "../../model/live"; import { RunNowDialog } from "./RunNowDialog"; @@ -75,7 +74,6 @@ export function InvestigationDetail({ setHistoryOffset, } = results; const live = liveJob(lens.jobs); - const cancel = readOnly ? undefined : () => void update((api) => api.cancelRun(lens.id)); return (
@@ -100,9 +98,14 @@ export function InvestigationDetail({ )}
- {live && } - {active && !live && } - {active && !live && } + {active && ( + void update((api) => api.cancelRun(lens.id))} + /> + )} + {live && } {runNow && (