feat(search): refresh global search UI and align qa/docs updates

This commit is contained in:
2026-04-02 10:49:35 +02:00
parent 5699bc6c5b
commit 5d07236758
35 changed files with 504 additions and 213 deletions

View File

@@ -106,7 +106,14 @@ class SearchConfig
if ($provider !== null) {
$mapped = $provider->mapResultItem($key, $data);
if ($mapped !== null) {
return ['label' => $mapped['title'], 'url' => $mapped['url']];
$item = ['label' => $mapped['title'], 'url' => $mapped['url']];
if (isset($mapped['subtitle']) && $mapped['subtitle'] !== '') {
$item['subtitle'] = $mapped['subtitle'];
}
if (isset($mapped['icon']) && $mapped['icon'] !== '') {
$item['icon'] = $mapped['icon'];
}
return $item;
}
return null;
}