feat: add Discord webhook configuration support to forms and create dedicated admin settings page

This commit is contained in:
2026-05-28 18:51:55 +07:00 Unverified
parent 9675758535
commit bcae6ece38
11 changed files with 1269 additions and 2 deletions
+10 -1
View File
@@ -15,7 +15,7 @@ import {
SidebarHeader,
SidebarFooter,
} from "@/components/ui/sidebar";
import { LayoutDashboard, ClipboardList, ArrowLeft } from "lucide-react";
import { LayoutDashboard, ClipboardList, ArrowLeft, Webhook } from "lucide-react";
export function AdminSidebar() {
const pathname = usePathname();
@@ -50,6 +50,15 @@ export function AdminSidebar() {
</Link>
</SidebarMenuButton>
</SidebarMenuItem>
<SidebarMenuItem>
<SidebarMenuButton asChild isActive={pathname.startsWith("/form/admin/extra")}>
<Link href="/form/admin/extra">
<Webhook className="w-4 h-4" />
<span>Extra</span>
</Link>
</SidebarMenuButton>
</SidebarMenuItem>
</SidebarMenu>
</SidebarGroupContent>
</SidebarGroup>