fix(ui): align contextual documentation with headings

Verified with the coordinated workspace changes by devkit full run
2026-09-08T225814-186389-0000-3e3ed7cd (all seven phases passed).
This shared UI pass does not mark the individual module reviews complete.
This commit is contained in:
2026-09-09 02:04:16 +02:00
parent 6ad7c6e0ef
commit 965244fc67
4 changed files with 21 additions and 15 deletions
+5 -5
View File
@@ -194,7 +194,10 @@ export default function GlobalSearch({ settings, auth }: GlobalSearchProps) {
<Dialog
open={open && Boolean(layout)}
title="Search"
title="Search" titleHelp={<DocumentationHelpLink
reference={{ topicId: "search.global-and-contextual", documentationType: "user" }}
label="Open search documentation"
/>}
helpContextId="search.results"
onClose={closeOverlay}
showCloseButton={false}
@@ -280,10 +283,7 @@ export default function GlobalSearch({ settings, auth }: GlobalSearchProps) {
hideModules={Boolean(context)} onModulesChange={setModules}
onResourceTypesChange={setResourceTypes} onClear={clearFilters} />
{loading && <LoadingIndicator size="sm" label="Searching" />}
<DocumentationHelpLink
reference={{ topicId: "search.global-and-contextual", documentationType: "user" }}
label="Open search documentation"
/>
<IconButton
label="Close search"
icon={<X size={17} />}
@@ -192,7 +192,10 @@ export default function SearchAdminPanel({ settings }: Props) {
return (
<AdminPageLayout
title="Search index"
title="Search index" titleHelp={<DocumentationHelpLink
reference={DOCUMENTATION}
label="Open Search administration documentation"
/>}
description="Inspect source coverage, process durable changes, and reconcile the tenant's derived index from authoritative modules."
loading={loading}
error={error}
@@ -225,10 +228,7 @@ export default function SearchAdminPanel({ settings }: Props) {
>
<RotateCw size={16} /> Reconcile modules
</Button>
<DocumentationHelpLink
reference={DOCUMENTATION}
label="Open Search administration documentation"
/>
</>
)}
>
+5 -5
View File
@@ -1,7 +1,7 @@
import { ChevronDown, ExternalLink, Search } from "lucide-react";
import { useEffect, useMemo, useState, type FormEvent } from "react";
import { useSearchParams } from "react-router";
import { ActionToolbar, Button, DocumentationHelpLink, DismissibleAlert, LoadingIndicator,
import { ActionToolbar, Button, DocumentationHelpLink, DismissibleAlert, LoadingIndicator, PageTitle,
PageScrollViewport, useGuardedNavigate, usePlatformModules, type PlatformRouteContext
} from "@govoplan/core-webui";
import SearchFilters from "../../components/SearchFilters";
@@ -43,6 +43,10 @@ export default function SearchPage({ settings, auth }: PlatformRouteContext) {
return (
<main className="search-page">
<ActionToolbar className="search-page-toolbar">
<PageTitle titleHelp={<DocumentationHelpLink
reference={{ topicId: "search.global-and-contextual", documentationType: "user" }}
label="Open search documentation"
/>}>Search</PageTitle>
<form className="search-page-form" onSubmit={submit}>
<Search size={18} aria-hidden="true" />
<input
@@ -59,10 +63,6 @@ export default function SearchPage({ settings, auth }: PlatformRouteContext) {
onResourceTypesChange={(value) => setParams(writeSearchFilter(params, "resource_type", value))}
onClear={clearFilters} />
{loading && <LoadingIndicator size="sm" label="Searching" />}
<DocumentationHelpLink
reference={{ topicId: "search.global-and-contextual", documentationType: "user" }}
label="Open search documentation"
/>
</ActionToolbar>
<PageScrollViewport className="search-results-viewport">
{error &&