Skip to content

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]

fix(ui): give the request details drawer an accessible name

Yuneng Jiangc344b9a0520c
diff --git a/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailContent.test.tsx b/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailContent.test.tsx
index 000e6ccd567..01b040b5c17 100644
--- a/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailContent.test.tsx
+++ b/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailContent.test.tsx
@@ -318,8 +318,6 @@ describe("LogDetailContent", () => {
render(<LogDetailContent logEntry={createLogEntry({ cache_hit: "True" })} />);
expect(screen.getByText("Response Cache")).toBeInTheDocument();
- // Response Cache is the only metric with an info tooltip in this fixture, so an
- // unscoped lookup still pins the docs link to that label.
const infoIcons = screen.getAllByRole("img", { name: /info/i });
expect(infoIcons).toHaveLength(1);
await user.hover(infoIcons[0]);
@@ -345,7 +343,6 @@ describe("LogDetailContent", () => {
);
expect(screen.getByText("Prompt Cache Read Tokens")).toBeInTheDocument();
- // Prompt Cache Read Tokens is the only metric with an info tooltip in this fixture.
const infoIcons = screen.getAllByRole("img", { name: /info/i });
expect(infoIcons).toHaveLength(1);
await user.hover(infoIcons[0]);
diff --git a/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailsDrawer.tsx b/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailsDrawer.tsx
index 40e6e6f2051..83049a12fd2 100644
--- a/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailsDrawer.tsx
+++ b/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailsDrawer.tsx
@@ -1,7 +1,7 @@
import { useEffect, useMemo, useState } from "react";
import { Bot, Check, ChevronLeft, ChevronRight, Copy, Sparkles, Wrench } from "lucide-react";
import { Button } from "@/components/ui/button";
-import { Sheet, SheetContent } from "@/components/ui/sheet";
+import { Sheet, SheetContent, SheetTitle } from "@/components/ui/sheet";
import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { LogEntry } from "../columns";
import { AutoRouterIcon, useIsAutoRoutedModelGroup } from "@/components/shared/table_cells";
@@ -310,6 +310,9 @@ export function LogDetailsDrawer({
className="gap-0 overflow-hidden p-0 data-[side=right]:sm:max-w-none"
style={{ width: DRAWER_WIDTH }}
>
+ <SheetTitle className="sr-only">
+ {logEntry?.request_id ? `Request ${logEntry.request_id} details` : "Request details"}
+ </SheetTitle>
<div style={{ height: "100%" }} className="flex relative">
{!isSidebarCollapsed ? (
<Button