forked from fa/breadcrumb-the-shire
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);
|
||||
$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,
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user