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:
@@ -114,7 +114,7 @@ export default function VotingBallotDialog({
|
||||
return (
|
||||
<Dialog
|
||||
open={open}
|
||||
title={ballot ? `Edit ${ballot.title}` : "New ballot"}
|
||||
title={ballot ? `Edit ${ballot.title}` : "New ballot"} titleHelp={<DocumentationHelpLink reference={VOTING_FIELD_DOCUMENTATION} />}
|
||||
onClose={requestClose}
|
||||
closeDisabled={busy}
|
||||
portal
|
||||
@@ -127,7 +127,7 @@ export default function VotingBallotDialog({
|
||||
</>
|
||||
}>
|
||||
<div className="voting-ballot-editor">
|
||||
<div className="voting-editor-help"><DocumentationHelpLink reference={VOTING_FIELD_DOCUMENTATION} /></div>
|
||||
|
||||
{error && <DismissibleAlert tone="danger" resetKey={error}>{error}</DismissibleAlert>}
|
||||
<FormGrid columns={2} gap="compact" collapseAt="workspace">
|
||||
<FormField label="Title"><input value={draft.title} disabled={busy} onChange={(event) => setDraft({ ...draft, title: event.target.value })} /></FormField>
|
||||
|
||||
@@ -158,7 +158,9 @@ export default function VotingPage({ settings, auth }: PlatformRouteContext) {
|
||||
refreshable
|
||||
reloadAction={{ onReload: () => void loadList().catch((reason) => setError(message(reason, "Ballots could not be loaded."))), loading: loading || busy, label: "Refresh ballots" }}
|
||||
createAction={<Button variant="primary" disabled={!canManage || busy} disabledReason={busy ? VOTING_I18N.busy : !canManage ? VOTING_I18N.manageReason : undefined} onClick={() => setEditing("new")}><Plus size={16} aria-hidden="true" />New ballot</Button>}
|
||||
helpAction={<DocumentationHelpLink reference={VOTING_DOCUMENTATION} />}
|
||||
title="Ballots"
|
||||
titleLevel={1}
|
||||
titleHelp={<DocumentationHelpLink reference={VOTING_DOCUMENTATION} />}
|
||||
/>
|
||||
<WorkspaceLayout
|
||||
variant="split"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { PlatformTranslations } from "@govoplan/core-webui";
|
||||
|
||||
const en = {
|
||||
"Ballots": "Ballots",
|
||||
"i18n:govoplan-voting.voting": "Voting",
|
||||
"i18n:govoplan-voting.loading_reason": "Ballot data is still loading.",
|
||||
"i18n:govoplan-voting.busy_reason": "Another ballot action is still running.",
|
||||
@@ -76,6 +77,7 @@ const en = {
|
||||
} as const;
|
||||
|
||||
const de: Record<keyof typeof en, string> = {
|
||||
"Ballots": "Abstimmungen",
|
||||
"i18n:govoplan-voting.voting": "Abstimmungen",
|
||||
"i18n:govoplan-voting.loading_reason": "Abstimmungsdaten werden noch geladen.",
|
||||
"i18n:govoplan-voting.busy_reason": "Eine andere Abstimmungsaktion läuft noch.",
|
||||
|
||||
Reference in New Issue
Block a user