From 2af73955ae6e67d8691901a0445ded270f286177 Mon Sep 17 00:00:00 2001 From: lorentz Date: Sun, 3 May 2026 16:09:51 -0400 Subject: [PATCH] feat(02-02): delete app/mobile/nav/page.tsx (DRAWER-06) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Standalone nav page replaced by MoreDrawer Sheet component - Visiting /mobile/nav now returns Next.js 404 per DRAWER-06 spec - No redirect needed — URL was never bookmarked-worthy --- app/mobile/nav/page.tsx | 91 ----------------------------------------- 1 file changed, 91 deletions(-) delete mode 100644 app/mobile/nav/page.tsx diff --git a/app/mobile/nav/page.tsx b/app/mobile/nav/page.tsx deleted file mode 100644 index 7a70dc5..0000000 --- a/app/mobile/nav/page.tsx +++ /dev/null @@ -1,91 +0,0 @@ -'use client'; - -import Link from 'next/link'; -import { useRouter } from 'next/navigation'; -import { - LayoutDashboard, Ticket, DollarSign, ArrowLeft, - ExternalLink, Settings, LogOut, ChevronRight, - FileText, Server, HardDrive, Users, BarChart3, -} from 'lucide-react'; -import { signOut } from '@/lib/auth-client'; - -const MAIN_SECTIONS = [ - { href: '/mobile/dashboard', label: 'Dashboard', icon: LayoutDashboard, description: 'Overview & stats', color: 'bg-blue-500/10 text-blue-600 dark:text-blue-400' }, - { href: '/mobile/tickets', label: 'Tickets', icon: Ticket, description: 'Open service tickets', color: 'bg-emerald-500/10 text-emerald-600 dark:text-emerald-400' }, - { href: '/mobile/finance', label: 'Finance', icon: DollarSign, description: 'AR, invoices & payments', color: 'bg-violet-500/10 text-violet-600 dark:text-violet-400' }, -]; - -const DESKTOP_LINKS = [ - { href: '/quotes', label: 'Quotes', icon: FileText }, - { href: '/configuration-items', label: 'Configuration Items', icon: Server }, - { href: '/backup-status', label: 'Backup Status', icon: HardDrive }, - { href: '/engagement', label: 'Engagement', icon: Users }, - { href: '/admin/ticket-digest', label: 'Ticket Digest', icon: BarChart3 }, - { href: '/admin/sync', label: 'Admin / Sync', icon: Settings }, -]; - -export default function MobileNav() { - const router = useRouter(); - - return ( -
- {/* Header */} -
- -

Navigation

-
- - {/* Main mobile sections */} -
-

Mobile Views

-
- {MAIN_SECTIONS.map(({ href, label, icon: Icon, description, color }) => ( - -
- -
-
-

{label}

-

{description}

-
- - - ))} -
-
- - {/* Desktop links */} -
-

Full Site

-
- {DESKTOP_LINKS.map(({ href, label, icon: Icon }) => ( - - - {label} - - - ))} -
-
- - {/* Sign out */} -
- -
-
- ); -}