From b871dacde25c1a7fc7a47abac12c9d799fc99ced Mon Sep 17 00:00:00 2001 From: fs Date: Thu, 26 Mar 2026 14:30:48 +0100 Subject: [PATCH] refactor(ui): move Documentation and System Info from admin to help panel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove Documentation and System Info nav items from the admin sidebar System group — they now live in the help-center panel. The admin System group retains only Settings. Removes unused $canViewSystemInfo variable from the sidebar template. Co-Authored-By: Claude Opus 4.6 (1M context) --- templates/partials/app-main-aside.phtml | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/templates/partials/app-main-aside.phtml b/templates/partials/app-main-aside.phtml index 58a4e1d..f9553d8 100644 --- a/templates/partials/app-main-aside.phtml +++ b/templates/partials/app-main-aside.phtml @@ -17,7 +17,6 @@ $canViewJobs = (bool) ($layoutAuth['can_view_jobs'] ?? false); $canViewDocs = (bool) ($layoutAuth['can_view_docs'] ?? false); $canViewMailLog = (bool) ($layoutAuth['can_view_mail_log'] ?? false); $canViewStats = (bool) ($layoutAuth['can_view_stats'] ?? false); -$canViewSystemInfo = (bool) ($layoutAuth['can_view_system_info'] ?? false); $docsDefaultSlug = DocsCatalogService::defaultSlug(); $docsDefaultPath = 'admin/docs/' . $docsDefaultSlug; $hasOrganization = $canViewTenants || $canViewDepartments || $canViewUsers; @@ -25,7 +24,7 @@ $hasUsersSection = $canViewRoles || $canViewPermissions; $hasAutomationSection = $canViewImports || $canViewJobs; $hasMonitoringSection = $canViewStats; $hasLogsSection = $canViewMailLog; -$hasSystemSection = $canViewSettings || $canViewSystemInfo || $canViewDocs; +$hasSystemSection = $canViewSettings; $hasAdminPanel = layoutHasAdminPanel($layoutAuth); // Declarative nav config for admin panel groups @@ -146,20 +145,6 @@ $adminNavGroups = [ 'visible' => $canViewSettings, 'withTenant' => false, ], - [ - 'label' => t('System Info'), - 'path' => 'admin/system-info', - 'active' => navActive('admin/system-info', true), - 'visible' => $canViewSystemInfo, - 'withTenant' => false, - ], - [ - 'label' => t('Documentation'), - 'path' => $docsDefaultPath, - 'active' => navActive('admin/docs', true), - 'visible' => $canViewDocs, - 'withTenant' => false, - ], ], ], ];