Enhance course management by adding 'featured' and 'sort_order' fields to the database schema and related components. Update course filtering and display logic to prioritize featured courses in the catalog. Modify admin interfaces for course creation and editing to include new fields, ensuring proper handling in both the frontend and backend. Update documentation to reflect these changes.

This commit is contained in:
smhk1376 committed 2026-10-22 13:23:43 +03:30
1 parent 1641edfd01
commit 4b84409ed7
43 files changed
+703 -155

No files matched your search

@@ -1,6 +1,6 @@
"use client";
import { useRouter } from "next/navigation";
import { useAppRouter } from "@/hooks/use-app-router";
import { useState, useTransition } from "react";
import { RefreshCw } from "lucide-react";
import { Button } from "@/components/ui/button";
@@ -17,7 +17,7 @@ type SyncPayload = {
};
export function FacultySyncButton() {
const router = useRouter();
const router = useAppRouter();
const [pending, startTransition] = useTransition();
const [busy, setBusy] = useState(false);
const [message, setMessage] = useState<string | null>(null);