diff --git a/src/app/[locale]/admin/page.tsx b/src/app/[locale]/admin/page.tsx
index 56f0468..bf75d93 100644
--- a/src/app/[locale]/admin/page.tsx
+++ b/src/app/[locale]/admin/page.tsx
@@ -1,5 +1,106 @@
-import AdminTenantsClient from "@/components/admin/AdminTenantsClient";
+import { getSessionUser } from "@/lib/session";
+import { getTranslations } from "next-intl/server";
+import { redirect } from "next/navigation";
+import { listTenants } from "@/lib/k8s";
+import { StatusBadge } from "@/components/ui/status-badge";
-export default function AdminPage() {
- return
{t("noAccess")}
+{t("subtitle")}
+{t("noTenants")}
+| + {t("name")} + | ++ {t("displayName")} + | ++ {t("phase")} + | ++ {t("packages")} + | ++ {t("created")} + | +
|---|---|---|---|---|
| + {tenant.metadata.name} + | ++ {tenant.spec.displayName} + | +
+ |
+ + {tenant.spec.packages?.join(", ") || "—"} + | ++ {tenant.metadata.creationTimestamp + ? new Date( + tenant.metadata.creationTimestamp + ).toLocaleDateString() + : "—"} + | +
+ {t("welcome", { name: user.name || user.email })} +
+| + {tAdmin("name")} + | ++ {tAdmin("phase")} + | ++ {tAdmin("packages")} + | ++ {tAdmin("created")} + | ++ |
|---|---|---|---|---|
|
+
+ {tenant.metadata.name}
+
+ {tenant.spec.displayName && (
+
+ {tenant.spec.displayName}
+
+ )}
+ |
+
+ |
+ + {tenant.spec.packages?.join(", ") || "—"} + | ++ {tenant.metadata.creationTimestamp + ? new Date(tenant.metadata.creationTimestamp).toLocaleDateString() + : "—"} + | ++ + {t("manage")} → + + | +
+ {JSON.stringify(user, null, 2)}
+
++ {t("welcome", { name: user.name || user.email })} +
++ {t("noInstanceDescription")} +
++ {t("welcome", { name: user.name || user.email })} +
+
+ {JSON.stringify(user, null, 2)}
+
++ {t("agent")}: {tenant.spec.agentName} +
+ )} +| - | ||||
|---|---|---|---|---|
|
-
- {row.displayName || row.name}
-
- {row.agentName && (
-
- {row.agentName}
-
- )}
- |
-
- |
-
-
- {row.packages.length === 0 ? (
- —
- ) : (
- row.packages.map((p) => (
-
- {p}
-
- ))
- )}
-
- |
- - {new Date(row.created).toLocaleDateString()} - | -- - | -
- {t("noInstanceDescription")} -
- -- {error ? t("usageError") : t("noUsageData")} -
-{error || t("noData")}
+- {t(pkg.descriptionKey)} -
-{error}
- )} - -{t(pkg.descriptionKey)}
+{error}
} + +- {t("agent")}: {tenant.spec.agentName} -
- )} -