refactor(ui): move Documentation and System Info from admin to help panel
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) <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,6 @@ $canViewJobs = (bool) ($layoutAuth['can_view_jobs'] ?? false);
|
|||||||
$canViewDocs = (bool) ($layoutAuth['can_view_docs'] ?? false);
|
$canViewDocs = (bool) ($layoutAuth['can_view_docs'] ?? false);
|
||||||
$canViewMailLog = (bool) ($layoutAuth['can_view_mail_log'] ?? false);
|
$canViewMailLog = (bool) ($layoutAuth['can_view_mail_log'] ?? false);
|
||||||
$canViewStats = (bool) ($layoutAuth['can_view_stats'] ?? false);
|
$canViewStats = (bool) ($layoutAuth['can_view_stats'] ?? false);
|
||||||
$canViewSystemInfo = (bool) ($layoutAuth['can_view_system_info'] ?? false);
|
|
||||||
$docsDefaultSlug = DocsCatalogService::defaultSlug();
|
$docsDefaultSlug = DocsCatalogService::defaultSlug();
|
||||||
$docsDefaultPath = 'admin/docs/' . $docsDefaultSlug;
|
$docsDefaultPath = 'admin/docs/' . $docsDefaultSlug;
|
||||||
$hasOrganization = $canViewTenants || $canViewDepartments || $canViewUsers;
|
$hasOrganization = $canViewTenants || $canViewDepartments || $canViewUsers;
|
||||||
@@ -25,7 +24,7 @@ $hasUsersSection = $canViewRoles || $canViewPermissions;
|
|||||||
$hasAutomationSection = $canViewImports || $canViewJobs;
|
$hasAutomationSection = $canViewImports || $canViewJobs;
|
||||||
$hasMonitoringSection = $canViewStats;
|
$hasMonitoringSection = $canViewStats;
|
||||||
$hasLogsSection = $canViewMailLog;
|
$hasLogsSection = $canViewMailLog;
|
||||||
$hasSystemSection = $canViewSettings || $canViewSystemInfo || $canViewDocs;
|
$hasSystemSection = $canViewSettings;
|
||||||
$hasAdminPanel = layoutHasAdminPanel($layoutAuth);
|
$hasAdminPanel = layoutHasAdminPanel($layoutAuth);
|
||||||
|
|
||||||
// Declarative nav config for admin panel groups
|
// Declarative nav config for admin panel groups
|
||||||
@@ -146,20 +145,6 @@ $adminNavGroups = [
|
|||||||
'visible' => $canViewSettings,
|
'visible' => $canViewSettings,
|
||||||
'withTenant' => false,
|
'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,
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user