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>
42 lines
1.3 KiB
PHP
42 lines
1.3 KiB
PHP
<?php
|
|
|
|
use MintyPHP\Buffer;
|
|
use MintyPHP\Http\SessionStoreInterface;
|
|
use MintyPHP\Session;
|
|
use MintyPHP\Support\Guard;
|
|
|
|
$session = app(SessionStoreInterface::class)->all();
|
|
Guard::requireLogin();
|
|
|
|
$filterSchema = require __DIR__ . '/filter-schema.php';
|
|
$listFilterContext = gridBuildListFilterContext($filterSchema, [
|
|
'search_keys' => ['search'],
|
|
]);
|
|
$toolbarFilterSchema = $listFilterContext['toolbarFilterSchema'];
|
|
$toolbarFilterState = $listFilterContext['toolbarFilterState'];
|
|
$searchToolbarFilterSchema = $listFilterContext['searchToolbarFilterSchema'];
|
|
$drawerToolbarFilterSchema = $listFilterContext['drawerToolbarFilterSchema'];
|
|
$filterChipMeta = [
|
|
'search' => [
|
|
'label' => t('Search'),
|
|
'type' => 'text',
|
|
],
|
|
];
|
|
$clientFilterSchema = $listFilterContext['clientFilterSchema'];
|
|
$searchConfig = $listFilterContext['searchConfig'];
|
|
|
|
$csrfKey = Session::$csrfSessionKey;
|
|
$csrfToken = $session[$csrfKey] ?? '';
|
|
|
|
Buffer::set('title', t('Search results'));
|
|
|
|
$breadcrumbs = [
|
|
['label' => t('Home'), 'path' => 'admin'],
|
|
['label' => t('Search')],
|
|
];
|
|
Buffer::set('grid_lang', json_encode(gridLang(), JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES));
|
|
Buffer::set(
|
|
'grid_csrf',
|
|
json_encode(['key' => $csrfKey, 'token' => $csrfToken], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)
|
|
);
|