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>
39 lines
1.3 KiB
PHTML
39 lines
1.3 KiB
PHTML
<?php
|
|
use MintyPHP\Buffer;
|
|
|
|
$toolbarFilterSchema = is_array($toolbarFilterSchema ?? null) ? $toolbarFilterSchema : [];
|
|
$searchToolbarFilterSchema = is_array($searchToolbarFilterSchema ?? null) ? $searchToolbarFilterSchema : [];
|
|
$toolbarFilterState = is_array($toolbarFilterState ?? null) ? $toolbarFilterState : [];
|
|
$clientFilterSchema = is_array($clientFilterSchema ?? null) ? $clientFilterSchema : [];
|
|
$searchConfig = is_array($searchConfig ?? null) ? $searchConfig : null;
|
|
?>
|
|
<?php
|
|
$listTitle = t('Search results');
|
|
require templatePath('partials/app-list-titlebar.phtml');
|
|
?>
|
|
<div class="app-list-toolbar">
|
|
<?php renderGridFilterToolbar($searchToolbarFilterSchema, $toolbarFilterState); ?>
|
|
</div>
|
|
<div class="app-list-table">
|
|
<div id="search-results-grid"></div>
|
|
</div>
|
|
|
|
<?php
|
|
$gridLang = json_decode(appBufferValue('grid_lang'), true);
|
|
if (!is_array($gridLang)) {
|
|
$gridLang = [];
|
|
}
|
|
$pageConfig = [
|
|
'gridSearch' => $searchConfig,
|
|
'filterSchema' => $clientFilterSchema,
|
|
'gridLang' => $gridLang,
|
|
'labels' => [
|
|
'result' => t('Result'),
|
|
'type' => t('Type'),
|
|
],
|
|
];
|
|
?>
|
|
<script src="<?php e(assetVersion('vendor/gridjs/gridjs.umd.js')); ?>"></script>
|
|
<script type="application/json" id="page-config-search-index"><?php gridJsonForJs($pageConfig); ?></script>
|
|
<script type="module" src="<?php e(assetVersion('js/pages/search-index.js')); ?>"></script>
|