Ship site UI checklist, move admin to /mstcontroller, and add safe taxonomy label migration.
Deploy edu.mstaut.ir / deploy (push) Has been cancelled
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:
1 parent
3eea1c35a6
commit
2b0db26a93
171 files changed
+1477
-807
No files matched your search
@@ -38,49 +38,49 @@ import { isAdminEntityEnabled } from "@/lib/admin/disabled-entities";
|
||||
const NAV_GROUPS = [
|
||||
{
|
||||
label: "نمای کلی",
|
||||
items: [{ href: "/admin", label: "داشبورد", icon: LayoutDashboard, exact: true }],
|
||||
items: [{ href: "/mstcontroller", label: "داشبورد", icon: LayoutDashboard, exact: true }],
|
||||
},
|
||||
{
|
||||
label: "محتوا",
|
||||
items: [
|
||||
{ href: "/admin/courses", label: "دورهها", icon: BookOpen, entity: "courses" },
|
||||
{ href: "/mstcontroller/courses", label: "دوره ها", icon: BookOpen, entity: "courses" },
|
||||
{
|
||||
href: "/admin/course-categories",
|
||||
label: "دستهبندی دورهها",
|
||||
href: "/mstcontroller/course-categories",
|
||||
label: "دسته بندی دوره ها",
|
||||
icon: Tags,
|
||||
entity: "course-categories",
|
||||
},
|
||||
{
|
||||
href: "/admin/course-tags",
|
||||
label: "تگهای دوره",
|
||||
href: "/mstcontroller/course-tags",
|
||||
label: "تگ های دوره",
|
||||
icon: Tags,
|
||||
entity: "course-tags",
|
||||
},
|
||||
{ href: "/admin/programs", label: "برنامهها", icon: GraduationCap, entity: "programs" },
|
||||
{ href: "/admin/events", label: "رویدادها", icon: Calendar, entity: "events" },
|
||||
{ href: "/admin/articles", label: "مقالات", icon: Newspaper, entity: "articles" },
|
||||
{ href: "/admin/topics", label: "موضوعات", icon: Tags, entity: "topics" },
|
||||
{ href: "/mstcontroller/programs", label: "برنامه ها", icon: GraduationCap, entity: "programs" },
|
||||
{ href: "/mstcontroller/events", label: "رویدادها", icon: Calendar, entity: "events" },
|
||||
{ href: "/mstcontroller/articles", label: "مقالات", icon: Newspaper, entity: "articles" },
|
||||
{ href: "/mstcontroller/topics", label: "موضوعات", icon: Tags, entity: "topics" },
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "جامعه",
|
||||
items: [
|
||||
{ href: "/admin/faculty", label: "اساتید", icon: Users, entity: "faculty" },
|
||||
{ href: "/admin/alumni", label: "دانشآموختگان", icon: MessageSquareQuote, entity: "alumni" },
|
||||
{ href: "/mstcontroller/faculty", label: "اساتید", icon: Users, entity: "faculty" },
|
||||
{ href: "/mstcontroller/alumni", label: "دانش آموختگان", icon: MessageSquareQuote, entity: "alumni" },
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "سایت",
|
||||
items: [
|
||||
{ href: "/admin/banners", label: "بنرهای کمپین", icon: Megaphone, entity: "banners" },
|
||||
{ href: "/admin/stats", label: "آمار", icon: BarChart3, entity: "stats" },
|
||||
{ href: "/admin/testimonials", label: "نظرات", icon: FileText, entity: "testimonials" },
|
||||
{ href: "/admin/legal", label: "صفحات قانونی", icon: Scale, entity: "legal" },
|
||||
{ href: "/mstcontroller/banners", label: "بنرهای کمپین", icon: Megaphone, entity: "banners" },
|
||||
{ href: "/mstcontroller/stats", label: "آمار", icon: BarChart3, entity: "stats" },
|
||||
{ href: "/mstcontroller/testimonials", label: "نظرات", icon: FileText, entity: "testimonials" },
|
||||
{ href: "/mstcontroller/legal", label: "صفحات قانونی", icon: Scale, entity: "legal" },
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "درخواستها",
|
||||
items: [{ href: "/admin/registrations", label: "برگ ثبتنام", icon: ClipboardList }],
|
||||
label: "درخواست ها",
|
||||
items: [{ href: "/mstcontroller/registrations", label: "برگ ثبت نام", icon: ClipboardList }],
|
||||
},
|
||||
] as const;
|
||||
|
||||
@@ -105,7 +105,7 @@ export function AdminSidebar({ userName }: { userName: string }) {
|
||||
<SidebarMenuItem>
|
||||
<SidebarMenuButton
|
||||
size="lg"
|
||||
render={<Link href="/admin" />}
|
||||
render={<Link href="/mstcontroller" />}
|
||||
className="data-active:bg-sidebar-accent"
|
||||
>
|
||||
<span className="relative size-8 shrink-0">
|
||||
|
||||
Reference in new issue
Block a user