diff --git a/apps/dashboard/app/(app)/apis/[apiId]/keys/[keyAuthId]/[keyId]/page.tsx b/apps/dashboard/app/(app)/apis/[apiId]/keys/[keyAuthId]/[keyId]/page.tsx
index c6c016fe3e..12f8f1468d 100644
--- a/apps/dashboard/app/(app)/apis/[apiId]/keys/[keyAuthId]/[keyId]/page.tsx
+++ b/apps/dashboard/app/(app)/apis/[apiId]/keys/[keyAuthId]/[keyId]/page.tsx
@@ -9,6 +9,7 @@ import { StackedColumnChart } from "@/components/dashboard/charts";
import { EmptyPlaceholder } from "@/components/dashboard/empty-placeholder";
import { Badge } from "@/components/ui/badge";
import { Card, CardContent, CardHeader } from "@/components/ui/card";
+import { Metric } from "@/components/ui/metric";
import { Separator } from "@/components/ui/separator";
import { getTenantId } from "@/lib/auth";
import { clickhouse } from "@/lib/clickhouse";
@@ -143,10 +144,7 @@ export default async function APIKeyDetailPage(props: {
...ratelimitedOverTime.map((d) => ({ ...d, category: "Ratelimited" })),
...usageExceededOverTime.map((d) => ({ ...d, category: "Usage Exceeded" })),
...disabledOverTime.map((d) => ({ ...d, category: "Disabled" })),
- ...insufficientPermissionsOverTime.map((d) => ({
- ...d,
- category: "Insufficient Permissions",
- })),
+ ...insufficientPermissionsOverTime.map((d) => ({ ...d, category: "Insufficient Permissions" })),
...expiredOverTime.map((d) => ({ ...d, category: "Expired" })),
...forbiddenOverTime.map((d) => ({ ...d, category: "Forbidden" })),
];
@@ -337,7 +335,7 @@ export default async function APIKeyDetailPage(props: {
{Intl.NumberFormat().format(transientPermissionIds.size)} Permissions
-
+
Create New Role}
permissions={key.workspace.permissions}
@@ -405,12 +403,3 @@ function prepareInterval(interval: Interval) {
}
}
}
-
-const Metric: React.FC<{ label: string; value: React.ReactNode }> = ({ label, value }) => {
- return (
-
- );
-};
diff --git a/apps/dashboard/app/(app)/apis/[apiId]/page.tsx b/apps/dashboard/app/(app)/apis/[apiId]/page.tsx
index 3d1780de75..2e5fb67bcc 100644
--- a/apps/dashboard/app/(app)/apis/[apiId]/page.tsx
+++ b/apps/dashboard/app/(app)/apis/[apiId]/page.tsx
@@ -1,6 +1,7 @@
import { AreaChart, StackedColumnChart } from "@/components/dashboard/charts";
import { EmptyPlaceholder } from "@/components/dashboard/empty-placeholder";
import { Card, CardContent, CardHeader } from "@/components/ui/card";
+import { Metric } from "@/components/ui/metric";
import { Separator } from "@/components/ui/separator";
import { getTenantId } from "@/lib/auth";
import { clickhouse } from "@/lib/clickhouse";
@@ -321,12 +322,3 @@ function prepareInterval(interval: Interval) {
}
}
}
-
-const Metric: React.FC<{ label: string; value: string }> = ({ label, value }) => {
- return (
-
- );
-};
diff --git a/apps/dashboard/app/(app)/apis/[apiId]/settings/update-ip-whitelist.tsx b/apps/dashboard/app/(app)/apis/[apiId]/settings/update-ip-whitelist.tsx
index 4f429a4f16..a49f7fafb8 100644
--- a/apps/dashboard/app/(app)/apis/[apiId]/settings/update-ip-whitelist.tsx
+++ b/apps/dashboard/app/(app)/apis/[apiId]/settings/update-ip-whitelist.tsx
@@ -98,7 +98,7 @@ export const UpdateIpWhitelist: React.FC = ({ api, workspace }) => {
/>
) : (
-
+
Enterprise Feature
diff --git a/apps/dashboard/app/(app)/apis/create-api-button.tsx b/apps/dashboard/app/(app)/apis/create-api-button.tsx
index 08de21c38d..f29a5952d7 100644
--- a/apps/dashboard/app/(app)/apis/create-api-button.tsx
+++ b/apps/dashboard/app/(app)/apis/create-api-button.tsx
@@ -56,7 +56,7 @@ export const CreateApiButton = ({ ...rest }: React.ButtonHTMLAttributes
-
+