Ship site UI checklist, move admin to /mstcontroller, and add safe taxonomy label migration.
Deploy edu.mstaut.ir / deploy (push) Has been cancelled

Production already has migrations through 008; 009 only updates four seed labels by id. Faculty sync remains upsert-by-email/name and does not wipe curated data.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
smhk1376andCursor committed 2026-10-16 16:26:21 +03:30
1 parent 3eea1c35a6
commit 2b0db26a93
171 files changed
+1477 -807

No files matched your search

+7 -1
View File
@@ -7,6 +7,7 @@ import { FormCard } from "@/components/molecules/FormCard";
import { PageHero } from "@/components/molecules/PageHero";
import { ContactInterestForm } from "@/components/organisms/ContactInterestForm";
import { getLegalPage } from "@/lib/data/site";
import { pageMetadata, truncateMetaDescription } from "@/lib/seo/metadata";
type Props = { params: Promise<{ slug: string }> };
@@ -20,7 +21,12 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
const { slug } = await params;
const page = await getLegalPage(slug);
if (!page) return { title: "صفحه یافت نشد" };
return { title: page.title, description: page.body[0] };
const description = page.body[0] ?? page.title;
return pageMetadata({
title: page.title,
description: truncateMetaDescription(description),
path: `/${slug}`,
});
}
export default async function LegalSlugPage({ params }: Props) {