+
+
+ {t("aiUsageTopRoles")}
+
+
+
+
+
+
+
+
+ formatCost(v)}
+ />
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/src/components/ai-usage-analytics/UsersRolesTab.tsx b/src/components/ai-usage-analytics/UsersRolesTab.tsx
deleted file mode 100644
index 6e49ce9fb..000000000
--- a/src/components/ai-usage-analytics/UsersRolesTab.tsx
+++ /dev/null
@@ -1,172 +0,0 @@
-"use client";
-
-import { useQuery } from "@tanstack/react-query";
-import { aiUsageAnalyticsQueries } from "@app/lib/queries";
-import type { AiUsageAnalyticsFilters } from "@app/lib/queries";
-import { useTranslations } from "next-intl";
-import { Card, CardContent, CardHeader } from "@app/components/ui/card";
-import { HorizontalTabs, type TabItem } from "@app/components/HorizontalTabs";
-import { ToggleableTrendChart } from "./ToggleableTrendChart";
-import { TopEntitiesList, type TopEntity } from "./TopEntitiesList";
-import { buildSeriesFromData, formatCost } from "./shared";
-
-type UsersRolesTabProps = {
- orgId: string;
- filters: AiUsageAnalyticsFilters;
-};
-
-const UNKNOWN_USER_KEY = "unknown";
-
-export function UsersRolesTab(props: UsersRolesTabProps) {
- const t = useTranslations();
- const { data, isLoading } = useQuery(
- aiUsageAnalyticsQueries.usersRoles({
- orgId: props.orgId,
- filters: props.filters
- })
- );
-
- const roleNameByKey = new Map