Move breadcrumb rendering from individual page templates into the core topbar. Each page now sets $breadcrumbs in its action .php file; the topbar renders it automatically via the shared partial. - Remove global back/forward buttons and app-nav-history.js component - Remove Alt+Arrow keyboard shortcuts for history navigation - Render breadcrumb in topbar-left section (replaces button area) - Clean up breadcrumb CSS: context-neutral base (flex, no margin) - Recalculate sticky titlebar offset in details container - Migrate all 41 pages (core + helpdesk, audit, addressbook, api-docs) - Add missing breadcrumbs to addressbook detail view - Update architecture contract tests (nav-history references removed) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
67 lines
2.6 KiB
PHTML
67 lines
2.6 KiB
PHTML
<?php
|
|
$pageAuth = is_array($viewAuth['page'] ?? null) ? $viewAuth['page'] : [];
|
|
$canPurge = (bool) ($pageAuth['can_purge'] ?? false);
|
|
$toolbarFilterSchema = is_array($toolbarFilterSchema ?? null) ? $toolbarFilterSchema : [];
|
|
$searchToolbarFilterSchema = is_array($searchToolbarFilterSchema ?? null) ? $searchToolbarFilterSchema : [];
|
|
$drawerToolbarFilterSchema = is_array($drawerToolbarFilterSchema ?? null) ? $drawerToolbarFilterSchema : [];
|
|
$toolbarFilterState = is_array($toolbarFilterState ?? null) ? $toolbarFilterState : [];
|
|
$toolbarOptionSets = is_array($toolbarOptionSets ?? null) ? $toolbarOptionSets : [];
|
|
$filterChipMeta = is_array($filterChipMeta ?? null) ? $filterChipMeta : [];
|
|
$clientFilterSchema = is_array($clientFilterSchema ?? null) ? $clientFilterSchema : [];
|
|
$searchConfig = is_array($searchConfig ?? null) ? $searchConfig : null;
|
|
?>
|
|
<?php
|
|
$listTitle = t('User lifecycle logs');
|
|
ob_start();
|
|
?>
|
|
<?php
|
|
$listPurgeEnabled = $canPurge;
|
|
$listPurgeFormId = 'user-lifecycle-audit-purge-form';
|
|
$listPurgeAction = 'audit/user-lifecycle-audit/purge';
|
|
$listPurgeConfirmMessage = t('Purge entries older than 365 days?');
|
|
$listPurgeButtonLabel = t('Purge user lifecycle logs');
|
|
require templatePath('partials/app-list-purge-action.phtml');
|
|
?>
|
|
<?php
|
|
$listTitleActionsHtml = ob_get_clean();
|
|
require templatePath('partials/app-list-titlebar.phtml');
|
|
?>
|
|
|
|
<?php
|
|
$filterUiNamespace = 'user-lifecycle';
|
|
$filterToolbarId = 'user-lifecycle-audit-toolbar';
|
|
$filterDrawerToolbarId = 'user-lifecycle-drawer-toolbar';
|
|
$filterDrawerTitleId = 'user-lifecycle-filter-drawer-title';
|
|
require templatePath('partials/app-list-filters.phtml');
|
|
?>
|
|
|
|
<div class="app-list-table">
|
|
<div id="user-lifecycle-audit-grid"></div>
|
|
</div>
|
|
|
|
<?php
|
|
$gridLang = json_decode(appBufferValue('grid_lang'), true);
|
|
if (!is_array($gridLang)) {
|
|
$gridLang = [];
|
|
}
|
|
$pageConfig = [
|
|
'gridSearch' => $searchConfig,
|
|
'filterSchema' => $clientFilterSchema,
|
|
'filterChipMeta' => $filterChipMeta,
|
|
'gridLang' => $gridLang,
|
|
'labels' => [
|
|
'created' => t('Created'),
|
|
'status' => t('Status'),
|
|
'action' => t('Action'),
|
|
'trigger' => t('Trigger'),
|
|
'targetEmail' => t('Target email'),
|
|
'targetUuid' => t('Target UUID'),
|
|
'reasonCode' => t('Reason code'),
|
|
'restoredAt' => t('Restored at'),
|
|
],
|
|
];
|
|
?>
|
|
<script src="<?php e(assetVersion('vendor/gridjs/gridjs.umd.js')); ?>"></script>
|
|
<script type="application/json" id="page-config-admin-user-lifecycle-audit-index"><?php gridJsonForJs($pageConfig); ?></script>
|
|
<script type="module" src="<?php e(assetVersion('modules/audit/js/pages/admin-user-lifecycle-audit-index.js')); ?>"></script>
|