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

+2 -2
View File
@@ -39,7 +39,7 @@ export async function PATCH(
try {
body = await parseJsonBody(request);
} catch {
return errorResponse("بدنهٔ درخواست JSON معتبر نیست", 400);
return errorResponse("بدنه درخواست JSON معتبر نیست", 400);
}
const parsed = programPatchSchema.safeParse(body);
@@ -62,7 +62,7 @@ export async function PATCH(
return NextResponse.json({ ok: true, data: { ...rowToProgram(row), published: row.published } });
} catch (err) {
if (isUniqueViolation(err) && err.constraint === "programs_slug_key") {
return errorResponse("این slug قبلاً استفاده شده است", 409);
return errorResponse("این slug قبلا استفاده شده است", 409);
}
console.error("admin update program error:", err);
return errorResponse("خطای سرور", 500);
+2 -2
View File
@@ -18,7 +18,7 @@ export async function POST(request: NextRequest) {
try {
body = await parseJsonBody(request);
} catch {
return errorResponse("بدنهٔ درخواست JSON معتبر نیست", 400);
return errorResponse("بدنه درخواست JSON معتبر نیست", 400);
}
const parsed = programCreateSchema.safeParse(body);
@@ -43,7 +43,7 @@ export async function POST(request: NextRequest) {
);
} catch (err) {
if (isUniqueViolation(err) && err.constraint === "programs_slug_key") {
return errorResponse("این slug قبلاً استفاده شده است", 409);
return errorResponse("این slug قبلا استفاده شده است", 409);
}
console.error("admin create program error:", err);
return errorResponse("خطای سرور", 500);