The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
feat(lens): show investigation names in findings table (#44753)
moe-berri4cc442f5ee3b
diff --git a/ui/litellm-dashboard/src/components/lens/investigations/FindingsView.integration.test.tsx b/ui/litellm-dashboard/src/components/lens/investigations/FindingsView.integration.test.tsxindex 4577a139531..2e3a6440a19 100644--- a/ui/litellm-dashboard/src/components/lens/investigations/FindingsView.integration.test.tsx+++ b/ui/litellm-dashboard/src/components/lens/investigations/FindingsView.integration.test.tsx@@ -29,6 +29,12 @@ it("deduplicates findings across investigations and applies feedback to every sorenderWithLens(<FindingsView />, { searchParams: "?tab=findings", onUrlUpdate });const rows = await screen.findAllByRole("row", { name: issue.title });expect(rows).toHaveLength(1);+ expect(screen.getByRole("columnheader", { name: "Investigation", exact: true })).toBeVisible();+ const investigations = `${support.settings.name}, ${twin.settings.name}`;+ expect(within(rows[0]).getByRole("cell", { name: investigations, exact: true })).toHaveAttribute(+ "title",+ investigations,+ );expect(within(rows[0]).getByRole("cell", { name: "2", exact: true })).toBeVisible();await user.click(rows[0]);const panel = await screen.findByRole("complementary", { name: "Finding details" });@@ -101,6 +107,7 @@ it("reviews only the selected check when two findings have the same title", asynrenderWithLens(<FindingsView />, { searchParams: "?tab=findings" });const rows = await screen.findAllByRole("row", { name: issue.title });expect(rows).toHaveLength(2);+ expect(within(rows[0]).getByRole("cell", { name: support.settings.name, exact: true })).toBeVisible();await user.click(rows[0]);await user.click(await screen.findByRole("button", { name: "Mark resolved" }));await waitFor(() => expect(proxy.patch).toHaveBeenCalledTimes(1));diff --git a/ui/litellm-dashboard/src/components/lens/investigations/FindingsView.tsx b/ui/litellm-dashboard/src/components/lens/investigations/FindingsView.tsxindex 2f261da73e5..bf417042264 100644--- a/ui/litellm-dashboard/src/components/lens/investigations/FindingsView.tsx+++ b/ui/litellm-dashboard/src/components/lens/investigations/FindingsView.tsx@@ -37,6 +37,15 @@ const PRIORITIES: { value: Priority | "all"; label: string }[] = [{ value: "low", label: "Low" },];+function InvestigationCell({ sources }: Pick<InboxRow, "sources">) {+ const names = [...new Set(sources.map(({ lens }) => lens.settings.name))].join(", ");+ return (+ <td className="hidden truncate px-3 text-muted-foreground lg:table-cell" title={names}>+ {names}+ </td>+ );+}+function FilterSelect<T extends string>({label,value,@@ -167,6 +176,7 @@ export function FindingsView({ readOnly = false }: { readOnly?: boolean }) {<tr className="h-8 border-b text-xs tracking-wider text-muted-foreground uppercase"><th className="w-20 px-3 font-medium">Priority</th><th className="px-3 font-medium">Finding</th>+ <th className="hidden w-48 px-3 font-medium lg:table-cell">Investigation</th><th className="hidden w-40 px-3 font-medium md:table-cell">Agent</th><th className="hidden w-16 px-3 text-right font-medium sm:table-cell">Runs</th><th className="hidden w-24 px-3 font-medium lg:table-cell">Last seen</th>@@ -200,6 +210,7 @@ export function FindingsView({ readOnly = false }: { readOnly?: boolean }) {{row.agents.join(", ")} · {row.runs} {row.runs === 1 ? "run" : "runs"}</span></td>+ <InvestigationCell sources={row.sources} /><tdclassName="hidden truncate px-3 text-muted-foreground md:table-cell"title={row.agents.join(", ")}