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

+6 -8
View File
@@ -1,4 +1,5 @@
import Link from "next/link";
import { getTranslations } from "next-intl/server";
import { redirect } from "next/navigation";
import {
detectMultiAccounts,
@@ -17,6 +18,7 @@ export default async function MultiAccountsPage({
if (!canAccess(permissions, PERMS.USERS_VIEW, session.user.rank))
redirect("/admin");
const t = await getTranslations("pages.admin.multiAccounts");
const params = await searchParams;
const minAccounts = Math.max(2, Number(params.min) || 2);
const limit = Math.min(200, Number(params.limit) || 50);
@@ -31,7 +33,7 @@ export default async function MultiAccountsPage({
<form className="flex flex-wrap items-end gap-3" action="">
<label className="text-sm">
<span className="block text-muted-foreground">
Min accounts per cluster
{t("minAccounts")}
</span>
<input
type="number"
@@ -43,7 +45,7 @@ export default async function MultiAccountsPage({
/>
</label>
<label className="text-sm">
<span className="block text-muted-foreground">Result limit</span>
<span className="block text-muted-foreground">{t("resultLimit")}</span>
<input
type="number"
name="limit"
@@ -57,16 +59,12 @@ export default async function MultiAccountsPage({
type="submit"
className="h-9 rounded-md bg-primary px-4 text-sm text-primary-foreground"
>
Refresh
{t("refresh")}
</button>
</form>
{clusters.length === 0 ? (
<Card>
<CardContent className="py-10 text-center text-muted-foreground">
No clusters found at the current thresholds.
</CardContent>
</Card>
<div className="admin-empty">{t("noClusters")}</div>
) : (
<div className="grid gap-4">
{clusters.map((cluster) => (