mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-04 22:21:21 +09:00
Final sidebar sub-menu moved to the demo's top-bar structure (REDESIGN_MAP §6 decision 3): - Add shared WORDPRESS_TABS (WordPress / Pipeline); render PageTopbar on WordPress (sites list) and WordPressProjects (pipeline). - Remove the wordpress subItems from the sidebar — NO sidebar item has a sub-menu anymore; the rail is fully flat, matching the demo. - WordPress list: both headers (loading + main) swapped; Import Site + Create Site actions kept. - Pipeline list header swapped (title 'Pipeline'). - The Pipeline tab is now always visible (was wpInstalled-gated in the sidebar). Six infra groups total now use the top-bar layout: Domains, Servers, Services, Files, Monitoring, Marketplace, WordPress. Body restyles still pending per group. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
12 lines
646 B
React
12 lines
646 B
React
import { Globe, GitBranch } from 'lucide-react';
|
|
|
|
// Shared sub-nav for the WordPress page group (WordPress sites / Pipeline).
|
|
// Rendered in each page's <PageTopbar tabs={WORDPRESS_TABS}> — the demo's
|
|
// top-bar layout replaces the old sidebar sub-menu (REDESIGN_MAP §6 dec. 3).
|
|
// (The Pipeline tab was wpInstalled-gated in the sidebar; kept always-visible
|
|
// here for simplicity — the pipeline page shows an empty state when unused.)
|
|
export const WORDPRESS_TABS = [
|
|
{ to: '/wordpress', label: 'WordPress', end: true, icon: <Globe size={15} /> },
|
|
{ to: '/wordpress/projects', label: 'Pipeline', icon: <GitBranch size={15} /> },
|
|
];
|