Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

refactor(wordpress): drop residual core nav/title wiring

Juan Denis6d53935130c9
diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx
index 0e00e676..af4f6469 100644
--- a/frontend/src/App.jsx
+++ b/frontend/src/App.jsx
@@ -93,8 +93,9 @@ const PAGE_TITLES = {
'/projects': 'Projects',
'/shared-variables': 'Shared Variables',
'/fleet-proxy': 'Fleet Proxy',
- // WordPress list-page titles come from the serverkit-wordpress manifest
- // (page_titles) now; the dynamic detail-page fallbacks below stay in core.
+ // WordPress titles come from the serverkit-wordpress manifest
+ // (page_titles) — list pages by exact path, detail pages via the
+ // base-path lookup in PageTitleUpdater below.
'/templates': 'Templates',
'/deployments': 'Deployment Activity',
'/domains': 'Domains',
@@ -188,8 +189,6 @@ function PageTitleUpdater() {
title = pluginTitles[basePath];
} else if (path.startsWith('/services/')) title = 'Service Details';
else if (path.startsWith('/servers/')) title = 'Server Details';
- else if (path.startsWith('/wordpress/pipelines/') || path.startsWith('/wordpress/projects/')) title = 'WordPress Pipeline';
- else if (path.startsWith('/wordpress/')) title = 'WordPress Site';
else title = '';
}
}
diff --git a/frontend/src/components/sidebarItems.js b/frontend/src/components/sidebarItems.js
index 7028d16c..3ca36fb5 100644
--- a/frontend/src/components/sidebarItems.js
+++ b/frontend/src/components/sidebarItems.js
@@ -245,18 +245,21 @@ export const SIDEBAR_PRESETS = {
email: {
label: 'Email Admin',
description: 'Email server, security, DNS, and monitoring',
- hiddenItems: ['services', 'wordpress', 'workflow', 'databases', 'docker', 'git', 'cron', ...ADVANCED_ITEM_IDS]
+ hiddenItems: ['services', 'workflow', 'databases', 'docker', 'git', 'cron', ...ADVANCED_ITEM_IDS]
},
devops: {
label: 'Docker / DevOps',
description: 'Docker, Git, monitoring, and CI/CD tools',
- hiddenItems: ['wordpress', 'email', ...ADVANCED_ITEM_IDS]
+ hiddenItems: ['email', ...ADVANCED_ITEM_IDS]
},
minimal: {
label: 'Minimal',
description: 'Core only — no databases, containers, or scheduling',
- hiddenItems: ['wordpress', 'workflow', 'databases', 'docker', 'git', 'email', 'cron', ...ADVANCED_ITEM_IDS]
+ hiddenItems: ['workflow', 'databases', 'docker', 'git', 'email', 'cron', ...ADVANCED_ITEM_IDS]
}
+ // Note: no 'wordpress' literal — its nav item is contributed by the
+ // serverkit-wordpress extension manifest (plan 52 Phase 4), so presets
+ // don't hardcode an extension's id; uninstalled = absent.
};
// Map the Setup wizard's "use case" selections to an initial sidebar preset, so