Move plugins from Settings tab to own hub with sidebar entry
Local Build and Deploy / deploy (push) Successful in 1m9s

- Remove /admin/plugins from Settings hub prefixes and tabs
- Add dedicated Plugins hub with Puzzle icon
- Add sidebar nav group entry for Plugins in ADMIN_NAV_GROUPS
- Add i18n keys: hub plugins, pluginsSubtitle, pluginsGroup, hubPlugins
This commit is contained in:
openhands committed 2026-07-18 14:18:50 +02:00
1 parent be5d2bfec4
commit 2b9bd1773a
2 files changed
+34 -10

No files matched your search

+26 -6
View File
@@ -268,11 +268,10 @@ export const ADMIN_HUBS: AdminHubDefinition[] = [
"/admin/maintenance",
"/admin/favicon",
"/admin/emulator",
"/admin/email-templates",
"/admin/housekeeping",
"/admin/webhooks",
"/admin/plugins",
],
"/admin/email-templates",
"/admin/housekeeping",
"/admin/webhooks",
],
tabs: [
{ href: "/admin/settings", labelKey: "cms" },
{ href: "/admin/theme", labelKey: "theme" },
@@ -282,7 +281,6 @@ export const ADMIN_HUBS: AdminHubDefinition[] = [
{ href: "/admin/email-templates", labelKey: "email" },
{ href: "/admin/housekeeping", labelKey: "housekeeping" },
{ href: "/admin/webhooks", labelKey: "webhooks" },
{ href: "/admin/plugins", labelKey: "plugins" },
],
},
{
@@ -336,6 +334,16 @@ export const ADMIN_HUBS: AdminHubDefinition[] = [
{ href: "/admin/alerts", labelKey: "alerts" },
],
},
{
id: "plugins",
titleKey: "plugins",
subtitleKey: "pluginsSubtitle",
icon: Puzzle,
prefixes: ["/admin/plugins"],
tabs: [
{ href: "/admin/plugins", labelKey: "plugins" },
],
},
];
export function allHubs(): AdminHubDefinition[] {
@@ -505,4 +513,16 @@ export const ADMIN_NAV_GROUPS: AdminNavGroup[] = [
},
],
},
{
labelKey: "pluginsGroup",
icon: Puzzle,
items: [
{
href: "/admin/plugins",
labelKey: "hubPlugins",
icon: Puzzle,
matchPrefixes: ["/admin/plugins"],
},
],
},
];