From ae55170343daf29c700b8dd504be303d66915376 Mon Sep 17 00:00:00 2001 From: Yuneng Jiang Date: Fri, 10 Jul 2026 18:05:49 -0700 Subject: [PATCH] fix(ui): show filter-select label and shape loading skeletons per column The workflow-runs Status filter leaked the internal "__all__" sentinel as its displayed value because Base UI's Select.Value renders the raw value when no items map or children function is given. Drop the sentinel and use Base UI's native null handling: a null "All statuses" item plus a placeholder, with an items map so a real selection renders its capitalized label rather than the raw status string The shared DataTable rendered every loading-skeleton cell as one identical half-width bar, which read as a rigid grid instead of the table beneath it. Vary the skeleton width per column and add a per-column skeleton shape hint (text or twoLine) on ColumnMeta so identity columns like the workflow "Run" cell get a two-line skeleton that matches their real content --- .../(dashboard)/workflows/WorkflowRuns.tsx | 23 ++++++++----- .../shared/DataTable/DataTable.test.tsx | 17 ++++++++++ .../components/shared/DataTable/DataTable.tsx | 32 ++++++++++++++----- .../components/shared/DataTable/columnMeta.ts | 3 +- .../src/components/shared/DataTable/types.ts | 1 + 5 files changed, 59 insertions(+), 17 deletions(-) diff --git a/ui/litellm-dashboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx b/ui/litellm-dashboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx index 119e61c0222..9afa07251c2 100644 --- a/ui/litellm-dashboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx +++ b/ui/litellm-dashboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx @@ -67,7 +67,13 @@ const STATUS_DOT: Record = { }; const RUN_STATUS_OPTIONS: RunStatus[] = ["pending", "running", "paused", "completed", "failed"]; -const FILTER_ALL = "__all__"; +const STATUS_LABELS: Record = { + pending: "Pending", + running: "Running", + paused: "Paused", + completed: "Completed", + failed: "Failed", +}; const EVENT_COLOR: Record = { "step.started": { bar: "#f0fdf4", border: "#86efac", text: "#16a34a" }, @@ -562,7 +568,7 @@ const WorkflowRuns: React.FC = ({ accessToken }) => { id: "run", accessorFn: (row) => `${runTitle(row)} ${row.run_id}`, header: "Run", - meta: { title: "Run" }, + meta: { title: "Run", skeleton: "twoLine" }, cell: ({ row }) => { const run = row.original; return ( @@ -674,17 +680,18 @@ const WorkflowRuns: React.FC = ({ accessToken }) => { <>