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]

ui fix order of cols on audit logs

Ishaan Jaffa134842b494f
diff --git a/ui/litellm-dashboard/src/components/view_logs/columns.tsx b/ui/litellm-dashboard/src/components/view_logs/columns.tsx
index 4b9eb06ebcc..30bd48f7c7f 100644
--- a/ui/litellm-dashboard/src/components/view_logs/columns.tsx
+++ b/ui/litellm-dashboard/src/components/view_logs/columns.tsx
@@ -460,31 +460,6 @@ export const auditLogColumns: ColumnDef<AuditLogEntry>[] = [
accessorKey: "updated_at",
cell: (info: any) => <TimeCell utcTime={info.getValue()} />,
},
- {
- header: "Action",
- accessorKey: "action",
- cell: (info: any) => <span>{getActionBadge(info.getValue())}</span>,
- },
- {
- header: "Changed By",
- accessorKey: "changed_by",
- cell: (info: any) => {
- const changedBy = info.row.original.changed_by;
- const apiKey = info.row.original.changed_by_api_key;
- return (
- <div className="space-y-1">
- <div className="font-medium">{changedBy}</div>
- {apiKey && ( // Only show API key if it exists
- <Tooltip title={apiKey}>
- <div className="text-xs text-muted-foreground max-w-[15ch] truncate"> {/* Apply max-width and truncate */}
- {apiKey}
- </div>
- </Tooltip>
- )}
- </div>
- );
- },
- },
{
header: "Table Name",
accessorKey: "table_name",
@@ -513,6 +488,31 @@ export const auditLogColumns: ColumnDef<AuditLogEntry>[] = [
return <span>{displayValue}</span>;
},
},
+ {
+ header: "Action",
+ accessorKey: "action",
+ cell: (info: any) => <span>{getActionBadge(info.getValue())}</span>,
+ },
+ {
+ header: "Changed By",
+ accessorKey: "changed_by",
+ cell: (info: any) => {
+ const changedBy = info.row.original.changed_by;
+ const apiKey = info.row.original.changed_by_api_key;
+ return (
+ <div className="space-y-1">
+ <div className="font-medium">{changedBy}</div>
+ {apiKey && ( // Only show API key if it exists
+ <Tooltip title={apiKey}>
+ <div className="text-xs text-muted-foreground max-w-[15ch] truncate"> {/* Apply max-width and truncate */}
+ {apiKey}
+ </div>
+ </Tooltip>
+ )}
+ </div>
+ );
+ },
+ },
{
header: "Affected Item ID",
accessorKey: "object_id",