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
-14
View File
@@ -70,12 +70,10 @@ export function StructuredDashboard({
guides,
trash,
catalogVersion,
latestCatalogVersion,
}: {
guides: GuideCard[];
trash: GuideCard[];
catalogVersion: string | null;
latestCatalogVersion: string | null;
}) {
const router = useRouter();
const [pending, startTransition] = useTransition();
@@ -83,11 +81,6 @@ export function StructuredDashboard({
const [syncJob, setSyncJob] = useState<CatalogSyncJob | null>(null);
const presence = useAdminPresence(null);
const catalogReady = Boolean(catalogVersion);
const updateAvailable = Boolean(
catalogVersion &&
latestCatalogVersion &&
catalogVersion !== latestCatalogVersion,
);
const syncJobId = syncJob?.id;
const syncJobStatus = syncJob?.status;
const search = searchItems(guides, query,
@@ -148,13 +141,6 @@ export function StructuredDashboard({
Lunaris ที่ Sync:{" "}
{catalogVersion ? `v${catalogVersion}` : "ยังไม่ Sync"}
</Badge>
<Badge variant={updateAvailable ? "default" : "secondary"}>
{latestCatalogVersion
? updateAvailable
? `มีอัปเดต: v${latestCatalogVersion}`
: `ล่าสุด: v${latestCatalogVersion}`
: "ตรวจสอบเวอร์ชันล่าสุดไม่ได้"}
</Badge>
</div>
<div className="flex gap-2">
<Button