feat(ui): clean settings duplicates, move agents to start page, remove from topbar dropdown
This commit is contained in:
@@ -44,8 +44,11 @@ export function SettingsPage() {
|
||||
];
|
||||
|
||||
const existingPaths = new Set(hardcodedNavItems.map(item => item.to));
|
||||
// Filter out plugin nav items that are duplicates of hardcoded ones
|
||||
const duplicateLabels = new Set(['Roles', 'Users', 'Groups', 'AI Settings', 'Automation', 'Proactive AI']);
|
||||
const pluginNavItems = pluginSettingsPages
|
||||
.filter(p => !existingPaths.has(`/settings/${p.path}`))
|
||||
.filter(p => !duplicateLabels.has(p.label))
|
||||
.map(p => ({
|
||||
to: `/settings/${p.path}`,
|
||||
label: t(p.label_key, p.label),
|
||||
|
||||
Reference in New Issue
Block a user