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:
@@ -6,6 +6,7 @@ import { FormGrid,
|
||||
ConfirmDialog,
|
||||
Dialog,
|
||||
DocumentationHelpLink,
|
||||
TextWithHelp,
|
||||
DismissibleAlert,
|
||||
FormField as Field,
|
||||
IconButton,
|
||||
@@ -193,6 +194,7 @@ export default function FormDefinitionDialog({
|
||||
<Dialog
|
||||
open={open}
|
||||
title={definition ? `Revise ${definition.title}` : "New Form definition"}
|
||||
titleHelp={<DocumentationHelpLink reference={FORMS_FIELD_DOCUMENTATION} />}
|
||||
onClose={requestClose}
|
||||
closeDisabled={busy}
|
||||
portal
|
||||
@@ -207,9 +209,8 @@ export default function FormDefinitionDialog({
|
||||
}>
|
||||
<div className="form-definition-editor">
|
||||
<div className="form-definition-help">
|
||||
<DocumentationHelpLink reference={FORMS_FIELD_DOCUMENTATION} />
|
||||
{definition && <>
|
||||
<DocumentationHelpLink reference={semanticFormDocumentation(definition)} />
|
||||
<TextWithHelp help={<DocumentationHelpLink reference={semanticFormDocumentation(definition)} />}>Form meaning</TextWithHelp>
|
||||
<a className="btn btn-secondary" href={semanticAuthoringHref(definition)} target="_blank" rel="noreferrer">
|
||||
<BookOpen size={16} aria-hidden="true" /> Document form meaning
|
||||
</a>
|
||||
|
||||
@@ -162,6 +162,8 @@ export default function FormsPage({ settings, auth }: PlatformRouteContext) {
|
||||
<main className="forms-page">
|
||||
<WorkspaceFrame className="forms-shell" label="Form definitions" interfaceId="forms.catalogue" helpContextId="forms.page.catalogue" helpModuleId="forms">
|
||||
<WorkspaceActionBar
|
||||
title="Form definitions"
|
||||
titleHelp={<DocumentationHelpLink reference={FORMS_DOCUMENTATION} />}
|
||||
scope="workspace"
|
||||
variant="collection"
|
||||
refreshable
|
||||
@@ -187,7 +189,6 @@ export default function FormsPage({ settings, auth }: PlatformRouteContext) {
|
||||
<span className="forms-count">{total}</span>
|
||||
</>}
|
||||
createAction={<Button variant="primary" disabled={!canWrite} disabledReason={!canWrite ? FORMS_I18N.writeReason : undefined} onClick={() => setEditing("new")}><Plus size={16} aria-hidden="true" />New definition</Button>}
|
||||
helpAction={<DocumentationHelpLink reference={FORMS_DOCUMENTATION} />}
|
||||
/>
|
||||
<PageScrollViewport className="forms-list-viewport">
|
||||
{error && <DismissibleAlert tone="danger" resetKey={error}>{error}</DismissibleAlert>}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { PlatformTranslations } from "@govoplan/core-webui";
|
||||
|
||||
const en = {
|
||||
"Form meaning": "Form meaning",
|
||||
"i18n:govoplan-forms.form_definitions": "Form definitions",
|
||||
"i18n:govoplan-forms.loading_reason": "Form definitions are still loading.",
|
||||
"i18n:govoplan-forms.busy_reason": "Another Form definition action is still running.",
|
||||
@@ -74,6 +75,7 @@ const en = {
|
||||
} as const;
|
||||
|
||||
const de: Record<keyof typeof en, string> = {
|
||||
"Form meaning": "Formularbedeutung",
|
||||
"i18n:govoplan-forms.form_definitions": "Formulardefinitionen",
|
||||
"i18n:govoplan-forms.loading_reason": "Formulardefinitionen werden noch geladen.",
|
||||
"i18n:govoplan-forms.busy_reason": "Eine andere Aktion für Formulardefinitionen läuft noch.",
|
||||
|
||||
Reference in New Issue
Block a user