chore: drop dead Logistics tabs + move visa toggle to settings
- Remove the Documents tab — visa documents are out of scope for this edition and there is no other concrete document need. - Remove the Logistics > Settings disabled tab — every per-edition configuration knob now lives at /admin/settings > Edition. - Replace the inline "Visible to teams" toggle on the Visas tab with a small "Edition settings" button that links straight to the consolidated settings page. The toggle itself moved to that page in the previous commit. - Drop the now-unused getVisaVisibility / setVisaVisibility wiring inside VisasTab. (The procedures still exist server-side; the new Edition tab uses program.updateEditionSettings instead.) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,12 +5,10 @@ import { useEdition } from '@/contexts/edition-context'
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'
|
||||
import {
|
||||
CheckCircle2,
|
||||
FileText,
|
||||
Hotel as HotelIcon,
|
||||
Plane,
|
||||
Salad,
|
||||
ScrollText,
|
||||
Settings,
|
||||
Stamp,
|
||||
} from 'lucide-react'
|
||||
import { ConfirmationsTab } from '@/components/admin/logistics/confirmations-tab'
|
||||
@@ -58,18 +56,10 @@ export default function LogisticsPage() {
|
||||
<Salad className="mr-2 h-4 w-4" /> Lunch
|
||||
<span className="text-muted-foreground ml-1 text-xs">(soon)</span>
|
||||
</TabsTrigger>
|
||||
<TabsTrigger value="documents" disabled>
|
||||
<FileText className="mr-2 h-4 w-4" /> Documents
|
||||
<span className="text-muted-foreground ml-1 text-xs">(soon)</span>
|
||||
</TabsTrigger>
|
||||
<TabsTrigger value="email-templates" disabled>
|
||||
<ScrollText className="mr-2 h-4 w-4" /> Email Templates
|
||||
<span className="text-muted-foreground ml-1 text-xs">(soon)</span>
|
||||
</TabsTrigger>
|
||||
<TabsTrigger value="settings" disabled>
|
||||
<Settings className="mr-2 h-4 w-4" /> Settings
|
||||
<span className="text-muted-foreground ml-1 text-xs">(soon)</span>
|
||||
</TabsTrigger>
|
||||
</TabsList>
|
||||
|
||||
<TabsContent value="confirmations">
|
||||
|
||||
Reference in New Issue
Block a user