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

@@ -1,10 +1,10 @@
import Image from "next/image";
import Link from "next/link";
import { Clock, Layers, Wallet } from "lucide-react";
import { Container } from "@/components/atoms/Container";
import { Heading } from "@/components/atoms/Heading";
import { Section } from "@/components/atoms/Section";
import { TextLink } from "@/components/atoms/TextLink";
import { CourseMediaFigure } from "@/components/molecules/CourseMediaFigure";
import { DetailList, type DetailItem } from "@/components/molecules/DetailList";
import { PageHero } from "@/components/molecules/PageHero";
import { SurfaceCard } from "@/components/molecules/SurfaceCard";
@@ -15,6 +15,9 @@ import { courseCategoryHref, courseTagHref } from "@/lib/course-nav";
import { formatCoursePrice, formatLabel } from "@/lib/labels";
import { JsonLd, courseJsonLd } from "@/lib/seo/json-ld";
/** Portrait brochure delivery assets (~A4). */
const BROCHURE_HINT = { width: 1200, height: 1697 } as const;
export type CourseDetailLabels = {
submit: string;
success: string;
@@ -60,7 +63,6 @@ export function CourseDetailTemplate({
},
];
const hasTaxonomy = course.categories.length > 0 || course.tags.length > 0;
const bannerUrl = course.posterImageUrl?.trim() || undefined;
const brochureUrl = course.brochureImageUrl?.trim() || undefined;
return (
@@ -70,23 +72,19 @@ export function CourseDetailTemplate({
title={course.title}
intro={course.summary}
eyebrow={course.categories[0]?.label ?? course.tags[0]?.label}
imageUrl={bannerUrl}
/>
<Section tone="subtle">
<Container className="grid min-w-0 gap-10 lg:grid-cols-[minmax(0,1fr)_minmax(0,22rem)] lg:items-start lg:gap-12">
<div className="min-w-0 space-y-10">
{brochureUrl ? (
<div className="relative aspect-[16/9] overflow-hidden rounded-2xl bg-muted ring-1 ring-foreground/10">
<Image
src={brochureUrl}
alt={course.title}
fill
className="object-cover"
sizes="(max-width:1024px) 100vw, 60vw"
priority
/>
</div>
<CourseMediaFigure
src={brochureUrl}
alt={`بروشور ${course.title}`}
width={BROCHURE_HINT.width}
height={BROCHURE_HINT.height}
priority
/>
) : null}
<section className="space-y-4">