Polish admin hub pages: drop duplicate headers, align CTAs and empties.

Remove redundant titles under AdminHubChrome, style events/polls create flows with admin chrome + i18n, and standardize empty states / teams form classes.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
SimoandCursor committed 2026-07-18 21:28:15 +02:00
1 parent 0582eed5ab
commit 3cb8b92cb3
14 files changed
+112 -105

No files matched your search

+3 -3
View File
@@ -1,3 +1,4 @@
import { getTranslations } from "next-intl/server";
import { redirect } from "next/navigation";
import { Card, CardContent } from "@/components/ui/card";
import { canAccess, getAdminContext, PERMS } from "@/lib/permissions";
@@ -13,6 +14,7 @@ export default async function EmulatorErrorsPage({
redirect("/admin");
}
const t = await getTranslations("pages.admin.devops");
const params = await searchParams;
const page = Math.max(1, Number(params.page) || 1);
const perPage = 50;
@@ -37,9 +39,7 @@ export default async function EmulatorErrorsPage({
<Card>
<CardContent className="p-0">
{errors.length === 0 ? (
<div className="p-6 text-center text-muted-foreground">
No emulator errors found
</div>
<div className="admin-empty">{t("noEmulatorErrors")}</div>
) : (
<div className="divide-y">
{errors.map((error) => (
+3 -1
View File
@@ -1,4 +1,5 @@
import { AlertTriangle, Database, HeartPulse, Server } from "lucide-react";
import { getTranslations } from "next-intl/server";
import { redirect } from "next/navigation";
import { Badge } from "@/components/ui/badge";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
@@ -55,6 +56,7 @@ export default async function DevOpsPage() {
redirect("/admin");
}
const t = await getTranslations("pages.admin.devops");
const data = await getDevOpsData();
return (
@@ -127,7 +129,7 @@ export default async function DevOpsPage() {
</CardHeader>
<CardContent>
{data.recentErrors.length === 0 ? (
<p className="text-sm text-muted-foreground">No recent errors</p>
<div className="admin-empty">{t("noRecentErrors")}</div>
) : (
<div className="space-y-2 max-h-[500px] overflow-y-auto">
{data.recentErrors.map((error) => (