feat : remove latest lunaris version showing in admin dashboard
CI / Verify (push) Successful in 1m22s
CI / Build immutable images and deploy (push) Successful in 1m43s

This commit is contained in:
2026-09-12 21:43:41 +07:00 Unverified
parent 28a59a8934
commit bcdb0b9266
2 changed files with 3 additions and 21 deletions
+3 -7
View File
@@ -4,10 +4,7 @@ import { connection } from "next/server";
import { StructuredDashboard } from "@/components/admin/structured-dashboard";
import { AdminHeader } from "@/components/admin/admin-header";
import { getAdminSession } from "@/lib/auth/server";
import {
getCurrentCatalogVersion,
getLatestLunarisVersion,
} from "@/lib/catalog/sync";
import { getCurrentCatalogVersion } from "@/lib/catalog/sync";
import { listGuideCards } from "@/lib/guides/queries";
export const instant = false;
@@ -15,11 +12,10 @@ export const instant = false;
export default async function AdminPage() {
await connection();
if (!(await getAdminSession())) redirect("/admin/login");
const [guides, trash, catalogVersion, latestCatalogVersion] = await Promise.all([
const [guides, trash, catalogVersion] = await Promise.all([
listGuideCards(),
listGuideCards(true),
getCurrentCatalogVersion(),
getLatestLunarisVersion(AbortSignal.timeout(3_000)).catch(() => null),
]);
return (
<div className="min-h-svh">
@@ -30,7 +26,7 @@ export default async function AdminPage() {
<h1 className="font-heading text-3xl font-semibold">Guide Dashboard</h1>
<p className="mt-2 text-muted-foreground">จัดการ Guide แบบภาพ-first และบันทึกขึ้นเว็บไซต์ทันที</p>
</header>
<StructuredDashboard guides={guides} trash={trash} catalogVersion={catalogVersion} latestCatalogVersion={latestCatalogVersion} />
<StructuredDashboard guides={guides} trash={trash} catalogVersion={catalogVersion} />
</main>
</div>
);