From e5a6ad3e04c2d5f47543a886dc3b5ea33732c0ad Mon Sep 17 00:00:00 2001 From: gunshiz Date: Sun, 2 Aug 2026 19:34:51 +0700 Subject: [PATCH] chore(admin): temporarily disable upload feature --- app/admin/login/page.tsx | 24 +++++++++++++++++++----- app/admin/page.tsx | 17 +++++++++++++---- app/admin/upload/client.tsx | 16 ++++------------ app/admin/upload/upload-navigation.tsx | 9 +++------ components/admin-shell.tsx | 19 ++++++++++++++----- 5 files changed, 53 insertions(+), 32 deletions(-) diff --git a/app/admin/login/page.tsx b/app/admin/login/page.tsx index 03fa132..c08e558 100644 --- a/app/admin/login/page.tsx +++ b/app/admin/login/page.tsx @@ -16,13 +16,14 @@ import { TabsList, TabsTrigger, } from "@/components/ui/tabs"; -import { KeyRound } from "lucide-react"; +import { ExternalLink, KeyRound } from "lucide-react"; export const dynamic = "force-dynamic"; type LoginMethodProps = { name: string; description: string; + href: string; configured: boolean; setupVariables: string[]; resultVariables: string[]; @@ -39,6 +40,7 @@ function EnvironmentBlock({ variables }: { variables: string[] }) { function LoginMethod({ name, description, + href, configured, setupVariables, resultVariables, @@ -71,10 +73,20 @@ function LoginMethod({ - + {configured ? ( + + ) : ( + + )} ); @@ -111,6 +123,7 @@ export default function AdminLoginPage() { @@ -95,11 +97,17 @@ function QuickAction({ {description} - + + ) : ( + + )} @@ -348,6 +356,7 @@ export default async function AdminPage() { title="Video uploads" description="Publish and monitor platform jobs." icon={Upload} + disabled /> - {pending ? ( - - ) : ( - - )} - {pending - ? "Sending…" - : scheduledAt - ? "Schedule both uploads" - : "Upload to both platforms"} + + Upload feature temporarily disabled diff --git a/app/admin/upload/upload-navigation.tsx b/app/admin/upload/upload-navigation.tsx index b0e9304..3e928b9 100644 --- a/app/admin/upload/upload-navigation.tsx +++ b/app/admin/upload/upload-navigation.tsx @@ -2,7 +2,6 @@ import { Button } from "@/components/ui/button"; import { Clapperboard, History, UploadCloud } from "lucide-react"; -import Link from "next/link"; import { usePathname } from "next/navigation"; const items = [ @@ -37,13 +36,11 @@ export function UploadNavigation() { return ( ); })} diff --git a/components/admin-shell.tsx b/components/admin-shell.tsx index 2d71c12..0cdafb3 100644 --- a/components/admin-shell.tsx +++ b/components/admin-shell.tsx @@ -24,6 +24,7 @@ interface NavItem { label: string; icon: LucideIcon; isActive: (pathname: string) => boolean; + disabled?: boolean; } const NAV_ITEMS: NavItem[] = [ @@ -50,6 +51,7 @@ const NAV_ITEMS: NavItem[] = [ label: "Upload", icon: Upload, isActive: (pathname) => pathname.startsWith("/admin/upload"), + disabled: true, }, { href: "/admin/login", @@ -99,14 +101,21 @@ export function AdminShell({ - {NAV_ITEMS.map(({ href, label, icon: Icon, isActive }) => ( + {NAV_ITEMS.map(({ href, label, icon: Icon, isActive, disabled }) => ( - - + {disabled ? ( + {label} - - + + ) : ( + + + + {label} + + + )} ))}